Interface
GetProductSalableQtyInterface
Magento\InventorySalesApi\Api\GetProductSalableQtyInterface
What it does
This interface defines a service that calculates the actual quantity of a product available for sale by considering the stock quantity, existing reservations, and the minimum stock threshold (Out-of-Stock Threshold).
Developers use this to determine if a product can be sold before allowing customers to add items to cart or complete checkout, ensuring accurate inventory availability across different stock sources.
Public Methods
- execute()