RefundOrderInterface
Magento\Sales\Model\Order\Validation\RefundOrderInterface
What it does
This interface defines a contract for validating refund operations (credit memos) in Magento 2.
Developers implement this interface to create custom validation rules that check whether an order can be refunded with specific items, amounts, and conditions.
It's used during the credit memo creation process to ensure business rules and data integrity are maintained before processing refunds.
Public Methods
- validate()