Log in
Interface

SourceSelectionItemInterface

Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionItemInterface

What it does

This interface defines the data structure for representing a source selection result in Magento's Multi-Source Inventory (MSI) system.

Developers use this when implementing custom source selection algorithms to determine which inventory source should fulfill an order, specifying the source code, SKU, quantity to deduct, and available quantity for each item-source combination.

Public Methods

  • getSourceCode()
  • getSku()
  • getQtyToDeduct()
  • getQtyAvailable()
  • getExtensionAttributes()
  • setExtensionAttributes()