Class CartRecalculateActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartRecalculateActionImpl
- All Implemented Interfaces:
CartRecalculateAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartRecalculateActionImpl
extends Object
implements CartRecalculateAction, io.vrap.rmf.base.client.ModelBase
This update action does not set any Cart field in particular, but it triggers several Cart updates to bring prices and discounts to the latest state. Those can become stale over time when no Cart updates have been performed for a while and prices on related Products have changed in the meanwhile.
If the priceMode
of the Product related to a Line Item is of Embedded
ProductPriceMode, the updated price
of that LineItem may not correspond to a Price in the variant.prices
anymore.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart.CartRecalculateAction
RECALCULATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.int
hashCode()
void
setUpdateProductData
(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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartRecalculateAction
withCartRecalculateAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartRecalculateActionImpl
public CartRecalculateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
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.
- Specified by:
getUpdateProductData
in interfaceCartRecalculateAction
- Returns:
- updateProductData
- Leave empty or set to
-
setUpdateProductData
Description copied from interface:CartRecalculateAction
- 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.
- Specified by:
setUpdateProductData
in interfaceCartRecalculateAction
- Parameters:
updateProductData
- value to be set
- Leave empty or set to
-
equals
-
hashCode
public int hashCode()
-