Log in
Model

ReturnValidator

Magento\SalesInventory\Model\Order\ReturnValidator

What it does

This class validates that products marked for 'return to stock' during credit memo creation actually belong to that credit memo and the original order.

Developers would use this when processing refunds to ensure inventory is only returned for items that were actually part of the credit memo being processed.

Public Methods

  • validate()