Interface AddToCartValidator

All Known Implementing Classes:
FallbackAddToCartValidator, ProductConfigAddToCartValidator

public interface AddToCartValidator
Is used to add validation logic during the addToCart process
  • Method Details

    • supports

      boolean supports(CommerceCartParameter parameter)
      States if the validator supports the given parameters. If this is the case, its validation result will be taken into account
      Parameters:
      parameter - Parameters used for the add to cart process
      Returns:
      Validator supports
    • validate

      Validates add to cart parameters
      Parameters:
      parameter - Parameters used for the add to cart process
      Throws:
      CommerceCartModificationException - Validation issue