@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.orders.ShippingInfoImportDraft") public final class ShippingInfoImportDraftDsl extends Base implements ShippingInfoImportDraft
ShippingInfoImportDraft
.public List<Delivery> getDeliveries()
getDeliveries
in interface ShippingInfoImportDraft
@Nullable public DiscountedLineItemPrice getDiscountedPrice()
getDiscountedPrice
in interface ShippingInfoImportDraft
public javax.money.MonetaryAmount getPrice()
getPrice
in interface ShippingInfoImportDraft
@Nullable public ResourceIdentifier<ShippingMethod> getShippingMethod()
getShippingMethod
in interface ShippingInfoImportDraft
public String getShippingMethodName()
getShippingMethodName
in interface ShippingInfoImportDraft
public ShippingMethodState getShippingMethodState()
getShippingMethodState
in interface ShippingInfoImportDraft
public ShippingRate getShippingRate()
getShippingRate
in interface ShippingInfoImportDraft
@Nullable public ResourceIdentifier<TaxCategory> getTaxCategory()
getTaxCategory
in interface ShippingInfoImportDraft
@Nullable public TaxRate getTaxRate()
getTaxRate
in interface ShippingInfoImportDraft
public ShippingInfoImportDraftBuilder newBuilder()
public ShippingInfoImportDraftDsl withDeliveries(List<Delivery> deliveries)
public ShippingInfoImportDraftDsl withDiscountedPrice(@Nullable DiscountedLineItemPrice discountedPrice)
public ShippingInfoImportDraftDsl withPrice(javax.money.MonetaryAmount price)
public ShippingInfoImportDraftDsl withShippingMethod(@Nullable ResourceIdentifier<ShippingMethod> shippingMethod)
public ShippingInfoImportDraftDsl withShippingMethodName(String shippingMethodName)
public ShippingInfoImportDraftDsl withShippingMethodState(ShippingMethodState shippingMethodState)
public ShippingInfoImportDraftDsl withShippingRate(ShippingRate shippingRate)
public ShippingInfoImportDraftDsl withTaxCategory(@Nullable ResourceIdentifier<TaxCategory> taxCategory)
public ShippingInfoImportDraftDsl withTaxRate(@Nullable TaxRate taxRate)
public static ShippingInfoImportDraftDsl of(String shippingMethodName, javax.money.MonetaryAmount price, ShippingRate shippingRate, @Nullable TaxRate taxRate, @Nullable ResourceIdentifier<TaxCategory> taxCategory, @Nullable ResourceIdentifier<ShippingMethod> shippingMethod, ShippingMethodState shippingMethodState, List<Delivery> deliveries)
shippingMethodName
- initial value for the ShippingInfoImportDraft.getShippingMethodName()
propertyprice
- initial value for the ShippingInfoImportDraft.getPrice()
propertyshippingRate
- initial value for the ShippingInfoImportDraft.getShippingRate()
propertytaxRate
- initial value for the ShippingInfoImportDraft.getTaxRate()
propertytaxCategory
- initial value for the ShippingInfoImportDraft.getTaxCategory()
propertyshippingMethod
- initial value for the ShippingInfoImportDraft.getShippingMethod()
propertyshippingMethodState
- initial value for the ShippingInfoImportDraft.getShippingMethodState()
propertydeliveries
- initial value for the ShippingInfoImportDraft.getDeliveries()
propertypublic static ShippingInfoImportDraftDsl of(ShippingInfoImportDraft template)
template
- the template