Interface ProjectChangeTaxRoundingModeAction
- All Superinterfaces:
ProjectUpdateAction
,ResourceUpdateAction<ProjectUpdateAction>
ProjectChangeTaxRoundingModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectChangeTaxRoundingModeAction projectChangeTaxRoundingModeAction = ProjectChangeTaxRoundingModeAction.builder()
.taxRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProjectChangeTaxRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProjectChangeTaxRoundingModeActionbuilder
(ProjectChangeTaxRoundingModeAction template) create builder for ProjectChangeTaxRoundingModeAction instancecopyDeep()
deepCopy
(ProjectChangeTaxRoundingModeAction template) factory method to create a deep copy of ProjectChangeTaxRoundingModeAction@NotNull RoundingMode
Project-level default rounding mode for tax calculation.of()
factory methodof
(ProjectChangeTaxRoundingModeAction template) factory method to create a shallow copy ProjectChangeTaxRoundingModeActionvoid
setTaxRoundingMode
(RoundingMode taxRoundingMode) Project-level default rounding mode for tax calculation.static com.fasterxml.jackson.core.type.TypeReference<ProjectChangeTaxRoundingModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.project.ProjectUpdateAction
getAction, withProjectUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_TAX_ROUNDING_MODE
discriminator value for ProjectChangeTaxRoundingModeAction- See Also:
-
-
Method Details
-
getTaxRoundingMode
Project-level default rounding mode for tax calculation. See CartsConfiguration.
- Returns:
- taxRoundingMode
-
setTaxRoundingMode
Project-level default rounding mode for tax calculation. See CartsConfiguration.
- Parameters:
taxRoundingMode
- value to be set
-
of
factory method- Returns:
- instance of ProjectChangeTaxRoundingModeAction
-
of
factory method to create a shallow copy ProjectChangeTaxRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ProjectChangeTaxRoundingModeAction copyDeep()- Specified by:
copyDeep
in interfaceProjectUpdateAction
-
deepCopy
@Nullable static ProjectChangeTaxRoundingModeAction deepCopy(@Nullable ProjectChangeTaxRoundingModeAction template) factory method to create a deep copy of ProjectChangeTaxRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectChangeTaxRoundingModeAction- Returns:
- builder
-
builder
static ProjectChangeTaxRoundingModeActionBuilder builder(ProjectChangeTaxRoundingModeAction template) create builder for ProjectChangeTaxRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectChangeTaxRoundingModeAction
default <T> T withProjectChangeTaxRoundingModeAction(Function<ProjectChangeTaxRoundingModeAction, 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<ProjectChangeTaxRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-