You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/CustomerGraphQl/etc/schema.graphqls
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,22 @@
4
4
typeStoreConfig {
5
5
required_character_classes_number : String @doc(description: "The number of different character classes (lowercase, uppercase, digits, special characters) required in a password.")
6
6
minimum_password_length : String @doc(description: "The minimum number of characters required for a valid password.")
7
-
autocomplete_on_storefront : Boolean @doc(description: "Whether to enable autocomplete on login and forgot password forms.")
7
+
autocomplete_on_storefront : Boolean @doc(description: "Indicates whether to enable autocomplete on login and forgot password forms.")
8
8
}
9
9
10
10
typeQuery {
11
11
customer: Customer@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\Customer") @doc(description: "Return detailed information about a customer account.") @cache(cacheable: false)
12
12
isEmailAvailable (
13
-
email: String!@doc(description: "Check whether the specified email has already been used to create a customer account.")
email: String!@doc(description: "The email address to check.")
14
+
): IsEmailAvailableOutput@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\IsEmailAvailable")@doc(description: "Check whether the specified email has already been used to create a customer account.")
15
15
}
16
16
17
17
typeMutation {
18
18
generateCustomerToken(email: String!, password: String!): CustomerToken@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\GenerateCustomerToken") @doc(description:"Generate a token for specified customer.")
19
19
changeCustomerPassword(currentPassword: String!, newPassword: String!): Customer@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ChangePassword") @doc(description:"Change the password for the logged-in customer.")
updateCustomerV2 (input: CustomerUpdateInput!): CustomerOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Update the customer's personal information.")
24
24
revokeCustomerToken: RevokeCustomerTokenOutput@resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RevokeCustomerToken") @doc(description:"Revoke the customer token.")
25
25
createCustomerAddress(input: CustomerAddressInput!): CustomerAddress@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomerAddress") @doc(description: "Create a billing or shipping address for a customer or guest.")
@@ -44,7 +44,7 @@ input CustomerAddressInput @doc(description: "Contains details about a billing o
44
44
default_shipping: Boolean@doc(description: "Indicates whether the address is the default shipping address.")
45
45
default_billing: Boolean@doc(description: "Indicates whether the address is the default billing address.")
46
46
fax: String@doc(description: "The customer's fax number.")
47
-
middlename: String@doc(description: "The middle name of the person associated with the shipping/billing address.")
47
+
middlename: String@doc(description: "The middle name of the person associated with the billing/shipping address.")
48
48
prefix: String@doc(description: "An honorific, such as Dr., Mr., or Mrs.")
49
49
suffix: String@doc(description: "A value such as Sr., Jr., or III.")
50
50
vat_id: String@doc(description: "The customer's Tax/VAT number (for corporate customers).")
@@ -110,7 +110,7 @@ input CustomerUpdateInput @doc(description: "An input object for updating a cust
110
110
}
111
111
112
112
typeCustomerOutput@doc(description: "Contains details about a newly-created or updated customer.") {
113
-
customer: Customer!@doc(description: "Contains the `Customer` object.")
113
+
customer: Customer!@doc(description: "Customer details after creating or updating a customer.")
114
114
}
115
115
116
116
typeRevokeCustomerTokenOutput@doc(description: "Contains the result of a request to revoke a customer token.") {
@@ -143,7 +143,7 @@ type CustomerAddress @doc(description: "Contains detailed information about a cu
143
143
region: CustomerAddressRegion@doc(description: "An object containing the region name, region code, and region ID.")
144
144
region_id: Int@doc(description: "The unique ID for a pre-defined region.")
145
145
country_id: String@doc(description: "The customer's country.") @deprecated(reason: "Use `country_code` instead.")
146
-
country_code: CountryCodeEnum@doc(description: "The customer's country")
146
+
country_code: CountryCodeEnum@doc(description: "The customer's country.")
147
147
street: [String] @doc(description: "An array of strings that define the street number and name.")
148
148
company: String@doc(description: "The customer's company.")
149
149
telephone: String@doc(description: "The customer's telephone number.")
Copy file name to clipboardExpand all lines: app/code/Magento/QuoteGraphQl/etc/schema.graphqls
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,16 @@ type Mutation {
12
12
addVirtualProductsToCart(input: AddVirtualProductsToCartInput): AddVirtualProductsToCartOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description:"Add one or more virtual products to the specified cart. We recommend using `addProductsToCart` instead.")
13
13
applyCouponToCart(input: ApplyCouponToCartInput): ApplyCouponToCartOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ApplyCouponToCart") @doc(description:"Apply a pre-defined coupon code to the specified cart.")
14
14
removeCouponFromCart(input: RemoveCouponFromCartInput): RemoveCouponFromCartOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\RemoveCouponFromCart") @doc(description:"Remove a previously-applied coupon from the cart. The cart must contain at least one item in order to remove the coupon.")
15
-
updateCartItems(input: UpdateCartItemsInput): UpdateCartItemsOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\UpdateCartItems") @doc(description:"Remove a previously-applied coupon from the cart. The cart must contain at least one item in order to remove the coupon.")
15
+
updateCartItems(input: UpdateCartItemsInput): UpdateCartItemsOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\UpdateCartItems") @doc(description:"Modify items in the cart.")
16
16
removeItemFromCart(input: RemoveItemFromCartInput): RemoveItemFromCartOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\RemoveItemFromCart") @doc(description:"Delete the entire quantity of a specified item from the cart. If you remove all items from the cart, the cart continues to exist.")
17
17
setShippingAddressesOnCart(input: SetShippingAddressesOnCartInput): SetShippingAddressesOnCartOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetShippingAddressesOnCart") @doc(description:"Set one or more shipping addresses on a specific cart.")
18
18
setBillingAddressOnCart(input: SetBillingAddressOnCartInput): SetBillingAddressOnCartOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetBillingAddressOnCart") @doc(description:"Set the billing address on a specific cart.")
19
19
setShippingMethodsOnCart(input: SetShippingMethodsOnCartInput): SetShippingMethodsOnCartOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetShippingMethodsOnCart") @doc(description:"Set one or more delivery methods on a cart.")
20
20
setPaymentMethodOnCart(input: SetPaymentMethodOnCartInput): SetPaymentMethodOnCartOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetPaymentMethodOnCart") @doc(description:"Apply a payment method to the cart.")
21
21
setGuestEmailOnCart(input: SetGuestEmailOnCartInput): SetGuestEmailOnCartOutput@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetGuestEmailOnCart") @doc(description:"Assign the email address of a guest to the cart.")
22
22
setPaymentMethodAndPlaceOrder(input: SetPaymentMethodAndPlaceOrderInput): PlaceOrderOutput@deprecated(reason: "Should use setPaymentMethodOnCart and placeOrder mutations in single request.") @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetPaymentAndPlaceOrder") @doc(description:"Set the cart payment method and convert the cart into an order.")
23
-
mergeCarts(source_cart_id: String!, destination_cart_id: String): Cart!@doc(description:"Merges the source cart into the destination cart") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\MergeCarts") @doc(description:"Transfer the contents of a guest cart into the cart of a logged-in customer.")
24
-
placeOrder(input: PlaceOrderInput): PlaceOrderOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\PlaceOrder") @doc(description:"Convert the cart into an order.")
23
+
mergeCarts(source_cart_id: String!, destination_cart_id: String): Cart!@doc(description:"Transfer the contents of a guest cart into the cart of a logged-in customer.") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\MergeCarts")
24
+
placeOrder(input: PlaceOrderInput): PlaceOrderOutput@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\PlaceOrder") @doc(description:"Convert the quote into an order.")
25
25
addProductsToCart(cartId: String!, cartItems: [CartItemInput!]!): AddProductsToCartOutput@doc(description:"Add any type of product to the cart.") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddProductsToCart")
26
26
}
27
27
@@ -74,7 +74,7 @@ input UpdateCartItemsInput @doc(description: "Modifies the specified items in th
74
74
75
75
inputCartItemUpdateInput@doc(description: "A single item to be updated.") {
76
76
cart_item_id: Int@doc(description: "Deprecated. Use `cart_item_uid` instead.")
77
-
cart_item_uid: ID@doc(description: "The unique ID for a `CartItemInterface` object")
77
+
cart_item_uid: ID@doc(description: "The unique ID for a `CartItemInterface` object.")
78
78
quantity: Float@doc(description: "The new quantity of the item.")
79
79
customizable_options: [CustomizableOptionInput!] @doc(description: "An array that defines customizable options for the product.")
80
80
}
@@ -210,7 +210,7 @@ type Cart @doc(description: "Contains the contents and other details about a gue
210
210
billing_address: BillingCartAddress@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\BillingAddress") @doc(description: "The billing address assigned to the cart.")
211
211
available_payment_methods: [AvailablePaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethods") @doc(description: "An array of available payment methods.")
212
212
selected_payment_method: SelectedPaymentMethod@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SelectedPaymentMethod") @doc(description: "Indicates which payment method was applied to the cart.")
prices: CartPrices@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartPrices") @doc(description: "Pricing details for the quote.")
214
214
total_quantity: Float!@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartTotalQuantity") @doc(description: "The total number of items in the cart.")
215
215
is_virtual: Boolean!@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartIsVirtual") @doc(description: "Indicates whether the cart contains only virtual products.")
uid: ID!@doc(description: "The unique ID for a `CartItemInterface` object.")
335
335
quantity: Float!@doc(description: "The quantity of this item in the cart.")
336
336
prices: CartItemPrices@resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartItemPrices") @doc(description: "Contains details about the price of the item, including taxes and discounts.")
337
-
product: ProductInterface!@doc(description: "Contains details about the item in the cart.")
337
+
product: ProductInterface!@doc(description: "Details about an item in the cart.")
338
338
}
339
339
340
340
typeDiscount@doc(description:"Defines an individual discount. A discount can be applied to the cart as a whole or to an item.") {
@@ -345,7 +345,7 @@ type Discount @doc(description:"Defines an individual discount. A discount can b
345
345
typeCartItemPrices@doc(description: "Contains details about the price of the item, including taxes and discounts.") {
346
346
price: Money!@doc(description: "The price of the item before any discounts were applied. The price that might include tax, depending on the configured display settings for cart.")
347
347
row_total: Money!@doc(description: "The value of the price multiplied by the quantity of the item.")
348
-
row_total_including_tax: Money!@doc(description: "The value of row_total plus the tax applied to the item.")
348
+
row_total_including_tax: Money!@doc(description: "The value of `row_total` plus the tax applied to the item.")
349
349
discounts: [Discount] @doc(description: "An array of discounts to be applied to the cart item.")
350
350
total_item_discount: Money@doc(description: "The total of all discounts applied to the item.")
path: [String]!@doc(description: "Path to the input field that caused an error. See the GraphQL specification about path errors for details: http://spec.graphql.org/draft/#sec-Errors")
18
+
message: String!@doc(description: "A ocalized error message.")
19
+
path: [String]!@doc(description: "The path to the input field that caused an error. See the GraphQL specification about path errors for details: http://spec.graphql.org/draft/#sec-Errors")
20
20
code: CheckoutUserInputErrorCodes!@doc(description: "An error code that is specific to Checkout.")
21
21
}
22
22
@@ -169,8 +169,8 @@ type ShippingDiscount @doc(description:"Defines an individual shipping discount.
169
169
typeOrderShipment@doc(description: "Contains order shipment details.") {
170
170
id: ID!@doc(description: "The unique ID for a `OrderShipment` object.")
171
171
number: String!@doc(description: "The sequential credit shipment number.")
items: [ShipmentItemInterface] @doc(description: "Contains items included in the shipment.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentItems")
items: [ShipmentItemInterface] @doc(description: "An array of items included in the shipment.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentItems")
174
174
comments: [SalesCommentItem] @doc(description: "Comments added to the shipment.")
Copy file name to clipboardExpand all lines: app/code/Magento/WishlistGraphQl/etc/schema.graphqls
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ type Customer {
17
17
typeWishlistOutput@doc(description: "Deprecated: Use the `Wishlist` type instead.") {
18
18
items: [WishlistItem] @deprecated(reason: "Use the `Wishlist.items` field instead.") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @doc(description: "An array of items in the customer's wish list"),
19
19
items_count: Int@deprecated(reason: "Use the `Wishlist.items_count` field instead.") @doc(description: "The number of items in the wish list."),
20
-
name: String@deprecated(reason: "This field is related to Commerce functionality and is always `null` in Open Source edition.") @doc(description: "When multiple wish lists are enabled, the name the customer assigns to the wishlist."),
21
-
sharing_code: String@deprecated(reason: "Use the `Wishlist.sharing_code` field instead.") @doc(description: "An encrypted code that Magento uses to link to the wish list."),
20
+
name: String@deprecated(reason: "This field is related to Commerce functionality and is always `null` in Open Source.") @doc(description: "When multiple wish lists are enabled, the name the customer assigns to the wishlist."),
21
+
sharing_code: String@deprecated(reason: "Use the `Wishlist.sharing_code` field instead.") @doc(description: "An encrypted code that links to the wish list."),
22
22
updated_at: String@deprecated(reason: "Use the `Wishlist.updated_at` field instead.") @doc(description: "The time of the last modification to the wish list.")
0 commit comments