Skip to content

Commit dbeef69

Browse files
authored
LYNX:523: GraphQL Provide available order actions
1 parent 8812d34 commit dbeef69

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

app/code/Magento/OrderCancellationGraphQl/etc/graphql/di.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
@@ -14,8 +14,6 @@
1414
</argument>
1515
</arguments>
1616
</type>
17-
<preference for="Magento\SalesGraphQl\Api\OrderAvailableActionProviderInterface"
18-
type="Magento\OrderCancellationGraphQl\Model\GetOrderCancellationAvailableActions" />
1917
<type name="Magento\SalesGraphQl\Model\GetOrderAvailableActions">
2018
<arguments>
2119
<argument name="actions" xsi:type="array">

app/code/Magento/OrderCancellationGraphQl/etc/schema.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ enum CancelOrderErrorCode {
5151
INVALID_ORDER_STATUS
5252
}
5353

54-
enum OrderActionType @doc(description: "The list of available order actions.") {
54+
enum OrderActionType {
5555
CANCEL
5656
}

app/code/Magento/SalesGraphQl/etc/graphql/di.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
</argument>
5353
</arguments>
5454
</type>
55-
<preference for="Magento\SalesGraphQl\Api\OrderAvailableActionProviderInterface"
56-
type="Magento\SalesGraphQl\Model\GetReorderAvailableActions" />
5755
<type name="Magento\SalesGraphQl\Model\GetOrderAvailableActions">
5856
<arguments>
5957
<argument name="actions" xsi:type="array">

0 commit comments

Comments
 (0)