Interface CartSetShippingMethodTaxAmountAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
A Shipping Method tax amount can be set if the Cart has the ExternalAmount
TaxMode.
Example to create an instance using the builder pattern
CartSetShippingMethodTaxAmountAction cartSetShippingMethodTaxAmountAction = CartSetShippingMethodTaxAmountAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetShippingMethodTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetShippingMethodTaxAmountActionbuilder
(CartSetShippingMethodTaxAmountAction template) create builder for CartSetShippingMethodTaxAmountAction instancedeepCopy
(CartSetShippingMethodTaxAmountAction template) factory method to create a deep copy of CartSetShippingMethodTaxAmountAction@Valid ExternalTaxAmountDraft
Value to set.key
of the ShippingMethod to update.of()
factory methodof
(CartSetShippingMethodTaxAmountAction template) factory method to create a shallow copy CartSetShippingMethodTaxAmountActionvoid
setExternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.void
setShippingKey
(String shippingKey) key
of the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingMethodTaxAmountAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SHIPPING_METHOD_TAX_AMOUNT
discriminator value for CartSetShippingMethodTaxAmountAction- See Also:
-
-
Method Details
-
getShippingKey
String getShippingKey()key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
setShippingKey
key
of the ShippingMethod to update. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount
- value to be set
-
of
factory method- Returns:
- instance of CartSetShippingMethodTaxAmountAction
-
of
factory method to create a shallow copy CartSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetShippingMethodTaxAmountAction deepCopy(@Nullable CartSetShippingMethodTaxAmountAction template) factory method to create a deep copy of CartSetShippingMethodTaxAmountAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetShippingMethodTaxAmountAction- Returns:
- builder
-
builder
static CartSetShippingMethodTaxAmountActionBuilder builder(CartSetShippingMethodTaxAmountAction template) create builder for CartSetShippingMethodTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetShippingMethodTaxAmountAction
default <T> T withCartSetShippingMethodTaxAmountAction(Function<CartSetShippingMethodTaxAmountAction, 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<CartSetShippingMethodTaxAmountAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-