Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 63b66d5

Browse files
authored
GraphQL: Deprecate use_for_shipping attribute (#5955)
* Deprecate use_for_shipping attribute * fix typo
1 parent bc056ce commit 63b66d5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

guides/v2.3/graphql/mutations/set-billing-address.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ redirect from:
55
- /guides/v2.3/graphql/reference/quote-set-billing-address.html
66
---
77

8-
The `setBillingAddressOnCart` mutation sets the billing address for a specific cart. If you set the `use_for_shipping` attribute to `true`, Magento assigns the same address as the shipping address.
8+
The `setBillingAddressOnCart` mutation sets the billing address for a specific cart. If you set the `same_as_shipping` attribute to `true`, Magento assigns the same address as the shipping address.
99

1010
## Syntax
1111

@@ -35,7 +35,7 @@ mutation {
3535
telephone: "8675309"
3636
save_in_address_book: true
3737
}
38-
use_for_shipping: false
38+
same_as_shipping: false
3939
}
4040
}
4141
) {
@@ -96,7 +96,8 @@ Attribute | Data Type | Description
9696
--- | --- | ---
9797
`address` | [CartAddressInput](#CartAddressInput) | The billing address for the cart
9898
`customer_address_id` | Int | The unique ID that identifies the customer's address
99-
`use_for_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
99+
`same_as_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`)
100+
`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping` instead
100101

101102
### CartAddressInput object {#CartAddressInput}
102103

guides/v2.3/graphql/mutations/set-shipping-address.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ redirect from:
88
The `setShippingAddressesOnCart` mutation sets one or more shipping addresses on a specific cart. The shipping address does not need to be specified in the following circumstances:
99

1010
* The cart contains only virtual items
11-
* When you defined the billing address, you set the `use_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.
11+
* When you defined the billing address, you set the `same_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address.
1212

1313
## Syntax
1414

guides/v2.3/graphql/tutorials/checkout/checkout-billing-address.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ mutation {
103103

104104
## Add a new address for billing and shipping
105105

106-
The following mutation includes the `use_for_shipping` attribute, which allows the same address to be used for billing and shipping.
106+
The following mutation includes the `same_as_shipping` attribute, which allows the same address to be used for billing and shipping.
107107

108108
**Request**
109109

@@ -125,7 +125,7 @@ mutation {
125125
telephone: "123-456-0000"
126126
save_in_address_book: false
127127
}
128-
use_for_shipping: true
128+
same_as_shipping: true
129129
}
130130
}
131131
) {

0 commit comments

Comments
 (0)