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 Summary
Modifier and TypeMethodDescriptionupdateQuoteFromCart(CartModel cart) Updates theQuoteModelassociated with the givenCartModelwith the contents of the cart.
-
Method Details
-
updateQuoteFromCart
Updates theQuoteModelassociated with the givenCartModelwith 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- aCartModelassociated with aQuoteModel.- Returns:
- the updated
QuoteModel
-