Log in
Model

ValidateOrder

Magento\OrderCancellationGraphQl\Model\Validator\ValidateOrder

What it does

This validator checks whether a customer order can be cancelled through GraphQL.

Developers use this class to validate order cancellation requests by verifying the store configuration allows cancellations, the order is in a cancellable state, and no shipments have been processed.

It returns error messages and formatted order data when validation fails.

Public Methods

  • execute()