Skip to content

Commit cd928c2

Browse files
LYNX-186: Create cancellation module (#134)
1 parent ca30c47 commit cd928c2

File tree

6 files changed

+56
-1
lines changed

6 files changed

+56
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Magento_OrderCancellationGraphQl module
2+
3+
This module allows to cancel an order and specify the order cancellation reason using GraphQL. Only orders in `RECEIVED`, `PENDING` or `PROCESSING` statuses can be cancelled and if the customer has paid for the order a refund is processed.
4+
5+
This functionality is enabled / disabled by a feature flag that is set at storeView level.
6+
7+
After the cancellation, the customer receive an email confirming it and this cancellation is reflected in the customer's order history.
8+
9+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "magento/module-order-cancellation-graph-ql",
3+
"description": "N/A",
4+
"config": {
5+
"sort-packages": true
6+
},
7+
"require": {
8+
"php": "~8.1.0||~8.2.0",
9+
"magento/framework": "*"
10+
},
11+
"type": "magento2-module",
12+
"license": [
13+
"OSL-3.0",
14+
"AFL-3.0"
15+
],
16+
"autoload": {
17+
"files": [
18+
"registration.php"
19+
],
20+
"psr-4": {
21+
"Magento\\OrderCancellationGraphQl\\": ""
22+
}
23+
}
24+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9+
<module name="Magento_OrderCancellationGraphQl"/>
10+
</config>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
use Magento\Framework\Component\ComponentRegistrar;
10+
11+
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_OrderCancellationGraphQl', __DIR__);

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@
251251
"magento/module-newsletter-graph-ql": "*",
252252
"magento/module-offline-payments": "*",
253253
"magento/module-offline-shipping": "*",
254+
"magento/module-order-cancellation-graph-ql": "*",
254255
"magento/module-page-cache": "*",
255256
"magento/module-payment": "*",
256257
"magento/module-payment-graph-ql": "*",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)