Interface CartChangeTaxCalculationModeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Changing the tax calculation mode leads to recalculation of taxes.
Example to create an instance using the builder pattern
CartChangeTaxCalculationModeAction cartChangeTaxCalculationModeAction = CartChangeTaxCalculationModeAction.builder()
.taxCalculationMode(TaxCalculationMode.LINE_ITEM_LEVEL)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartChangeTaxCalculationModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartChangeTaxCalculationModeActionbuilder
(CartChangeTaxCalculationModeAction template) create builder for CartChangeTaxCalculationModeAction instancedeepCopy
(CartChangeTaxCalculationModeAction template) factory method to create a deep copy of CartChangeTaxCalculationModeAction@NotNull TaxCalculationMode
New value to set.of()
factory methodof
(CartChangeTaxCalculationModeAction template) factory method to create a shallow copy CartChangeTaxCalculationModeActionvoid
setTaxCalculationMode
(TaxCalculationMode taxCalculationMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartChangeTaxCalculationModeAction>
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
-
CHANGE_TAX_CALCULATION_MODE
discriminator value for CartChangeTaxCalculationModeAction- See Also:
-
-
Method Details
-
getTaxCalculationMode
New value to set.
- Returns:
- taxCalculationMode
-
setTaxCalculationMode
New value to set.
- Parameters:
taxCalculationMode
- value to be set
-
of
factory method- Returns:
- instance of CartChangeTaxCalculationModeAction
-
of
factory method to create a shallow copy CartChangeTaxCalculationModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartChangeTaxCalculationModeAction deepCopy(@Nullable CartChangeTaxCalculationModeAction template) factory method to create a deep copy of CartChangeTaxCalculationModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartChangeTaxCalculationModeAction- Returns:
- builder
-
builder
static CartChangeTaxCalculationModeActionBuilder builder(CartChangeTaxCalculationModeAction template) create builder for CartChangeTaxCalculationModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartChangeTaxCalculationModeAction
default <T> T withCartChangeTaxCalculationModeAction(Function<CartChangeTaxCalculationModeAction, 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<CartChangeTaxCalculationModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-