Model
GetOrderCancellationAvailableActions
Magento\OrderCancellationGraphQl\Model\GetOrderCancellationAvailableActions
What it does
This class determines if a customer can cancel an order through GraphQL by checking if order cancellation is enabled, the customer has permission to cancel, and the order hasn't been shipped yet.
It implements the OrderAvailableActionProviderInterface to provide available actions for orders in the GraphQL API, returning 'CANCEL' when cancellation is allowed or an empty array otherwise.
Public Methods
- execute()