IsProductSalableForRequestedQtyResultInterface
Magento\InventorySalesApi\Api\Data\IsProductSalableForRequestedQtyResultInterface
What it does
This interface defines the contract for a result object that determines whether a product can be sold for a requested quantity.
Developers use this when checking product availability, receiving information about the product SKU, stock ID, salability status, and any errors that prevent the sale.
It's commonly used in checkout processes, cart operations, and inventory validation scenarios.
Public Methods
- getSku()
- getStockId()
- isSalable()
- getErrors()
- setExtensionAttributes()
- getExtensionAttributes()