Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit a13639c

Browse files
committed
GraphQL-418: [Shipping methods] Set Shipping Methods on Cart
1 parent 8b2106a commit a13639c

File tree

8 files changed

+18
-17
lines changed

8 files changed

+18
-17
lines changed

app/code/Magento/ConfigurableProductGraphQl/etc/module.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<module name="Magento_ConfigurableProduct"/>
1313
<module name="Magento_GraphQl"/>
1414
<module name="Magento_CatalogGraphQl"/>
15-
<module name="Magento_QuoteGraphQl"/>
1615
</sequence>
1716
</module>
1817
</config>

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ input ShippingMethodInput {
101101
cart_address_id: Int!
102102
carrier_code: String!
103103
method_code: String!
104-
additional_data: ShippingMethodAdditionalDataInput
105-
}
106-
107-
input ShippingMethodAdditionalDataInput {
108104
}
109105

110106
input SetPaymentMethodOnCartInput {
@@ -115,10 +111,6 @@ input SetPaymentMethodOnCartInput {
115111
input PaymentMethodInput {
116112
code: String! @doc(description:"Payment method code")
117113
purchase_order_number: String @doc(description:"Purchase order number")
118-
additional_data: PaymentMethodAdditionalDataInput
119-
}
120-
121-
input PaymentMethodAdditionalDataInput {
122114
}
123115

124116
type SetPaymentMethodOnCartOutput {
@@ -189,10 +181,6 @@ type SelectedShippingMethod {
189181
method_code: String
190182
label: String
191183
amount: Float
192-
additional_data: SelectedShippingMethodAdditionalData
193-
}
194-
195-
type SelectedShippingMethodAdditionalData {
196184
}
197185

198186
type AvailableShippingMethod {
@@ -215,10 +203,6 @@ type AvailablePaymentMethod {
215203
type SelectedPaymentMethod {
216204
code: String @doc(description: "The payment method code")
217205
purchase_order_number: String @doc(description: "The purchase order number.")
218-
additional_data: SelectedPaymentMethodAdditionalData
219-
}
220-
221-
type SelectedPaymentMethodAdditionalData {
222206
}
223207

224208
enum AdressTypeEnum {

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingMethodsOnCartTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function testSetMultipleShippingMethods()
122122
* @param string $shippingCarrierCode
123123
* @param string $shippingAddressId
124124
* @return string
125+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
125126
*/
126127
private function prepareMutationQuery(
127128
string $maskedQuoteId,
@@ -163,6 +164,7 @@ private function prepareMutationQuery(
163164
/**
164165
* @param string $reversedQuoteId
165166
* @return string
167+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
166168
*/
167169
private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): string
168170
{
@@ -176,6 +178,7 @@ private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): str
176178
* @param string $reversedQuoteId
177179
* @param int $customerId
178180
* @return string
181+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
179182
*/
180183
private function assignQuoteToCustomer(
181184
string $reversedQuoteId,
@@ -192,6 +195,7 @@ private function assignQuoteToCustomer(
192195
* @param string $username
193196
* @param string $password
194197
* @return array
198+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
195199
*/
196200
private function getHeaderMap(string $username = '[email protected]', string $password = 'password'): array
197201
{

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetShippingMethodsOnCartTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function testSetMultipleShippingMethods()
115115
* @param string $shippingCarrierCode
116116
* @param string $shippingAddressId
117117
* @return string
118+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
118119
*/
119120
private function prepareMutationQuery(
120121
string $maskedQuoteId,
@@ -154,6 +155,7 @@ private function prepareMutationQuery(
154155
/**
155156
* @param string $reversedQuoteId
156157
* @return string
158+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
157159
*/
158160
private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): string
159161
{

dev/tests/integration/testsuite/Magento/Checkout/_files/enable_all_shipping_methods.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
27

38
use Magento\Framework\App\Config\Storage\Writer;
49
use Magento\Framework\App\Config\Storage\WriterInterface;

dev/tests/integration/testsuite/Magento/Checkout/_files/enable_all_shipping_methods_rollback.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
27

38
use Magento\Framework\App\Config\Storage\Writer;
49
use Magento\Framework\App\Config\Storage\WriterInterface;

dev/tests/integration/testsuite/Magento/OfflineShipping/_files/tablerates_weight.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
89
$resource = $objectManager->get(\Magento\Framework\App\ResourceConnection::class);

dev/tests/integration/testsuite/Magento/OfflineShipping/_files/tablerates_weight_rollback.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
require 'tablerates_rollback.php';

0 commit comments

Comments
 (0)