Skip to content

Commit 645e1a5

Browse files
Merge remote-tracking branch 'honey-badgers/PWA-1576' into PWA-1740-PR
2 parents d2afd39 + 3531cf6 commit 645e1a5

File tree

9 files changed

+762
-2400
lines changed

9 files changed

+762
-2400
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# PaymentGraphQl
2+
3+
**PaymentGraphQl** provides type information for the GraphQl module
4+
to generate payment fields information endpoints.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "magento/module-payment-graph-ql",
3+
"description": "N/A",
4+
"type": "magento2-module",
5+
"require": {
6+
"php": "~7.3.0||~7.4.0",
7+
"magento/framework": "*"
8+
},
9+
"suggest": {
10+
"magento/module-store-graph-ql": "*"
11+
},
12+
"license": [
13+
"OSL-3.0",
14+
"AFL-3.0"
15+
],
16+
"autoload": {
17+
"files": [
18+
"registration.php"
19+
],
20+
"psr-4": {
21+
"Magento\\PaymentGraphQl\\": ""
22+
}
23+
}
24+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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:ObjectManager/etc/config.xsd">
9+
<type name="Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider">
10+
<arguments>
11+
<argument name="extendedConfigData" xsi:type="array">
12+
<item name="zero_subtotal_enabled" xsi:type="string">payment/free/active</item>
13+
<item name="zero_subtotal_title" xsi:type="string">payment/free/title</item>
14+
<item name="zero_subtotal_new_order_status" xsi:type="string">payment/free/order_status</item>
15+
<item name="zero_subtotal_payment_action" xsi:type="string">payment/free/payment_action</item>
16+
<item name="zero_subtotal_enable_for_specific_countries" xsi:type="string">payment/free/allowspecific</item>
17+
<item name="zero_subtotal_payment_from_specific_countries" xsi:type="string">payment/free/specificcountry</item>
18+
<item name="zero_subtotal_sort_order" xsi:type="string">payment/free/sort_order</item>
19+
<item name="check_money_order_enabled" xsi:type="string">payment/checkmo/active</item>
20+
<item name="check_money_order_title" xsi:type="string">payment/checkmo/title</item>
21+
<item name="check_money_order_new_order_status" xsi:type="string">payment/checkmo/order_status</item>
22+
<item name="check_money_order_enable_for_specific_countries" xsi:type="string">payment/checkmo/allowspecific</item>
23+
<item name="check_money_order_payment_from_specific_countries" xsi:type="string">payment/checkmo/specificcountry</item>
24+
<item name="check_money_order_make_check_payable_to" xsi:type="string">payment/checkmo/payable_to</item>
25+
<item name="check_money_order_send_check_to" xsi:type="string">payment/checkmo/mailing_address</item>
26+
<item name="check_money_order_min_order_total" xsi:type="string">payment/checkmo/min_order_total</item>
27+
<item name="check_money_order_max_order_total" xsi:type="string">payment/checkmo/max_order_total</item>
28+
<item name="check_money_order_sort_order" xsi:type="string">payment/checkmo/sort_order</item>
29+
</argument>
30+
</arguments>
31+
</type>
32+
</config>
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_PaymentGraphQl"/>
10+
</config>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright © Magento, Inc. All rights reserved.
2+
# See COPYING.txt for license details.
3+
type StoreConfig {
4+
zero_subtotal_enabled: Boolean @doc(description: "Indicates whether the Zero Subtotal payment method is enabled")
5+
zero_subtotal_title: String @doc(description: "The title of the Zero Subtotal payment method displayed on the storefront")
6+
zero_subtotal_new_order_status: String @doc(description: "Status of new orders placed using the Zero Subtotal payment method")
7+
zero_subtotal_payment_action: String @doc(description: "When the new order status is 'Processing', this can be set to 'authorize_capture' to automatically invoice all items that have a zero balance")
8+
zero_subtotal_enable_for_specific_countries: Boolean @doc(description: "Indicates whether only specific countries can use this payment method")
9+
zero_subtotal_payment_from_specific_countries: String @doc(description: "Comma-separated list of specific countries allowed to use the Zero Subtotal payment method")
10+
zero_subtotal_sort_order: Int @doc(description: "A number indicating the position of the Zero Subtotal payment method in the list of available payment methods during checkout")
11+
check_money_order_enabled: Boolean @doc(description: "Indicates whether the Check/Money Order payment method is enabled")
12+
check_money_order_title: String @doc(description: "The title of the Check/Money Order payment method displayed on the storefront")
13+
check_money_order_new_order_status: String @doc(description: "Status of new orders placed using the Check/Money Order payment method")
14+
check_money_order_enable_for_specific_countries: Boolean @doc(description: "Indicates whether only specific countries can use this payment method")
15+
check_money_order_payment_from_specific_countries: String @doc(description: "Comma-separated list of specific countries allowed to use the Check/Money Order payment method")
16+
check_money_order_make_check_payable_to: String @doc(description: "The name of the party to whom the check must be payable")
17+
check_money_order_send_check_to: String @doc(description: "The full street address or PO Box where the checks are mailed")
18+
check_money_order_min_order_total: String @doc(description: "Minimum order amount required to qualify for the Check/Money Order payment method")
19+
check_money_order_max_order_total: String @doc(description: "Maximum order amount required to qualify for the Check/Money Order payment method")
20+
check_money_order_sort_order: Int @doc(description: "A number indicating the position of the Check/Money Order payment method in the list of available payment methods during checkout")
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
use Magento\Framework\Component\ComponentRegistrar;
9+
10+
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_PaymentGraphQl', __DIR__);

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@
240240
"magento/module-offline-shipping": "*",
241241
"magento/module-page-cache": "*",
242242
"magento/module-payment": "*",
243+
"magento/module-payment-graph-ql": "*",
243244
"magento/module-paypal": "*",
244245
"magento/module-paypal-captcha": "*",
245246
"magento/module-paypal-graph-ql": "*",

0 commit comments

Comments
 (0)