Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.carts.commands.updateactions |
Provides the possible operations which can be performed on update commands for carts.
|
io.sphere.sdk.orderedits.commands.stagedactions | |
io.sphere.sdk.taxcategories |
Provides model classes and builders for tax categories.
|
Modifier and Type | Method and Description |
---|---|
ExternalTaxRateDraft |
CustomLineItemDraft.getExternalTaxRate()
Possible custom tax rate.
|
ExternalTaxRateDraft |
LineItemDraft.getExternalTaxRate()
The optional external tax rate if the cart has the tax mode
TaxMode.EXTERNAL . |
ExternalTaxRateDraft |
CartDraft.getExternalTaxRateForShippingMethod() |
ExternalTaxRateDraft |
ExternalTaxAmountDraft.getTaxRate() |
ExternalTaxRateDraft |
ExternalTaxAmountDraftDsl.getTaxRate() |
ExternalTaxRateDraft |
ExternalTaxAmountDraftBuilder.getTaxRate() |
Modifier and Type | Method and Description |
---|---|
static ExternalTaxAmountDraftDsl |
ExternalTaxAmountDraftDsl.of(javax.money.MonetaryAmount totalGross,
ExternalTaxRateDraft taxRate)
Creates a new object initialized with the given values.
|
static ExternalTaxAmountDraftBuilder |
ExternalTaxAmountDraftBuilder.of(javax.money.MonetaryAmount totalGross,
ExternalTaxRateDraft taxRate)
Creates a new object initialized with the given values.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
ExternalTaxRateDraft externalTaxRate,
long quantity)
Creates a draft having an external tax rate and no custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
ExternalTaxRateDraft externalTaxRate,
long quantity,
CustomFieldsDraft custom)
Creates a draft having an external tax rate and custom fields.
|
ExternalTaxAmountDraftBuilder |
ExternalTaxAmountDraftBuilder.taxRate(ExternalTaxRateDraft taxRate)
Sets the
taxRate property of this builder. |
ExternalTaxAmountDraftDsl |
ExternalTaxAmountDraftDsl.withTaxRate(ExternalTaxRateDraft taxRate) |
Modifier and Type | Method and Description |
---|---|
ExternalTaxRateDraft |
SetCustomLineItemTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
SetCustomShippingMethod.getExternalTaxRate() |
ExternalTaxRateDraft |
SetShippingMethodTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
SetLineItemTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
AddCustomLineItem.getExternalTaxRate() |
ExternalTaxRateDraft |
AddLineItem.getExternalTaxRate() |
Modifier and Type | Method and Description |
---|---|
static SetShippingMethodTaxRate |
SetShippingMethodTaxRate.of(ExternalTaxRateDraft externalTaxRate) |
static SetCustomLineItemTaxRate |
SetCustomLineItemTaxRate.of(String customLineItemId,
ExternalTaxRateDraft externalTaxRate) |
static SetLineItemTaxRate |
SetLineItemTaxRate.of(String lineItemId,
ExternalTaxRateDraft externalTaxRate) |
static SetCustomShippingMethod |
SetCustomShippingMethod.ofExternalTaxCalculation(String shippingMethodName,
ShippingRate shippingRate,
ExternalTaxRateDraft externalTaxRate) |
AddCustomLineItem |
AddCustomLineItem.withExternalTaxRate(ExternalTaxRateDraft externalTaxRate) |
AddLineItem |
AddLineItem.withExternalTaxRate(ExternalTaxRateDraft externalTaxRate) |
Modifier and Type | Method and Description |
---|---|
ExternalTaxRateDraft |
SetCustomLineItemTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
SetShippingAddressAndShippingMethod.getExternalTaxRate() |
ExternalTaxRateDraft |
SetCustomShippingMethod.getExternalTaxRate() |
ExternalTaxRateDraft |
SetShippingAddressAndCustomShippingMethod.getExternalTaxRate() |
ExternalTaxRateDraft |
SetShippingMethod.getExternalTaxRate() |
ExternalTaxRateDraft |
SetShippingMethodTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
SetLineItemTaxRate.getExternalTaxRate() |
ExternalTaxRateDraft |
AddCustomLineItem.getExternalTaxRate() |
ExternalTaxRateDraft |
AddLineItem.getExternalTaxRate() |
Modifier and Type | Method and Description |
---|---|
static SetShippingAddressAndShippingMethod |
SetShippingAddressAndShippingMethod.of(Address address,
ResourceIdentifier<ShippingMethod> shippingMethod,
ExternalTaxRateDraft externalTaxRate) |
static SetShippingAddressAndCustomShippingMethod |
SetShippingAddressAndCustomShippingMethod.of(Address address,
String shippingMethodName,
ShippingRate shippingRate,
ResourceIdentifier<TaxCategory> taxCategory,
ExternalTaxRateDraft externalTaxRate) |
static SetShippingMethodTaxRate |
SetShippingMethodTaxRate.of(ExternalTaxRateDraft externalTaxRate) |
static AddCustomLineItem |
AddCustomLineItem.of(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
ResourceIdentifier<TaxCategory> taxCategory,
Long quantity,
CustomFieldsDraft custom,
ExternalTaxRateDraft externalTaxRate) |
static SetShippingMethod |
SetShippingMethod.of(ResourceIdentifier<ShippingMethod> shippingMethod,
ExternalTaxRateDraft externalTaxRate) |
static SetCustomLineItemTaxRate |
SetCustomLineItemTaxRate.of(String customLineItemId,
ExternalTaxRateDraft externalTaxRate) |
static SetLineItemTaxRate |
SetLineItemTaxRate.of(String lineItemId,
ExternalTaxRateDraft externalTaxRate) |
static SetCustomShippingMethod |
SetCustomShippingMethod.of(String shippingMethodName,
ShippingRate shippingRate,
ResourceIdentifier<TaxCategory> taxCategory,
ExternalTaxRateDraft externalTaxRateDraft) |
Modifier and Type | Method and Description |
---|---|
ExternalTaxRateDraft |
ExternalTaxRateDraftBuilder.build() |