Interface StagedOrderSetShippingMethodTaxAmountAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
A Shipping Method tax amount can be set if the Cart has the ExternalAmount
TaxMode.
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxAmountAction stagedOrderSetShippingMethodTaxAmountAction = StagedOrderSetShippingMethodTaxAmountAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetShippingMethodTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetShippingMethodTaxAmountActioncreate builder for StagedOrderSetShippingMethodTaxAmountAction instancefactory method to create a deep copy of StagedOrderSetShippingMethodTaxAmountAction@Valid ExternalTaxAmountDraft
Value to set.key
of the ShippingMethod to update.of()
factory methodfactory method to create a shallow copy StagedOrderSetShippingMethodTaxAmountActionvoid
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.void
setShippingKey
(String shippingKey) key
of the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingMethodTaxAmountAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetShippingMethodTaxAmountAction
(Function<StagedOrderSetShippingMethodTaxAmountAction, 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_AMOUNT
discriminator value for StagedOrderSetShippingMethodTaxAmountAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- Returns:
- externalTaxAmount
-
setShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setExternalTaxAmount
Value to set. If empty, any existing value will be removed.
- Parameters:
externalTaxAmount
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetShippingMethodTaxAmountAction
-
of
static StagedOrderSetShippingMethodTaxAmountAction of(StagedOrderSetShippingMethodTaxAmountAction template) factory method to create a shallow copy StagedOrderSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetShippingMethodTaxAmountAction deepCopy(@Nullable StagedOrderSetShippingMethodTaxAmountAction template) factory method to create a deep copy of StagedOrderSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingMethodTaxAmountAction- Returns:
- builder
-
builder
static StagedOrderSetShippingMethodTaxAmountActionBuilder builder(StagedOrderSetShippingMethodTaxAmountAction template) create builder for StagedOrderSetShippingMethodTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingMethodTaxAmountAction
default <T> T withStagedOrderSetShippingMethodTaxAmountAction(Function<StagedOrderSetShippingMethodTaxAmountAction, 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<StagedOrderSetShippingMethodTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-