IsProductSalableResultInterface
Magento\InventorySalesApi\Api\Data\IsProductSalableResultInterface
What it does
This interface defines the contract for representing the result of a product salability check in Magento's Multi-Source Inventory system.
Developers use this when checking if a product (by SKU) can be sold from a specific stock, receiving a boolean salable status along with extensible attributes for additional data.
It's commonly used in inventory availability checks during cart operations and product display.
Public Methods
- getSku()
- getStockId()
- isSalable()
- setExtensionAttributes()
- getExtensionAttributes()