Interface UpdateQuoteFromCartStrategy

All Known Implementing Classes:
DefaultUpdateQuoteFromCartStrategy

public interface UpdateQuoteFromCartStrategy
Strategy for synchronizing the contents of a CartModel to a QuoteModel associated with it.
  • Method Details

    • updateQuoteFromCart

      QuoteModel updateQuoteFromCart(CartModel cart)
      Updates the QuoteModel associated with the given CartModel with the contents of the cart. Implementations have to handle cases where no quote is associated with the cart by e.g. throwing a runtime exception.
      Parameters:
      cart - a CartModel associated with a QuoteModel.
      Returns:
      the updated QuoteModel