Skip to content

Commit 4bd6065

Browse files
committed
DOC-473: Minor corrections and updates
1 parent 3caf325 commit 4bd6065

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
type StoreConfig {
55
required_character_classes_number : String @doc(description: "The number of different character classes (lowercase, uppercase, digits, special characters) required in a password.")
66
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.")
88
}
99

1010
type Query {
1111
customer: Customer @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\Customer") @doc(description: "Return detailed information about a customer account.") @cache(cacheable: false)
1212
isEmailAvailable (
13-
email: String! @doc(description: "Check whether the specified email has already been used to create a customer account.")
14-
): IsEmailAvailableOutput @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\IsEmailAvailable")
13+
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.")
1515
}
1616

1717
type Mutation {
1818
generateCustomerToken(email: String!, password: String!): CustomerToken @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\GenerateCustomerToken") @doc(description:"Generate a token for specified customer.")
1919
changeCustomerPassword(currentPassword: String!, newPassword: String!): Customer @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\ChangePassword") @doc(description:"Change the password for the logged-in customer.")
2020
createCustomer (input: CustomerInput!): CustomerOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomer") @doc(description:"Use createCustomerV2 instead.")
2121
createCustomerV2 (input: CustomerCreateInput!): CustomerOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\CreateCustomer") @doc(description:"Create a customer account.")
22-
updateCustomer (input: CustomerInput!): CustomerOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Deprecated. Use UpdateCustomerV2 instead.")
22+
updateCustomer (input: CustomerInput!): CustomerOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Use UpdateCustomerV2 instead.")
2323
updateCustomerV2 (input: CustomerUpdateInput!): CustomerOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomer") @doc(description:"Update the customer's personal information.")
2424
revokeCustomerToken: RevokeCustomerTokenOutput @resolver(class: "\\Magento\\CustomerGraphQl\\Model\\Resolver\\RevokeCustomerToken") @doc(description:"Revoke the customer token.")
2525
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
4444
default_shipping: Boolean @doc(description: "Indicates whether the address is the default shipping address.")
4545
default_billing: Boolean @doc(description: "Indicates whether the address is the default billing address.")
4646
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.")
4848
prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.")
4949
suffix: String @doc(description: "A value such as Sr., Jr., or III.")
5050
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
110110
}
111111

112112
type CustomerOutput @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.")
114114
}
115115

116116
type RevokeCustomerTokenOutput @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
143143
region: CustomerAddressRegion @doc(description: "An object containing the region name, region code, and region ID.")
144144
region_id: Int @doc(description: "The unique ID for a pre-defined region.")
145145
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.")
147147
street: [String] @doc(description: "An array of strings that define the street number and name.")
148148
company: String @doc(description: "The customer's company.")
149149
telephone: String @doc(description: "The customer's telephone number.")

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ type Mutation {
1212
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.")
1313
applyCouponToCart(input: ApplyCouponToCartInput): ApplyCouponToCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ApplyCouponToCart") @doc(description:"Apply a pre-defined coupon code to the specified cart.")
1414
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.")
1616
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.")
1717
setShippingAddressesOnCart(input: SetShippingAddressesOnCartInput): SetShippingAddressesOnCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetShippingAddressesOnCart") @doc(description:"Set one or more shipping addresses on a specific cart.")
1818
setBillingAddressOnCart(input: SetBillingAddressOnCartInput): SetBillingAddressOnCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetBillingAddressOnCart") @doc(description:"Set the billing address on a specific cart.")
1919
setShippingMethodsOnCart(input: SetShippingMethodsOnCartInput): SetShippingMethodsOnCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetShippingMethodsOnCart") @doc(description:"Set one or more delivery methods on a cart.")
2020
setPaymentMethodOnCart(input: SetPaymentMethodOnCartInput): SetPaymentMethodOnCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetPaymentMethodOnCart") @doc(description:"Apply a payment method to the cart.")
2121
setGuestEmailOnCart(input: SetGuestEmailOnCartInput): SetGuestEmailOnCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetGuestEmailOnCart") @doc(description:"Assign the email address of a guest to the cart.")
2222
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.")
2525
addProductsToCart(cartId: String!, cartItems: [CartItemInput!]!): AddProductsToCartOutput @doc(description:"Add any type of product to the cart.") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddProductsToCart")
2626
}
2727

@@ -74,7 +74,7 @@ input UpdateCartItemsInput @doc(description: "Modifies the specified items in th
7474

7575
input CartItemUpdateInput @doc(description: "A single item to be updated.") {
7676
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.")
7878
quantity: Float @doc(description: "The new quantity of the item.")
7979
customizable_options: [CustomizableOptionInput!] @doc(description: "An array that defines customizable options for the product.")
8080
}
@@ -210,7 +210,7 @@ type Cart @doc(description: "Contains the contents and other details about a gue
210210
billing_address: BillingCartAddress @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\BillingAddress") @doc(description: "The billing address assigned to the cart.")
211211
available_payment_methods: [AvailablePaymentMethod] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AvailablePaymentMethods") @doc(description: "An array of available payment methods.")
212212
selected_payment_method: SelectedPaymentMethod @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SelectedPaymentMethod") @doc(description: "Indicates which payment method was applied to the cart.")
213-
prices: CartPrices @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartPrices") @doc(description: "Contains pricing details.")
213+
prices: CartPrices @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartPrices") @doc(description: "Pricing details for the quote.")
214214
total_quantity: Float! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartTotalQuantity") @doc(description: "The total number of items in the cart.")
215215
is_virtual: Boolean! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartIsVirtual") @doc(description: "Indicates whether the cart contains only virtual products.")
216216
}
@@ -334,7 +334,7 @@ interface CartItemInterface @typeResolver(class: "Magento\\QuoteGraphQl\\Model\\
334334
uid: ID! @doc(description: "The unique ID for a `CartItemInterface` object.")
335335
quantity: Float! @doc(description: "The quantity of this item in the cart.")
336336
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.")
338338
}
339339

340340
type Discount @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
345345
type CartItemPrices @doc(description: "Contains details about the price of the item, including taxes and discounts.") {
346346
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.")
347347
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.")
349349
discounts: [Discount] @doc(description: "An array of discounts to be applied to the cart item.")
350350
total_item_discount: Money @doc(description: "The total of all discounts applied to the item.")
351351
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ type ReorderItemsOutput @doc(description:"Contains the cart and any errors after
1515
}
1616

1717
type CheckoutUserInputError @doc(description:"An error encountered while adding an item to the cart."){
18-
message: String! @doc(description: "Localized error message.")
19-
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")
2020
code: CheckoutUserInputErrorCodes! @doc(description: "An error code that is specific to Checkout.")
2121
}
2222

@@ -169,8 +169,8 @@ type ShippingDiscount @doc(description:"Defines an individual shipping discount.
169169
type OrderShipment @doc(description: "Contains order shipment details.") {
170170
id: ID! @doc(description: "The unique ID for a `OrderShipment` object.")
171171
number: String! @doc(description: "The sequential credit shipment number.")
172-
tracking: [ShipmentTracking] @doc(description: "Contains shipment tracking details.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentTracking")
173-
items: [ShipmentItemInterface] @doc(description: "Contains items included in the shipment.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentItems")
172+
tracking: [ShipmentTracking] @doc(description: "An array of shipment tracking details.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentTracking")
173+
items: [ShipmentItemInterface] @doc(description: "An array of items included in the shipment.") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentItems")
174174
comments: [SalesCommentItem] @doc(description: "Comments added to the shipment.")
175175
}
176176

@@ -217,7 +217,7 @@ interface CreditMemoItemInterface @doc(description: "Credit memo item details.")
217217
product_name: String @doc(description: "The name of the base product.")
218218
product_sku: String! @doc(description: "The SKU of the base product.")
219219
product_sale_price: Money! @doc(description: "The sale price for the base product, including selected options.")
220-
discounts: [Discount] @doc(description: "Information about the final discount amount for the base product, including discounts on options.")
220+
discounts: [Discount] @doc(description: "Details about the final discount amount for the base product, including discounts on options.")
221221
quantity_refunded: Float @doc(description: "The number of refunded items.")
222222
}
223223

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ type Customer {
1717
type WishlistOutput @doc(description: "Deprecated: Use the `Wishlist` type instead.") {
1818
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"),
1919
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."),
2222
updated_at: String @deprecated(reason: "Use the `Wishlist.updated_at` field instead.") @doc(description: "The time of the last modification to the wish list.")
2323
}
2424

0 commit comments

Comments
 (0)