Skip to content

Commit 817e766

Browse files
committed
GraphQL-608: Remove “cart_address_id” from “ShippingMethodInput”
1 parent 2bd1c30 commit 817e766

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/ExtractQuoteAddressData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function execute(QuoteAddress $address): array
5050
}
5151

5252
$addressData = array_merge($addressData, [
53-
'address_id' => $address->getId(),
5453
'address_type' => $addressType,
5554
'country' => [
5655
'code' => $address->getCountryId(),

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ type Cart {
187187
}
188188

189189
type CartAddress {
190-
address_id: Int
191190
firstname: String
192191
lastname: String
193192
company: String

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ private function setShippingAddress(string $cartId): array
306306
) {
307307
cart {
308308
shipping_addresses {
309-
address_id
310309
available_shipping_methods {
311310
carrier_code
312311
method_code
@@ -324,8 +323,6 @@ private function setShippingAddress(string $cartId): array
324323
self::assertCount(1, $response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
325324

326325
$shippingAddress = current($response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
327-
self::assertArrayHasKey('address_id', $shippingAddress);
328-
self::assertNotEmpty($shippingAddress['address_id']);
329326
self::assertArrayHasKey('available_shipping_methods', $shippingAddress);
330327
self::assertCount(1, $shippingAddress['available_shipping_methods']);
331328

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ private function setShippingAddress(string $cartId): array
266266
) {
267267
cart {
268268
shipping_addresses {
269-
address_id
270269
available_shipping_methods {
271270
carrier_code
272271
method_code
@@ -284,8 +283,6 @@ private function setShippingAddress(string $cartId): array
284283
self::assertCount(1, $response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
285284

286285
$shippingAddress = current($response['setShippingAddressesOnCart']['cart']['shipping_addresses']);
287-
self::assertArrayHasKey('address_id', $shippingAddress);
288-
self::assertNotEmpty($shippingAddress['address_id']);
289286
self::assertArrayHasKey('available_shipping_methods', $shippingAddress);
290287
self::assertCount(1, $shippingAddress['available_shipping_methods']);
291288

0 commit comments

Comments
 (0)