StockExtensionInterface
Magento\InventoryApi\Api\Data\StockExtensionInterface
What it does
This extension interface allows developers to add and retrieve sales channels associated with inventory stocks in Magento's Multi-Source Inventory (MSI) system.
Developers use this when they need to link stocks to specific sales channels (websites, stores) to control which inventory sources are available for different storefronts.
It extends the base Stock data object with additional sales channel relationship data.
Public Methods
- getSalesChannels()
- setSalesChannels()