ProductSalableResult
Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\ProductSalableResult
What it does
This class represents the result of checking whether a product can be sold for a requested quantity in Magento's Multi-Source Inventory (MSI) system.
Developers use this to determine product salability status and retrieve any errors that prevent the sale, such as insufficient stock or product unavailability.
It's primarily used when validating cart items or processing orders to ensure inventory availability.
Public Methods
- isSalable()
- getErrors()
- getExtensionAttributes()
- setExtensionAttributes()