RefundOperation
Magento\Sales\Model\Order\Creditmemo\RefundOperation
What it does
This class handles the complete refund operation for credit memos in Magento 2.
Developers use it when processing refunds to update order totals, register credit memo items, and execute payment refunds either online or offline.
It ensures all financial amounts (subtotals, taxes, shipping, discounts, adjustments) are properly tracked and synchronized between the credit memo and the original order.
Public Methods
- execute()