Skip to content

Commit f15faf9

Browse files
committed
PWA-1576: GQL gaps for Admin configuration
- update schema descriptions
1 parent 17b67d2 commit f15faf9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
3-
type StoreConfig @doc(description: "The type contains information about a store config") {
4-
zero_subtotal_enabled: String @doc(description: "Zero Subtotal payment method functionality status: enabled/disabled")
5-
zero_subtotal_title: String @doc(description: "Zero Subtotal payment method title on frontend")
3+
type StoreConfig {
4+
zero_subtotal_enabled: Boolean @doc(description: "Zero Subtotal payment method functionality status: enabled/disabled")
5+
zero_subtotal_title: String @doc(description: "The title of the Zero Subtotal payment method displayed on the storefront")
66
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: "Automatically invoice all items that have a zero balance")
8-
zero_subtotal_payment_from_applicable_countries: String @doc(description: "Which countries may use the Zero Subtotal payment method: All Allowed Countries/Specific Countries")
9-
zero_subtotal_payment_from_specific_countries: String @doc(description: "Specific countries allowed to use the Zero Subtotal payment method")
10-
zero_subtotal_sort_order: String @doc(description: "The position of the Zero Subtotal payment method in the list of available payment methods during checkout")
11-
check_money_order_enabled: String @doc(description: "Check/Money Order payment method status: enabled/disabled")
12-
check_money_order_title: String @doc(description: "Check/Money Order payment method title on frontend")
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_payment_from_applicable_countries: String @doc(description: "States whether All Allowed Countries or Specific Countries can use the Zero Subtotal 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: String @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: "Check/Money Order payment method status: enabled/disabled")
12+
check_money_order_title: String @doc(description: "The title of the Check/Money Order payment method displayed on the storefront")
1313
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_payment_from_applicable_countries: String @doc(description: "Which countries may use the Check/Money Order payment method: All Allowed Countries/Specific Countries")
15-
check_money_order_payment_from_specific_countries: String @doc(description: "Specific countries allowed to use the Check/Money Order payment method")
14+
check_money_order_payment_from_applicable_countries: String @doc(description: "States whether All Allowed Countries or Specific Countries can use the Check/Money Order 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")
1616
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 street address or PO Box where the checks are mailed")
17+
check_money_order_send_check_to: String @doc(description: "The full street address or PO Box where the checks are mailed")
1818
check_money_order_min_order_total: String @doc(description: "Minimum order amount required to qualify for the Check/Money Order payment method")
1919
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: String @doc(description: "The position of the Check/Money Order payment method in the list of available payment methods during checkout")
20+
check_money_order_sort_order: String @doc(description: "A number indicating the position of the Check/Money Order payment method in the list of available payment methods during checkout")
2121
}

dev/tests/api-functional/testsuite/Magento/GraphQl/PaymentGraphQl/StoreConfigTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public function testStoreConfigZeroSubtotalCheckMoneyOrderDefaultValues()
6666
self::assertArrayHasKey('check_money_order_max_order_total', $response['storeConfig']);
6767
self::assertArrayHasKey('check_money_order_sort_order', $response['storeConfig']);
6868

69-
self::assertEquals('1', $response['storeConfig']['zero_subtotal_enabled']);
69+
self::assertTrue($response['storeConfig']['zero_subtotal_enabled']);
7070
self::assertEquals('No Payment Information Required', $response['storeConfig']['zero_subtotal_title']);
7171
self::assertEquals('pending', $response['storeConfig']['zero_subtotal_new_order_status']);
7272
self::assertEquals('authorize_capture', $response['storeConfig']['zero_subtotal_payment_action']);
7373
self::assertEquals('0', $response['storeConfig']['zero_subtotal_payment_from_applicable_countries']);
7474
self::assertNull($response['storeConfig']['zero_subtotal_payment_from_specific_countries']);
7575
self::assertEquals('1', $response['storeConfig']['zero_subtotal_sort_order']);
76-
self::assertEquals('1', $response['storeConfig']['check_money_order_enabled']);
76+
self::assertTrue($response['storeConfig']['check_money_order_enabled']);
7777
self::assertEquals('Check / Money order', $response['storeConfig']['check_money_order_title']);
7878
self::assertEquals('pending', $response['storeConfig']['check_money_order_new_order_status']);
7979
self::assertEquals('0', $response['storeConfig']['check_money_order_payment_from_applicable_countries']);
@@ -114,14 +114,14 @@ public function testStoreConfigZeroSubtotalCheckMoneyOrderDisabled()
114114
self::assertArrayHasKey('check_money_order_max_order_total', $response['storeConfig']);
115115
self::assertArrayHasKey('check_money_order_sort_order', $response['storeConfig']);
116116

117-
self::assertEquals('0', $response['storeConfig']['zero_subtotal_enabled']);
117+
self::assertFalse($response['storeConfig']['zero_subtotal_enabled']);
118118
self::assertEquals('No Payment Information Required', $response['storeConfig']['zero_subtotal_title']);
119119
self::assertEquals('pending', $response['storeConfig']['zero_subtotal_new_order_status']);
120120
self::assertEquals('authorize_capture', $response['storeConfig']['zero_subtotal_payment_action']);
121121
self::assertEquals('0', $response['storeConfig']['zero_subtotal_payment_from_applicable_countries']);
122122
self::assertNull($response['storeConfig']['zero_subtotal_payment_from_specific_countries']);
123123
self::assertEquals('1', $response['storeConfig']['zero_subtotal_sort_order']);
124-
self::assertEquals('0', $response['storeConfig']['check_money_order_enabled']);
124+
self::assertFalse($response['storeConfig']['check_money_order_enabled']);
125125
self::assertEquals('Check / Money order', $response['storeConfig']['check_money_order_title']);
126126
self::assertEquals('pending', $response['storeConfig']['check_money_order_new_order_status']);
127127
self::assertEquals('0', $response['storeConfig']['check_money_order_payment_from_applicable_countries']);
@@ -173,14 +173,14 @@ public function testStoreConfigZeroSubtotalCheckMoneyOrderCustom()
173173
self::assertArrayHasKey('check_money_order_max_order_total', $response['storeConfig']);
174174
self::assertArrayHasKey('check_money_order_sort_order', $response['storeConfig']);
175175

176-
self::assertEquals('1', $response['storeConfig']['zero_subtotal_enabled']);
176+
self::assertTrue($response['storeConfig']['zero_subtotal_enabled']);
177177
self::assertEquals('Test Zero Subtotal Title', $response['storeConfig']['zero_subtotal_title']);
178178
self::assertEquals('processing', $response['storeConfig']['zero_subtotal_new_order_status']);
179179
self::assertEquals('authorize_capture', $response['storeConfig']['zero_subtotal_payment_action']);
180180
self::assertEquals('1', $response['storeConfig']['zero_subtotal_payment_from_applicable_countries']);
181181
self::assertEquals('DZ', $response['storeConfig']['zero_subtotal_payment_from_specific_countries']);
182182
self::assertEquals('5', $response['storeConfig']['zero_subtotal_sort_order']);
183-
self::assertEquals('1', $response['storeConfig']['check_money_order_enabled']);
183+
self::assertTrue($response['storeConfig']['check_money_order_enabled']);
184184
self::assertEquals('Test Check / Money Order Title', $response['storeConfig']['check_money_order_title']);
185185
self::assertEquals('pending', $response['storeConfig']['check_money_order_new_order_status']);
186186
self::assertEquals('1', $response['storeConfig']['check_money_order_payment_from_applicable_countries']);

0 commit comments

Comments
 (0)