Model
IsProductSalableForRequestedQtyRequest
Magento\InventorySales\Model\IsProductSalableForRequestedQtyRequest
What it does
This class is a data transfer object (DTO) that encapsulates a request to check if a specific quantity of a product is available for sale.
Developers use this when they need to verify inventory availability before adding items to cart or processing orders, passing the product SKU and desired quantity to inventory validation services.
Public Methods
- getSku()
- getQty()
- setExtensionAttributes()
- getExtensionAttributes()