Interface
StockStateInterface
Magento\CatalogInventory\Api\StockStateInterface
What it does
This interface defines methods for checking and managing product stock availability in Magento 2.
Developers use it to verify if products are in stock, validate quantities for cart items, and get stock information.
Note: This interface is deprecated in favor of Multi Source Inventory (MSI) functionality introduced in Magento 2.3.
Public Methods
- verifyStock()
- verifyNotification()
- checkQuoteItemQty()
- checkQty()
- suggestQty()
- getStockQty()