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

Commit

Permalink
GraphQL-418: [Shipping methods] Set Shipping Methods on Cart
Browse files Browse the repository at this point in the history
  • Loading branch information
naydav committed Mar 5, 2019
1 parent 8b2106a commit a13639c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
1 change: 0 additions & 1 deletion app/code/Magento/ConfigurableProductGraphQl/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<module name="Magento_ConfigurableProduct"/>
<module name="Magento_GraphQl"/>
<module name="Magento_CatalogGraphQl"/>
<module name="Magento_QuoteGraphQl"/>
</sequence>
</module>
</config>
16 changes: 0 additions & 16 deletions app/code/Magento/QuoteGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ input ShippingMethodInput {
cart_address_id: Int!
carrier_code: String!
method_code: String!
additional_data: ShippingMethodAdditionalDataInput
}

input ShippingMethodAdditionalDataInput {
}

input SetPaymentMethodOnCartInput {
Expand All @@ -115,10 +111,6 @@ input SetPaymentMethodOnCartInput {
input PaymentMethodInput {
code: String! @doc(description:"Payment method code")
purchase_order_number: String @doc(description:"Purchase order number")
additional_data: PaymentMethodAdditionalDataInput
}

input PaymentMethodAdditionalDataInput {
}

type SetPaymentMethodOnCartOutput {
Expand Down Expand Up @@ -189,10 +181,6 @@ type SelectedShippingMethod {
method_code: String
label: String
amount: Float
additional_data: SelectedShippingMethodAdditionalData
}

type SelectedShippingMethodAdditionalData {
}

type AvailableShippingMethod {
Expand All @@ -215,10 +203,6 @@ type AvailablePaymentMethod {
type SelectedPaymentMethod {
code: String @doc(description: "The payment method code")
purchase_order_number: String @doc(description: "The purchase order number.")
additional_data: SelectedPaymentMethodAdditionalData
}

type SelectedPaymentMethodAdditionalData {
}

enum AdressTypeEnum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function testSetMultipleShippingMethods()
* @param string $shippingCarrierCode
* @param string $shippingAddressId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function prepareMutationQuery(
string $maskedQuoteId,
Expand Down Expand Up @@ -163,6 +164,7 @@ private function prepareMutationQuery(
/**
* @param string $reversedQuoteId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): string
{
Expand All @@ -176,6 +178,7 @@ private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): str
* @param string $reversedQuoteId
* @param int $customerId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function assignQuoteToCustomer(
string $reversedQuoteId,
Expand All @@ -192,6 +195,7 @@ private function assignQuoteToCustomer(
* @param string $username
* @param string $password
* @return array
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function getHeaderMap(string $username = 'customer@example.com', string $password = 'password'): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function testSetMultipleShippingMethods()
* @param string $shippingCarrierCode
* @param string $shippingAddressId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function prepareMutationQuery(
string $maskedQuoteId,
Expand Down Expand Up @@ -154,6 +155,7 @@ private function prepareMutationQuery(
/**
* @param string $reversedQuoteId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): string
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento\Framework\App\Config\Storage\Writer;
use Magento\Framework\App\Config\Storage\WriterInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento\Framework\App\Config\Storage\Writer;
use Magento\Framework\App\Config\Storage\WriterInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$resource = $objectManager->get(\Magento\Framework\App\ResourceConnection::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

require 'tablerates_rollback.php';

0 comments on commit a13639c

Please sign in to comment.