Skip to content

Commit b86b78a

Browse files
committed
address_type is null after setting billing and shipping addresses on cart #409
1 parent 908ed15 commit b86b78a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function execute(QuoteAddress $address): array
4242

4343
$addressData = array_merge($addressData, [
4444
'address_id' => $address->getId(),
45+
'address_type' => $address->getAddressType(),
4546
'country' => [
4647
'code' => $address->getCountryId(),
4748
'label' => $address->getCountry()

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type CartAddress {
158158
postcode: String
159159
country: CartAddressCountry
160160
telephone: String
161-
address_type: AdressTypeEnum
161+
address_type: String
162162
available_shipping_methods: [AvailableShippingMethod] @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAdress\\AvailableShippingMethods")
163163
selected_shipping_method: SelectedShippingMethod
164164
items_weight: Float
@@ -211,11 +211,6 @@ type SelectedPaymentMethod {
211211
type SelectedPaymentMethodAdditionalData {
212212
}
213213

214-
enum AdressTypeEnum {
215-
SHIPPING
216-
BILLING
217-
}
218-
219214
type AppliedCoupon {
220215
code: String!
221216
}

0 commit comments

Comments
 (0)