Interface AddToCartValidator
- All Known Implementing Classes:
FallbackAddToCartValidator,ProductConfigAddToCartValidator
public interface AddToCartValidator
Is used to add validation logic during the addToCart process
-
Method Summary
Modifier and TypeMethodDescriptionbooleansupports(CommerceCartParameter parameter) States if the validator supports the given parameters.voidvalidate(CommerceCartParameter parameter) Validates add to cart parameters
-
Method Details
-
supports
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
-