Class ProjectChangePriceRoundingModeActionBuilder
java.lang.Object
com.commercetools.api.models.project.ProjectChangePriceRoundingModeActionBuilder
- All Implemented Interfaces:
Builder<ProjectChangePriceRoundingModeAction>
public class ProjectChangePriceRoundingModeActionBuilder
extends Object
implements Builder<ProjectChangePriceRoundingModeAction>
ProjectChangePriceRoundingModeActionBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectChangePriceRoundingModeAction with checking for non-null required valuesbuilds ProjectChangePriceRoundingModeAction without checking for non-null required valuesProject-level default rounding mode for calculating the total prices on LineItems and CustomLineItems.of()
factory method for an instance of ProjectChangePriceRoundingModeActionBuilderof
(ProjectChangePriceRoundingModeAction template) create builder for ProjectChangePriceRoundingModeAction instancepriceRoundingMode
(RoundingMode priceRoundingMode) Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems.
-
Constructor Details
-
ProjectChangePriceRoundingModeActionBuilder
public ProjectChangePriceRoundingModeActionBuilder()
-
-
Method Details
-
priceRoundingMode
public ProjectChangePriceRoundingModeActionBuilder priceRoundingMode(RoundingMode priceRoundingMode) Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems. See CartsConfiguration.
- Parameters:
priceRoundingMode
- value to be set- Returns:
- Builder
-
getPriceRoundingMode
Project-level default rounding mode for calculating the total prices on LineItems and CustomLineItems. See CartsConfiguration.
- Returns:
- priceRoundingMode
-
build
builds ProjectChangePriceRoundingModeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectChangePriceRoundingModeAction>
- Returns:
- ProjectChangePriceRoundingModeAction
-
buildUnchecked
builds ProjectChangePriceRoundingModeAction without checking for non-null required values- Returns:
- ProjectChangePriceRoundingModeAction
-
of
factory method for an instance of ProjectChangePriceRoundingModeActionBuilder- Returns:
- builder
-
of
public static ProjectChangePriceRoundingModeActionBuilder of(ProjectChangePriceRoundingModeAction template) create builder for ProjectChangePriceRoundingModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-