Log in
Model

ItemToSell

Magento\InventorySales\Model\ItemToSell

What it does

This class represents an item being sold in Magento's Multi-Source Inventory (MSI) system.

Developers use it to encapsulate product SKU and quantity information when processing sales transactions, inventory deductions, or order placements.

It serves as a data transfer object between sales operations and inventory management modules.

Public Methods

  • getSku()
  • getQuantity()
  • setSku()
  • setQuantity()
  • getExtensionAttributes()
  • setExtensionAttributes()