Interface
CartQuantityValidatorInterface
Magento\QuoteGraphQl\Model\Cart\MergeCarts\CartQuantityValidatorInterface
What it does
This interface defines a contract for validating cart item quantities when merging a guest cart with a customer cart in GraphQL operations.
Developers implement this interface to create custom validators that ensure the combined quantities of items from both carts don't exceed allowed limits or business rules before the merge completes.
Public Methods
- validateFinalCartQuantities()