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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetShippingMethodTaxAmountAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetShippingMethodTaxAmountActionbuilder(CartSetShippingMethodTaxAmountAction template) create builder for CartSetShippingMethodTaxAmountAction instancecopyDeep()deepCopy(CartSetShippingMethodTaxAmountAction template) factory method to create a deep copy of CartSetShippingMethodTaxAmountAction@Valid ExternalTaxAmountDraftValue to set.keyof the ShippingMethod to update.of()factory methodof(CartSetShippingMethodTaxAmountAction template) factory method to create a shallow copy CartSetShippingMethodTaxAmountActionvoidsetExternalTaxAmount(ExternalTaxAmountDraft externalTaxAmount) Value to set.voidsetShippingKey(String shippingKey) keyof the ShippingMethod to update.static com.fasterxml.jackson.core.type.TypeReference<CartSetShippingMethodTaxAmountAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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()keyof the ShippingMethod to update. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
setShippingKey
keyof the ShippingMethod to update. This is required for Carts withMultipleShippingMode.- 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
-
copyDeep
CartSetShippingMethodTaxAmountAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-