Log in
Model

SourceDeductedOrderItemsResult

Magento\InventorySalesApi\Model\ReturnProcessor\Result\SourceDeductedOrderItemsResult

What it does

This class serves as a Data Transfer Object (DTO) that encapsulates the result of order item deduction processing during return operations.

Developers use this to retrieve which order items were deducted from a specific inventory source, including the source code and the array of deducted items.

It's primarily used in the context of Multi-Source Inventory (MSI) when processing order returns to track inventory adjustments.

Public Methods

  • getSourceCode()
  • getItems()