public final class CartDraftDsl extends Base
public CartDraftDsl withShippingMethod(@Nullable Referenceable<ShippingMethod> shippingMethod)
@Nullable public String getAnonymousId()
getAnonymousId
in interface CartDraft
@Nullable public Address getBillingAddress()
getBillingAddress
in interface CartDraft
@Nullable public com.neovisionaries.i18n.CountryCode getCountry()
getCountry
in interface CartDraft
public javax.money.CurrencyUnit getCurrency()
getCurrency
in interface CartDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface CartDraft
getCustom
in interface CustomDraft
@Nullable public List<CustomLineItemDraft> getCustomLineItems()
getCustomLineItems
in interface CartDraft
@Nullable public String getCustomerEmail()
getCustomerEmail
in interface CartDraft
@Nullable public ResourceIdentifier<CustomerGroup> getCustomerGroup()
getCustomerGroup
in interface CartDraft
@Nullable public String getCustomerId()
getCustomerId
in interface CartDraft
@Nullable public Integer getDeleteDaysAfterLastModification()
getDeleteDaysAfterLastModification
in interface CartDraft
@Nullable public List<String> getDiscountCodes()
getDiscountCodes
in interface CartDraft
@Nullable public ExternalTaxRateDraft getExternalTaxRateForShippingMethod()
getExternalTaxRateForShippingMethod
in interface CartDraft
@Nullable public InventoryMode getInventoryMode()
getInventoryMode
in interface CartDraft
@Nullable public List<Address> getItemShippingAddresses()
CartDraft
getItemShippingAddresses
in interface CartDraft
@Nullable public List<LineItemDraft> getLineItems()
getLineItems
in interface CartDraft
@Nullable public CartOrigin getOrigin()
@Nullable public Address getShippingAddress()
getShippingAddress
in interface CartDraft
@Nullable public ResourceIdentifier<ShippingMethod> getShippingMethod()
getShippingMethod
in interface CartDraft
@Nullable public ShippingRateInputDraft getShippingRateInput()
getShippingRateInput
in interface CartDraft
@Nullable public ResourceIdentifier<Store> getStore()
@Nullable public TaxCalculationMode getTaxCalculationMode()
getTaxCalculationMode
in interface CartDraft
@Nullable public TaxMode getTaxMode()
getTaxMode
in interface CartDraft
@Nullable public RoundingMode getTaxRoundingMode()
getTaxRoundingMode
in interface CartDraft
public CartDraftBuilder newBuilder()
public T withCountry(@Nullable com.neovisionaries.i18n.CountryCode country)
public T withCurrency(javax.money.CurrencyUnit currency)
public T withCustom(@Nullable CustomFieldsDraft custom)
public T withCustomLineItems(@Nullable List<CustomLineItemDraft> customLineItems)
public T withCustomerGroup(@Nullable ResourceIdentifier<CustomerGroup> customerGroup)
public T withDeleteDaysAfterLastModification(@Nullable Integer deleteDaysAfterLastModification)
public T withExternalTaxRateForShippingMethod(@Nullable ExternalTaxRateDraft externalTaxRateForShippingMethod)
public T withInventoryMode(@Nullable InventoryMode inventoryMode)
public T withItemShippingAddresses(@Nullable List<Address> itemShippingAddresses)
public T withLineItems(@Nullable List<LineItemDraft> lineItems)
public T withOrigin(@Nullable CartOrigin origin)
public T withShippingMethod(@Nullable ResourceIdentifier<ShippingMethod> shippingMethod)
public T withShippingRateInput(@Nullable ShippingRateInputDraft shippingRateInput)
public T withStore(@Nullable ResourceIdentifier<Store> store)
public T withTaxCalculationMode(@Nullable TaxCalculationMode taxCalculationMode)
public T withTaxRoundingMode(@Nullable RoundingMode taxRoundingMode)
public static CartDraftDsl of(javax.money.CurrencyUnit currency)
of
in interface CartDraft
currency
- initial value for the CartDraft.getCurrency()
propertypublic static CartDraftDsl of(CartDraft template)
template
- the template