Model
ValidateOrderCancellationReason
Magento\OrderCancellationGraphQl\Model\Validator\ValidateOrderCancellationReason
What it does
This class validates whether a provided order cancellation reason is valid for a given order's store.
Developers use this validator in GraphQL endpoints when processing order cancellation requests to ensure the cancellation reason matches one of the configured allowed reasons in the store's settings.
Public Methods
- validateReason()