Interface StagedOrderChangeTaxRoundingModeAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Changing the tax rounding mode leads to recalculation of taxes.
Example to create an instance using the builder pattern
StagedOrderChangeTaxRoundingModeAction stagedOrderChangeTaxRoundingModeAction = StagedOrderChangeTaxRoundingModeAction.builder()
.taxRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderChangeTaxRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderChangeTaxRoundingModeActioncreate builder for StagedOrderChangeTaxRoundingModeAction instancecopyDeep()factory method to create a deep copy of StagedOrderChangeTaxRoundingModeAction@NotNull RoundingModeNew value to set.of()factory methodof(StagedOrderChangeTaxRoundingModeAction template) factory method to create a shallow copy StagedOrderChangeTaxRoundingModeActionvoidsetTaxRoundingMode(RoundingMode taxRoundingMode) New value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangeTaxRoundingModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderChangeTaxRoundingModeAction(Function<StagedOrderChangeTaxRoundingModeAction, 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_TAX_ROUNDING_MODE
discriminator value for StagedOrderChangeTaxRoundingModeAction- 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 StagedOrderChangeTaxRoundingModeAction
-
of
factory method to create a shallow copy StagedOrderChangeTaxRoundingModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderChangeTaxRoundingModeAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderChangeTaxRoundingModeAction deepCopy(@Nullable StagedOrderChangeTaxRoundingModeAction template) factory method to create a deep copy of StagedOrderChangeTaxRoundingModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangeTaxRoundingModeAction- Returns:
- builder
-
builder
static StagedOrderChangeTaxRoundingModeActionBuilder builder(StagedOrderChangeTaxRoundingModeAction template) create builder for StagedOrderChangeTaxRoundingModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangeTaxRoundingModeAction
default <T> T withStagedOrderChangeTaxRoundingModeAction(Function<StagedOrderChangeTaxRoundingModeAction, 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<StagedOrderChangeTaxRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-