Skip to content

Commit 2cfeec7

Browse files
committed
Cart address id added to the address resolver
1 parent 664a673 commit 2cfeec7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/Address/AddressDataProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getCartAddresses(CartInterface $cart): array
7171
private function extractAddressData(QuoteAddress $address): array
7272
{
7373
$addressData = [
74+
'cart_address_id' => $address->getId(),
7475
'country' => [
7576
'code' => $address->getCountryId(),
7677
'label' => $address->getCountry()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ type Cart {
101101
}
102102

103103
type CartAddress {
104+
cart_address_id: String
104105
firstname: String
105106
lastname: String
106107
company: String

0 commit comments

Comments
 (0)