Model
IsProductSalableForRequestedQtyConditionChain
Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsProductSalableForRequestedQtyConditionChain
What it does
This class implements a chain of responsibility pattern to determine if a product can be sold in a requested quantity from a specific stock.
Developers would use this to validate product salability by running multiple conditions (both required and optional) that check inventory availability, stock assignments, and product type compatibility before allowing a product to be added to cart or ordered.
Public Methods
- execute()