Interface ProjectChangePriceRoundingModeAction
- All Superinterfaces:
ProjectUpdateAction
,ResourceUpdateAction<ProjectUpdateAction>
ProjectChangePriceRoundingModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectChangePriceRoundingModeAction projectChangePriceRoundingModeAction = ProjectChangePriceRoundingModeAction.builder()
.priceRoundingMode(RoundingMode.HALF_EVEN)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProjectChangePriceRoundingModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProjectChangePriceRoundingModeActionbuilder
(ProjectChangePriceRoundingModeAction template) create builder for ProjectChangePriceRoundingModeAction instancecopyDeep()
deepCopy
(ProjectChangePriceRoundingModeAction template) factory method to create a deep copy of ProjectChangePriceRoundingModeAction@NotNull RoundingMode
Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems.of()
factory methodof
(ProjectChangePriceRoundingModeAction template) factory method to create a shallow copy ProjectChangePriceRoundingModeActionvoid
setPriceRoundingMode
(RoundingMode priceRoundingMode) Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems.static com.fasterxml.jackson.core.type.TypeReference<ProjectChangePriceRoundingModeAction>
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_PRICE_ROUNDING_MODE
discriminator value for ProjectChangePriceRoundingModeAction- See Also:
-
-
Method Details
-
getPriceRoundingMode
Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems. See CartsConfiguration.
- Returns:
- priceRoundingMode
-
setPriceRoundingMode
Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems. See CartsConfiguration.
- Parameters:
priceRoundingMode
- value to be set
-
of
factory method- Returns:
- instance of ProjectChangePriceRoundingModeAction
-
of
factory method to create a shallow copy ProjectChangePriceRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ProjectChangePriceRoundingModeAction copyDeep()- Specified by:
copyDeep
in interfaceProjectUpdateAction
-
deepCopy
@Nullable static ProjectChangePriceRoundingModeAction deepCopy(@Nullable ProjectChangePriceRoundingModeAction template) factory method to create a deep copy of ProjectChangePriceRoundingModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectChangePriceRoundingModeAction- Returns:
- builder
-
builder
static ProjectChangePriceRoundingModeActionBuilder builder(ProjectChangePriceRoundingModeAction template) create builder for ProjectChangePriceRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectChangePriceRoundingModeAction
default <T> T withProjectChangePriceRoundingModeAction(Function<ProjectChangePriceRoundingModeAction, 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<ProjectChangePriceRoundingModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-