@gradientedge/commercetools-utils
    Preparing search index...

    Interface CartRecalculateAction

    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](ctp:api:type:Product) related to a Line Item is of `Embedded` [ProductPriceMode](ctp:api:type:ProductPriceModeEnum),
    the updated `price` of that [LineItem](ctp:api:type:LineItem) may not correspond to a Price in the `variant.prices` anymore.
    
    interface CartRecalculateAction {
        action: "recalculate";
        updateProductData?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "recalculate"
    updateProductData?: boolean
    • Leave empty or set as false to update only the Prices and TaxRates of the Line Items.
      • Set as true to update the Product data (such as name, variant, productType, and Product Attributes) of the Line Items.