Interface StagedOrderSetShippingMethodTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetShippingMethodTaxRateActionImpl
StagedOrderSetShippingMethodTaxRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxRateAction stagedOrderSetShippingMethodTaxRateAction = StagedOrderSetShippingMethodTaxRateAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingMethodTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingMethodTaxRateActioncreate builder for StagedOrderSetShippingMethodTaxRateAction instancefactory method to create a deep copy of StagedOrderSetShippingMethodTaxRateAction@Valid ExternalTaxRateDraft
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.key
of the ShippingMethod to update.of()
factory methodof
(StagedOrderSetShippingMethodTaxRateAction template) factory method to create a shallow copy StagedOrderSetShippingMethodTaxRateActionvoid
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.void
setShippingKey
(String shippingKey) key
of the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodTaxRateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetShippingMethodTaxRateAction
(Function<StagedOrderSetShippingMethodTaxRateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_SHIPPING_METHOD_TAX_RATE
discriminator value for StagedOrderSetShippingMethodTaxRateAction- See Also:
-
-
Method Details
-
getShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
setShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetShippingMethodTaxRateAction
-
of
static StagedOrderSetShippingMethodTaxRateAction of(StagedOrderSetShippingMethodTaxRateAction template) factory method to create a shallow copy StagedOrderSetShippingMethodTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingMethodTaxRateAction deepCopy(@Nullable StagedOrderSetShippingMethodTaxRateAction template) factory method to create a deep copy of StagedOrderSetShippingMethodTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingMethodTaxRateAction- Returns:
- builder
-
builder
static StagedOrderSetShippingMethodTaxRateActionBuilder builder(StagedOrderSetShippingMethodTaxRateAction template) create builder for StagedOrderSetShippingMethodTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingMethodTaxRateAction
default <T> T withStagedOrderSetShippingMethodTaxRateAction(Function<StagedOrderSetShippingMethodTaxRateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodTaxRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-