Interface QuoteUpdateStateStrategy

  • All Known Implementing Classes:
    DefaultQuoteUpdateStateStrategy

    public interface QuoteUpdateStateStrategy
    Strategy to update the state of a quote on an action
    • Method Detail

      • updateQuoteState

        QuoteModel updateQuoteState​(QuoteAction quoteAction,
                                    QuoteModel quoteModel,
                                    UserModel userModel)
        Updates the state of the quote for the given action.
        Parameters:
        quoteAction - the quote action to be performed
        quoteModel - the quote for which to update the state
        userModel - the user who wants to update quote state
        Returns:
        QuoteModel the updated quote model
        Throws:
        java.lang.IllegalArgumentException - if any of the parameters is null