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

Commit 4605d2e

Browse files
authored
GraphQL: Update attribute descriptions for 2.3.4 (#5660)
* GraphQL #932 * GraphQL #933 * GraphQL #942 * GraphQL #942 * GraphQL #901 * GraphQL #895 * GraphQL #895 * GraphQL #951 * review comments * GraphQL #900
1 parent fe8777d commit 4605d2e

File tree

9 files changed

+34
-33
lines changed

9 files changed

+34
-33
lines changed

_includes/graphql/cart-object.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Attribute | Data Type | Description
77
`available_payment_methods` | [[AvailablePaymentMethod]][AvailablePaymentMethod] | Available payment methods
88
`billing_address` | [BillingCartAddress][BillingCartAddress]! | Contains the billing address specified in the customer's cart
99
`email` | String | The customer's email address
10+
`is_virtual` | Boolean | Indicates whether the cart contains only virtual products
1011
`items` | [[CartItemInterface]][CartItemInterface] | Contains the items in the customer's cart
1112
`prices` | [CartPrices][CartPrices] | Contains subtotals and totals
1213
`selected_payment_method` | [SelectedPaymentMethod][SelectedPaymentMethod] | Selected payment method
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
### CustomerAddress input {#customerAddressInput}
1+
### CustomerAddressInput attributes {#customerAddressInput}
22

3-
The `CustomerAddress` input can contain the following attributes:
3+
The `CustomerAddressInput` object can contain the following attributes:
44

55
Attribute | Data Type | Description
66
--- | --- | ---
77
`city` | String | The city or town
88
`company` | String | The customer's company
99
`country_id` | String | The customer's country
10-
`custom_attributes` | [CustomerAddressAttribute](#customerAddressAttributeInput) | Address custom attributes
10+
`custom_attributes` | [CustomerAddressAttributeInput](#customerAddressAttributeInput) | Deprecated. Not applicable for GraphQL
1111
`customer_id` | Int | The customer ID
1212
`default_billing` | Boolean | Indicates whether the address is the default billing address
1313
`default_shipping` | Boolean | Indicates whether the address is the default shipping address
@@ -19,28 +19,28 @@ Attribute | Data Type | Description
1919
`middlename` | String | The middle name of the person associated with the shipping/billing address
2020
`postcode` | String | The customer's ZIP or postal code
2121
`prefix` | String | An honorific, such as Dr., Mr., or Mrs.
22-
`region` | [CustomerAddressRegion](#customerAddressRegionInput) | An object that defines the customer's state or province
23-
`region_id` | Int | A number that uniquely identifies the state, province, or other area
22+
`region` | [CustomerAddressRegionInput](#customerAddressRegionInput) | An object that defines the customer's state or province
23+
`region_id` | Int | Deprecated. Use `region` instead. A number that uniquely identifies the state, province, or other area
2424
`street` | [String] | An array of strings that define the street number and name
2525
`suffix` | String | A value such as Sr., Jr., or III
2626
`telephone` | String | The telephone number
2727
`vat_id` | String | The customer's Tax/VAT number (for corporate customers)
2828

29-
### CustomerAddressAttribute input {#customerAddressAttributeInput}
29+
### CustomerAddressAttributeInput attributes {#customerAddressAttributeInput}
3030

31-
The `CustomerAddressAttribute` input can contain the following attributes:
31+
The `CustomerAddressAttributeInput` data type has been deprecated because the contents are not applicable for GraphQL. It can contain the following attributes:
3232

3333
Attribute | Data Type | Description
3434
--- | --- | ---
3535
`attribute_code` | String | Attribute code
3636
`value` | String | Attribute value
3737

38-
### CustomerAddressRegion input {#customerAddressRegionInput}
38+
### CustomerAddressRegionInput attributes {#customerAddressRegionInput}
3939

40-
The `customerAddressRegion` input can contain the following attributes:
40+
The `customerAddressRegionInput` object can contain the following attributes:
4141

4242
Attribute | Data Type | Description
4343
--- | --- | ---
44-
`region_code` | String | The address region code
4544
`region` | String | The state or province name
46-
`region_id` | Int | Uniquely identifies the region
45+
`region_code` | String | The address region code
46+
`region_id` | Int | Deprecated. Use `region` instead. Uniquely identifies the region
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### CustomerAddress output {#customerAddressOutput}
1+
### CustomerAddress attributes {#customerAddressOutput}
22

33
The values assigned to attributes such as `firstname` and `lastname` in this object may be different from those defined in the `Customer` object.
44

@@ -9,7 +9,7 @@ Attribute | Data Type | Description
99
`city` | String | The city or town
1010
`company` | String | The customer's company
1111
`country_id` | String | The customer's country
12-
`custom_attributes` | [CustomerAddressAttribute](#customerAddressAttributeOutput) | Address custom attributes
12+
`custom_attributes` | [CustomerAddressAttribute](#customerAddressAttributeOutput) | Deprecated. Not applicable for GraphQL
1313
`customer_id` | Int | The customer ID
1414
`default_billing` | Boolean | Indicates whether the address is the default billing address
1515
`default_shipping` | Boolean | Indicates whether the address is the default shipping address
@@ -22,27 +22,27 @@ Attribute | Data Type | Description
2222
`postcode` | String | The customer's ZIP or postal code
2323
`prefix` | String | An honorific, such as Dr., Mr., or Mrs.
2424
`region` | [CustomerAddressRegion](#customerAddressRegionOutput) | An object that defines the customer's state or province
25-
`region_id` | Int | A number that uniquely identifies the state, province, or other area
25+
`region_id` | Int | Deprecated. Use `region` instead. A number that uniquely identifies the state, province, or other area
2626
`street` | [String] | An array of strings that define the street number and name
2727
`suffix` | String | A value such as Sr., Jr., or III
2828
`telephone` | String | The telephone number
2929
`vat_id` | String | The customer's Tax/VAT number (for corporate customers)
3030

31-
### CustomerAddressAttribute output {#customerAddressAttributeOutput}
31+
### CustomerAddressAttribute attributes {#customerAddressAttributeOutput}
3232

33-
The `CustomerAddressAttribute` output returns the following attributes:
33+
The `CustomerAddressAttribute` output data type has been deprecated because the contents are not applicable for GraphQL. It can contain the following attributes:
3434

3535
Attribute | Data Type | Description
3636
--- | --- | ---
3737
`attribute_code` | String | Attribute code
3838
`value` | String | Attribute value
3939

40-
### CustomerAddressRegion output {#customerAddressRegionOutput}
40+
### CustomerAddressRegion attributes {#customerAddressRegionOutput}
4141

4242
The `customerAddressRegion` output returns the following attributes:
4343

4444
Attribute | Data Type | Description
4545
--- | --- | ---
46-
`region_code` | String | The address region code
4746
`region` | String | The state or province name
48-
`region_id` | Int | Uniquely identifies the region
47+
`region_code` | String | The address region code
48+
`region_id` | Int | Deprecated. Use `region` instead. Uniquely identifies the region

_includes/graphql/customer-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute | Data Type | Description
88
`email` | String | The customer's email address
99
`firstname` | String | The customer's first name
1010
`gender` | Int | The customer's gender (Male - 1, Female - 2)
11-
`group_id` | Int | The group assigned to the user. Default values are 0 (Not logged in), 1 (General), 2 (Wholesale), and 3 (Retailer)
11+
`group_id` | Int | Deprecated. This attribute is not applicable for GraphQL. The group assigned to the user. Default values are 0 (Not logged in), 1 (General), 2 (Wholesale), and 3 (Retailer)
1212
`id` | Int | The ID assigned to the customer
1313
`is_subscribed` | Boolean | Indicates whether the customer is subscribed to the company's newsletter
1414
`lastname` | String | The customer's family name

_includes/graphql/customer-output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute | Data Type | Description
88
`email` | String | The customer's email address
99
`firstname` | String | The customer's first name
1010
`gender` | Int | The customer's gender (Male - 1, Female - 2)
11-
`group_id` | Int | The group assigned to the user. Default values are 0 (Not logged in), 1 (General), 2 (Wholesale), and 3 (Retailer)
11+
`group_id` | Int | Deprecated. This attribute is not applicable for GraphQL. The group assigned to the user. Default values are 0 (Not logged in), 1 (General), 2 (Wholesale), and 3 (Retailer)
1212
`id` | Int | The ID assigned to the customer
1313
`is_subscribed` | Boolean | Indicates whether the customer is subscribed to the company's newsletter
1414
`lastname` | String | The customer's family name

guides/v2.3/graphql/mutations/create-customer-address.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ mutation {
2222
createCustomerAddress(input: {
2323
region: {
2424
region: "Arizona"
25-
region_id: 4
2625
region_code: "AZ"
2726
}
2827
country_id: US
@@ -63,7 +62,6 @@ mutation {
6362
"customer_id": 5,
6463
"region": {
6564
"region": "Arizona",
66-
"region_id": 4,
6765
"region_code": "AZ"
6866
},
6967
"country_id": "US",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Attribute | Data Type | Description
104104
--- | --- | ---
105105
`address` | [CartAddressInput](#CartAddressInputShip) | The shipping address for the cart
106106
`customer_address_id` | Int | The unique ID that identifies the customer's address
107+
`customer_notes` | String | Text provided by the customer
107108

108109
## Output attributes
109110

guides/v2.3/graphql/queries/cart.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -898,12 +898,12 @@ The `SelectedShippingMethod` object can contain the following attributes.
898898

899899
Attribute | Data Type | Description
900900
--- | --- | ---
901-
`amount` | Money | The cost of shipping using this shipping method
902-
`base_amount` | Money | The base shipping cost, not including taxes or other cost adjustment
903-
`carrier_code` | String | A string that identifies a commercial carrier or an offline shipping method
904-
`carrier_title` | String | The label for the carrier code
905-
`method_code` | String | A shipping method code associated with a carrier
906-
`method_title` | String | The label for the method code
901+
`amount` | Money! | The cost of shipping using this shipping method
902+
`base_amount` | Money | Deprecated. This attribute is not applicable for GraphQL. The base shipping cost, not including taxes or other cost adjustment
903+
`carrier_code` | String! | A string that identifies a commercial carrier or an offline shipping method
904+
`carrier_title` | String! | The label for the carrier code
905+
`method_code` | String! | A shipping method code associated with a carrier
906+
`method_title` | String! | The label for the method code
907907

908908
### ShippingCartAddress object {#ShippingCartAddress}
909909

guides/v2.3/graphql/queries/customer-orders.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following query returns the order history of the logged in customer.
2323
{
2424
customerOrders {
2525
items {
26-
increment_id
26+
order_number
2727
id
2828
created_at
2929
grand_total
@@ -41,14 +41,14 @@ The following query returns the order history of the logged in customer.
4141
"customerOrders": {
4242
"items": [
4343
{
44-
"increment_id": "000000001",
44+
"order_number": "000000001",
4545
"id": 1,
4646
"created_at": "2019-02-21 00:24:34",
4747
"grand_total": 36.39,
4848
"status": "processing"
4949
},
5050
{
51-
"increment_id": "000000002",
51+
"order_number": "000000002",
5252
"id": 2,
5353
"created_at": "2019-02-21 00:24:35",
5454
"grand_total": 39.64,
@@ -77,5 +77,6 @@ Attribute | Data type | Description
7777
`created_at` | String | A timestamp indicating when the order was placed
7878
`grand_total` | Float | The total of the order
7979
`id` | Int | The ID assigned to the customer's order
80-
`increment_id` | String | An ID that indicates the sequence of the order in the customer's order history
80+
`increment_id` | String | Deprecated. Use `order_number` instead. An ID that indicates the sequence of the order in the customer's order history
81+
`order_number` | String! | The order number assigned to the order
8182
`status` | String | The status of the order, such as `open`, `processing`, or `closed`

0 commit comments

Comments
 (0)