RefundOrderInterface
Magento\Sales\Model\Order\Validation\RefundOrderInterface
What it does
This interface defines the contract for validating refund operations (credit memos) in Magento 2.
Developers use this to ensure that an order meets all requirements before processing a refund, checking conditions like order state, refundable amounts, and item availability.
Implementations of this interface are used by the credit memo creation process to prevent invalid refund operations.
Public Methods
- validate()