ConfirmCancelOrder
Magento\OrderCancellationGraphQl\Model\ConfirmCancelOrder
What it does
This model handles the confirmation and execution of guest order cancellations in Magento 2's GraphQL API.
Developers use this class when implementing the guest order cancellation flow, where it validates the confirmation key sent by the customer and processes the order cancellation request.
It returns either the updated order data or an error message depending on whether the cancellation was successful.
Public Methods
- execute()