@vendure/core 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +42 -42
- package/README.md +11 -11
- package/dist/api/config/generate-error-code-enum.js +3 -3
- package/dist/api/config/generate-permissions.js +29 -29
- package/dist/api/config/graphql-custom-fields.js +158 -158
- package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
- package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
- package/dist/api/schema/admin-api/asset.api.graphql +68 -68
- package/dist/api/schema/admin-api/auth.api.graphql +22 -22
- package/dist/api/schema/admin-api/channel.api.graphql +69 -69
- package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/collection.api.graphql +94 -94
- package/dist/api/schema/admin-api/country.api.graphql +41 -41
- package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
- package/dist/api/schema/admin-api/customer.api.graphql +63 -63
- package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
- package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
- package/dist/api/schema/admin-api/facet.api.graphql +100 -100
- package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
- package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
- package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/import.api.graphql +3 -3
- package/dist/api/schema/admin-api/import.type.graphql +5 -5
- package/dist/api/schema/admin-api/job.api.graphql +63 -63
- package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
- package/dist/api/schema/admin-api/order.api.graphql +463 -463
- package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
- package/dist/api/schema/admin-api/payment.api.graphql +2 -2
- package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
- package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
- package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
- package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
- package/dist/api/schema/admin-api/product.api.graphql +225 -225
- package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
- package/dist/api/schema/admin-api/province.api.graphql +37 -37
- package/dist/api/schema/admin-api/role.api.graphql +33 -33
- package/dist/api/schema/admin-api/seller.api.graphql +31 -31
- package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
- package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
- package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
- package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
- package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
- package/dist/api/schema/admin-api/tag.api.graphql +25 -25
- package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
- package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
- package/dist/api/schema/admin-api/zone.api.graphql +42 -42
- package/dist/api/schema/common/address.type.graphql +16 -16
- package/dist/api/schema/common/asset.type.graphql +31 -31
- package/dist/api/schema/common/auth.type.graphql +12 -12
- package/dist/api/schema/common/channel.type.graphql +24 -24
- package/dist/api/schema/common/collection.type.graphql +40 -40
- package/dist/api/schema/common/common-enums.graphql +35 -35
- package/dist/api/schema/common/common-error-results.graphql +107 -107
- package/dist/api/schema/common/common-types.graphql +285 -285
- package/dist/api/schema/common/currency-code.graphql +322 -322
- package/dist/api/schema/common/custom-field-types.graphql +265 -265
- package/dist/api/schema/common/customer-group.type.graphql +10 -10
- package/dist/api/schema/common/customer.type.graphql +18 -18
- package/dist/api/schema/common/facet-value.type.graphql +19 -19
- package/dist/api/schema/common/facet.type.graphql +35 -35
- package/dist/api/schema/common/history-entry.type.graphql +43 -43
- package/dist/api/schema/common/language-code.graphql +325 -325
- package/dist/api/schema/common/order.type.graphql +257 -257
- package/dist/api/schema/common/payment-method.type.graphql +21 -21
- package/dist/api/schema/common/product-option-group.type.graphql +38 -38
- package/dist/api/schema/common/product-search.type.graphql +69 -69
- package/dist/api/schema/common/product.type.graphql +70 -70
- package/dist/api/schema/common/promotion.type.graphql +31 -31
- package/dist/api/schema/common/region.type.graphql +65 -65
- package/dist/api/schema/common/role.type.graphql +14 -14
- package/dist/api/schema/common/seller.type.graphql +6 -6
- package/dist/api/schema/common/shipping-method.type.graphql +27 -27
- package/dist/api/schema/common/tag.type.graphql +11 -11
- package/dist/api/schema/common/tax-category.type.graphql +7 -7
- package/dist/api/schema/common/tax-rate.type.graphql +16 -16
- package/dist/api/schema/common/user.type.graphql +17 -17
- package/dist/api/schema/common/zone.type.graphql +8 -8
- package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
- package/dist/api/schema/shop-api/shop.api.graphql +287 -287
- package/dist/config/auth/native-authentication-strategy.js +5 -5
- package/dist/i18n/messages/de.json +117 -117
- package/dist/i18n/messages/en.json +140 -140
- package/dist/i18n/messages/es.json +38 -38
- package/dist/i18n/messages/fr.json +138 -138
- package/dist/i18n/messages/pt_BR.json +99 -99
- package/dist/i18n/messages/pt_PT.json +118 -118
- package/dist/i18n/messages/ru.json +118 -118
- package/dist/i18n/messages/uk.json +118 -118
- package/dist/migrate.js +15 -15
- package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -5
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
- package/package.json +4 -4
- package/cli/cli-utils.d.ts +0 -1
- package/cli/cli-utils.js +0 -8
- package/cli/cli-utils.js.map +0 -1
- package/cli/vendure-cli.d.ts +0 -2
- package/cli/vendure-cli.js +0 -119
- package/cli/vendure-cli.js.map +0 -1
|
@@ -1,257 +1,257 @@
|
|
|
1
|
-
enum OrderType {
|
|
2
|
-
Regular
|
|
3
|
-
Seller
|
|
4
|
-
Aggregate
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
type Order implements Node {
|
|
8
|
-
id: ID!
|
|
9
|
-
createdAt: DateTime!
|
|
10
|
-
updatedAt: DateTime!
|
|
11
|
-
type: OrderType!
|
|
12
|
-
"""
|
|
13
|
-
The date & time that the Order was placed, i.e. the Customer
|
|
14
|
-
completed the checkout and the Order is no longer "active"
|
|
15
|
-
"""
|
|
16
|
-
orderPlacedAt: DateTime
|
|
17
|
-
"A unique code for the Order"
|
|
18
|
-
code: String!
|
|
19
|
-
state: String!
|
|
20
|
-
"An order is active as long as the payment process has not been completed"
|
|
21
|
-
active: Boolean!
|
|
22
|
-
customer: Customer
|
|
23
|
-
shippingAddress: OrderAddress
|
|
24
|
-
billingAddress: OrderAddress
|
|
25
|
-
lines: [OrderLine!]!
|
|
26
|
-
"""
|
|
27
|
-
Surcharges are arbitrary modifications to the Order total which are neither
|
|
28
|
-
ProductVariants nor discounts resulting from applied Promotions. For example,
|
|
29
|
-
one-off discounts based on customer interaction, or surcharges based on payment
|
|
30
|
-
methods.
|
|
31
|
-
"""
|
|
32
|
-
surcharges: [Surcharge!]!
|
|
33
|
-
discounts: [Discount!]!
|
|
34
|
-
"An array of all coupon codes applied to the Order"
|
|
35
|
-
couponCodes: [String!]!
|
|
36
|
-
"Promotions applied to the order. Only gets populated after the payment process has completed."
|
|
37
|
-
promotions: [Promotion!]!
|
|
38
|
-
payments: [Payment!]
|
|
39
|
-
fulfillments: [Fulfillment!]
|
|
40
|
-
totalQuantity: Int!
|
|
41
|
-
"""
|
|
42
|
-
The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
|
|
43
|
-
discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine.
|
|
44
|
-
To get a total of all OrderLines which does not account for prorated discounts, use the
|
|
45
|
-
sum of `OrderLine.discountedLinePrice` values.
|
|
46
|
-
"""
|
|
47
|
-
subTotal: Money!
|
|
48
|
-
"Same as subTotal, but inclusive of tax"
|
|
49
|
-
subTotalWithTax: Money!
|
|
50
|
-
currencyCode: CurrencyCode!
|
|
51
|
-
shippingLines: [ShippingLine!]!
|
|
52
|
-
shipping: Money!
|
|
53
|
-
shippingWithTax: Money!
|
|
54
|
-
"""
|
|
55
|
-
Equal to subTotal plus shipping
|
|
56
|
-
"""
|
|
57
|
-
total: Money!
|
|
58
|
-
"""
|
|
59
|
-
The final payable amount. Equal to subTotalWithTax plus shippingWithTax
|
|
60
|
-
"""
|
|
61
|
-
totalWithTax: Money!
|
|
62
|
-
"""
|
|
63
|
-
A summary of the taxes being applied to this Order
|
|
64
|
-
"""
|
|
65
|
-
taxSummary: [OrderTaxSummary!]!
|
|
66
|
-
history(options: HistoryEntryListOptions): HistoryEntryList!
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
"""
|
|
70
|
-
A summary of the taxes being applied to this order, grouped
|
|
71
|
-
by taxRate.
|
|
72
|
-
"""
|
|
73
|
-
type OrderTaxSummary {
|
|
74
|
-
"A description of this tax"
|
|
75
|
-
description: String!
|
|
76
|
-
"The taxRate as a percentage"
|
|
77
|
-
taxRate: Float!
|
|
78
|
-
"The total net price of OrderLines to which this taxRate applies"
|
|
79
|
-
taxBase: Money!
|
|
80
|
-
"The total tax being applied to the Order at this taxRate"
|
|
81
|
-
taxTotal: Money!
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
type OrderAddress {
|
|
85
|
-
fullName: String
|
|
86
|
-
company: String
|
|
87
|
-
streetLine1: String
|
|
88
|
-
streetLine2: String
|
|
89
|
-
city: String
|
|
90
|
-
province: String
|
|
91
|
-
postalCode: String
|
|
92
|
-
country: String
|
|
93
|
-
countryCode: String
|
|
94
|
-
phoneNumber: String
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
type OrderList implements PaginatedList {
|
|
98
|
-
items: [Order!]!
|
|
99
|
-
totalItems: Int!
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
type ShippingLine {
|
|
103
|
-
id: ID!
|
|
104
|
-
shippingMethod: ShippingMethod!
|
|
105
|
-
price: Money!
|
|
106
|
-
priceWithTax: Money!
|
|
107
|
-
discountedPrice: Money!
|
|
108
|
-
discountedPriceWithTax: Money!
|
|
109
|
-
discounts: [Discount!]!
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
type Discount {
|
|
113
|
-
adjustmentSource: String!
|
|
114
|
-
type: AdjustmentType!
|
|
115
|
-
description: String!
|
|
116
|
-
amount: Money!
|
|
117
|
-
amountWithTax: Money!
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
type OrderLine implements Node {
|
|
121
|
-
id: ID!
|
|
122
|
-
createdAt: DateTime!
|
|
123
|
-
updatedAt: DateTime!
|
|
124
|
-
productVariant: ProductVariant!
|
|
125
|
-
featuredAsset: Asset
|
|
126
|
-
"The price of a single unit, excluding tax and discounts"
|
|
127
|
-
unitPrice: Money!
|
|
128
|
-
"The price of a single unit, including tax but excluding discounts"
|
|
129
|
-
unitPriceWithTax: Money!
|
|
130
|
-
"""
|
|
131
|
-
Non-zero if the unitPrice has changed since it was initially added to Order
|
|
132
|
-
"""
|
|
133
|
-
unitPriceChangeSinceAdded: Money!
|
|
134
|
-
"""
|
|
135
|
-
Non-zero if the unitPriceWithTax has changed since it was initially added to Order
|
|
136
|
-
"""
|
|
137
|
-
unitPriceWithTaxChangeSinceAdded: Money!
|
|
138
|
-
"""
|
|
139
|
-
The price of a single unit including discounts, excluding tax.
|
|
140
|
-
|
|
141
|
-
If Order-level discounts have been applied, this will not be the
|
|
142
|
-
actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
143
|
-
correct price to display to customers to avoid confusion
|
|
144
|
-
about the internal handling of distributed Order-level discounts.
|
|
145
|
-
"""
|
|
146
|
-
discountedUnitPrice: Money!
|
|
147
|
-
"The price of a single unit including discounts and tax"
|
|
148
|
-
discountedUnitPriceWithTax: Money!
|
|
149
|
-
"""
|
|
150
|
-
The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
151
|
-
Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
152
|
-
and refund calculations.
|
|
153
|
-
"""
|
|
154
|
-
proratedUnitPrice: Money!
|
|
155
|
-
"The proratedUnitPrice including tax"
|
|
156
|
-
proratedUnitPriceWithTax: Money!
|
|
157
|
-
"The quantity of items purchased"
|
|
158
|
-
quantity: Int!
|
|
159
|
-
"The quantity at the time the Order was placed"
|
|
160
|
-
orderPlacedQuantity: Int!
|
|
161
|
-
taxRate: Float!
|
|
162
|
-
"""
|
|
163
|
-
The total price of the line excluding tax and discounts.
|
|
164
|
-
"""
|
|
165
|
-
linePrice: Money!
|
|
166
|
-
"""
|
|
167
|
-
The total price of the line including tax but excluding discounts.
|
|
168
|
-
"""
|
|
169
|
-
linePriceWithTax: Money!
|
|
170
|
-
"The price of the line including discounts, excluding tax"
|
|
171
|
-
discountedLinePrice: Money!
|
|
172
|
-
"The price of the line including discounts and tax"
|
|
173
|
-
discountedLinePriceWithTax: Money!
|
|
174
|
-
"""
|
|
175
|
-
The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
176
|
-
Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
177
|
-
and refund calculations.
|
|
178
|
-
"""
|
|
179
|
-
proratedLinePrice: Money!
|
|
180
|
-
"The proratedLinePrice including tax"
|
|
181
|
-
proratedLinePriceWithTax: Money!
|
|
182
|
-
"The total tax on this line"
|
|
183
|
-
lineTax: Money!
|
|
184
|
-
discounts: [Discount!]!
|
|
185
|
-
taxLines: [TaxLine!]!
|
|
186
|
-
order: Order!
|
|
187
|
-
fulfillmentLines: [FulfillmentLine!]
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
type Payment implements Node {
|
|
191
|
-
id: ID!
|
|
192
|
-
createdAt: DateTime!
|
|
193
|
-
updatedAt: DateTime!
|
|
194
|
-
method: String!
|
|
195
|
-
amount: Money!
|
|
196
|
-
state: String!
|
|
197
|
-
transactionId: String
|
|
198
|
-
errorMessage: String
|
|
199
|
-
refunds: [Refund!]!
|
|
200
|
-
metadata: JSON
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
type RefundLine {
|
|
204
|
-
orderLine: OrderLine!
|
|
205
|
-
orderLineId: ID!
|
|
206
|
-
quantity: Int!
|
|
207
|
-
refund: Refund!
|
|
208
|
-
refundId: ID!
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
type Refund implements Node {
|
|
212
|
-
id: ID!
|
|
213
|
-
createdAt: DateTime!
|
|
214
|
-
updatedAt: DateTime!
|
|
215
|
-
items: Money!
|
|
216
|
-
shipping: Money!
|
|
217
|
-
adjustment: Money!
|
|
218
|
-
total: Money!
|
|
219
|
-
method: String
|
|
220
|
-
state: String!
|
|
221
|
-
transactionId: String
|
|
222
|
-
reason: String
|
|
223
|
-
lines: [RefundLine!]!
|
|
224
|
-
paymentId: ID!
|
|
225
|
-
metadata: JSON
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
type FulfillmentLine {
|
|
229
|
-
orderLine: OrderLine!
|
|
230
|
-
orderLineId: ID!
|
|
231
|
-
quantity: Int!
|
|
232
|
-
fulfillment: Fulfillment!
|
|
233
|
-
fulfillmentId: ID!
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
type Fulfillment implements Node {
|
|
237
|
-
id: ID!
|
|
238
|
-
createdAt: DateTime!
|
|
239
|
-
updatedAt: DateTime!
|
|
240
|
-
lines: [FulfillmentLine!]!
|
|
241
|
-
summary: [FulfillmentLine!]! @deprecated(reason: "Use the `lines` field instead")
|
|
242
|
-
state: String!
|
|
243
|
-
method: String!
|
|
244
|
-
trackingCode: String
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
type Surcharge implements Node {
|
|
248
|
-
id: ID!
|
|
249
|
-
createdAt: DateTime!
|
|
250
|
-
updatedAt: DateTime!
|
|
251
|
-
description: String!
|
|
252
|
-
sku: String
|
|
253
|
-
taxLines: [TaxLine!]!
|
|
254
|
-
price: Money!
|
|
255
|
-
priceWithTax: Money!
|
|
256
|
-
taxRate: Float!
|
|
257
|
-
}
|
|
1
|
+
enum OrderType {
|
|
2
|
+
Regular
|
|
3
|
+
Seller
|
|
4
|
+
Aggregate
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type Order implements Node {
|
|
8
|
+
id: ID!
|
|
9
|
+
createdAt: DateTime!
|
|
10
|
+
updatedAt: DateTime!
|
|
11
|
+
type: OrderType!
|
|
12
|
+
"""
|
|
13
|
+
The date & time that the Order was placed, i.e. the Customer
|
|
14
|
+
completed the checkout and the Order is no longer "active"
|
|
15
|
+
"""
|
|
16
|
+
orderPlacedAt: DateTime
|
|
17
|
+
"A unique code for the Order"
|
|
18
|
+
code: String!
|
|
19
|
+
state: String!
|
|
20
|
+
"An order is active as long as the payment process has not been completed"
|
|
21
|
+
active: Boolean!
|
|
22
|
+
customer: Customer
|
|
23
|
+
shippingAddress: OrderAddress
|
|
24
|
+
billingAddress: OrderAddress
|
|
25
|
+
lines: [OrderLine!]!
|
|
26
|
+
"""
|
|
27
|
+
Surcharges are arbitrary modifications to the Order total which are neither
|
|
28
|
+
ProductVariants nor discounts resulting from applied Promotions. For example,
|
|
29
|
+
one-off discounts based on customer interaction, or surcharges based on payment
|
|
30
|
+
methods.
|
|
31
|
+
"""
|
|
32
|
+
surcharges: [Surcharge!]!
|
|
33
|
+
discounts: [Discount!]!
|
|
34
|
+
"An array of all coupon codes applied to the Order"
|
|
35
|
+
couponCodes: [String!]!
|
|
36
|
+
"Promotions applied to the order. Only gets populated after the payment process has completed."
|
|
37
|
+
promotions: [Promotion!]!
|
|
38
|
+
payments: [Payment!]
|
|
39
|
+
fulfillments: [Fulfillment!]
|
|
40
|
+
totalQuantity: Int!
|
|
41
|
+
"""
|
|
42
|
+
The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
|
|
43
|
+
discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine.
|
|
44
|
+
To get a total of all OrderLines which does not account for prorated discounts, use the
|
|
45
|
+
sum of `OrderLine.discountedLinePrice` values.
|
|
46
|
+
"""
|
|
47
|
+
subTotal: Money!
|
|
48
|
+
"Same as subTotal, but inclusive of tax"
|
|
49
|
+
subTotalWithTax: Money!
|
|
50
|
+
currencyCode: CurrencyCode!
|
|
51
|
+
shippingLines: [ShippingLine!]!
|
|
52
|
+
shipping: Money!
|
|
53
|
+
shippingWithTax: Money!
|
|
54
|
+
"""
|
|
55
|
+
Equal to subTotal plus shipping
|
|
56
|
+
"""
|
|
57
|
+
total: Money!
|
|
58
|
+
"""
|
|
59
|
+
The final payable amount. Equal to subTotalWithTax plus shippingWithTax
|
|
60
|
+
"""
|
|
61
|
+
totalWithTax: Money!
|
|
62
|
+
"""
|
|
63
|
+
A summary of the taxes being applied to this Order
|
|
64
|
+
"""
|
|
65
|
+
taxSummary: [OrderTaxSummary!]!
|
|
66
|
+
history(options: HistoryEntryListOptions): HistoryEntryList!
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
"""
|
|
70
|
+
A summary of the taxes being applied to this order, grouped
|
|
71
|
+
by taxRate.
|
|
72
|
+
"""
|
|
73
|
+
type OrderTaxSummary {
|
|
74
|
+
"A description of this tax"
|
|
75
|
+
description: String!
|
|
76
|
+
"The taxRate as a percentage"
|
|
77
|
+
taxRate: Float!
|
|
78
|
+
"The total net price of OrderLines to which this taxRate applies"
|
|
79
|
+
taxBase: Money!
|
|
80
|
+
"The total tax being applied to the Order at this taxRate"
|
|
81
|
+
taxTotal: Money!
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type OrderAddress {
|
|
85
|
+
fullName: String
|
|
86
|
+
company: String
|
|
87
|
+
streetLine1: String
|
|
88
|
+
streetLine2: String
|
|
89
|
+
city: String
|
|
90
|
+
province: String
|
|
91
|
+
postalCode: String
|
|
92
|
+
country: String
|
|
93
|
+
countryCode: String
|
|
94
|
+
phoneNumber: String
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
type OrderList implements PaginatedList {
|
|
98
|
+
items: [Order!]!
|
|
99
|
+
totalItems: Int!
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type ShippingLine {
|
|
103
|
+
id: ID!
|
|
104
|
+
shippingMethod: ShippingMethod!
|
|
105
|
+
price: Money!
|
|
106
|
+
priceWithTax: Money!
|
|
107
|
+
discountedPrice: Money!
|
|
108
|
+
discountedPriceWithTax: Money!
|
|
109
|
+
discounts: [Discount!]!
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type Discount {
|
|
113
|
+
adjustmentSource: String!
|
|
114
|
+
type: AdjustmentType!
|
|
115
|
+
description: String!
|
|
116
|
+
amount: Money!
|
|
117
|
+
amountWithTax: Money!
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
type OrderLine implements Node {
|
|
121
|
+
id: ID!
|
|
122
|
+
createdAt: DateTime!
|
|
123
|
+
updatedAt: DateTime!
|
|
124
|
+
productVariant: ProductVariant!
|
|
125
|
+
featuredAsset: Asset
|
|
126
|
+
"The price of a single unit, excluding tax and discounts"
|
|
127
|
+
unitPrice: Money!
|
|
128
|
+
"The price of a single unit, including tax but excluding discounts"
|
|
129
|
+
unitPriceWithTax: Money!
|
|
130
|
+
"""
|
|
131
|
+
Non-zero if the unitPrice has changed since it was initially added to Order
|
|
132
|
+
"""
|
|
133
|
+
unitPriceChangeSinceAdded: Money!
|
|
134
|
+
"""
|
|
135
|
+
Non-zero if the unitPriceWithTax has changed since it was initially added to Order
|
|
136
|
+
"""
|
|
137
|
+
unitPriceWithTaxChangeSinceAdded: Money!
|
|
138
|
+
"""
|
|
139
|
+
The price of a single unit including discounts, excluding tax.
|
|
140
|
+
|
|
141
|
+
If Order-level discounts have been applied, this will not be the
|
|
142
|
+
actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
143
|
+
correct price to display to customers to avoid confusion
|
|
144
|
+
about the internal handling of distributed Order-level discounts.
|
|
145
|
+
"""
|
|
146
|
+
discountedUnitPrice: Money!
|
|
147
|
+
"The price of a single unit including discounts and tax"
|
|
148
|
+
discountedUnitPriceWithTax: Money!
|
|
149
|
+
"""
|
|
150
|
+
The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
151
|
+
Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
152
|
+
and refund calculations.
|
|
153
|
+
"""
|
|
154
|
+
proratedUnitPrice: Money!
|
|
155
|
+
"The proratedUnitPrice including tax"
|
|
156
|
+
proratedUnitPriceWithTax: Money!
|
|
157
|
+
"The quantity of items purchased"
|
|
158
|
+
quantity: Int!
|
|
159
|
+
"The quantity at the time the Order was placed"
|
|
160
|
+
orderPlacedQuantity: Int!
|
|
161
|
+
taxRate: Float!
|
|
162
|
+
"""
|
|
163
|
+
The total price of the line excluding tax and discounts.
|
|
164
|
+
"""
|
|
165
|
+
linePrice: Money!
|
|
166
|
+
"""
|
|
167
|
+
The total price of the line including tax but excluding discounts.
|
|
168
|
+
"""
|
|
169
|
+
linePriceWithTax: Money!
|
|
170
|
+
"The price of the line including discounts, excluding tax"
|
|
171
|
+
discountedLinePrice: Money!
|
|
172
|
+
"The price of the line including discounts and tax"
|
|
173
|
+
discountedLinePriceWithTax: Money!
|
|
174
|
+
"""
|
|
175
|
+
The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
176
|
+
Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
177
|
+
and refund calculations.
|
|
178
|
+
"""
|
|
179
|
+
proratedLinePrice: Money!
|
|
180
|
+
"The proratedLinePrice including tax"
|
|
181
|
+
proratedLinePriceWithTax: Money!
|
|
182
|
+
"The total tax on this line"
|
|
183
|
+
lineTax: Money!
|
|
184
|
+
discounts: [Discount!]!
|
|
185
|
+
taxLines: [TaxLine!]!
|
|
186
|
+
order: Order!
|
|
187
|
+
fulfillmentLines: [FulfillmentLine!]
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
type Payment implements Node {
|
|
191
|
+
id: ID!
|
|
192
|
+
createdAt: DateTime!
|
|
193
|
+
updatedAt: DateTime!
|
|
194
|
+
method: String!
|
|
195
|
+
amount: Money!
|
|
196
|
+
state: String!
|
|
197
|
+
transactionId: String
|
|
198
|
+
errorMessage: String
|
|
199
|
+
refunds: [Refund!]!
|
|
200
|
+
metadata: JSON
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
type RefundLine {
|
|
204
|
+
orderLine: OrderLine!
|
|
205
|
+
orderLineId: ID!
|
|
206
|
+
quantity: Int!
|
|
207
|
+
refund: Refund!
|
|
208
|
+
refundId: ID!
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type Refund implements Node {
|
|
212
|
+
id: ID!
|
|
213
|
+
createdAt: DateTime!
|
|
214
|
+
updatedAt: DateTime!
|
|
215
|
+
items: Money!
|
|
216
|
+
shipping: Money!
|
|
217
|
+
adjustment: Money!
|
|
218
|
+
total: Money!
|
|
219
|
+
method: String
|
|
220
|
+
state: String!
|
|
221
|
+
transactionId: String
|
|
222
|
+
reason: String
|
|
223
|
+
lines: [RefundLine!]!
|
|
224
|
+
paymentId: ID!
|
|
225
|
+
metadata: JSON
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type FulfillmentLine {
|
|
229
|
+
orderLine: OrderLine!
|
|
230
|
+
orderLineId: ID!
|
|
231
|
+
quantity: Int!
|
|
232
|
+
fulfillment: Fulfillment!
|
|
233
|
+
fulfillmentId: ID!
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type Fulfillment implements Node {
|
|
237
|
+
id: ID!
|
|
238
|
+
createdAt: DateTime!
|
|
239
|
+
updatedAt: DateTime!
|
|
240
|
+
lines: [FulfillmentLine!]!
|
|
241
|
+
summary: [FulfillmentLine!]! @deprecated(reason: "Use the `lines` field instead")
|
|
242
|
+
state: String!
|
|
243
|
+
method: String!
|
|
244
|
+
trackingCode: String
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
type Surcharge implements Node {
|
|
248
|
+
id: ID!
|
|
249
|
+
createdAt: DateTime!
|
|
250
|
+
updatedAt: DateTime!
|
|
251
|
+
description: String!
|
|
252
|
+
sku: String
|
|
253
|
+
taxLines: [TaxLine!]!
|
|
254
|
+
price: Money!
|
|
255
|
+
priceWithTax: Money!
|
|
256
|
+
taxRate: Float!
|
|
257
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
type PaymentMethod implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
name: String!
|
|
6
|
-
code: String!
|
|
7
|
-
description: String!
|
|
8
|
-
enabled: Boolean!
|
|
9
|
-
checker: ConfigurableOperation
|
|
10
|
-
handler: ConfigurableOperation!
|
|
11
|
-
translations: [PaymentMethodTranslation!]!
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type PaymentMethodTranslation {
|
|
15
|
-
id: ID!
|
|
16
|
-
createdAt: DateTime!
|
|
17
|
-
updatedAt: DateTime!
|
|
18
|
-
languageCode: LanguageCode!
|
|
19
|
-
name: String!
|
|
20
|
-
description: String!
|
|
21
|
-
}
|
|
1
|
+
type PaymentMethod implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
name: String!
|
|
6
|
+
code: String!
|
|
7
|
+
description: String!
|
|
8
|
+
enabled: Boolean!
|
|
9
|
+
checker: ConfigurableOperation
|
|
10
|
+
handler: ConfigurableOperation!
|
|
11
|
+
translations: [PaymentMethodTranslation!]!
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type PaymentMethodTranslation {
|
|
15
|
+
id: ID!
|
|
16
|
+
createdAt: DateTime!
|
|
17
|
+
updatedAt: DateTime!
|
|
18
|
+
languageCode: LanguageCode!
|
|
19
|
+
name: String!
|
|
20
|
+
description: String!
|
|
21
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
type ProductOptionGroup implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
languageCode: LanguageCode!
|
|
6
|
-
code: String!
|
|
7
|
-
name: String!
|
|
8
|
-
options: [ProductOption!]!
|
|
9
|
-
translations: [ProductOptionGroupTranslation!]!
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type ProductOptionGroupTranslation {
|
|
13
|
-
id: ID!
|
|
14
|
-
createdAt: DateTime!
|
|
15
|
-
updatedAt: DateTime!
|
|
16
|
-
languageCode: LanguageCode!
|
|
17
|
-
name: String!
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type ProductOption implements Node {
|
|
21
|
-
id: ID!
|
|
22
|
-
createdAt: DateTime!
|
|
23
|
-
updatedAt: DateTime!
|
|
24
|
-
languageCode: LanguageCode!
|
|
25
|
-
code: String!
|
|
26
|
-
name: String!
|
|
27
|
-
groupId: ID!
|
|
28
|
-
group: ProductOptionGroup!
|
|
29
|
-
translations: [ProductOptionTranslation!]!
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
type ProductOptionTranslation {
|
|
33
|
-
id: ID!
|
|
34
|
-
createdAt: DateTime!
|
|
35
|
-
updatedAt: DateTime!
|
|
36
|
-
languageCode: LanguageCode!
|
|
37
|
-
name: String!
|
|
38
|
-
}
|
|
1
|
+
type ProductOptionGroup implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
languageCode: LanguageCode!
|
|
6
|
+
code: String!
|
|
7
|
+
name: String!
|
|
8
|
+
options: [ProductOption!]!
|
|
9
|
+
translations: [ProductOptionGroupTranslation!]!
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type ProductOptionGroupTranslation {
|
|
13
|
+
id: ID!
|
|
14
|
+
createdAt: DateTime!
|
|
15
|
+
updatedAt: DateTime!
|
|
16
|
+
languageCode: LanguageCode!
|
|
17
|
+
name: String!
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type ProductOption implements Node {
|
|
21
|
+
id: ID!
|
|
22
|
+
createdAt: DateTime!
|
|
23
|
+
updatedAt: DateTime!
|
|
24
|
+
languageCode: LanguageCode!
|
|
25
|
+
code: String!
|
|
26
|
+
name: String!
|
|
27
|
+
groupId: ID!
|
|
28
|
+
group: ProductOptionGroup!
|
|
29
|
+
translations: [ProductOptionTranslation!]!
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type ProductOptionTranslation {
|
|
33
|
+
id: ID!
|
|
34
|
+
createdAt: DateTime!
|
|
35
|
+
updatedAt: DateTime!
|
|
36
|
+
languageCode: LanguageCode!
|
|
37
|
+
name: String!
|
|
38
|
+
}
|