Interface CartRecalculateAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>
All Known Implementing Classes:
CartRecalculateActionImpl

public interface CartRecalculateAction extends CartUpdateAction

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.


Example to create an instance using the builder pattern

     CartRecalculateAction cartRecalculateAction = CartRecalculateAction.builder()
             .build()