Skip to content

Commit 984ef45

Browse files
author
Vitaliy Boyko
committed
graphQl-912: optimized customer input schema
1 parent d9d4b82 commit 984ef45

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ input CustomerInput {
6060
middlename: String @doc(description: "The customer's middle name")
6161
lastname: String @doc(description: "The customer's family name")
6262
suffix: String @doc(description: "A value such as Sr., Jr., or III")
63-
email: String @doc(description: "The customer's email address. Required")
63+
email: String! @doc(description: "The customer's email address. Required")
6464
dob: String @doc(description: "The customer's date of birth")
65-
taxvat: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")
66-
gender: Int @doc(description: "The customer's gender(Male - 1, Female - 2)")
65+
taxvat: String @doc(description: "The customer's Value-added tax (VAT) number (for corporate customers)")
66+
gender: Int @doc(description: "The customer's gender (Male - 1, Female - 2)")
6767
password: String @doc(description: "The customer's password")
6868
is_subscribed: Boolean @doc(description: "Indicates whether the customer is subscribed to the company's newsletter")
6969
}
@@ -88,11 +88,11 @@ type Customer @doc(description: "Customer defines the customer name and address
8888
default_billing: String @doc(description: "The ID assigned to the billing address")
8989
default_shipping: String @doc(description: "The ID assigned to the shipping address")
9090
dob: String @doc(description: "The customer's date of birth")
91-
taxvat: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")
91+
taxvat: String @doc(description: "The customer's Value-added tax (VAT) number (for corporate customers)")
9292
id: Int @doc(description: "The ID assigned to the customer")
9393
is_subscribed: Boolean @doc(description: "Indicates whether the customer is subscribed to the company's newsletter") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\IsSubscribed")
9494
addresses: [CustomerAddress] @doc(description: "An array containing the customer's shipping and billing addresses") @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CustomerAddresses")
95-
gender: Int @doc(description: "The customer's gender(Male - 1, Female - 2)")
95+
gender: Int @doc(description: "The customer's gender (Male - 1, Female - 2)")
9696
}
9797

9898
type CustomerAddress @doc(description: "CustomerAddress contains detailed information about a customer's billing and shipping addresses"){
@@ -112,7 +112,7 @@ type CustomerAddress @doc(description: "CustomerAddress contains detailed inform
112112
middlename: String @doc(description: "The middle name of the person associated with the shipping/billing address")
113113
prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.")
114114
suffix: String @doc(description: "A value such as Sr., Jr., or III")
115-
vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")
115+
vat_id: String @doc(description: "The customer's Value-added tax (VAT) number (for corporate customers)")
116116
default_shipping: Boolean @doc(description: "Indicates whether the address is the default shipping address")
117117
default_billing: Boolean @doc(description: "Indicates whether the address is the default billing address")
118118
custom_attributes: [CustomerAddressAttribute] @doc(description: "Address custom attributes")

0 commit comments

Comments
 (0)