Class CartRecalculateActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartRecalculateActionBuilder
- All Implemented Interfaces:
Builder<CartRecalculateAction>
CartRecalculateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartRecalculateAction cartRecalculateAction = CartRecalculateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartRecalculateAction with checking for non-null required valuesbuilds CartRecalculateAction without checking for non-null required valuesLeave empty or set tofalse
to only update the Prices and TaxRates of the Line Items. Set totrue
to update the Line Items' product data (likename
,variant
andproductType
) also.static CartRecalculateActionBuilder
of()
factory method for an instance of CartRecalculateActionBuilderstatic CartRecalculateActionBuilder
of
(CartRecalculateAction template) create builder for CartRecalculateAction instanceupdateProductData
(Boolean updateProductData) Leave empty or set tofalse
to only update the Prices and TaxRates of the Line Items. Set totrue
to update the Line Items' product data (likename
,variant
andproductType
) also.
-
Constructor Details
-
CartRecalculateActionBuilder
public CartRecalculateActionBuilder()
-
-
Method Details
-
updateProductData
- Leave empty or set to
false
to only update the Prices and TaxRates of the Line Items. - Set to
true
to update the Line Items' product data (likename
,variant
andproductType
) also.
- Parameters:
updateProductData
- value to be set- Returns:
- Builder
- Leave empty or set to
-
getUpdateProductData
- Leave empty or set to
false
to only update the Prices and TaxRates of the Line Items. - Set to
true
to update the Line Items' product data (likename
,variant
andproductType
) also.
- Returns:
- updateProductData
- Leave empty or set to
-
build
builds CartRecalculateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartRecalculateAction>
- Returns:
- CartRecalculateAction
-
buildUnchecked
builds CartRecalculateAction without checking for non-null required values- Returns:
- CartRecalculateAction
-
of
factory method for an instance of CartRecalculateActionBuilder- Returns:
- builder
-
of
create builder for CartRecalculateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-