Interface CartChangeTaxRoundingModeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Changing the tax rounding mode leads to recalculation of taxes.
Example to create an instance using the builder pattern
CartChangeTaxRoundingModeAction cartChangeTaxRoundingModeAction = CartChangeTaxRoundingModeAction.builder()
.taxRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartChangeTaxRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartChangeTaxRoundingModeActionbuilder
(CartChangeTaxRoundingModeAction template) create builder for CartChangeTaxRoundingModeAction instancedeepCopy
(CartChangeTaxRoundingModeAction template) factory method to create a deep copy of CartChangeTaxRoundingModeAction@NotNull RoundingMode
New value to set.of()
factory methodof
(CartChangeTaxRoundingModeAction template) factory method to create a shallow copy CartChangeTaxRoundingModeActionvoid
setTaxRoundingMode
(RoundingMode taxRoundingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartChangeTaxRoundingModeAction>
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_ROUNDING_MODE
discriminator value for CartChangeTaxRoundingModeAction- See Also:
-
-
Method Details
-
getTaxRoundingMode
New value to set.
- Returns:
- taxRoundingMode
-
setTaxRoundingMode
New value to set.
- Parameters:
taxRoundingMode
- value to be set
-
of
factory method- Returns:
- instance of CartChangeTaxRoundingModeAction
-
of
factory method to create a shallow copy CartChangeTaxRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartChangeTaxRoundingModeAction deepCopy(@Nullable CartChangeTaxRoundingModeAction template) factory method to create a deep copy of CartChangeTaxRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartChangeTaxRoundingModeAction- Returns:
- builder
-
builder
create builder for CartChangeTaxRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartChangeTaxRoundingModeAction
default <T> T withCartChangeTaxRoundingModeAction(Function<CartChangeTaxRoundingModeAction, 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<CartChangeTaxRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-