Interface StagedOrderChangePriceRoundingModeAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Changing the price rounding mode leads to recalculation of taxes.
Example to create an instance using the builder pattern
StagedOrderChangePriceRoundingModeAction stagedOrderChangePriceRoundingModeAction = StagedOrderChangePriceRoundingModeAction.builder()
.priceRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderChangePriceRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderChangePriceRoundingModeActioncreate builder for StagedOrderChangePriceRoundingModeAction instancecopyDeep()factory method to create a deep copy of StagedOrderChangePriceRoundingModeAction@NotNull RoundingModeNew value to set.of()factory methodof(StagedOrderChangePriceRoundingModeAction template) factory method to create a shallow copy StagedOrderChangePriceRoundingModeActionvoidsetPriceRoundingMode(RoundingMode priceRoundingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangePriceRoundingModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderChangePriceRoundingModeAction(Function<StagedOrderChangePriceRoundingModeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
CHANGE_PRICE_ROUNDING_MODE
discriminator value for StagedOrderChangePriceRoundingModeAction- 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 StagedOrderChangePriceRoundingModeAction
-
of
static StagedOrderChangePriceRoundingModeAction of(StagedOrderChangePriceRoundingModeAction template) factory method to create a shallow copy StagedOrderChangePriceRoundingModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderChangePriceRoundingModeAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderChangePriceRoundingModeAction deepCopy(@Nullable StagedOrderChangePriceRoundingModeAction template) factory method to create a deep copy of StagedOrderChangePriceRoundingModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangePriceRoundingModeAction- Returns:
- builder
-
builder
static StagedOrderChangePriceRoundingModeActionBuilder builder(StagedOrderChangePriceRoundingModeAction template) create builder for StagedOrderChangePriceRoundingModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangePriceRoundingModeAction
default <T> T withStagedOrderChangePriceRoundingModeAction(Function<StagedOrderChangePriceRoundingModeAction, 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<StagedOrderChangePriceRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-