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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    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 (like name, variant and productType) also.
    int
     
    void
    setUpdateProductData(Boolean 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 (like name, variant and productType) 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