Interface TmaValidationMessagesStrategy

    • Method Detail

      • setValidationMessagesOn

        void setValidationMessagesOn​(CartModel cartModel,
                                     java.util.List<java.lang.String> messages)
        Sets validation messages on cart.
        Parameters:
        cartModel - the cart to be updated
        messages - list of messages
      • shouldUpdateValidationMessages

        boolean shouldUpdateValidationMessages​(EntryGroup entryGroup,
                                               java.util.List<java.lang.String> errorMessages)
        Returns a boolean that states whether the validation messages should be updated or not.
        Parameters:
        entryGroup - the entry group to be checked
        errorMessages - list of messages
        Returns:
        a boolean specifying if it should be updated or not
      • setValidationMessagesOn

        void setValidationMessagesOn​(EntryGroup entryGroup,
                                     java.util.List<java.lang.String> messages)
        Sets validation messages on entry group.
        Parameters:
        entryGroup - the entry group to be updated
        messages - list of messages