Interface UpdateQuoteFromCartStrategy

    • Method Detail

      • 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