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
+21-13Lines changed: 21 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -105,22 +105,19 @@ type OrderItemOption @doc(description: "Represents order item options like selec
105
105
value: String!@doc(description: "The value of the option")
106
106
}
107
107
108
-
interfaceSalesTotalAmountInterface@doc(description: "Sales total details") @typeResolver(class: "Magento\\SalesGraphQl\\Model\\SalesTotalAmountTypeResolver") {
109
-
subtotal: Money!@doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
110
-
discounts: [Discount] @doc(description: "The applied discounts to the order")
111
-
total_tax: Money!@doc(description: "The amount of tax applied to the order")
112
-
taxes: [TaxItem] @doc(description: "The order tax details")
113
-
grand_total: Money!@doc(description: "The final total amount, including shipping, discounts, and taxes")
114
-
base_grand_total: Money!@doc(description: "The final base grand total amount in the base currency")
115
-
}
116
-
117
108
typeTaxItem@doc(description: "The tax item details") {
118
109
amount: Money!@doc(description: "The amount of tax applied to the item")
119
110
title: String!@doc(description: "A title that describes the tax")
120
111
rate: Float@doc(description: "The rate used to calculate the tax")
121
112
}
122
113
123
-
typeOrderTotalimplementsSalesTotalAmountInterface@doc(description: "Contains details about the sales total amounts used to calculate the final price") {
114
+
typeOrderTotal@doc(description: "Contains details about the sales total amounts used to calculate the final price") {
115
+
subtotal: Money!@doc(description: "The subtotal of the order, excluding shipping, discounts, and taxes")
116
+
discounts: [Discount] @doc(description: "The applied discounts to the order")
117
+
total_tax: Money!@doc(description: "The amount of tax applied to the order")
118
+
taxes: [TaxItem] @doc(description: "The order tax details")
119
+
grand_total: Money!@doc(description: "The final total amount, including shipping, discounts, and taxes")
120
+
base_grand_total: Money!@doc(description: "The final base grand total amount in the base currency")
124
121
total_shipping: Money!@doc(description: "The shipping amount for the order")
125
122
shipping_handling: ShippingHandling@doc(description: "Contains details about the shipping and handling costs for the order")
126
123
}
@@ -151,7 +148,13 @@ type BundleInvoiceItem implements InvoiceItemInterface{
151
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")
152
149
}
153
150
154
-
typeInvoiceTotalimplementsSalesTotalAmountInterface@doc(description: "Invoice total amount details") {
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")
155
+
taxes: [TaxItem] @doc(description: "The order tax details")
156
+
grand_total: Money!@doc(description: "The final total amount, including shipping, discounts, and taxes")
157
+
base_grand_total: Money!@doc(description: "The final base grand total amount in the base currency")
155
158
total_shipping: Money!@doc(description: "The shipping amount for the invoice")
156
159
shipping_handling: ShippingHandling@doc(description: "Contains details about the shipping and handling costs for the invoice")
0 commit comments