IsProductSalableInterface
Magento\InventorySalesApi\Api\IsProductSalableInterface
What it does
This interface defines a service to check if a specific product is available for sale in a given stock, considering both stock data and reservations.
Developers would use this to verify product availability before displaying 'Add to Cart' buttons or processing orders.
Note that this interface is deprecated in favor of the bulk API AreProductsSalableInterface for better performance.
Public Methods
- execute()