Skip to content

Commit a353ecc

Browse files
committed
MC-20636: Update Sales schema descriptions
1 parent 3ee0373 commit a353ecc

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ input CustomerOrdersFilterInput @doc(description: "Identifies the filter to use
3434

3535
type CustomerOrders @doc(description: "The collection of orders that match the conditions defined in the filter") {
3636
items: [CustomerOrder]! @doc(description: "An array of customer orders")
37-
page_info: SearchResultPageInfo @doc(description: "An object that includes the current_page page_info and page_size values specified in the query")
37+
page_info: SearchResultPageInfo @doc(description: "An object that includes the current_page, page_info, and page_size values specified in the query")
3838
total_count: Int @doc(description: "The total count of customer orders")
3939
}
4040

@@ -45,15 +45,15 @@ type CustomerOrder @doc(description: "Contains details about each of the custome
4545
number: String! @doc(description: "The order number")
4646
items: [OrderItemInterface] @doc(description: "An array containing the items purchased in this order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\OrderItems")
4747
total: OrderTotal @doc(description: "Contains details about the calculated totals for this order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\OrderTotal")
48-
invoices: [Invoice]! @doc(description: "Invoice list for the order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Invoices")
49-
credit_memos: [CreditMemo] @doc(description: "credit memo list for the order")
50-
shipments: [OrderShipment] @doc(description: "shipment list for the order")
51-
payment_methods: [PaymentMethod] @doc(description: "payment details for the order")
52-
shipping_address: CustomerAddress @doc(description: "shipping address for the order")
53-
billing_address: CustomerAddress @doc(description: "billing address for the order")
54-
carrier: String @doc(description: "shipping carrier for the order delivery")
55-
shipping_method: String @doc(description: "shipping method for the order")
56-
comments: [CommentItem] @doc(description: "comments on the order")
48+
invoices: [Invoice]! @doc(description: "A list of invoices for the order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Invoices")
49+
credit_memos: [CreditMemo] @doc(description: "A list of credit memos for the order")
50+
shipments: [OrderShipment] @doc(description: "A list of shipments for the order")
51+
payment_methods: [PaymentMethod] @doc(description: "Payment details for the order")
52+
shipping_address: CustomerAddress @doc(description: "The shipping address for the order")
53+
billing_address: CustomerAddress @doc(description: "The billing address for the order")
54+
carrier: String @doc(description: "The shipping carrier for the order delivery")
55+
shipping_method: String @doc(description: "The delivery method for the order")
56+
comments: [CommentItem] @doc(description: "Comments about the order")
5757
increment_id: String @deprecated(reason: "Use the id attribute instead")
5858
order_number: String! @deprecated(reason: "Use the number attribute instead")
5959
created_at: String @deprecated(reason: "Use the order_date attribute instead")
@@ -86,18 +86,18 @@ type BundleOrderItem implements OrderItemInterface {
8686
bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to the bundle product") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\BundleOptions")
8787
}
8888

89-
type ItemSelectedBundleOption {
89+
type ItemSelectedBundleOption @doc(description: "A list of options of the selected bundle product") {
9090
id: ID! @doc(description: "The unique identifier of the option")
9191
label: String! @doc(description: "The label of the option")
9292
values: [ItemSelectedBundleOptionValue!]! @doc(description: "A list of products that represent the values of the parent option")
9393
}
9494

95-
type ItemSelectedBundleOptionValue {
96-
id: ID!
97-
product_name: String!
98-
product_sku: String!
99-
quantity: Float!
100-
price: Money!
95+
type ItemSelectedBundleOptionValue @doc(description: "A list of values for the selected bundle product") {
96+
id: ID! @doc(description: "The unique identifier of the value")
97+
product_name: String! @doc(description: "The name of the child bundle product")
98+
product_sku: String! @doc(description: "The SKU of the child bundle product")
99+
quantity: Float! @doc(description: "Indicates how many of this bundle product were ordered")
100+
price: Money! @doc(description: "The price of the child bundle product")
101101
}
102102

103103
type OrderItemOption @doc(description: "Represents order item options like selected or entered") {
@@ -110,7 +110,7 @@ type TaxItem @doc(description: "The tax item details") {
110110
title: String! @doc(description: "A title that describes the tax")
111111
rate: Float @doc(description: "The rate used to calculate the tax")
112112
}
113-
113+
114114
type OrderTotal @doc(description: "Contains details about the sales total amounts used to calculate the final price") {
115115
subtotal: Money! @doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
116116
discounts: [Discount] @doc(description: "The applied discounts to the order")
@@ -148,10 +148,10 @@ type BundleInvoiceItem implements InvoiceItemInterface{
148148
bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to the bundle product") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\BundleOptions")
149149
}
150150

151-
type InvoiceTotal {
152-
subtotal: Money! @doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
153-
discounts: [Discount] @doc(description: "The applied discounts to the order")
154-
total_tax: Money! @doc(description: "The amount of tax applied to the order")
151+
type InvoiceTotal @doc(description: "Contains price details from an invoice"){
152+
subtotal: Money! @doc(description: "The subtotal of the invoice, excluding shipping, discounts, and taxes")
153+
discounts: [Discount] @doc(description: "The applied discounts to the invoice")
154+
total_tax: Money! @doc(description: "The amount of tax applied to the invoice")
155155
taxes: [TaxItem] @doc(description: "The order tax details")
156156
grand_total: Money! @doc(description: "The final total amount, including shipping, discounts, and taxes")
157157
base_grand_total: Money! @doc(description: "The final base grand total amount in the base currency")
@@ -224,11 +224,11 @@ type CreditMemoItem @doc(description: "Credit memo item details") {
224224
quantity_invoiced: Float @doc(description: "The number of invoiced items")
225225
}
226226

227-
type CreditMemoTotal @doc(description: "Contains credit memo price details") {
228-
subtotal: Money! @doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
229-
discounts: [Discount] @doc(description: "The applied discounts to the order")
230-
total_tax: Money! @doc(description: "The amount of tax applied to the order")
231-
taxes: [TaxItem] @doc(description: "The order tax details")
227+
type CreditMemoTotal @doc(description: "Contains price details from a credit memo") {
228+
subtotal: Money! @doc(description: "The subtotal of the credit memo, excluding shipping, discounts, and taxes")
229+
discounts: [Discount] @doc(description: "The applied discounts to the credit memo")
230+
total_tax: Money! @doc(description: "The amount of tax applied to the credit memo")
231+
taxes: [TaxItem] @doc(description: "The credit memo tax details")
232232
grand_total: Money! @doc(description: "The final total amount, including shipping, discounts, and taxes")
233233
base_grand_total: Money! @doc(description: "The final base grand total amount in the base currency")
234234
}

0 commit comments

Comments
 (0)