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/SalesGraphQl/etc/schema.graphqls
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ input CustomerOrdersFilterInput @doc(description: "Identifies the filter to use
34
34
35
35
typeCustomerOrders@doc(description: "The collection of orders that match the conditions defined in the filter") {
36
36
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")
38
38
total_count: Int@doc(description: "The total count of customer orders")
39
39
}
40
40
@@ -45,15 +45,15 @@ type CustomerOrder @doc(description: "Contains details about each of the custome
45
45
number: String!@doc(description: "The order number")
46
46
items: [OrderItemInterface] @doc(description: "An array containing the items purchased in this order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\OrderItems")
47
47
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")
57
57
increment_id: String@deprecated(reason: "Use the id attribute instead")
58
58
order_number: String!@deprecated(reason: "Use the number attribute instead")
59
59
created_at: String@deprecated(reason: "Use the order_date attribute instead")
@@ -86,18 +86,18 @@ type BundleOrderItem implements OrderItemInterface {
86
86
bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to the bundle product") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\BundleOptions")
87
87
}
88
88
89
-
typeItemSelectedBundleOption {
89
+
typeItemSelectedBundleOption@doc(description: "A list of options of the selected bundle product") {
90
90
id: ID!@doc(description: "The unique identifier of the option")
91
91
label: String!@doc(description: "The label of the option")
92
92
values: [ItemSelectedBundleOptionValue!]!@doc(description: "A list of products that represent the values of the parent option")
93
93
}
94
94
95
-
typeItemSelectedBundleOptionValue {
96
-
id: ID!
97
-
product_name: String!
98
-
product_sku: String!
99
-
quantity: Float!
100
-
price: Money!
95
+
typeItemSelectedBundleOptionValue@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")
101
101
}
102
102
103
103
typeOrderItemOption@doc(description: "Represents order item options like selected or entered") {
@@ -110,7 +110,7 @@ type TaxItem @doc(description: "The tax item details") {
110
110
title: String!@doc(description: "A title that describes the tax")
111
111
rate: Float@doc(description: "The rate used to calculate the tax")
112
112
}
113
-
113
+
114
114
typeOrderTotal@doc(description: "Contains details about the sales total amounts used to calculate the final price") {
115
115
subtotal: Money!@doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
116
116
discounts: [Discount] @doc(description: "The applied discounts to the order")
@@ -148,10 +148,10 @@ type BundleInvoiceItem implements InvoiceItemInterface{
148
148
bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to the bundle product") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\BundleOptions")
149
149
}
150
150
151
-
typeInvoiceTotal {
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
+
typeInvoiceTotal@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")
155
155
taxes: [TaxItem] @doc(description: "The order tax details")
156
156
grand_total: Money!@doc(description: "The final total amount, including shipping, discounts, and taxes")
157
157
base_grand_total: Money!@doc(description: "The final base grand total amount in the base currency")
0 commit comments