Interface UpdateQuoteFromCartStrategy
-
- All Known Implementing Classes:
DefaultUpdateQuoteFromCartStrategy
public interface UpdateQuoteFromCartStrategyStrategy for synchronizing the contents of aCartModelto aQuoteModelassociated with it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QuoteModelupdateQuoteFromCart(CartModel cart)Updates theQuoteModelassociated with the givenCartModelwith the contents of the cart.
-
-
-
Method Detail
-
updateQuoteFromCart
QuoteModel updateQuoteFromCart(CartModel cart)
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
-
-