Model
GetSalesChannelForOrder
Magento\InventorySales\Model\ReturnProcessor\GetSalesChannelForOrder
What it does
This class retrieves the sales channel information (website type and code) for a given order, primarily used during return/refund processing.
Developers would use this when they need to determine which sales channel an order belongs to, ensuring inventory is returned to the correct source based on the order's website context.
Public Methods
- execute()