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

Commit

Permalink
GraphQL-608: Remove “cart_address_id” from “ShippingMethodInput”
Browse files Browse the repository at this point in the history
  • Loading branch information
naydav committed Apr 23, 2019
1 parent 2bd1c30 commit 817e766
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function execute(QuoteAddress $address): array
}

$addressData = array_merge($addressData, [
'address_id' => $address->getId(),
'address_type' => $addressType,
'country' => [
'code' => $address->getCountryId(),
Expand Down
1 change: 0 additions & 1 deletion app/code/Magento/QuoteGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ type Cart {
}

type CartAddress {
address_id: Int
firstname: String
lastname: String
company: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ private function setShippingAddress(string $cartId): array
) {
cart {
shipping_addresses {
address_id
available_shipping_methods {
carrier_code
method_code
Expand All @@ -324,8 +323,6 @@ private function setShippingAddress(string $cartId): array
self::assertCount(1, $response['setShippingAddressesOnCart']['cart']['shipping_addresses']);

$shippingAddress = current($response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
self::assertArrayHasKey('address_id', $shippingAddress);
self::assertNotEmpty($shippingAddress['address_id']);
self::assertArrayHasKey('available_shipping_methods', $shippingAddress);
self::assertCount(1, $shippingAddress['available_shipping_methods']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ private function setShippingAddress(string $cartId): array
) {
cart {
shipping_addresses {
address_id
available_shipping_methods {
carrier_code
method_code
Expand All @@ -284,8 +283,6 @@ private function setShippingAddress(string $cartId): array
self::assertCount(1, $response['setShippingAddressesOnCart']['cart']['shipping_addresses']);

$shippingAddress = current($response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
self::assertArrayHasKey('address_id', $shippingAddress);
self::assertNotEmpty($shippingAddress['address_id']);
self::assertArrayHasKey('available_shipping_methods', $shippingAddress);
self::assertCount(1, $shippingAddress['available_shipping_methods']);

Expand Down

0 comments on commit 817e766

Please sign in to comment.