From 10a8ae27aa756edd765abea33d4143218a80085b Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Thu, 7 Nov 2019 11:40:19 -0600 Subject: [PATCH 1/2] Deprecate use_for_shipping attribute --- guides/v2.3/graphql/mutations/set-billing-address.md | 7 ++++--- guides/v2.3/graphql/mutations/set-shipping-address.md | 2 +- .../graphql/tutorials/checkout/checkout-billing-address.md | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/guides/v2.3/graphql/mutations/set-billing-address.md b/guides/v2.3/graphql/mutations/set-billing-address.md index 2cfa2e598c5..193c3222831 100644 --- a/guides/v2.3/graphql/mutations/set-billing-address.md +++ b/guides/v2.3/graphql/mutations/set-billing-address.md @@ -5,7 +5,7 @@ redirect from: - /guides/v2.3/graphql/reference/quote-set-billing-address.html --- -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. +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. ## Syntax @@ -35,7 +35,7 @@ mutation { telephone: "8675309" save_in_address_book: true } - use_for_shipping: false + same_as_shipping: false } } ) { @@ -96,7 +96,8 @@ Attribute | Data Type | Description --- | --- | --- `address` | [CartAddressInput](#CartAddressInput) | The billing address for the cart `customer_address_id` | Int | The unique ID that identifies the customer's address -`use_for_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`) +`same_as_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`) +`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping instead ### CartAddressInput object {#CartAddressInput} diff --git a/guides/v2.3/graphql/mutations/set-shipping-address.md b/guides/v2.3/graphql/mutations/set-shipping-address.md index 989ab7d705b..90b6ab2076d 100644 --- a/guides/v2.3/graphql/mutations/set-shipping-address.md +++ b/guides/v2.3/graphql/mutations/set-shipping-address.md @@ -8,7 +8,7 @@ redirect from: 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: * The cart contains only virtual items -* When you defined the billing address, you set the `use_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address. +* When you defined the billing address, you set the `same_for_shipping` attribute to `true`. Magento assigns the same address as the shipping address. ## Syntax diff --git a/guides/v2.3/graphql/tutorials/checkout/checkout-billing-address.md b/guides/v2.3/graphql/tutorials/checkout/checkout-billing-address.md index 7ee2f6fdc59..7ddfb1b5e03 100644 --- a/guides/v2.3/graphql/tutorials/checkout/checkout-billing-address.md +++ b/guides/v2.3/graphql/tutorials/checkout/checkout-billing-address.md @@ -103,7 +103,7 @@ mutation { ## Add a new address for billing and shipping -The following mutation includes the `use_for_shipping` attribute, which allows the same address to be used for billing and shipping. +The following mutation includes the `same_as_shipping` attribute, which allows the same address to be used for billing and shipping. **Request** @@ -125,7 +125,7 @@ mutation { telephone: "123-456-0000" save_in_address_book: false } - use_for_shipping: true + same_as_shipping: true } } ) { From 7bb394d8699a3a786bfbf49cfe0c1eb9e002d289 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Thu, 7 Nov 2019 11:46:45 -0600 Subject: [PATCH 2/2] fix typo --- guides/v2.3/graphql/mutations/set-billing-address.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/v2.3/graphql/mutations/set-billing-address.md b/guides/v2.3/graphql/mutations/set-billing-address.md index 193c3222831..8b897480707 100644 --- a/guides/v2.3/graphql/mutations/set-billing-address.md +++ b/guides/v2.3/graphql/mutations/set-billing-address.md @@ -97,7 +97,7 @@ Attribute | Data Type | Description `address` | [CartAddressInput](#CartAddressInput) | The billing address for the cart `customer_address_id` | Int | The unique ID that identifies the customer's address `same_as_shipping` | Boolean | Specifies whether to use the billing address for the shipping address (`True`/`False`) -`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping instead +`use_for_shipping` | Boolean | Deprecated. Use `same_as_shipping` instead ### CartAddressInput object {#CartAddressInput}