Package com.commercetools.api.models.me
Class MyCartRecalculateActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartRecalculateActionImpl
- All Implemented Interfaces:
MyCartRecalculateAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartRecalculateActionImpl
extends Object
implements MyCartRecalculateAction, 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.me.MyCartRecalculateAction
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyCartRecalculateAction
withMyCartRecalculateAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartRecalculateActionImpl
public MyCartRecalculateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- 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 interfaceMyCartRecalculateAction
- Returns:
- updateProductData
- Leave empty or set to
-
setUpdateProductData
Description copied from interface:MyCartRecalculateAction
- 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 interfaceMyCartRecalculateAction
- Parameters:
updateProductData
- value to be set
- Leave empty or set to
-
equals
-
hashCode
-