Log in
Model

IsProductSalableForRequestedQtyResult

Magento\InventorySales\Model\IsProductSalableForRequestedQtyResult

What it does

This class represents the result of checking whether a product can be sold in a requested quantity.

It encapsulates the product SKU, stock ID, salability status, and any errors that occurred during the check.

Developers use this when validating inventory availability before adding items to cart or processing orders in Magento's Multi-Source Inventory (MSI) system.

Public Methods

  • getSku()
  • getStockId()
  • isSalable()
  • getErrors()
  • setExtensionAttributes()
  • getExtensionAttributes()