Interface
ProductSalabilityErrorInterface
Magento\InventorySalesApi\Api\Data\ProductSalabilityErrorInterface
What it does
This interface defines the contract for error objects that are returned when checking if a product can be sold (salability checks).
Developers use this to understand why a product cannot be added to cart or purchased, with standardized error codes and messages for inventory-related issues like out-of-stock or insufficient quantity.
Public Methods
- getCode()
- getMessage()
- getExtensionAttributes()
- setExtensionAttributes()