Skip to content

Commit 29519af

Browse files
authored
LYNX-163: Update CustomerAddress.custom_attributes deprecation message (#115)
1 parent e3477b4 commit 29519af

File tree

7 files changed

+1158
-116
lines changed

7 files changed

+1158
-116
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ input CustomerAddressInput @doc(description: "Contains details about a billing o
4949
prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.")
5050
suffix: String @doc(description: "A value such as Sr., Jr., or III.")
5151
vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers).")
52-
custom_attributes: [AttributeValueInput] @doc(description: "Custom attributes assigned to the customer address.")
52+
custom_attributes: [CustomerAddressAttributeInput] @doc(description: "Deprecated. Use custom_attributesV2 instead.") @deprecated(reason: "Use custom_attributesV2 instead.")
53+
custom_attributesV2: [AttributeValueInput] @doc(description: "Custom attributes assigned to the customer address.")
5354
}
5455

5556
input CustomerAddressRegionInput @doc(description: "Defines the customer's state or province.") {

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

+4-14
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ type StorefrontProperties @doc(description: "Indicates where an attribute can be
3434
use_in_search_results_layered_navigation: Boolean @doc(description: "Indicates whether the attribute can be used in layered navigation on search results pages.")
3535
}
3636

37-
input AttributeValueInput @doc(description: "Specifies the value for attribute.") {
38-
attribute_code: String! @doc(description: "The code of the attribute.")
39-
value: String @doc(description: "The value assigned to the attribute.")
40-
selected_options: [AttributeInputSelectedOption!] @doc(description: "An array containing selected options for a select or multiselect attribute.")
41-
}
42-
43-
input AttributeInputSelectedOption @doc(description: "Specifies selected option for dropdown or multiselect attribute value .") {
44-
value: String! @doc(description: "The attribute option value.")
45-
}
46-
4737
enum UseInLayeredNavigationOptions @doc(description: "Defines whether the attribute is filterable in layered navigation.") {
4838
NO
4939
FILTERABLE_WITH_RESULTS
@@ -150,13 +140,13 @@ interface AttributeSelectedOptionInterface @typeResolver(class: "Magento\\EavGra
150140
type AttributeSelectedOption implements AttributeSelectedOptionInterface {
151141
}
152142

153-
input AttributeValueInput {
154-
attribute_code: String! @doc(description: "The attribute code.")
155-
value: String @doc(description: "The attribute value.")
143+
input AttributeValueInput @doc(description: "Specifies the value for attribute.") {
144+
attribute_code: String! @doc(description: "The code of the attribute.")
145+
value: String @doc(description: "The value assigned to the attribute.")
156146
selected_options: [AttributeInputSelectedOption!] @doc(description: "An array containing selected options for a select or multiselect attribute.")
157147
}
158148

159-
input AttributeInputSelectedOption @doc(description: "Specifies selected option for dropdown or multiselect attribute value .") {
149+
input AttributeInputSelectedOption @doc(description: "Specifies selected option for a select or multiselect attribute value.") {
160150
uid: ID! @doc(description: "Selected option UID.")
161151
value: String! @doc(description: "The attribute option value.")
162152
}

0 commit comments

Comments
 (0)