@tonytang99/integration-canonical 1.0.0 → 1.1.0

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.
Files changed (38) hide show
  1. package/README.md +414 -1
  2. package/dist/index.d.ts +5 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +80 -15
  5. package/dist/index.js.map +1 -1
  6. package/dist/schemas/customer.d.ts +746 -0
  7. package/dist/schemas/customer.d.ts.map +1 -0
  8. package/dist/schemas/customer.js +282 -0
  9. package/dist/schemas/customer.js.map +1 -0
  10. package/dist/schemas/index.d.ts +13 -0
  11. package/dist/schemas/index.d.ts.map +1 -0
  12. package/dist/schemas/index.js +33 -0
  13. package/dist/schemas/index.js.map +1 -0
  14. package/dist/schemas/inventory.d.ts +1642 -0
  15. package/dist/schemas/inventory.d.ts.map +1 -0
  16. package/dist/schemas/inventory.js +302 -0
  17. package/dist/schemas/inventory.js.map +1 -0
  18. package/dist/schemas/order.d.ts +1339 -0
  19. package/dist/schemas/order.d.ts.map +1 -0
  20. package/dist/schemas/order.js +310 -0
  21. package/dist/schemas/order.js.map +1 -0
  22. package/dist/schemas/product.d.ts +717 -0
  23. package/dist/schemas/product.d.ts.map +1 -0
  24. package/dist/schemas/product.js +303 -0
  25. package/dist/schemas/product.js.map +1 -0
  26. package/dist/slots.d.ts +572 -0
  27. package/dist/slots.d.ts.map +1 -0
  28. package/dist/slots.js +20 -0
  29. package/dist/slots.js.map +1 -0
  30. package/dist/types/common.d.ts +284 -0
  31. package/dist/types/common.d.ts.map +1 -0
  32. package/dist/types/common.js +401 -0
  33. package/dist/types/common.js.map +1 -0
  34. package/dist/types/enrichments.d.ts +378 -0
  35. package/dist/types/enrichments.d.ts.map +1 -0
  36. package/dist/types/enrichments.js +96 -0
  37. package/dist/types/enrichments.js.map +1 -0
  38. package/package.json +2 -1
@@ -0,0 +1,1339 @@
1
+ import { z } from 'zod';
2
+ import { type Money } from '../types/common';
3
+ export declare const OrderLineItemSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ productId: z.ZodString;
6
+ sku: z.ZodString;
7
+ name: z.ZodString;
8
+ quantity: z.ZodNumber;
9
+ unitPrice: z.ZodObject<{
10
+ amount: z.ZodNumber;
11
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ amount: number;
14
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
15
+ }, {
16
+ amount: number;
17
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
18
+ }>;
19
+ totalPrice: z.ZodObject<{
20
+ amount: z.ZodNumber;
21
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ amount: number;
24
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
25
+ }, {
26
+ amount: number;
27
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
28
+ }>;
29
+ taxAmount: z.ZodOptional<z.ZodObject<{
30
+ amount: z.ZodNumber;
31
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ amount: number;
34
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
35
+ }, {
36
+ amount: number;
37
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
38
+ }>>;
39
+ discountAmount: z.ZodOptional<z.ZodObject<{
40
+ amount: z.ZodNumber;
41
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ amount: number;
44
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
45
+ }, {
46
+ amount: number;
47
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
48
+ }>>;
49
+ variantId: z.ZodOptional<z.ZodString>;
50
+ variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51
+ weight: z.ZodOptional<z.ZodObject<{
52
+ value: z.ZodNumber;
53
+ unit: z.ZodEnum<["kg", "g", "lb", "oz"]>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ value: number;
56
+ unit: "g" | "kg" | "oz" | "lb";
57
+ }, {
58
+ value: number;
59
+ unit: "g" | "kg" | "oz" | "lb";
60
+ }>>;
61
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["unfulfilled", "fulfilled", "partially_fulfilled"]>>;
62
+ quantityFulfilled: z.ZodOptional<z.ZodNumber>;
63
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ id: string;
66
+ sku: string;
67
+ name: string;
68
+ quantity: number;
69
+ productId: string;
70
+ unitPrice: {
71
+ amount: number;
72
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
73
+ };
74
+ totalPrice: {
75
+ amount: number;
76
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
77
+ };
78
+ weight?: {
79
+ value: number;
80
+ unit: "g" | "kg" | "oz" | "lb";
81
+ } | undefined;
82
+ customFields?: Record<string, unknown> | undefined;
83
+ taxAmount?: {
84
+ amount: number;
85
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
86
+ } | undefined;
87
+ discountAmount?: {
88
+ amount: number;
89
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
90
+ } | undefined;
91
+ variantId?: string | undefined;
92
+ variantOptions?: Record<string, string> | undefined;
93
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
94
+ quantityFulfilled?: number | undefined;
95
+ }, {
96
+ id: string;
97
+ sku: string;
98
+ name: string;
99
+ quantity: number;
100
+ productId: string;
101
+ unitPrice: {
102
+ amount: number;
103
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
104
+ };
105
+ totalPrice: {
106
+ amount: number;
107
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
108
+ };
109
+ weight?: {
110
+ value: number;
111
+ unit: "g" | "kg" | "oz" | "lb";
112
+ } | undefined;
113
+ customFields?: Record<string, unknown> | undefined;
114
+ taxAmount?: {
115
+ amount: number;
116
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
117
+ } | undefined;
118
+ discountAmount?: {
119
+ amount: number;
120
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
121
+ } | undefined;
122
+ variantId?: string | undefined;
123
+ variantOptions?: Record<string, string> | undefined;
124
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
125
+ quantityFulfilled?: number | undefined;
126
+ }>;
127
+ export type OrderLineItem = z.infer<typeof OrderLineItemSchema>;
128
+ export declare const ShippingMethodSchema: z.ZodObject<{
129
+ id: z.ZodString;
130
+ name: z.ZodString;
131
+ code: z.ZodOptional<z.ZodString>;
132
+ cost: z.ZodObject<{
133
+ amount: z.ZodNumber;
134
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ amount: number;
137
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
138
+ }, {
139
+ amount: number;
140
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
141
+ }>;
142
+ carrier: z.ZodOptional<z.ZodString>;
143
+ service: z.ZodOptional<z.ZodString>;
144
+ estimatedDelivery: z.ZodOptional<z.ZodString>;
145
+ trackingNumber: z.ZodOptional<z.ZodString>;
146
+ trackingUrl: z.ZodOptional<z.ZodString>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ id: string;
149
+ name: string;
150
+ cost: {
151
+ amount: number;
152
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
153
+ };
154
+ code?: string | undefined;
155
+ carrier?: string | undefined;
156
+ service?: string | undefined;
157
+ estimatedDelivery?: string | undefined;
158
+ trackingNumber?: string | undefined;
159
+ trackingUrl?: string | undefined;
160
+ }, {
161
+ id: string;
162
+ name: string;
163
+ cost: {
164
+ amount: number;
165
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
166
+ };
167
+ code?: string | undefined;
168
+ carrier?: string | undefined;
169
+ service?: string | undefined;
170
+ estimatedDelivery?: string | undefined;
171
+ trackingNumber?: string | undefined;
172
+ trackingUrl?: string | undefined;
173
+ }>;
174
+ export type ShippingMethod = z.infer<typeof ShippingMethodSchema>;
175
+ export declare const PaymentMethodSchema: z.ZodObject<{
176
+ method: z.ZodString;
177
+ gateway: z.ZodOptional<z.ZodString>;
178
+ transactionId: z.ZodOptional<z.ZodString>;
179
+ lastFour: z.ZodOptional<z.ZodString>;
180
+ brand: z.ZodOptional<z.ZodString>;
181
+ expiryMonth: z.ZodOptional<z.ZodNumber>;
182
+ expiryYear: z.ZodOptional<z.ZodNumber>;
183
+ amount: z.ZodOptional<z.ZodObject<{
184
+ amount: z.ZodNumber;
185
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ amount: number;
188
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
189
+ }, {
190
+ amount: number;
191
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
192
+ }>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ method: string;
195
+ amount?: {
196
+ amount: number;
197
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
198
+ } | undefined;
199
+ brand?: string | undefined;
200
+ gateway?: string | undefined;
201
+ transactionId?: string | undefined;
202
+ lastFour?: string | undefined;
203
+ expiryMonth?: number | undefined;
204
+ expiryYear?: number | undefined;
205
+ }, {
206
+ method: string;
207
+ amount?: {
208
+ amount: number;
209
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
210
+ } | undefined;
211
+ brand?: string | undefined;
212
+ gateway?: string | undefined;
213
+ transactionId?: string | undefined;
214
+ lastFour?: string | undefined;
215
+ expiryMonth?: number | undefined;
216
+ expiryYear?: number | undefined;
217
+ }>;
218
+ export type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
219
+ export declare const OrderDiscountSchema: z.ZodObject<{
220
+ code: z.ZodOptional<z.ZodString>;
221
+ type: z.ZodEnum<["percentage", "fixed_amount", "free_shipping"]>;
222
+ amount: z.ZodObject<{
223
+ amount: z.ZodNumber;
224
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ amount: number;
227
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
228
+ }, {
229
+ amount: number;
230
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
231
+ }>;
232
+ description: z.ZodOptional<z.ZodString>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ type: "percentage" | "fixed_amount" | "free_shipping";
235
+ amount: {
236
+ amount: number;
237
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
238
+ };
239
+ code?: string | undefined;
240
+ description?: string | undefined;
241
+ }, {
242
+ type: "percentage" | "fixed_amount" | "free_shipping";
243
+ amount: {
244
+ amount: number;
245
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
246
+ };
247
+ code?: string | undefined;
248
+ description?: string | undefined;
249
+ }>;
250
+ export type OrderDiscount = z.infer<typeof OrderDiscountSchema>;
251
+ export declare const TaxLineSchema: z.ZodObject<{
252
+ name: z.ZodString;
253
+ rate: z.ZodNumber;
254
+ amount: z.ZodObject<{
255
+ amount: z.ZodNumber;
256
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ amount: number;
259
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
260
+ }, {
261
+ amount: number;
262
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
263
+ }>;
264
+ jurisdiction: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ amount: {
267
+ amount: number;
268
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
269
+ };
270
+ name: string;
271
+ rate: number;
272
+ jurisdiction?: string | undefined;
273
+ }, {
274
+ amount: {
275
+ amount: number;
276
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
277
+ };
278
+ name: string;
279
+ rate: number;
280
+ jurisdiction?: string | undefined;
281
+ }>;
282
+ export type TaxLine = z.infer<typeof TaxLineSchema>;
283
+ export declare const OrderCustomerSchema: z.ZodObject<{
284
+ id: z.ZodOptional<z.ZodString>;
285
+ email: z.ZodString;
286
+ firstName: z.ZodString;
287
+ lastName: z.ZodString;
288
+ company: z.ZodOptional<z.ZodString>;
289
+ phone: z.ZodOptional<z.ZodString>;
290
+ isGuest: z.ZodOptional<z.ZodBoolean>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ firstName: string;
293
+ lastName: string;
294
+ email: string;
295
+ company?: string | undefined;
296
+ phone?: string | undefined;
297
+ id?: string | undefined;
298
+ isGuest?: boolean | undefined;
299
+ }, {
300
+ firstName: string;
301
+ lastName: string;
302
+ email: string;
303
+ company?: string | undefined;
304
+ phone?: string | undefined;
305
+ id?: string | undefined;
306
+ isGuest?: boolean | undefined;
307
+ }>;
308
+ export type OrderCustomer = z.infer<typeof OrderCustomerSchema>;
309
+ /**
310
+ * Order status lifecycle:
311
+ * pending → processing → shipped → delivered
312
+ * ↘ cancelled
313
+ * ↘ refunded (after processing)
314
+ */
315
+ export declare const OrderStatus: z.ZodEnum<["pending", "processing", "shipped", "delivered", "cancelled", "refunded", "on_hold", "failed"]>;
316
+ export type OrderStatus = z.infer<typeof OrderStatus>;
317
+ export declare const PaymentStatus: z.ZodEnum<["pending", "authorized", "paid", "partially_paid", "refunded", "partially_refunded", "failed", "voided"]>;
318
+ export type PaymentStatus = z.infer<typeof PaymentStatus>;
319
+ export declare const FulfillmentStatus: z.ZodEnum<["unfulfilled", "partially_fulfilled", "fulfilled", "restocked"]>;
320
+ export type FulfillmentStatus = z.infer<typeof FulfillmentStatus>;
321
+ export declare const CanonicalOrderSchema: z.ZodObject<{
322
+ id: z.ZodString;
323
+ orderNumber: z.ZodString;
324
+ customer: z.ZodObject<{
325
+ id: z.ZodOptional<z.ZodString>;
326
+ email: z.ZodString;
327
+ firstName: z.ZodString;
328
+ lastName: z.ZodString;
329
+ company: z.ZodOptional<z.ZodString>;
330
+ phone: z.ZodOptional<z.ZodString>;
331
+ isGuest: z.ZodOptional<z.ZodBoolean>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ firstName: string;
334
+ lastName: string;
335
+ email: string;
336
+ company?: string | undefined;
337
+ phone?: string | undefined;
338
+ id?: string | undefined;
339
+ isGuest?: boolean | undefined;
340
+ }, {
341
+ firstName: string;
342
+ lastName: string;
343
+ email: string;
344
+ company?: string | undefined;
345
+ phone?: string | undefined;
346
+ id?: string | undefined;
347
+ isGuest?: boolean | undefined;
348
+ }>;
349
+ billingAddress: z.ZodObject<{
350
+ street1: z.ZodString;
351
+ street2: z.ZodOptional<z.ZodString>;
352
+ street3: z.ZodOptional<z.ZodString>;
353
+ city: z.ZodString;
354
+ state: z.ZodOptional<z.ZodString>;
355
+ stateCode: z.ZodOptional<z.ZodString>;
356
+ postalCode: z.ZodString;
357
+ country: z.ZodString;
358
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
359
+ company: z.ZodOptional<z.ZodString>;
360
+ firstName: z.ZodOptional<z.ZodString>;
361
+ lastName: z.ZodOptional<z.ZodString>;
362
+ phone: z.ZodOptional<z.ZodString>;
363
+ email: z.ZodOptional<z.ZodString>;
364
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
365
+ isDefault: z.ZodOptional<z.ZodBoolean>;
366
+ isResidential: z.ZodOptional<z.ZodBoolean>;
367
+ isValidated: z.ZodOptional<z.ZodBoolean>;
368
+ validationSource: z.ZodOptional<z.ZodString>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ street1: string;
371
+ city: string;
372
+ postalCode: string;
373
+ country: string;
374
+ type?: "billing" | "shipping" | "both" | undefined;
375
+ street2?: string | undefined;
376
+ street3?: string | undefined;
377
+ state?: string | undefined;
378
+ stateCode?: string | undefined;
379
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
380
+ company?: string | undefined;
381
+ firstName?: string | undefined;
382
+ lastName?: string | undefined;
383
+ phone?: string | undefined;
384
+ email?: string | undefined;
385
+ isDefault?: boolean | undefined;
386
+ isResidential?: boolean | undefined;
387
+ isValidated?: boolean | undefined;
388
+ validationSource?: string | undefined;
389
+ }, {
390
+ street1: string;
391
+ city: string;
392
+ postalCode: string;
393
+ country: string;
394
+ type?: "billing" | "shipping" | "both" | undefined;
395
+ street2?: string | undefined;
396
+ street3?: string | undefined;
397
+ state?: string | undefined;
398
+ stateCode?: string | undefined;
399
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
400
+ company?: string | undefined;
401
+ firstName?: string | undefined;
402
+ lastName?: string | undefined;
403
+ phone?: string | undefined;
404
+ email?: string | undefined;
405
+ isDefault?: boolean | undefined;
406
+ isResidential?: boolean | undefined;
407
+ isValidated?: boolean | undefined;
408
+ validationSource?: string | undefined;
409
+ }>;
410
+ shippingAddress: z.ZodObject<{
411
+ street1: z.ZodString;
412
+ street2: z.ZodOptional<z.ZodString>;
413
+ street3: z.ZodOptional<z.ZodString>;
414
+ city: z.ZodString;
415
+ state: z.ZodOptional<z.ZodString>;
416
+ stateCode: z.ZodOptional<z.ZodString>;
417
+ postalCode: z.ZodString;
418
+ country: z.ZodString;
419
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
420
+ company: z.ZodOptional<z.ZodString>;
421
+ firstName: z.ZodOptional<z.ZodString>;
422
+ lastName: z.ZodOptional<z.ZodString>;
423
+ phone: z.ZodOptional<z.ZodString>;
424
+ email: z.ZodOptional<z.ZodString>;
425
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
426
+ isDefault: z.ZodOptional<z.ZodBoolean>;
427
+ isResidential: z.ZodOptional<z.ZodBoolean>;
428
+ isValidated: z.ZodOptional<z.ZodBoolean>;
429
+ validationSource: z.ZodOptional<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ street1: string;
432
+ city: string;
433
+ postalCode: string;
434
+ country: string;
435
+ type?: "billing" | "shipping" | "both" | undefined;
436
+ street2?: string | undefined;
437
+ street3?: string | undefined;
438
+ state?: string | undefined;
439
+ stateCode?: string | undefined;
440
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
441
+ company?: string | undefined;
442
+ firstName?: string | undefined;
443
+ lastName?: string | undefined;
444
+ phone?: string | undefined;
445
+ email?: string | undefined;
446
+ isDefault?: boolean | undefined;
447
+ isResidential?: boolean | undefined;
448
+ isValidated?: boolean | undefined;
449
+ validationSource?: string | undefined;
450
+ }, {
451
+ street1: string;
452
+ city: string;
453
+ postalCode: string;
454
+ country: string;
455
+ type?: "billing" | "shipping" | "both" | undefined;
456
+ street2?: string | undefined;
457
+ street3?: string | undefined;
458
+ state?: string | undefined;
459
+ stateCode?: string | undefined;
460
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
461
+ company?: string | undefined;
462
+ firstName?: string | undefined;
463
+ lastName?: string | undefined;
464
+ phone?: string | undefined;
465
+ email?: string | undefined;
466
+ isDefault?: boolean | undefined;
467
+ isResidential?: boolean | undefined;
468
+ isValidated?: boolean | undefined;
469
+ validationSource?: string | undefined;
470
+ }>;
471
+ lineItems: z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ productId: z.ZodString;
474
+ sku: z.ZodString;
475
+ name: z.ZodString;
476
+ quantity: z.ZodNumber;
477
+ unitPrice: z.ZodObject<{
478
+ amount: z.ZodNumber;
479
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ amount: number;
482
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
483
+ }, {
484
+ amount: number;
485
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
486
+ }>;
487
+ totalPrice: z.ZodObject<{
488
+ amount: z.ZodNumber;
489
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ amount: number;
492
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
493
+ }, {
494
+ amount: number;
495
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
496
+ }>;
497
+ taxAmount: z.ZodOptional<z.ZodObject<{
498
+ amount: z.ZodNumber;
499
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ amount: number;
502
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
503
+ }, {
504
+ amount: number;
505
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
506
+ }>>;
507
+ discountAmount: z.ZodOptional<z.ZodObject<{
508
+ amount: z.ZodNumber;
509
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ amount: number;
512
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
513
+ }, {
514
+ amount: number;
515
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
516
+ }>>;
517
+ variantId: z.ZodOptional<z.ZodString>;
518
+ variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
519
+ weight: z.ZodOptional<z.ZodObject<{
520
+ value: z.ZodNumber;
521
+ unit: z.ZodEnum<["kg", "g", "lb", "oz"]>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ value: number;
524
+ unit: "g" | "kg" | "oz" | "lb";
525
+ }, {
526
+ value: number;
527
+ unit: "g" | "kg" | "oz" | "lb";
528
+ }>>;
529
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["unfulfilled", "fulfilled", "partially_fulfilled"]>>;
530
+ quantityFulfilled: z.ZodOptional<z.ZodNumber>;
531
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ id: string;
534
+ sku: string;
535
+ name: string;
536
+ quantity: number;
537
+ productId: string;
538
+ unitPrice: {
539
+ amount: number;
540
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
541
+ };
542
+ totalPrice: {
543
+ amount: number;
544
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
545
+ };
546
+ weight?: {
547
+ value: number;
548
+ unit: "g" | "kg" | "oz" | "lb";
549
+ } | undefined;
550
+ customFields?: Record<string, unknown> | undefined;
551
+ taxAmount?: {
552
+ amount: number;
553
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
554
+ } | undefined;
555
+ discountAmount?: {
556
+ amount: number;
557
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
558
+ } | undefined;
559
+ variantId?: string | undefined;
560
+ variantOptions?: Record<string, string> | undefined;
561
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
562
+ quantityFulfilled?: number | undefined;
563
+ }, {
564
+ id: string;
565
+ sku: string;
566
+ name: string;
567
+ quantity: number;
568
+ productId: string;
569
+ unitPrice: {
570
+ amount: number;
571
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
572
+ };
573
+ totalPrice: {
574
+ amount: number;
575
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
576
+ };
577
+ weight?: {
578
+ value: number;
579
+ unit: "g" | "kg" | "oz" | "lb";
580
+ } | undefined;
581
+ customFields?: Record<string, unknown> | undefined;
582
+ taxAmount?: {
583
+ amount: number;
584
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
585
+ } | undefined;
586
+ discountAmount?: {
587
+ amount: number;
588
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
589
+ } | undefined;
590
+ variantId?: string | undefined;
591
+ variantOptions?: Record<string, string> | undefined;
592
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
593
+ quantityFulfilled?: number | undefined;
594
+ }>, "many">;
595
+ totals: z.ZodObject<{
596
+ subtotal: z.ZodObject<{
597
+ amount: z.ZodNumber;
598
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ amount: number;
601
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
602
+ }, {
603
+ amount: number;
604
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
605
+ }>;
606
+ taxTotal: z.ZodObject<{
607
+ amount: z.ZodNumber;
608
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ amount: number;
611
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
612
+ }, {
613
+ amount: number;
614
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
615
+ }>;
616
+ shippingTotal: z.ZodObject<{
617
+ amount: z.ZodNumber;
618
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ amount: number;
621
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
622
+ }, {
623
+ amount: number;
624
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
625
+ }>;
626
+ discountTotal: z.ZodObject<{
627
+ amount: z.ZodNumber;
628
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ amount: number;
631
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
632
+ }, {
633
+ amount: number;
634
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
635
+ }>;
636
+ total: z.ZodObject<{
637
+ amount: z.ZodNumber;
638
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ amount: number;
641
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
642
+ }, {
643
+ amount: number;
644
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
645
+ }>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ subtotal: {
648
+ amount: number;
649
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
650
+ };
651
+ taxTotal: {
652
+ amount: number;
653
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
654
+ };
655
+ shippingTotal: {
656
+ amount: number;
657
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
658
+ };
659
+ discountTotal: {
660
+ amount: number;
661
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
662
+ };
663
+ total: {
664
+ amount: number;
665
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
666
+ };
667
+ }, {
668
+ subtotal: {
669
+ amount: number;
670
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
671
+ };
672
+ taxTotal: {
673
+ amount: number;
674
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
675
+ };
676
+ shippingTotal: {
677
+ amount: number;
678
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
679
+ };
680
+ discountTotal: {
681
+ amount: number;
682
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
683
+ };
684
+ total: {
685
+ amount: number;
686
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
687
+ };
688
+ }>;
689
+ taxLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
690
+ name: z.ZodString;
691
+ rate: z.ZodNumber;
692
+ amount: z.ZodObject<{
693
+ amount: z.ZodNumber;
694
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ amount: number;
697
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
698
+ }, {
699
+ amount: number;
700
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
701
+ }>;
702
+ jurisdiction: z.ZodOptional<z.ZodString>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ amount: {
705
+ amount: number;
706
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
707
+ };
708
+ name: string;
709
+ rate: number;
710
+ jurisdiction?: string | undefined;
711
+ }, {
712
+ amount: {
713
+ amount: number;
714
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
715
+ };
716
+ name: string;
717
+ rate: number;
718
+ jurisdiction?: string | undefined;
719
+ }>, "many">>;
720
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
+ code: z.ZodOptional<z.ZodString>;
722
+ type: z.ZodEnum<["percentage", "fixed_amount", "free_shipping"]>;
723
+ amount: z.ZodObject<{
724
+ amount: z.ZodNumber;
725
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ amount: number;
728
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
729
+ }, {
730
+ amount: number;
731
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
732
+ }>;
733
+ description: z.ZodOptional<z.ZodString>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "percentage" | "fixed_amount" | "free_shipping";
736
+ amount: {
737
+ amount: number;
738
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
739
+ };
740
+ code?: string | undefined;
741
+ description?: string | undefined;
742
+ }, {
743
+ type: "percentage" | "fixed_amount" | "free_shipping";
744
+ amount: {
745
+ amount: number;
746
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
747
+ };
748
+ code?: string | undefined;
749
+ description?: string | undefined;
750
+ }>, "many">>;
751
+ shippingMethod: z.ZodOptional<z.ZodObject<{
752
+ id: z.ZodString;
753
+ name: z.ZodString;
754
+ code: z.ZodOptional<z.ZodString>;
755
+ cost: z.ZodObject<{
756
+ amount: z.ZodNumber;
757
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ amount: number;
760
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
761
+ }, {
762
+ amount: number;
763
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
764
+ }>;
765
+ carrier: z.ZodOptional<z.ZodString>;
766
+ service: z.ZodOptional<z.ZodString>;
767
+ estimatedDelivery: z.ZodOptional<z.ZodString>;
768
+ trackingNumber: z.ZodOptional<z.ZodString>;
769
+ trackingUrl: z.ZodOptional<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ id: string;
772
+ name: string;
773
+ cost: {
774
+ amount: number;
775
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
776
+ };
777
+ code?: string | undefined;
778
+ carrier?: string | undefined;
779
+ service?: string | undefined;
780
+ estimatedDelivery?: string | undefined;
781
+ trackingNumber?: string | undefined;
782
+ trackingUrl?: string | undefined;
783
+ }, {
784
+ id: string;
785
+ name: string;
786
+ cost: {
787
+ amount: number;
788
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
789
+ };
790
+ code?: string | undefined;
791
+ carrier?: string | undefined;
792
+ service?: string | undefined;
793
+ estimatedDelivery?: string | undefined;
794
+ trackingNumber?: string | undefined;
795
+ trackingUrl?: string | undefined;
796
+ }>>;
797
+ paymentMethods: z.ZodArray<z.ZodObject<{
798
+ method: z.ZodString;
799
+ gateway: z.ZodOptional<z.ZodString>;
800
+ transactionId: z.ZodOptional<z.ZodString>;
801
+ lastFour: z.ZodOptional<z.ZodString>;
802
+ brand: z.ZodOptional<z.ZodString>;
803
+ expiryMonth: z.ZodOptional<z.ZodNumber>;
804
+ expiryYear: z.ZodOptional<z.ZodNumber>;
805
+ amount: z.ZodOptional<z.ZodObject<{
806
+ amount: z.ZodNumber;
807
+ currency: z.ZodEnum<["USD", "EUR", "GBP", "AUD", "CAD", "NZD", "JPY", "CNY", "INR", "SGD", "HKD", "MXN", "BRL", "ZAR"]>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ amount: number;
810
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
811
+ }, {
812
+ amount: number;
813
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
814
+ }>>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ method: string;
817
+ amount?: {
818
+ amount: number;
819
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
820
+ } | undefined;
821
+ brand?: string | undefined;
822
+ gateway?: string | undefined;
823
+ transactionId?: string | undefined;
824
+ lastFour?: string | undefined;
825
+ expiryMonth?: number | undefined;
826
+ expiryYear?: number | undefined;
827
+ }, {
828
+ method: string;
829
+ amount?: {
830
+ amount: number;
831
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
832
+ } | undefined;
833
+ brand?: string | undefined;
834
+ gateway?: string | undefined;
835
+ transactionId?: string | undefined;
836
+ lastFour?: string | undefined;
837
+ expiryMonth?: number | undefined;
838
+ expiryYear?: number | undefined;
839
+ }>, "many">;
840
+ status: z.ZodEnum<["pending", "processing", "shipped", "delivered", "cancelled", "refunded", "on_hold", "failed"]>;
841
+ paymentStatus: z.ZodEnum<["pending", "authorized", "paid", "partially_paid", "refunded", "partially_refunded", "failed", "voided"]>;
842
+ fulfillmentStatus: z.ZodEnum<["unfulfilled", "partially_fulfilled", "fulfilled", "restocked"]>;
843
+ dates: z.ZodObject<{
844
+ createdAt: z.ZodString;
845
+ updatedAt: z.ZodString;
846
+ paidAt: z.ZodOptional<z.ZodString>;
847
+ shippedAt: z.ZodOptional<z.ZodString>;
848
+ deliveredAt: z.ZodOptional<z.ZodString>;
849
+ cancelledAt: z.ZodOptional<z.ZodString>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ createdAt: string;
852
+ updatedAt: string;
853
+ paidAt?: string | undefined;
854
+ shippedAt?: string | undefined;
855
+ deliveredAt?: string | undefined;
856
+ cancelledAt?: string | undefined;
857
+ }, {
858
+ createdAt: string;
859
+ updatedAt: string;
860
+ paidAt?: string | undefined;
861
+ shippedAt?: string | undefined;
862
+ deliveredAt?: string | undefined;
863
+ cancelledAt?: string | undefined;
864
+ }>;
865
+ notes: z.ZodOptional<z.ZodObject<{
866
+ customer: z.ZodOptional<z.ZodString>;
867
+ internal: z.ZodOptional<z.ZodString>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ customer?: string | undefined;
870
+ internal?: string | undefined;
871
+ }, {
872
+ customer?: string | undefined;
873
+ internal?: string | undefined;
874
+ }>>;
875
+ ipAddress: z.ZodOptional<z.ZodString>;
876
+ userAgent: z.ZodOptional<z.ZodString>;
877
+ referralSource: z.ZodOptional<z.ZodString>;
878
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
879
+ metadata: z.ZodObject<{
880
+ source: z.ZodString;
881
+ sourceId: z.ZodString;
882
+ externalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
883
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
884
+ isTest: z.ZodOptional<z.ZodBoolean>;
885
+ requiresShipping: z.ZodOptional<z.ZodBoolean>;
886
+ isGift: z.ZodOptional<z.ZodBoolean>;
887
+ giftMessage: z.ZodOptional<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ source: string;
890
+ sourceId: string;
891
+ requiresShipping?: boolean | undefined;
892
+ externalIds?: Record<string, string> | undefined;
893
+ tags?: string[] | undefined;
894
+ isTest?: boolean | undefined;
895
+ isGift?: boolean | undefined;
896
+ giftMessage?: string | undefined;
897
+ }, {
898
+ source: string;
899
+ sourceId: string;
900
+ requiresShipping?: boolean | undefined;
901
+ externalIds?: Record<string, string> | undefined;
902
+ tags?: string[] | undefined;
903
+ isTest?: boolean | undefined;
904
+ isGift?: boolean | undefined;
905
+ giftMessage?: string | undefined;
906
+ }>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ status: "pending" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded" | "on_hold" | "failed";
909
+ id: string;
910
+ metadata: {
911
+ source: string;
912
+ sourceId: string;
913
+ requiresShipping?: boolean | undefined;
914
+ externalIds?: Record<string, string> | undefined;
915
+ tags?: string[] | undefined;
916
+ isTest?: boolean | undefined;
917
+ isGift?: boolean | undefined;
918
+ giftMessage?: string | undefined;
919
+ };
920
+ fulfillmentStatus: "unfulfilled" | "fulfilled" | "partially_fulfilled" | "restocked";
921
+ orderNumber: string;
922
+ customer: {
923
+ firstName: string;
924
+ lastName: string;
925
+ email: string;
926
+ company?: string | undefined;
927
+ phone?: string | undefined;
928
+ id?: string | undefined;
929
+ isGuest?: boolean | undefined;
930
+ };
931
+ billingAddress: {
932
+ street1: string;
933
+ city: string;
934
+ postalCode: string;
935
+ country: string;
936
+ type?: "billing" | "shipping" | "both" | undefined;
937
+ street2?: string | undefined;
938
+ street3?: string | undefined;
939
+ state?: string | undefined;
940
+ stateCode?: string | undefined;
941
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
942
+ company?: string | undefined;
943
+ firstName?: string | undefined;
944
+ lastName?: string | undefined;
945
+ phone?: string | undefined;
946
+ email?: string | undefined;
947
+ isDefault?: boolean | undefined;
948
+ isResidential?: boolean | undefined;
949
+ isValidated?: boolean | undefined;
950
+ validationSource?: string | undefined;
951
+ };
952
+ shippingAddress: {
953
+ street1: string;
954
+ city: string;
955
+ postalCode: string;
956
+ country: string;
957
+ type?: "billing" | "shipping" | "both" | undefined;
958
+ street2?: string | undefined;
959
+ street3?: string | undefined;
960
+ state?: string | undefined;
961
+ stateCode?: string | undefined;
962
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
963
+ company?: string | undefined;
964
+ firstName?: string | undefined;
965
+ lastName?: string | undefined;
966
+ phone?: string | undefined;
967
+ email?: string | undefined;
968
+ isDefault?: boolean | undefined;
969
+ isResidential?: boolean | undefined;
970
+ isValidated?: boolean | undefined;
971
+ validationSource?: string | undefined;
972
+ };
973
+ lineItems: {
974
+ id: string;
975
+ sku: string;
976
+ name: string;
977
+ quantity: number;
978
+ productId: string;
979
+ unitPrice: {
980
+ amount: number;
981
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
982
+ };
983
+ totalPrice: {
984
+ amount: number;
985
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
986
+ };
987
+ weight?: {
988
+ value: number;
989
+ unit: "g" | "kg" | "oz" | "lb";
990
+ } | undefined;
991
+ customFields?: Record<string, unknown> | undefined;
992
+ taxAmount?: {
993
+ amount: number;
994
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
995
+ } | undefined;
996
+ discountAmount?: {
997
+ amount: number;
998
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
999
+ } | undefined;
1000
+ variantId?: string | undefined;
1001
+ variantOptions?: Record<string, string> | undefined;
1002
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
1003
+ quantityFulfilled?: number | undefined;
1004
+ }[];
1005
+ totals: {
1006
+ subtotal: {
1007
+ amount: number;
1008
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1009
+ };
1010
+ taxTotal: {
1011
+ amount: number;
1012
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1013
+ };
1014
+ shippingTotal: {
1015
+ amount: number;
1016
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1017
+ };
1018
+ discountTotal: {
1019
+ amount: number;
1020
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1021
+ };
1022
+ total: {
1023
+ amount: number;
1024
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1025
+ };
1026
+ };
1027
+ paymentMethods: {
1028
+ method: string;
1029
+ amount?: {
1030
+ amount: number;
1031
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1032
+ } | undefined;
1033
+ brand?: string | undefined;
1034
+ gateway?: string | undefined;
1035
+ transactionId?: string | undefined;
1036
+ lastFour?: string | undefined;
1037
+ expiryMonth?: number | undefined;
1038
+ expiryYear?: number | undefined;
1039
+ }[];
1040
+ paymentStatus: "pending" | "refunded" | "failed" | "authorized" | "paid" | "partially_paid" | "partially_refunded" | "voided";
1041
+ dates: {
1042
+ createdAt: string;
1043
+ updatedAt: string;
1044
+ paidAt?: string | undefined;
1045
+ shippedAt?: string | undefined;
1046
+ deliveredAt?: string | undefined;
1047
+ cancelledAt?: string | undefined;
1048
+ };
1049
+ customFields?: Record<string, unknown> | undefined;
1050
+ taxLines?: {
1051
+ amount: {
1052
+ amount: number;
1053
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1054
+ };
1055
+ name: string;
1056
+ rate: number;
1057
+ jurisdiction?: string | undefined;
1058
+ }[] | undefined;
1059
+ discounts?: {
1060
+ type: "percentage" | "fixed_amount" | "free_shipping";
1061
+ amount: {
1062
+ amount: number;
1063
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1064
+ };
1065
+ code?: string | undefined;
1066
+ description?: string | undefined;
1067
+ }[] | undefined;
1068
+ shippingMethod?: {
1069
+ id: string;
1070
+ name: string;
1071
+ cost: {
1072
+ amount: number;
1073
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1074
+ };
1075
+ code?: string | undefined;
1076
+ carrier?: string | undefined;
1077
+ service?: string | undefined;
1078
+ estimatedDelivery?: string | undefined;
1079
+ trackingNumber?: string | undefined;
1080
+ trackingUrl?: string | undefined;
1081
+ } | undefined;
1082
+ notes?: {
1083
+ customer?: string | undefined;
1084
+ internal?: string | undefined;
1085
+ } | undefined;
1086
+ ipAddress?: string | undefined;
1087
+ userAgent?: string | undefined;
1088
+ referralSource?: string | undefined;
1089
+ }, {
1090
+ status: "pending" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded" | "on_hold" | "failed";
1091
+ id: string;
1092
+ metadata: {
1093
+ source: string;
1094
+ sourceId: string;
1095
+ requiresShipping?: boolean | undefined;
1096
+ externalIds?: Record<string, string> | undefined;
1097
+ tags?: string[] | undefined;
1098
+ isTest?: boolean | undefined;
1099
+ isGift?: boolean | undefined;
1100
+ giftMessage?: string | undefined;
1101
+ };
1102
+ fulfillmentStatus: "unfulfilled" | "fulfilled" | "partially_fulfilled" | "restocked";
1103
+ orderNumber: string;
1104
+ customer: {
1105
+ firstName: string;
1106
+ lastName: string;
1107
+ email: string;
1108
+ company?: string | undefined;
1109
+ phone?: string | undefined;
1110
+ id?: string | undefined;
1111
+ isGuest?: boolean | undefined;
1112
+ };
1113
+ billingAddress: {
1114
+ street1: string;
1115
+ city: string;
1116
+ postalCode: string;
1117
+ country: string;
1118
+ type?: "billing" | "shipping" | "both" | undefined;
1119
+ street2?: string | undefined;
1120
+ street3?: string | undefined;
1121
+ state?: string | undefined;
1122
+ stateCode?: string | undefined;
1123
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1124
+ company?: string | undefined;
1125
+ firstName?: string | undefined;
1126
+ lastName?: string | undefined;
1127
+ phone?: string | undefined;
1128
+ email?: string | undefined;
1129
+ isDefault?: boolean | undefined;
1130
+ isResidential?: boolean | undefined;
1131
+ isValidated?: boolean | undefined;
1132
+ validationSource?: string | undefined;
1133
+ };
1134
+ shippingAddress: {
1135
+ street1: string;
1136
+ city: string;
1137
+ postalCode: string;
1138
+ country: string;
1139
+ type?: "billing" | "shipping" | "both" | undefined;
1140
+ street2?: string | undefined;
1141
+ street3?: string | undefined;
1142
+ state?: string | undefined;
1143
+ stateCode?: string | undefined;
1144
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1145
+ company?: string | undefined;
1146
+ firstName?: string | undefined;
1147
+ lastName?: string | undefined;
1148
+ phone?: string | undefined;
1149
+ email?: string | undefined;
1150
+ isDefault?: boolean | undefined;
1151
+ isResidential?: boolean | undefined;
1152
+ isValidated?: boolean | undefined;
1153
+ validationSource?: string | undefined;
1154
+ };
1155
+ lineItems: {
1156
+ id: string;
1157
+ sku: string;
1158
+ name: string;
1159
+ quantity: number;
1160
+ productId: string;
1161
+ unitPrice: {
1162
+ amount: number;
1163
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1164
+ };
1165
+ totalPrice: {
1166
+ amount: number;
1167
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1168
+ };
1169
+ weight?: {
1170
+ value: number;
1171
+ unit: "g" | "kg" | "oz" | "lb";
1172
+ } | undefined;
1173
+ customFields?: Record<string, unknown> | undefined;
1174
+ taxAmount?: {
1175
+ amount: number;
1176
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1177
+ } | undefined;
1178
+ discountAmount?: {
1179
+ amount: number;
1180
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1181
+ } | undefined;
1182
+ variantId?: string | undefined;
1183
+ variantOptions?: Record<string, string> | undefined;
1184
+ fulfillmentStatus?: "unfulfilled" | "fulfilled" | "partially_fulfilled" | undefined;
1185
+ quantityFulfilled?: number | undefined;
1186
+ }[];
1187
+ totals: {
1188
+ subtotal: {
1189
+ amount: number;
1190
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1191
+ };
1192
+ taxTotal: {
1193
+ amount: number;
1194
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1195
+ };
1196
+ shippingTotal: {
1197
+ amount: number;
1198
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1199
+ };
1200
+ discountTotal: {
1201
+ amount: number;
1202
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1203
+ };
1204
+ total: {
1205
+ amount: number;
1206
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1207
+ };
1208
+ };
1209
+ paymentMethods: {
1210
+ method: string;
1211
+ amount?: {
1212
+ amount: number;
1213
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1214
+ } | undefined;
1215
+ brand?: string | undefined;
1216
+ gateway?: string | undefined;
1217
+ transactionId?: string | undefined;
1218
+ lastFour?: string | undefined;
1219
+ expiryMonth?: number | undefined;
1220
+ expiryYear?: number | undefined;
1221
+ }[];
1222
+ paymentStatus: "pending" | "refunded" | "failed" | "authorized" | "paid" | "partially_paid" | "partially_refunded" | "voided";
1223
+ dates: {
1224
+ createdAt: string;
1225
+ updatedAt: string;
1226
+ paidAt?: string | undefined;
1227
+ shippedAt?: string | undefined;
1228
+ deliveredAt?: string | undefined;
1229
+ cancelledAt?: string | undefined;
1230
+ };
1231
+ customFields?: Record<string, unknown> | undefined;
1232
+ taxLines?: {
1233
+ amount: {
1234
+ amount: number;
1235
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1236
+ };
1237
+ name: string;
1238
+ rate: number;
1239
+ jurisdiction?: string | undefined;
1240
+ }[] | undefined;
1241
+ discounts?: {
1242
+ type: "percentage" | "fixed_amount" | "free_shipping";
1243
+ amount: {
1244
+ amount: number;
1245
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1246
+ };
1247
+ code?: string | undefined;
1248
+ description?: string | undefined;
1249
+ }[] | undefined;
1250
+ shippingMethod?: {
1251
+ id: string;
1252
+ name: string;
1253
+ cost: {
1254
+ amount: number;
1255
+ currency: "USD" | "EUR" | "GBP" | "AUD" | "CAD" | "NZD" | "JPY" | "CNY" | "INR" | "SGD" | "HKD" | "MXN" | "BRL" | "ZAR";
1256
+ };
1257
+ code?: string | undefined;
1258
+ carrier?: string | undefined;
1259
+ service?: string | undefined;
1260
+ estimatedDelivery?: string | undefined;
1261
+ trackingNumber?: string | undefined;
1262
+ trackingUrl?: string | undefined;
1263
+ } | undefined;
1264
+ notes?: {
1265
+ customer?: string | undefined;
1266
+ internal?: string | undefined;
1267
+ } | undefined;
1268
+ ipAddress?: string | undefined;
1269
+ userAgent?: string | undefined;
1270
+ referralSource?: string | undefined;
1271
+ }>;
1272
+ export type CanonicalOrder = z.infer<typeof CanonicalOrderSchema>;
1273
+ export declare const OrderHelper: {
1274
+ /**
1275
+ * Calculate total quantity of items in order
1276
+ */
1277
+ getTotalQuantity(order: CanonicalOrder): number;
1278
+ /**
1279
+ * Check if order is paid
1280
+ */
1281
+ isPaid(order: CanonicalOrder): boolean;
1282
+ /**
1283
+ * Check if order is fulfilled
1284
+ */
1285
+ isFulfilled(order: CanonicalOrder): boolean;
1286
+ /**
1287
+ * Check if order is complete (paid + fulfilled)
1288
+ */
1289
+ isComplete(order: CanonicalOrder): boolean;
1290
+ /**
1291
+ * Check if order can be cancelled
1292
+ */
1293
+ canBeCancelled(order: CanonicalOrder): boolean;
1294
+ /**
1295
+ * Check if order can be refunded
1296
+ */
1297
+ canBeRefunded(order: CanonicalOrder): boolean;
1298
+ /**
1299
+ * Get customer full name
1300
+ */
1301
+ getCustomerFullName(order: CanonicalOrder): string;
1302
+ /**
1303
+ * Get total tax rate
1304
+ */
1305
+ getTaxRate(order: CanonicalOrder): number;
1306
+ /**
1307
+ * Get discount percentage
1308
+ */
1309
+ getDiscountPercentage(order: CanonicalOrder): number;
1310
+ /**
1311
+ * Check if addresses are the same
1312
+ */
1313
+ hasSameShippingAndBilling(order: CanonicalOrder): boolean;
1314
+ /**
1315
+ * Get line item by SKU
1316
+ */
1317
+ getLineItemBySku(order: CanonicalOrder, sku: string): OrderLineItem | undefined;
1318
+ /**
1319
+ * Calculate average item price
1320
+ */
1321
+ getAverageItemPrice(order: CanonicalOrder): Money;
1322
+ /**
1323
+ * Get primary payment method
1324
+ */
1325
+ getPrimaryPaymentMethod(order: CanonicalOrder): PaymentMethod;
1326
+ /**
1327
+ * Check if order is a gift
1328
+ */
1329
+ isGift(order: CanonicalOrder): boolean;
1330
+ /**
1331
+ * Get days since order created
1332
+ */
1333
+ getDaysSinceCreated(order: CanonicalOrder): number;
1334
+ /**
1335
+ * Format order number for display
1336
+ */
1337
+ formatOrderNumber(order: CanonicalOrder): string;
1338
+ };
1339
+ //# sourceMappingURL=order.d.ts.map