@@ -61,29 +61,29 @@ type CustomerOrder @doc(description: "Contains details about each of the custome
61
61
}
62
62
63
63
interface OrderItemInterface @doc (description : " Order item details" ) @typeResolver (class : " Magento\\ SalesGraphQl\\ Model\\ OrderItemTypeResolver" ) {
64
- id : ID ! @doc (description : " Order item unique identifier" )
65
- product_name : String @doc (description : " Name of the base product" )
66
- product_sku : String ! @doc (description : " SKU of the base product" )
64
+ id : ID ! @doc (description : " The unique identifier of the order item " )
65
+ product_name : String @doc (description : " The name of the base product" )
66
+ product_sku : String ! @doc (description : " The SKU of the base product" )
67
67
product_url_key : String @doc (description : " URL key of the base product" )
68
- product_type : String @doc (description : " Type of product (e.g. simple, configurable, bundle) " )
69
- status : String @doc (description : " The status of order item" )
68
+ product_type : String @doc (description : " The type of product, such as simple, configurable, or bundle" )
69
+ status : String @doc (description : " The status of the order item" )
70
70
product_sale_price : Money ! @doc (description : " The sale price of the base product, including selected options" )
71
- discounts : [Discount ] @doc (description : " Final discount information for the product" )
71
+ discounts : [Discount ] @doc (description : " The final discount information for the product" )
72
72
selected_options : [OrderItemOption ] @doc (description : " The selected options for the base product, such as color or size" )
73
73
entered_options : [OrderItemOption ] @doc (description : " The entered option for the base product, such as a logo or image" )
74
74
quantity_ordered : Float @doc (description : " The number of units ordered for this item" )
75
75
quantity_shipped : Float @doc (description : " The number of shipped items" )
76
76
quantity_refunded : Float @doc (description : " The number of refunded items" )
77
77
quantity_invoiced : Float @doc (description : " The number of invoiced items" )
78
- quantity_canceled : Float @doc (description : " The number of cancelled items" )
78
+ quantity_canceled : Float @doc (description : " The number of canceled items" )
79
79
quantity_returned : Float @doc (description : " The number of returned items" )
80
80
}
81
81
82
82
type OrderItem implements OrderItemInterface {
83
83
}
84
84
85
85
type BundleOrderItem implements OrderItemInterface {
86
- child_items : [OrderItemInterface ]
86
+ child_items : [OrderItemInterface ] @doc ( description : " A list of child products that are assigned to the bundle product " )
87
87
}
88
88
89
89
type OrderItemOption @doc (description : " Represents order item options like selected or entered" ) {
@@ -95,20 +95,20 @@ interface SalesTotalAmountInterface @doc(description: "Sales total details") @ty
95
95
subtotal : Money ! @doc (description : " The subtotal of the order, excluding shipping, discounts, and taxes" )
96
96
discounts : [Discount ] @doc (description : " The applied discounts to the order" )
97
97
total_tax : Money ! @doc (description : " The amount of tax applied to the order" )
98
- taxes : [TaxItem ] @doc (description : " The order taxes details" )
98
+ taxes : [TaxItem ] @doc (description : " The order tax details" )
99
99
grand_total : Money ! @doc (description : " The final total amount, including shipping, discounts, and taxes" )
100
100
base_grand_total : Money ! @doc (description : " The final base grand total amount in the base currency" )
101
101
}
102
102
103
103
type TaxItem @doc (description : " The tax item details" ) {
104
- amount : Money ! @doc (description : " The Tax amount" )
105
- title : String ! @doc (description : " The Tax item title " )
106
- rate : Float @doc (description : " The Tax item rate " )
104
+ amount : Money ! @doc (description : " The amount of tax applied to the item " )
105
+ title : String ! @doc (description : " A title that describes the tax " )
106
+ rate : Float @doc (description : " The rate used to calculate the tax " )
107
107
}
108
108
109
109
type OrderTotal implements SalesTotalAmountInterface @doc (description : " Contains details about the sales total amounts used to calculate the final price" ) {
110
- total_shipping : Money ! @doc (description : " The order shipping amount" )
111
- shipping_handling : ShippingHandling @doc (description : " The shipping and handling costs details for the order" )
110
+ total_shipping : Money ! @doc (description : " The shipping amount for the order " )
111
+ shipping_handling : ShippingHandling @doc (description : " Contains details about the shipping and handling costs for the order" )
112
112
}
113
113
114
114
type Invoice @doc (description : " Invoice details" ) {
@@ -120,66 +120,67 @@ type Invoice @doc(description: "Invoice details") {
120
120
}
121
121
122
122
interface InvoiceItemInterface @doc (description : " Invoice item details" ) @typeResolver (class : " Magento\\ SalesGraphQl\\ Model\\ InvoiceItemTypeResolver" ) {
123
- id : ID ! @doc (description : " invoice item unique identifier " )
124
- order_item : OrderItemInterface @doc (description : " associated order item" )
125
- product_name : String @doc (description : " Name of the base product" )
126
- product_sku : String ! @doc (description : " SKU of the base product" )
127
- product_type : String @doc (description : " Type of product (e.g. simple, configurable, bundle) " )
128
- product_sale_price : Money ! @doc (description : " Sale price for the base product including selected options" )
129
- discounts : [Discount ] @doc (description : " Final discount information for the base product including discounts on options" )
130
- quantity_invoiced : Float @doc (description : " Number of invoiced items" )
123
+ id : ID ! @doc (description : " The unique ID of the invoice item " )
124
+ order_item : OrderItemInterface @doc (description : " Contains details about an individual order item" )
125
+ product_name : String @doc (description : " The name of the base product" )
126
+ product_sku : String ! @doc (description : " The SKU of the base product" )
127
+ product_type : String @doc (description : " The type of product, such as simple, configurable, or bundle" )
128
+ product_sale_price : Money ! @doc (description : " The sale price for the base product including selected options" )
129
+ discounts : [Discount ] @doc (description : " Contains information about the final discount amount for the base product, including discounts on options" )
130
+ quantity_invoiced : Float @doc (description : " The number of invoiced items" )
131
131
}
132
132
133
133
type InvoiceItem implements InvoiceItemInterface {
134
134
}
135
135
136
136
type BundleInvoiceItem implements InvoiceItemInterface {
137
- child_items : [InvoiceItemInterface ]
137
+ child_items : [InvoiceItemInterface ] @doc ( description : " A list of child products that are assigned to the bundle product " )
138
138
}
139
139
140
140
type InvoiceTotal implements SalesTotalAmountInterface @doc (description : " Invoice total amount details" ) {
141
- total_shipping : Money ! @doc (description : " order shipping amount" )
142
- shipping_handling : ShippingHandling @doc (description : " shipping and handling for the order " )
141
+ total_shipping : Money ! @doc (description : " The shipping amount for the invoice " )
142
+ shipping_handling : ShippingHandling @doc (description : " Contains details about the shipping and handling costs for the invoice " )
143
143
}
144
144
145
145
type ShippingHandling @doc (description : " The Shipping handling details" ) {
146
- total_amount : Money ! @doc (description : " The Shipping total amount" )
147
- amount_inc_tax : Money @doc (description : " The Shipping amount including tax" )
148
- amount_exc_tax : Money @doc (description : " The Shipping amount excluding tax" )
149
- taxes : [TaxItem ] @doc (description : " The Shipping taxes details" )
146
+ total_amount : Money ! @doc (description : " The total amount for shipping" )
147
+ amount_including_tax : Money @doc (description : " The shipping amount, including tax" )
148
+ amount_excluding_tax : Money @doc (description : " The shipping amount, excluding tax" )
149
+ taxes : [TaxItem ] @doc (description : " Contains details about taxes applied for shipping" )
150
+ discounts : [Discount ] @doc (description : " The applied discounts to the shipping" )
150
151
}
151
152
152
153
type OrderShipment @doc (description : " Order shipment details" ) {
153
- id : ID ! @doc (description : " the ID of the shipment, used for API purposes " )
154
- number : String ! @doc (description : " sequential credit shipment number" )
155
- tracking : [ShipmentTracking ] @doc (description : " shipment tracking details" )
156
- items : [ShipmentItem ] @doc (description : " items included in the shipment" )
157
- comments : [CommentItem ] @doc (description : " comments on the shipment" )
154
+ id : ID ! @doc (description : " The unique ID of the shipment" )
155
+ number : String ! @doc (description : " The sequential credit shipment number" )
156
+ tracking : [ShipmentTracking ] @doc (description : " Contains shipment tracking details" )
157
+ items : [ShipmentItem ] @doc (description : " Contains items included in the shipment" )
158
+ comments : [CommentItem ] @doc (description : " Comments added to the shipment" )
158
159
}
159
160
160
161
type CommentItem @doc (description : " Comment item details" ) {
161
162
timestamp : String ! @doc (description : " The timestamp of the comment" )
162
- message : String ! @doc (description : " the comment message" )
163
+ message : String ! @doc (description : " The texat of the message" )
163
164
}
164
165
165
166
type ShipmentItem @doc (description : " Order shipment item details" ) {
166
- id : ID ! @doc (description : " Shipment item unique identifier " )
167
- order_item : OrderItemInterface @doc (description : " Associated order item" )
168
- product_name : String @doc (description : " Name of the base product" )
169
- product_sku : String ! @doc (description : " SKU of the base product" )
170
- product_sale_price : Money ! @doc (description : " Sale price for the base product" )
171
- quantity_shipped : Float ! @doc (description : " Number of shipped items" )
167
+ id : ID ! @doc (description : " The unique ID of the shipment item " )
168
+ order_item : OrderItemInterface @doc (description : " The shipped order item" )
169
+ product_name : String @doc (description : " The name of the base product" )
170
+ product_sku : String ! @doc (description : " The SKU of the base product" )
171
+ product_sale_price : Money ! @doc (description : " The sale price for the base product" )
172
+ quantity_shipped : Float ! @doc (description : " The number of shipped items" )
172
173
}
173
174
174
175
type ShipmentTracking @doc (description : " Order shipment tracking details" ) {
175
- title : String ! @doc (description : " Shipment tracking title" )
176
- carrier : String ! @doc (description : " Shipping carrier for the order delivery" )
177
- number : String @doc (description : " Tracking number of the order shipment" )
176
+ title : String ! @doc (description : " The shipment tracking title" )
177
+ carrier : String ! @doc (description : " The shipping carrier for the order delivery" )
178
+ number : String @doc (description : " The tracking number of the order shipment" )
178
179
}
179
180
180
- type PaymentMethod @doc (description : " Payment method used to pay for the order" ) {
181
- name : String ! @doc (description : " Payment method name for e.g Paypal, etc. " )
182
- type : String ! @doc (description : " Payment method type used to pay for the order for e.g Credit Card, PayPal etc. " )
181
+ type PaymentMethod @doc (description : " Contains details about the payment method used to pay for the order" ) {
182
+ name : String ! @doc (description : " The label that describes the payment method " )
183
+ type : String ! @doc (description : " The payment method code that indicates how the order was paid for " )
183
184
additional_data : [KeyValue ] @doc (description : " Additional data per payment method type" )
184
185
}
185
186
@@ -189,24 +190,24 @@ type KeyValue @doc(description: "The key-value type") {
189
190
}
190
191
191
192
type CreditMemo @doc (description : " Credit memo details" ) {
192
- id : ID ! @doc (description : " The ID of the credit memo, used for API purposes " )
193
- number : String ! @doc (description : " Sequential credit memo number" )
194
- items : [CreditMemoItem ] @doc (description : " An array with the items details refunded" )
195
- total : CreditMemoTotal @doc (description : " Refund total amount details " )
193
+ id : ID ! @doc (description : " The unique ID of the credit memo" )
194
+ number : String ! @doc (description : " The sequential credit memo number" )
195
+ items : [CreditMemoItem ] @doc (description : " An array containing details about refunded items " )
196
+ total : CreditMemoTotal @doc (description : " Contains details about the total refunded amount " )
196
197
comments : [CommentItem ] @doc (description : " Comments on the credit memo" )
197
198
}
198
199
199
200
type CreditMemoItem @doc (description : " Credit memo item details" ) {
200
- id : ID ! @doc (description : " Credit memo item unique identifier " )
201
- order_item : OrderItemInterface @doc (description : " Associated order item" )
202
- product_name : String @doc (description : " Name of the base product" )
203
- product_sku : String ! @doc (description : " SKU of the base product" )
204
- product_sale_price : Money ! @doc (description : " Sale price for the base product including selected options" )
205
- discounts : [Discount ] @doc (description : " Final discount information for the base product including discounts on options" )
206
- quantity_invoiced : Float @doc (description : " Number of invoiced items" )
201
+ id : ID ! @doc (description : " The unique ID of the credit memo item " )
202
+ order_item : OrderItemInterface @doc (description : " Contains details about a refunded order item" )
203
+ product_name : String @doc (description : " The name of the base product" )
204
+ product_sku : String ! @doc (description : " The SKU of the base product" )
205
+ product_sale_price : Money ! @doc (description : " The sale price for the base product, including selected options" )
206
+ discounts : [Discount ] @doc (description : " The final discount information for the base product, including discounts on options" )
207
+ quantity_invoiced : Float @doc (description : " The number of invoiced items" )
207
208
}
208
209
209
- type CreditMemoTotal implements SalesTotalAmountInterface @doc (description : " Credit memo price details" ) {
210
+ type CreditMemoTotal implements SalesTotalAmountInterface @doc (description : " Contains credit memo price details" ) {
210
211
211
212
}
212
213
0 commit comments