Interface AttributeChoiceConfigurationService

    • Method Detail

      • validateAttributeChoice

        void validateAttributeChoice​(@Nullable
                                     com.broadleafcommerce.cart.client.domain.Cart cart,
                                     com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                                     String validationFlow,
                                     ProductOption option)
        Perform validation against the provided CartItem for the given attribute choice ProductOption.
        Parameters:
        cart - The Cart of the CartItem
        cartItem - The CartItem to perform attribute choice validation against.
        validationFlow - The context used to identify validation requirements of the CartItem at that point in its lifecycle.
        option - The ProductOption (and it's ProductOption.getAttributeChoice() we are using to validate the cart against.