Interface CartChangePriceRoundingModeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Changing the price rounding mode leads to recalculation of taxes.
Example to create an instance using the builder pattern
CartChangePriceRoundingModeAction cartChangePriceRoundingModeAction = CartChangePriceRoundingModeAction.builder()
.priceRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CartChangePriceRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartChangePriceRoundingModeActionbuilder
(CartChangePriceRoundingModeAction template) create builder for CartChangePriceRoundingModeAction instancecopyDeep()
deepCopy
(CartChangePriceRoundingModeAction template) factory method to create a deep copy of CartChangePriceRoundingModeAction@NotNull RoundingMode
New value to set.of()
factory methodof
(CartChangePriceRoundingModeAction template) factory method to create a shallow copy CartChangePriceRoundingModeActionvoid
setPriceRoundingMode
(RoundingMode priceRoundingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CartChangePriceRoundingModeAction>
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_PRICE_ROUNDING_MODE
discriminator value for CartChangePriceRoundingModeAction- See Also:
-
-
Method Details
-
getPriceRoundingMode
New value to set.
- Returns:
- priceRoundingMode
-
setPriceRoundingMode
New value to set.
- Parameters:
priceRoundingMode
- value to be set
-
of
factory method- Returns:
- instance of CartChangePriceRoundingModeAction
-
of
factory method to create a shallow copy CartChangePriceRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CartChangePriceRoundingModeAction copyDeep()- Specified by:
copyDeep
in interfaceCartUpdateAction
-
deepCopy
@Nullable static CartChangePriceRoundingModeAction deepCopy(@Nullable CartChangePriceRoundingModeAction template) factory method to create a deep copy of CartChangePriceRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartChangePriceRoundingModeAction- Returns:
- builder
-
builder
create builder for CartChangePriceRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartChangePriceRoundingModeAction
default <T> T withCartChangePriceRoundingModeAction(Function<CartChangePriceRoundingModeAction, 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<CartChangePriceRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-