@shophost/rest-api 2.0.36 → 2.0.38

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 (68) hide show
  1. package/package.json +1 -1
  2. package/src/core/hono/hono.d.ts +53 -11
  3. package/src/core/hono/hono.js +1 -1
  4. package/src/core/hono/hono.js.map +1 -1
  5. package/src/features/access/access.handler.js.map +1 -1
  6. package/src/features/access/access.route.d.ts +774 -10
  7. package/src/features/analytics/analytics.handler.js.map +1 -1
  8. package/src/features/analytics/analytics.route.d.ts +146 -1
  9. package/src/features/cart/cart.handler.js.map +1 -1
  10. package/src/features/cart/cart.route.d.ts +349 -1
  11. package/src/features/file/file.handler.js.map +1 -1
  12. package/src/features/file/file.route.d.ts +104 -2
  13. package/src/features/file/file.service.d.ts +2 -1
  14. package/src/features/file/file.service.js.map +1 -1
  15. package/src/features/health/health.handler.js.map +1 -1
  16. package/src/features/health/health.route.d.ts +40 -1
  17. package/src/features/location/location.handler.js +1 -1
  18. package/src/features/location/location.handler.js.map +1 -1
  19. package/src/features/location/location.route.d.ts +118 -2
  20. package/src/features/manufacturer/manufacturer.handler.js.map +1 -1
  21. package/src/features/manufacturer/manufacturer.route.d.ts +675 -5
  22. package/src/features/order/order.handler.js +1 -1
  23. package/src/features/order/order.handler.js.map +1 -1
  24. package/src/features/order/order.route.d.ts +3193 -5
  25. package/src/features/order/order.route.js +1 -1
  26. package/src/features/order/order.route.js.map +1 -1
  27. package/src/features/order/order.service.d.ts +115 -0
  28. package/src/features/order/order.service.js +1 -1
  29. package/src/features/order/order.service.js.map +1 -1
  30. package/src/features/organization/organization.handler.js.map +1 -1
  31. package/src/features/organization/organization.route.d.ts +1973 -5
  32. package/src/features/payment/payment.handler.js.map +1 -1
  33. package/src/features/payment/payment.route.d.ts +67 -1
  34. package/src/features/product/product.handler.js.map +1 -1
  35. package/src/features/product/product.route.d.ts +4267 -7
  36. package/src/features/product-category/product-category.handler.js.map +1 -1
  37. package/src/features/product-category/product-category.route.d.ts +774 -6
  38. package/src/features/reservation/reservation.handler.js +1 -1
  39. package/src/features/reservation/reservation.handler.js.map +1 -1
  40. package/src/features/reservation/reservation.route.d.ts +854 -6
  41. package/src/features/reservation/reservation.route.js +1 -1
  42. package/src/features/reservation/reservation.route.js.map +1 -1
  43. package/src/features/reservation/reservation.service.d.ts +27 -0
  44. package/src/features/reservation/reservation.service.js +1 -1
  45. package/src/features/reservation/reservation.service.js.map +1 -1
  46. package/src/features/shipping/shipping.handler.js.map +1 -1
  47. package/src/features/shipping/shipping.route.d.ts +214 -3
  48. package/src/features/shipping-method/shipping-method.handler.js.map +1 -1
  49. package/src/features/shipping-method/shipping-method.route.d.ts +663 -6
  50. package/src/features/webhook/webhook.handler.d.ts +0 -1
  51. package/src/features/webhook/webhook.handler.js +1 -1
  52. package/src/features/webhook/webhook.handler.js.map +1 -1
  53. package/src/features/webhook/webhook.route.d.ts +64 -1
  54. package/src/test/global-setup.d.ts +0 -1
  55. package/src/test/global-setup.js +0 -1
  56. package/src/test/global-setup.js.map +0 -1
  57. package/src/test/integration/api-fixtures.d.ts +0 -147
  58. package/src/test/integration/api-fixtures.js +0 -1
  59. package/src/test/integration/api-fixtures.js.map +0 -1
  60. package/src/test/integration/seed.d.ts +0 -81
  61. package/src/test/integration/seed.js +0 -1
  62. package/src/test/integration/seed.js.map +0 -1
  63. package/src/test/integration/test-helpers.d.ts +0 -146
  64. package/src/test/integration/test-helpers.js +0 -1
  65. package/src/test/integration/test-helpers.js.map +0 -1
  66. package/src/test/setup-test-env.d.ts +0 -1
  67. package/src/test/setup-test-env.js +0 -1
  68. package/src/test/setup-test-env.js.map +0 -1
@@ -1,7 +1,3195 @@
1
+ import { z } from "@hono/zod-openapi";
1
2
  export declare const orderRoute: {
2
- getOrders: any;
3
- createOrder: any;
4
- getOrder: any;
5
- updateStatus: any;
6
- deleteOrder: any;
3
+ getOrders: {
4
+ description: string | undefined;
5
+ method: import("@hono/zod-openapi").RouteConfig["method"];
6
+ operationId: string;
7
+ path: string;
8
+ request: Record<never, never> & {
9
+ headers: z.ZodObject<{
10
+ "accept-language": z.ZodOptional<z.ZodString>;
11
+ cookie: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ } & {
14
+ params: z.ZodObject<{
15
+ organizationId: z.ZodString;
16
+ }, z.core.$strip>;
17
+ } & {
18
+ query: z.ZodObject<{
19
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
20
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
21
+ search: z.ZodOptional<z.ZodString>;
22
+ published: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
23
+ locale: z.ZodOptional<z.ZodEnum<{
24
+ id: "id";
25
+ af: "af";
26
+ sq: "sq";
27
+ ar_dz: "ar_dz";
28
+ ar_bh: "ar_bh";
29
+ ar_eg: "ar_eg";
30
+ ar_iq: "ar_iq";
31
+ ar_jo: "ar_jo";
32
+ ar_kw: "ar_kw";
33
+ ar_lb: "ar_lb";
34
+ ar_ly: "ar_ly";
35
+ ar_ma: "ar_ma";
36
+ ar_om: "ar_om";
37
+ ar_qa: "ar_qa";
38
+ ar_sa: "ar_sa";
39
+ ar_sy: "ar_sy";
40
+ ar_tn: "ar_tn";
41
+ ar_ae: "ar_ae";
42
+ ar_ye: "ar_ye";
43
+ eu: "eu";
44
+ be: "be";
45
+ bg: "bg";
46
+ ca: "ca";
47
+ zh_hk: "zh_hk";
48
+ zh_cn: "zh_cn";
49
+ zh_sg: "zh_sg";
50
+ zh_tw: "zh_tw";
51
+ hr: "hr";
52
+ cs: "cs";
53
+ da: "da";
54
+ nl_be: "nl_be";
55
+ nl: "nl";
56
+ en: "en";
57
+ en_au: "en_au";
58
+ en_bz: "en_bz";
59
+ en_ca: "en_ca";
60
+ en_ie: "en_ie";
61
+ en_jm: "en_jm";
62
+ en_nz: "en_nz";
63
+ en_za: "en_za";
64
+ en_tt: "en_tt";
65
+ en_gb: "en_gb";
66
+ en_us: "en_us";
67
+ et: "et";
68
+ fo: "fo";
69
+ fa: "fa";
70
+ fi: "fi";
71
+ fr_be: "fr_be";
72
+ fr_ca: "fr_ca";
73
+ fr_lu: "fr_lu";
74
+ fr: "fr";
75
+ fr_ch: "fr_ch";
76
+ gd: "gd";
77
+ de_at: "de_at";
78
+ de_li: "de_li";
79
+ de_lu: "de_lu";
80
+ de: "de";
81
+ de_ch: "de_ch";
82
+ el: "el";
83
+ he: "he";
84
+ hi: "hi";
85
+ hu: "hu";
86
+ is: "is";
87
+ ga: "ga";
88
+ it: "it";
89
+ it_ch: "it_ch";
90
+ ja: "ja";
91
+ ko: "ko";
92
+ ku: "ku";
93
+ lv: "lv";
94
+ lt: "lt";
95
+ mk: "mk";
96
+ ml: "ml";
97
+ ms: "ms";
98
+ mt: "mt";
99
+ no: "no";
100
+ nb: "nb";
101
+ nn: "nn";
102
+ pl: "pl";
103
+ pt_br: "pt_br";
104
+ pt: "pt";
105
+ pa: "pa";
106
+ rm: "rm";
107
+ ro: "ro";
108
+ ro_md: "ro_md";
109
+ ru: "ru";
110
+ ru_md: "ru_md";
111
+ sr: "sr";
112
+ sk: "sk";
113
+ sl: "sl";
114
+ sb: "sb";
115
+ es_ar: "es_ar";
116
+ es_bo: "es_bo";
117
+ es_cl: "es_cl";
118
+ es_co: "es_co";
119
+ es_cr: "es_cr";
120
+ es_do: "es_do";
121
+ es_ec: "es_ec";
122
+ es_sv: "es_sv";
123
+ es_gt: "es_gt";
124
+ es_hn: "es_hn";
125
+ es_mx: "es_mx";
126
+ es: "es";
127
+ sv: "sv";
128
+ sv_fi: "sv_fi";
129
+ th: "th";
130
+ tr: "tr";
131
+ uk: "uk";
132
+ ur: "ur";
133
+ vi: "vi";
134
+ cy: "cy";
135
+ ji: "ji";
136
+ zu: "zu";
137
+ }>>;
138
+ }, z.core.$strip>;
139
+ };
140
+ responses: {
141
+ 200: {
142
+ content: {
143
+ "application/json": {
144
+ schema: z.ZodObject<{
145
+ list: z.ZodArray<z.ZodPipe<z.ZodObject<{
146
+ id: z.ZodString;
147
+ referenceId: z.ZodString;
148
+ status: z.ZodOptional<z.ZodEnum<{
149
+ pending: "pending";
150
+ draft: "draft";
151
+ accepted: "accepted";
152
+ "ready-for-dispatch": "ready-for-dispatch";
153
+ dispatched: "dispatched";
154
+ completed: "completed";
155
+ cancelled: "cancelled";
156
+ }>>;
157
+ token: z.ZodString;
158
+ expiresAt: z.ZodDate;
159
+ items: z.ZodArray<z.ZodObject<{
160
+ translations: z.ZodArray<z.ZodObject<{
161
+ locale: z.ZodEnum<{
162
+ id: "id";
163
+ af: "af";
164
+ sq: "sq";
165
+ ar_dz: "ar_dz";
166
+ ar_bh: "ar_bh";
167
+ ar_eg: "ar_eg";
168
+ ar_iq: "ar_iq";
169
+ ar_jo: "ar_jo";
170
+ ar_kw: "ar_kw";
171
+ ar_lb: "ar_lb";
172
+ ar_ly: "ar_ly";
173
+ ar_ma: "ar_ma";
174
+ ar_om: "ar_om";
175
+ ar_qa: "ar_qa";
176
+ ar_sa: "ar_sa";
177
+ ar_sy: "ar_sy";
178
+ ar_tn: "ar_tn";
179
+ ar_ae: "ar_ae";
180
+ ar_ye: "ar_ye";
181
+ eu: "eu";
182
+ be: "be";
183
+ bg: "bg";
184
+ ca: "ca";
185
+ zh_hk: "zh_hk";
186
+ zh_cn: "zh_cn";
187
+ zh_sg: "zh_sg";
188
+ zh_tw: "zh_tw";
189
+ hr: "hr";
190
+ cs: "cs";
191
+ da: "da";
192
+ nl_be: "nl_be";
193
+ nl: "nl";
194
+ en: "en";
195
+ en_au: "en_au";
196
+ en_bz: "en_bz";
197
+ en_ca: "en_ca";
198
+ en_ie: "en_ie";
199
+ en_jm: "en_jm";
200
+ en_nz: "en_nz";
201
+ en_za: "en_za";
202
+ en_tt: "en_tt";
203
+ en_gb: "en_gb";
204
+ en_us: "en_us";
205
+ et: "et";
206
+ fo: "fo";
207
+ fa: "fa";
208
+ fi: "fi";
209
+ fr_be: "fr_be";
210
+ fr_ca: "fr_ca";
211
+ fr_lu: "fr_lu";
212
+ fr: "fr";
213
+ fr_ch: "fr_ch";
214
+ gd: "gd";
215
+ de_at: "de_at";
216
+ de_li: "de_li";
217
+ de_lu: "de_lu";
218
+ de: "de";
219
+ de_ch: "de_ch";
220
+ el: "el";
221
+ he: "he";
222
+ hi: "hi";
223
+ hu: "hu";
224
+ is: "is";
225
+ ga: "ga";
226
+ it: "it";
227
+ it_ch: "it_ch";
228
+ ja: "ja";
229
+ ko: "ko";
230
+ ku: "ku";
231
+ lv: "lv";
232
+ lt: "lt";
233
+ mk: "mk";
234
+ ml: "ml";
235
+ ms: "ms";
236
+ mt: "mt";
237
+ no: "no";
238
+ nb: "nb";
239
+ nn: "nn";
240
+ pl: "pl";
241
+ pt_br: "pt_br";
242
+ pt: "pt";
243
+ pa: "pa";
244
+ rm: "rm";
245
+ ro: "ro";
246
+ ro_md: "ro_md";
247
+ ru: "ru";
248
+ ru_md: "ru_md";
249
+ sr: "sr";
250
+ sk: "sk";
251
+ sl: "sl";
252
+ sb: "sb";
253
+ es_ar: "es_ar";
254
+ es_bo: "es_bo";
255
+ es_cl: "es_cl";
256
+ es_co: "es_co";
257
+ es_cr: "es_cr";
258
+ es_do: "es_do";
259
+ es_ec: "es_ec";
260
+ es_sv: "es_sv";
261
+ es_gt: "es_gt";
262
+ es_hn: "es_hn";
263
+ es_mx: "es_mx";
264
+ es: "es";
265
+ sv: "sv";
266
+ sv_fi: "sv_fi";
267
+ th: "th";
268
+ tr: "tr";
269
+ uk: "uk";
270
+ ur: "ur";
271
+ vi: "vi";
272
+ cy: "cy";
273
+ ji: "ji";
274
+ zu: "zu";
275
+ }>;
276
+ title: z.ZodString;
277
+ subtitle: z.ZodString;
278
+ }, z.core.$strip>>;
279
+ rawData: z.ZodObject<{
280
+ productId: z.ZodString;
281
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
282
+ modifierGroups: z.ZodArray<z.ZodObject<{
283
+ id: z.ZodString;
284
+ modifiers: z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ quantity: z.ZodDefault<z.ZodNumber>;
287
+ }, z.core.$strip>>;
288
+ }, z.core.$strip>>;
289
+ }, z.core.$strip>;
290
+ unitPrice: z.ZodNumber;
291
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
292
+ id: z.ZodString;
293
+ url: z.ZodString;
294
+ mimeType: z.ZodString;
295
+ size: z.ZodNumber;
296
+ filename: z.ZodString;
297
+ }, z.core.$strip>>>;
298
+ totalPrice: z.ZodNumber;
299
+ quantity: z.ZodNumber;
300
+ productSnapshotId: z.ZodString;
301
+ }, z.core.$strip>>;
302
+ shippingMethod: z.ZodNullable<z.ZodObject<{
303
+ id: z.ZodString;
304
+ title: z.ZodString;
305
+ providerName: z.ZodString;
306
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
307
+ id: z.ZodString;
308
+ url: z.ZodString;
309
+ mimeType: z.ZodString;
310
+ size: z.ZodNumber;
311
+ filename: z.ZodString;
312
+ }, z.core.$strip>>>;
313
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
314
+ shippingZones: z.ZodArray<z.ZodObject<{
315
+ id: z.ZodOptional<z.ZodString>;
316
+ title: z.ZodString;
317
+ distanceUpto: z.ZodCoercedNumber<unknown>;
318
+ price: z.ZodCoercedNumber<unknown>;
319
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
320
+ eta: z.ZodString;
321
+ }, z.core.$strip>>;
322
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
323
+ id: z.ZodOptional<z.ZodString>;
324
+ title: z.ZodString;
325
+ distanceUpto: z.ZodCoercedNumber<unknown>;
326
+ price: z.ZodCoercedNumber<unknown>;
327
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
328
+ eta: z.ZodString;
329
+ }, z.core.$strip>>;
330
+ createdAt: z.ZodDate;
331
+ updatedAt: z.ZodDate;
332
+ }, z.core.$strip>>;
333
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
334
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
335
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
336
+ createdAt: z.ZodDate;
337
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
338
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
339
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
340
+ id: z.ZodString;
341
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
342
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
343
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
344
+ addressLineOne: z.ZodString;
345
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ zipCode: z.ZodOptional<z.ZodString>;
348
+ city: z.ZodString;
349
+ country: z.ZodString;
350
+ placeId: z.ZodString;
351
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ }, z.core.$strip>>>;
353
+ fulfilmentMethod: z.ZodEnum<{
354
+ delivery: "delivery";
355
+ pickup: "pickup";
356
+ }>;
357
+ currency: z.ZodEnum<{
358
+ USD: "USD";
359
+ EUR: "EUR";
360
+ GBP: "GBP";
361
+ JPY: "JPY";
362
+ AUD: "AUD";
363
+ CAD: "CAD";
364
+ CHF: "CHF";
365
+ CNY: "CNY";
366
+ SEK: "SEK";
367
+ NZD: "NZD";
368
+ MXN: "MXN";
369
+ SGD: "SGD";
370
+ HKD: "HKD";
371
+ NOK: "NOK";
372
+ KRW: "KRW";
373
+ TRY: "TRY";
374
+ RUB: "RUB";
375
+ INR: "INR";
376
+ BRL: "BRL";
377
+ ZAR: "ZAR";
378
+ DKK: "DKK";
379
+ PLN: "PLN";
380
+ THB: "THB";
381
+ IDR: "IDR";
382
+ HUF: "HUF";
383
+ CZK: "CZK";
384
+ ILS: "ILS";
385
+ PHP: "PHP";
386
+ AED: "AED";
387
+ COP: "COP";
388
+ SAR: "SAR";
389
+ MYR: "MYR";
390
+ RON: "RON";
391
+ }>;
392
+ payment: z.ZodObject<{
393
+ id: z.ZodString;
394
+ method: z.ZodEnum<{
395
+ card: "card";
396
+ blik: "blik";
397
+ paypal: "paypal";
398
+ cash_on_delivery: "cash_on_delivery";
399
+ }>;
400
+ provider: z.ZodEnum<{
401
+ stripe: "stripe";
402
+ revolut: "revolut";
403
+ payu: "payu";
404
+ not_applicable: "not_applicable";
405
+ }>;
406
+ status: z.ZodEnum<{
407
+ pending: "pending";
408
+ succeeded: "succeeded";
409
+ refunded: "refunded";
410
+ failed: "failed";
411
+ canceled: "canceled";
412
+ }>;
413
+ shipping: z.ZodDefault<z.ZodNumber>;
414
+ subtotal: z.ZodNumber;
415
+ total: z.ZodNumber;
416
+ discount: z.ZodDefault<z.ZodNumber>;
417
+ currency: z.ZodEnum<{
418
+ USD: "USD";
419
+ EUR: "EUR";
420
+ GBP: "GBP";
421
+ JPY: "JPY";
422
+ AUD: "AUD";
423
+ CAD: "CAD";
424
+ CHF: "CHF";
425
+ CNY: "CNY";
426
+ SEK: "SEK";
427
+ NZD: "NZD";
428
+ MXN: "MXN";
429
+ SGD: "SGD";
430
+ HKD: "HKD";
431
+ NOK: "NOK";
432
+ KRW: "KRW";
433
+ TRY: "TRY";
434
+ RUB: "RUB";
435
+ INR: "INR";
436
+ BRL: "BRL";
437
+ ZAR: "ZAR";
438
+ DKK: "DKK";
439
+ PLN: "PLN";
440
+ THB: "THB";
441
+ IDR: "IDR";
442
+ HUF: "HUF";
443
+ CZK: "CZK";
444
+ ILS: "ILS";
445
+ PHP: "PHP";
446
+ AED: "AED";
447
+ COP: "COP";
448
+ SAR: "SAR";
449
+ MYR: "MYR";
450
+ RON: "RON";
451
+ }>;
452
+ }, z.core.$strip>;
453
+ }, z.core.$strip>, z.ZodTransform<{
454
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
455
+ id: string;
456
+ referenceId: string;
457
+ token: string;
458
+ expiresAt: Date;
459
+ items: {
460
+ translations: {
461
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
462
+ title: string;
463
+ subtitle: string;
464
+ }[];
465
+ rawData: {
466
+ productId: string;
467
+ modifierGroups: {
468
+ id: string;
469
+ modifiers: {
470
+ id: string;
471
+ quantity: number;
472
+ }[];
473
+ }[];
474
+ quantity?: number | undefined;
475
+ };
476
+ unitPrice: number;
477
+ totalPrice: number;
478
+ quantity: number;
479
+ productSnapshotId: string;
480
+ image?: {
481
+ id: string;
482
+ url: string;
483
+ mimeType: string;
484
+ size: number;
485
+ filename: string;
486
+ } | null | undefined;
487
+ }[];
488
+ shippingMethod: {
489
+ id: string;
490
+ title: string;
491
+ providerName: string;
492
+ shippingZones: {
493
+ title: string;
494
+ distanceUpto: number;
495
+ price: number;
496
+ minimumOrderAmount: number | null;
497
+ eta: string;
498
+ id?: string | undefined;
499
+ }[];
500
+ createdAt: Date;
501
+ updatedAt: Date;
502
+ providerLogo?: {
503
+ id: string;
504
+ url: string;
505
+ mimeType: string;
506
+ size: number;
507
+ filename: string;
508
+ } | null | undefined;
509
+ requireDateOfDelivery?: boolean | undefined;
510
+ eligibleShippingZone?: {
511
+ title: string;
512
+ distanceUpto: number;
513
+ price: number;
514
+ minimumOrderAmount: number | null;
515
+ eta: string;
516
+ id?: string | undefined;
517
+ } | undefined;
518
+ } | null;
519
+ createdAt: Date;
520
+ fulfilmentMethod: "delivery" | "pickup";
521
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
522
+ payment: {
523
+ id: string;
524
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
525
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
526
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
527
+ shipping: number;
528
+ subtotal: number;
529
+ total: number;
530
+ discount: number;
531
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
532
+ };
533
+ acceptedAt?: Date | null | undefined;
534
+ dispatchedAt?: Date | null | undefined;
535
+ readyForDispatchAt?: Date | null | undefined;
536
+ completedAt?: Date | null | undefined;
537
+ cancelledAt?: Date | null | undefined;
538
+ shippingAddress?: {
539
+ id: string;
540
+ addressLineOne: string;
541
+ city: string;
542
+ country: string;
543
+ placeId: string;
544
+ firstname?: string | null | undefined;
545
+ lastname?: string | null | undefined;
546
+ phone?: string | null | undefined;
547
+ doorNumber?: string | null | undefined;
548
+ addressLineTwo?: string | null | undefined;
549
+ zipCode?: string | undefined;
550
+ deliveryInstructions?: string | null | undefined;
551
+ } | null | undefined;
552
+ }, {
553
+ id: string;
554
+ referenceId: string;
555
+ token: string;
556
+ expiresAt: Date;
557
+ items: {
558
+ translations: {
559
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
560
+ title: string;
561
+ subtitle: string;
562
+ }[];
563
+ rawData: {
564
+ productId: string;
565
+ modifierGroups: {
566
+ id: string;
567
+ modifiers: {
568
+ id: string;
569
+ quantity: number;
570
+ }[];
571
+ }[];
572
+ quantity?: number | undefined;
573
+ };
574
+ unitPrice: number;
575
+ totalPrice: number;
576
+ quantity: number;
577
+ productSnapshotId: string;
578
+ image?: {
579
+ id: string;
580
+ url: string;
581
+ mimeType: string;
582
+ size: number;
583
+ filename: string;
584
+ } | null | undefined;
585
+ }[];
586
+ shippingMethod: {
587
+ id: string;
588
+ title: string;
589
+ providerName: string;
590
+ shippingZones: {
591
+ title: string;
592
+ distanceUpto: number;
593
+ price: number;
594
+ minimumOrderAmount: number | null;
595
+ eta: string;
596
+ id?: string | undefined;
597
+ }[];
598
+ createdAt: Date;
599
+ updatedAt: Date;
600
+ providerLogo?: {
601
+ id: string;
602
+ url: string;
603
+ mimeType: string;
604
+ size: number;
605
+ filename: string;
606
+ } | null | undefined;
607
+ requireDateOfDelivery?: boolean | undefined;
608
+ eligibleShippingZone?: {
609
+ title: string;
610
+ distanceUpto: number;
611
+ price: number;
612
+ minimumOrderAmount: number | null;
613
+ eta: string;
614
+ id?: string | undefined;
615
+ } | undefined;
616
+ } | null;
617
+ createdAt: Date;
618
+ fulfilmentMethod: "delivery" | "pickup";
619
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
620
+ payment: {
621
+ id: string;
622
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
623
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
624
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
625
+ shipping: number;
626
+ subtotal: number;
627
+ total: number;
628
+ discount: number;
629
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
630
+ };
631
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
632
+ acceptedAt?: Date | null | undefined;
633
+ dispatchedAt?: Date | null | undefined;
634
+ readyForDispatchAt?: Date | null | undefined;
635
+ completedAt?: Date | null | undefined;
636
+ cancelledAt?: Date | null | undefined;
637
+ shippingAddress?: {
638
+ id: string;
639
+ addressLineOne: string;
640
+ city: string;
641
+ country: string;
642
+ placeId: string;
643
+ firstname?: string | null | undefined;
644
+ lastname?: string | null | undefined;
645
+ phone?: string | null | undefined;
646
+ doorNumber?: string | null | undefined;
647
+ addressLineTwo?: string | null | undefined;
648
+ zipCode?: string | undefined;
649
+ deliveryInstructions?: string | null | undefined;
650
+ } | null | undefined;
651
+ }>>>;
652
+ meta: z.ZodObject<{
653
+ isFirstPage: z.ZodBoolean;
654
+ isLastPage: z.ZodBoolean;
655
+ currentPage: z.ZodNumber;
656
+ previousPage: z.ZodNullable<z.ZodNumber>;
657
+ nextPage: z.ZodNullable<z.ZodNumber>;
658
+ pageCount: z.ZodNumber;
659
+ totalCount: z.ZodNumber;
660
+ }, z.core.$strip>;
661
+ }, z.core.$strip>;
662
+ };
663
+ };
664
+ description: string;
665
+ };
666
+ 400: {
667
+ content: {
668
+ "application/json": {
669
+ schema: z.ZodObject<{
670
+ status: z.ZodNumber;
671
+ message: z.ZodString;
672
+ }, z.core.$strip>;
673
+ };
674
+ };
675
+ description: string;
676
+ };
677
+ 401: {
678
+ content: {
679
+ "application/json": {
680
+ schema: z.ZodObject<{
681
+ status: z.ZodNumber;
682
+ message: z.ZodString;
683
+ }, z.core.$strip>;
684
+ };
685
+ };
686
+ description: string;
687
+ };
688
+ };
689
+ summary: string;
690
+ tags: string[];
691
+ } & {
692
+ getRoutingPath(): string;
693
+ };
694
+ getMyOrders: {
695
+ description: string | undefined;
696
+ method: import("@hono/zod-openapi").RouteConfig["method"];
697
+ operationId: string;
698
+ path: string;
699
+ request: Record<never, never> & {
700
+ headers: z.ZodObject<{
701
+ "accept-language": z.ZodOptional<z.ZodString>;
702
+ cookie: z.ZodOptional<z.ZodString>;
703
+ }, z.core.$strip>;
704
+ } & {
705
+ params: z.ZodObject<{
706
+ organizationId: z.ZodString;
707
+ }, z.core.$strip>;
708
+ } & {
709
+ query: z.ZodObject<{
710
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
711
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
712
+ search: z.ZodOptional<z.ZodString>;
713
+ published: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
714
+ locale: z.ZodOptional<z.ZodEnum<{
715
+ id: "id";
716
+ af: "af";
717
+ sq: "sq";
718
+ ar_dz: "ar_dz";
719
+ ar_bh: "ar_bh";
720
+ ar_eg: "ar_eg";
721
+ ar_iq: "ar_iq";
722
+ ar_jo: "ar_jo";
723
+ ar_kw: "ar_kw";
724
+ ar_lb: "ar_lb";
725
+ ar_ly: "ar_ly";
726
+ ar_ma: "ar_ma";
727
+ ar_om: "ar_om";
728
+ ar_qa: "ar_qa";
729
+ ar_sa: "ar_sa";
730
+ ar_sy: "ar_sy";
731
+ ar_tn: "ar_tn";
732
+ ar_ae: "ar_ae";
733
+ ar_ye: "ar_ye";
734
+ eu: "eu";
735
+ be: "be";
736
+ bg: "bg";
737
+ ca: "ca";
738
+ zh_hk: "zh_hk";
739
+ zh_cn: "zh_cn";
740
+ zh_sg: "zh_sg";
741
+ zh_tw: "zh_tw";
742
+ hr: "hr";
743
+ cs: "cs";
744
+ da: "da";
745
+ nl_be: "nl_be";
746
+ nl: "nl";
747
+ en: "en";
748
+ en_au: "en_au";
749
+ en_bz: "en_bz";
750
+ en_ca: "en_ca";
751
+ en_ie: "en_ie";
752
+ en_jm: "en_jm";
753
+ en_nz: "en_nz";
754
+ en_za: "en_za";
755
+ en_tt: "en_tt";
756
+ en_gb: "en_gb";
757
+ en_us: "en_us";
758
+ et: "et";
759
+ fo: "fo";
760
+ fa: "fa";
761
+ fi: "fi";
762
+ fr_be: "fr_be";
763
+ fr_ca: "fr_ca";
764
+ fr_lu: "fr_lu";
765
+ fr: "fr";
766
+ fr_ch: "fr_ch";
767
+ gd: "gd";
768
+ de_at: "de_at";
769
+ de_li: "de_li";
770
+ de_lu: "de_lu";
771
+ de: "de";
772
+ de_ch: "de_ch";
773
+ el: "el";
774
+ he: "he";
775
+ hi: "hi";
776
+ hu: "hu";
777
+ is: "is";
778
+ ga: "ga";
779
+ it: "it";
780
+ it_ch: "it_ch";
781
+ ja: "ja";
782
+ ko: "ko";
783
+ ku: "ku";
784
+ lv: "lv";
785
+ lt: "lt";
786
+ mk: "mk";
787
+ ml: "ml";
788
+ ms: "ms";
789
+ mt: "mt";
790
+ no: "no";
791
+ nb: "nb";
792
+ nn: "nn";
793
+ pl: "pl";
794
+ pt_br: "pt_br";
795
+ pt: "pt";
796
+ pa: "pa";
797
+ rm: "rm";
798
+ ro: "ro";
799
+ ro_md: "ro_md";
800
+ ru: "ru";
801
+ ru_md: "ru_md";
802
+ sr: "sr";
803
+ sk: "sk";
804
+ sl: "sl";
805
+ sb: "sb";
806
+ es_ar: "es_ar";
807
+ es_bo: "es_bo";
808
+ es_cl: "es_cl";
809
+ es_co: "es_co";
810
+ es_cr: "es_cr";
811
+ es_do: "es_do";
812
+ es_ec: "es_ec";
813
+ es_sv: "es_sv";
814
+ es_gt: "es_gt";
815
+ es_hn: "es_hn";
816
+ es_mx: "es_mx";
817
+ es: "es";
818
+ sv: "sv";
819
+ sv_fi: "sv_fi";
820
+ th: "th";
821
+ tr: "tr";
822
+ uk: "uk";
823
+ ur: "ur";
824
+ vi: "vi";
825
+ cy: "cy";
826
+ ji: "ji";
827
+ zu: "zu";
828
+ }>>;
829
+ }, z.core.$strip>;
830
+ };
831
+ responses: {
832
+ 200: {
833
+ content: {
834
+ "application/json": {
835
+ schema: z.ZodObject<{
836
+ list: z.ZodArray<z.ZodPipe<z.ZodObject<{
837
+ id: z.ZodString;
838
+ referenceId: z.ZodString;
839
+ status: z.ZodOptional<z.ZodEnum<{
840
+ pending: "pending";
841
+ draft: "draft";
842
+ accepted: "accepted";
843
+ "ready-for-dispatch": "ready-for-dispatch";
844
+ dispatched: "dispatched";
845
+ completed: "completed";
846
+ cancelled: "cancelled";
847
+ }>>;
848
+ token: z.ZodString;
849
+ expiresAt: z.ZodDate;
850
+ items: z.ZodArray<z.ZodObject<{
851
+ translations: z.ZodArray<z.ZodObject<{
852
+ locale: z.ZodEnum<{
853
+ id: "id";
854
+ af: "af";
855
+ sq: "sq";
856
+ ar_dz: "ar_dz";
857
+ ar_bh: "ar_bh";
858
+ ar_eg: "ar_eg";
859
+ ar_iq: "ar_iq";
860
+ ar_jo: "ar_jo";
861
+ ar_kw: "ar_kw";
862
+ ar_lb: "ar_lb";
863
+ ar_ly: "ar_ly";
864
+ ar_ma: "ar_ma";
865
+ ar_om: "ar_om";
866
+ ar_qa: "ar_qa";
867
+ ar_sa: "ar_sa";
868
+ ar_sy: "ar_sy";
869
+ ar_tn: "ar_tn";
870
+ ar_ae: "ar_ae";
871
+ ar_ye: "ar_ye";
872
+ eu: "eu";
873
+ be: "be";
874
+ bg: "bg";
875
+ ca: "ca";
876
+ zh_hk: "zh_hk";
877
+ zh_cn: "zh_cn";
878
+ zh_sg: "zh_sg";
879
+ zh_tw: "zh_tw";
880
+ hr: "hr";
881
+ cs: "cs";
882
+ da: "da";
883
+ nl_be: "nl_be";
884
+ nl: "nl";
885
+ en: "en";
886
+ en_au: "en_au";
887
+ en_bz: "en_bz";
888
+ en_ca: "en_ca";
889
+ en_ie: "en_ie";
890
+ en_jm: "en_jm";
891
+ en_nz: "en_nz";
892
+ en_za: "en_za";
893
+ en_tt: "en_tt";
894
+ en_gb: "en_gb";
895
+ en_us: "en_us";
896
+ et: "et";
897
+ fo: "fo";
898
+ fa: "fa";
899
+ fi: "fi";
900
+ fr_be: "fr_be";
901
+ fr_ca: "fr_ca";
902
+ fr_lu: "fr_lu";
903
+ fr: "fr";
904
+ fr_ch: "fr_ch";
905
+ gd: "gd";
906
+ de_at: "de_at";
907
+ de_li: "de_li";
908
+ de_lu: "de_lu";
909
+ de: "de";
910
+ de_ch: "de_ch";
911
+ el: "el";
912
+ he: "he";
913
+ hi: "hi";
914
+ hu: "hu";
915
+ is: "is";
916
+ ga: "ga";
917
+ it: "it";
918
+ it_ch: "it_ch";
919
+ ja: "ja";
920
+ ko: "ko";
921
+ ku: "ku";
922
+ lv: "lv";
923
+ lt: "lt";
924
+ mk: "mk";
925
+ ml: "ml";
926
+ ms: "ms";
927
+ mt: "mt";
928
+ no: "no";
929
+ nb: "nb";
930
+ nn: "nn";
931
+ pl: "pl";
932
+ pt_br: "pt_br";
933
+ pt: "pt";
934
+ pa: "pa";
935
+ rm: "rm";
936
+ ro: "ro";
937
+ ro_md: "ro_md";
938
+ ru: "ru";
939
+ ru_md: "ru_md";
940
+ sr: "sr";
941
+ sk: "sk";
942
+ sl: "sl";
943
+ sb: "sb";
944
+ es_ar: "es_ar";
945
+ es_bo: "es_bo";
946
+ es_cl: "es_cl";
947
+ es_co: "es_co";
948
+ es_cr: "es_cr";
949
+ es_do: "es_do";
950
+ es_ec: "es_ec";
951
+ es_sv: "es_sv";
952
+ es_gt: "es_gt";
953
+ es_hn: "es_hn";
954
+ es_mx: "es_mx";
955
+ es: "es";
956
+ sv: "sv";
957
+ sv_fi: "sv_fi";
958
+ th: "th";
959
+ tr: "tr";
960
+ uk: "uk";
961
+ ur: "ur";
962
+ vi: "vi";
963
+ cy: "cy";
964
+ ji: "ji";
965
+ zu: "zu";
966
+ }>;
967
+ title: z.ZodString;
968
+ subtitle: z.ZodString;
969
+ }, z.core.$strip>>;
970
+ rawData: z.ZodObject<{
971
+ productId: z.ZodString;
972
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
973
+ modifierGroups: z.ZodArray<z.ZodObject<{
974
+ id: z.ZodString;
975
+ modifiers: z.ZodArray<z.ZodObject<{
976
+ id: z.ZodString;
977
+ quantity: z.ZodDefault<z.ZodNumber>;
978
+ }, z.core.$strip>>;
979
+ }, z.core.$strip>>;
980
+ }, z.core.$strip>;
981
+ unitPrice: z.ZodNumber;
982
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
983
+ id: z.ZodString;
984
+ url: z.ZodString;
985
+ mimeType: z.ZodString;
986
+ size: z.ZodNumber;
987
+ filename: z.ZodString;
988
+ }, z.core.$strip>>>;
989
+ totalPrice: z.ZodNumber;
990
+ quantity: z.ZodNumber;
991
+ productSnapshotId: z.ZodString;
992
+ }, z.core.$strip>>;
993
+ shippingMethod: z.ZodNullable<z.ZodObject<{
994
+ id: z.ZodString;
995
+ title: z.ZodString;
996
+ providerName: z.ZodString;
997
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
998
+ id: z.ZodString;
999
+ url: z.ZodString;
1000
+ mimeType: z.ZodString;
1001
+ size: z.ZodNumber;
1002
+ filename: z.ZodString;
1003
+ }, z.core.$strip>>>;
1004
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1005
+ shippingZones: z.ZodArray<z.ZodObject<{
1006
+ id: z.ZodOptional<z.ZodString>;
1007
+ title: z.ZodString;
1008
+ distanceUpto: z.ZodCoercedNumber<unknown>;
1009
+ price: z.ZodCoercedNumber<unknown>;
1010
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
1011
+ eta: z.ZodString;
1012
+ }, z.core.$strip>>;
1013
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
1014
+ id: z.ZodOptional<z.ZodString>;
1015
+ title: z.ZodString;
1016
+ distanceUpto: z.ZodCoercedNumber<unknown>;
1017
+ price: z.ZodCoercedNumber<unknown>;
1018
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
1019
+ eta: z.ZodString;
1020
+ }, z.core.$strip>>;
1021
+ createdAt: z.ZodDate;
1022
+ updatedAt: z.ZodDate;
1023
+ }, z.core.$strip>>;
1024
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1025
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1026
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1027
+ createdAt: z.ZodDate;
1028
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1029
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1030
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1033
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1034
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1035
+ addressLineOne: z.ZodString;
1036
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1037
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1038
+ zipCode: z.ZodOptional<z.ZodString>;
1039
+ city: z.ZodString;
1040
+ country: z.ZodString;
1041
+ placeId: z.ZodString;
1042
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1043
+ }, z.core.$strip>>>;
1044
+ fulfilmentMethod: z.ZodEnum<{
1045
+ delivery: "delivery";
1046
+ pickup: "pickup";
1047
+ }>;
1048
+ currency: z.ZodEnum<{
1049
+ USD: "USD";
1050
+ EUR: "EUR";
1051
+ GBP: "GBP";
1052
+ JPY: "JPY";
1053
+ AUD: "AUD";
1054
+ CAD: "CAD";
1055
+ CHF: "CHF";
1056
+ CNY: "CNY";
1057
+ SEK: "SEK";
1058
+ NZD: "NZD";
1059
+ MXN: "MXN";
1060
+ SGD: "SGD";
1061
+ HKD: "HKD";
1062
+ NOK: "NOK";
1063
+ KRW: "KRW";
1064
+ TRY: "TRY";
1065
+ RUB: "RUB";
1066
+ INR: "INR";
1067
+ BRL: "BRL";
1068
+ ZAR: "ZAR";
1069
+ DKK: "DKK";
1070
+ PLN: "PLN";
1071
+ THB: "THB";
1072
+ IDR: "IDR";
1073
+ HUF: "HUF";
1074
+ CZK: "CZK";
1075
+ ILS: "ILS";
1076
+ PHP: "PHP";
1077
+ AED: "AED";
1078
+ COP: "COP";
1079
+ SAR: "SAR";
1080
+ MYR: "MYR";
1081
+ RON: "RON";
1082
+ }>;
1083
+ payment: z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ method: z.ZodEnum<{
1086
+ card: "card";
1087
+ blik: "blik";
1088
+ paypal: "paypal";
1089
+ cash_on_delivery: "cash_on_delivery";
1090
+ }>;
1091
+ provider: z.ZodEnum<{
1092
+ stripe: "stripe";
1093
+ revolut: "revolut";
1094
+ payu: "payu";
1095
+ not_applicable: "not_applicable";
1096
+ }>;
1097
+ status: z.ZodEnum<{
1098
+ pending: "pending";
1099
+ succeeded: "succeeded";
1100
+ refunded: "refunded";
1101
+ failed: "failed";
1102
+ canceled: "canceled";
1103
+ }>;
1104
+ shipping: z.ZodDefault<z.ZodNumber>;
1105
+ subtotal: z.ZodNumber;
1106
+ total: z.ZodNumber;
1107
+ discount: z.ZodDefault<z.ZodNumber>;
1108
+ currency: z.ZodEnum<{
1109
+ USD: "USD";
1110
+ EUR: "EUR";
1111
+ GBP: "GBP";
1112
+ JPY: "JPY";
1113
+ AUD: "AUD";
1114
+ CAD: "CAD";
1115
+ CHF: "CHF";
1116
+ CNY: "CNY";
1117
+ SEK: "SEK";
1118
+ NZD: "NZD";
1119
+ MXN: "MXN";
1120
+ SGD: "SGD";
1121
+ HKD: "HKD";
1122
+ NOK: "NOK";
1123
+ KRW: "KRW";
1124
+ TRY: "TRY";
1125
+ RUB: "RUB";
1126
+ INR: "INR";
1127
+ BRL: "BRL";
1128
+ ZAR: "ZAR";
1129
+ DKK: "DKK";
1130
+ PLN: "PLN";
1131
+ THB: "THB";
1132
+ IDR: "IDR";
1133
+ HUF: "HUF";
1134
+ CZK: "CZK";
1135
+ ILS: "ILS";
1136
+ PHP: "PHP";
1137
+ AED: "AED";
1138
+ COP: "COP";
1139
+ SAR: "SAR";
1140
+ MYR: "MYR";
1141
+ RON: "RON";
1142
+ }>;
1143
+ }, z.core.$strip>;
1144
+ }, z.core.$strip>, z.ZodTransform<{
1145
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
1146
+ id: string;
1147
+ referenceId: string;
1148
+ token: string;
1149
+ expiresAt: Date;
1150
+ items: {
1151
+ translations: {
1152
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1153
+ title: string;
1154
+ subtitle: string;
1155
+ }[];
1156
+ rawData: {
1157
+ productId: string;
1158
+ modifierGroups: {
1159
+ id: string;
1160
+ modifiers: {
1161
+ id: string;
1162
+ quantity: number;
1163
+ }[];
1164
+ }[];
1165
+ quantity?: number | undefined;
1166
+ };
1167
+ unitPrice: number;
1168
+ totalPrice: number;
1169
+ quantity: number;
1170
+ productSnapshotId: string;
1171
+ image?: {
1172
+ id: string;
1173
+ url: string;
1174
+ mimeType: string;
1175
+ size: number;
1176
+ filename: string;
1177
+ } | null | undefined;
1178
+ }[];
1179
+ shippingMethod: {
1180
+ id: string;
1181
+ title: string;
1182
+ providerName: string;
1183
+ shippingZones: {
1184
+ title: string;
1185
+ distanceUpto: number;
1186
+ price: number;
1187
+ minimumOrderAmount: number | null;
1188
+ eta: string;
1189
+ id?: string | undefined;
1190
+ }[];
1191
+ createdAt: Date;
1192
+ updatedAt: Date;
1193
+ providerLogo?: {
1194
+ id: string;
1195
+ url: string;
1196
+ mimeType: string;
1197
+ size: number;
1198
+ filename: string;
1199
+ } | null | undefined;
1200
+ requireDateOfDelivery?: boolean | undefined;
1201
+ eligibleShippingZone?: {
1202
+ title: string;
1203
+ distanceUpto: number;
1204
+ price: number;
1205
+ minimumOrderAmount: number | null;
1206
+ eta: string;
1207
+ id?: string | undefined;
1208
+ } | undefined;
1209
+ } | null;
1210
+ createdAt: Date;
1211
+ fulfilmentMethod: "delivery" | "pickup";
1212
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1213
+ payment: {
1214
+ id: string;
1215
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
1216
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
1217
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
1218
+ shipping: number;
1219
+ subtotal: number;
1220
+ total: number;
1221
+ discount: number;
1222
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1223
+ };
1224
+ acceptedAt?: Date | null | undefined;
1225
+ dispatchedAt?: Date | null | undefined;
1226
+ readyForDispatchAt?: Date | null | undefined;
1227
+ completedAt?: Date | null | undefined;
1228
+ cancelledAt?: Date | null | undefined;
1229
+ shippingAddress?: {
1230
+ id: string;
1231
+ addressLineOne: string;
1232
+ city: string;
1233
+ country: string;
1234
+ placeId: string;
1235
+ firstname?: string | null | undefined;
1236
+ lastname?: string | null | undefined;
1237
+ phone?: string | null | undefined;
1238
+ doorNumber?: string | null | undefined;
1239
+ addressLineTwo?: string | null | undefined;
1240
+ zipCode?: string | undefined;
1241
+ deliveryInstructions?: string | null | undefined;
1242
+ } | null | undefined;
1243
+ }, {
1244
+ id: string;
1245
+ referenceId: string;
1246
+ token: string;
1247
+ expiresAt: Date;
1248
+ items: {
1249
+ translations: {
1250
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1251
+ title: string;
1252
+ subtitle: string;
1253
+ }[];
1254
+ rawData: {
1255
+ productId: string;
1256
+ modifierGroups: {
1257
+ id: string;
1258
+ modifiers: {
1259
+ id: string;
1260
+ quantity: number;
1261
+ }[];
1262
+ }[];
1263
+ quantity?: number | undefined;
1264
+ };
1265
+ unitPrice: number;
1266
+ totalPrice: number;
1267
+ quantity: number;
1268
+ productSnapshotId: string;
1269
+ image?: {
1270
+ id: string;
1271
+ url: string;
1272
+ mimeType: string;
1273
+ size: number;
1274
+ filename: string;
1275
+ } | null | undefined;
1276
+ }[];
1277
+ shippingMethod: {
1278
+ id: string;
1279
+ title: string;
1280
+ providerName: string;
1281
+ shippingZones: {
1282
+ title: string;
1283
+ distanceUpto: number;
1284
+ price: number;
1285
+ minimumOrderAmount: number | null;
1286
+ eta: string;
1287
+ id?: string | undefined;
1288
+ }[];
1289
+ createdAt: Date;
1290
+ updatedAt: Date;
1291
+ providerLogo?: {
1292
+ id: string;
1293
+ url: string;
1294
+ mimeType: string;
1295
+ size: number;
1296
+ filename: string;
1297
+ } | null | undefined;
1298
+ requireDateOfDelivery?: boolean | undefined;
1299
+ eligibleShippingZone?: {
1300
+ title: string;
1301
+ distanceUpto: number;
1302
+ price: number;
1303
+ minimumOrderAmount: number | null;
1304
+ eta: string;
1305
+ id?: string | undefined;
1306
+ } | undefined;
1307
+ } | null;
1308
+ createdAt: Date;
1309
+ fulfilmentMethod: "delivery" | "pickup";
1310
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1311
+ payment: {
1312
+ id: string;
1313
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
1314
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
1315
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
1316
+ shipping: number;
1317
+ subtotal: number;
1318
+ total: number;
1319
+ discount: number;
1320
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1321
+ };
1322
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
1323
+ acceptedAt?: Date | null | undefined;
1324
+ dispatchedAt?: Date | null | undefined;
1325
+ readyForDispatchAt?: Date | null | undefined;
1326
+ completedAt?: Date | null | undefined;
1327
+ cancelledAt?: Date | null | undefined;
1328
+ shippingAddress?: {
1329
+ id: string;
1330
+ addressLineOne: string;
1331
+ city: string;
1332
+ country: string;
1333
+ placeId: string;
1334
+ firstname?: string | null | undefined;
1335
+ lastname?: string | null | undefined;
1336
+ phone?: string | null | undefined;
1337
+ doorNumber?: string | null | undefined;
1338
+ addressLineTwo?: string | null | undefined;
1339
+ zipCode?: string | undefined;
1340
+ deliveryInstructions?: string | null | undefined;
1341
+ } | null | undefined;
1342
+ }>>>;
1343
+ meta: z.ZodObject<{
1344
+ isFirstPage: z.ZodBoolean;
1345
+ isLastPage: z.ZodBoolean;
1346
+ currentPage: z.ZodNumber;
1347
+ previousPage: z.ZodNullable<z.ZodNumber>;
1348
+ nextPage: z.ZodNullable<z.ZodNumber>;
1349
+ pageCount: z.ZodNumber;
1350
+ totalCount: z.ZodNumber;
1351
+ }, z.core.$strip>;
1352
+ }, z.core.$strip>;
1353
+ };
1354
+ };
1355
+ description: string;
1356
+ };
1357
+ 400: {
1358
+ content: {
1359
+ "application/json": {
1360
+ schema: z.ZodObject<{
1361
+ status: z.ZodNumber;
1362
+ message: z.ZodString;
1363
+ }, z.core.$strip>;
1364
+ };
1365
+ };
1366
+ description: string;
1367
+ };
1368
+ 401: {
1369
+ content: {
1370
+ "application/json": {
1371
+ schema: z.ZodObject<{
1372
+ status: z.ZodNumber;
1373
+ message: z.ZodString;
1374
+ }, z.core.$strip>;
1375
+ };
1376
+ };
1377
+ description: string;
1378
+ };
1379
+ };
1380
+ summary: string;
1381
+ tags: string[];
1382
+ } & {
1383
+ getRoutingPath(): string;
1384
+ };
1385
+ createOrder: {
1386
+ description: string | undefined;
1387
+ method: import("@hono/zod-openapi").RouteConfig["method"];
1388
+ operationId: string;
1389
+ path: string;
1390
+ request: {
1391
+ body: {
1392
+ content: {
1393
+ "application/json": {
1394
+ schema: z.ZodObject<{
1395
+ items: z.ZodArray<z.ZodObject<{
1396
+ productId: z.ZodString;
1397
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1398
+ modifierGroups: z.ZodArray<z.ZodObject<{
1399
+ id: z.ZodString;
1400
+ modifiers: z.ZodArray<z.ZodObject<{
1401
+ id: z.ZodString;
1402
+ quantity: z.ZodDefault<z.ZodNumber>;
1403
+ }, z.core.$strip>>;
1404
+ }, z.core.$strip>>;
1405
+ }, z.core.$strip>>;
1406
+ shippingMethodId: z.ZodOptional<z.ZodString>;
1407
+ fulfilmentMethod: z.ZodDefault<z.ZodEnum<{
1408
+ delivery: "delivery";
1409
+ pickup: "pickup";
1410
+ }>>;
1411
+ payment: z.ZodObject<{
1412
+ provider: z.ZodEnum<{
1413
+ stripe: "stripe";
1414
+ revolut: "revolut";
1415
+ payu: "payu";
1416
+ not_applicable: "not_applicable";
1417
+ }>;
1418
+ method: z.ZodEnum<{
1419
+ card: "card";
1420
+ blik: "blik";
1421
+ paypal: "paypal";
1422
+ cash_on_delivery: "cash_on_delivery";
1423
+ }>;
1424
+ }, z.core.$strip>;
1425
+ checkoutBaseUrl: z.ZodString;
1426
+ }, z.core.$strip>;
1427
+ };
1428
+ };
1429
+ required: boolean;
1430
+ };
1431
+ } & {
1432
+ headers: z.ZodObject<{
1433
+ "accept-language": z.ZodOptional<z.ZodString>;
1434
+ cookie: z.ZodOptional<z.ZodString>;
1435
+ }, z.core.$strip>;
1436
+ } & {
1437
+ params: z.ZodObject<{
1438
+ organizationId: z.ZodString;
1439
+ }, z.core.$strip>;
1440
+ } & Record<never, never>;
1441
+ responses: {
1442
+ 201: {
1443
+ content: {
1444
+ "application/json": {
1445
+ schema: z.ZodObject<{
1446
+ order: z.ZodPipe<z.ZodObject<{
1447
+ id: z.ZodString;
1448
+ referenceId: z.ZodString;
1449
+ status: z.ZodOptional<z.ZodEnum<{
1450
+ pending: "pending";
1451
+ draft: "draft";
1452
+ accepted: "accepted";
1453
+ "ready-for-dispatch": "ready-for-dispatch";
1454
+ dispatched: "dispatched";
1455
+ completed: "completed";
1456
+ cancelled: "cancelled";
1457
+ }>>;
1458
+ token: z.ZodString;
1459
+ expiresAt: z.ZodDate;
1460
+ items: z.ZodArray<z.ZodObject<{
1461
+ translations: z.ZodArray<z.ZodObject<{
1462
+ locale: z.ZodEnum<{
1463
+ id: "id";
1464
+ af: "af";
1465
+ sq: "sq";
1466
+ ar_dz: "ar_dz";
1467
+ ar_bh: "ar_bh";
1468
+ ar_eg: "ar_eg";
1469
+ ar_iq: "ar_iq";
1470
+ ar_jo: "ar_jo";
1471
+ ar_kw: "ar_kw";
1472
+ ar_lb: "ar_lb";
1473
+ ar_ly: "ar_ly";
1474
+ ar_ma: "ar_ma";
1475
+ ar_om: "ar_om";
1476
+ ar_qa: "ar_qa";
1477
+ ar_sa: "ar_sa";
1478
+ ar_sy: "ar_sy";
1479
+ ar_tn: "ar_tn";
1480
+ ar_ae: "ar_ae";
1481
+ ar_ye: "ar_ye";
1482
+ eu: "eu";
1483
+ be: "be";
1484
+ bg: "bg";
1485
+ ca: "ca";
1486
+ zh_hk: "zh_hk";
1487
+ zh_cn: "zh_cn";
1488
+ zh_sg: "zh_sg";
1489
+ zh_tw: "zh_tw";
1490
+ hr: "hr";
1491
+ cs: "cs";
1492
+ da: "da";
1493
+ nl_be: "nl_be";
1494
+ nl: "nl";
1495
+ en: "en";
1496
+ en_au: "en_au";
1497
+ en_bz: "en_bz";
1498
+ en_ca: "en_ca";
1499
+ en_ie: "en_ie";
1500
+ en_jm: "en_jm";
1501
+ en_nz: "en_nz";
1502
+ en_za: "en_za";
1503
+ en_tt: "en_tt";
1504
+ en_gb: "en_gb";
1505
+ en_us: "en_us";
1506
+ et: "et";
1507
+ fo: "fo";
1508
+ fa: "fa";
1509
+ fi: "fi";
1510
+ fr_be: "fr_be";
1511
+ fr_ca: "fr_ca";
1512
+ fr_lu: "fr_lu";
1513
+ fr: "fr";
1514
+ fr_ch: "fr_ch";
1515
+ gd: "gd";
1516
+ de_at: "de_at";
1517
+ de_li: "de_li";
1518
+ de_lu: "de_lu";
1519
+ de: "de";
1520
+ de_ch: "de_ch";
1521
+ el: "el";
1522
+ he: "he";
1523
+ hi: "hi";
1524
+ hu: "hu";
1525
+ is: "is";
1526
+ ga: "ga";
1527
+ it: "it";
1528
+ it_ch: "it_ch";
1529
+ ja: "ja";
1530
+ ko: "ko";
1531
+ ku: "ku";
1532
+ lv: "lv";
1533
+ lt: "lt";
1534
+ mk: "mk";
1535
+ ml: "ml";
1536
+ ms: "ms";
1537
+ mt: "mt";
1538
+ no: "no";
1539
+ nb: "nb";
1540
+ nn: "nn";
1541
+ pl: "pl";
1542
+ pt_br: "pt_br";
1543
+ pt: "pt";
1544
+ pa: "pa";
1545
+ rm: "rm";
1546
+ ro: "ro";
1547
+ ro_md: "ro_md";
1548
+ ru: "ru";
1549
+ ru_md: "ru_md";
1550
+ sr: "sr";
1551
+ sk: "sk";
1552
+ sl: "sl";
1553
+ sb: "sb";
1554
+ es_ar: "es_ar";
1555
+ es_bo: "es_bo";
1556
+ es_cl: "es_cl";
1557
+ es_co: "es_co";
1558
+ es_cr: "es_cr";
1559
+ es_do: "es_do";
1560
+ es_ec: "es_ec";
1561
+ es_sv: "es_sv";
1562
+ es_gt: "es_gt";
1563
+ es_hn: "es_hn";
1564
+ es_mx: "es_mx";
1565
+ es: "es";
1566
+ sv: "sv";
1567
+ sv_fi: "sv_fi";
1568
+ th: "th";
1569
+ tr: "tr";
1570
+ uk: "uk";
1571
+ ur: "ur";
1572
+ vi: "vi";
1573
+ cy: "cy";
1574
+ ji: "ji";
1575
+ zu: "zu";
1576
+ }>;
1577
+ title: z.ZodString;
1578
+ subtitle: z.ZodString;
1579
+ }, z.core.$strip>>;
1580
+ rawData: z.ZodObject<{
1581
+ productId: z.ZodString;
1582
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1583
+ modifierGroups: z.ZodArray<z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ modifiers: z.ZodArray<z.ZodObject<{
1586
+ id: z.ZodString;
1587
+ quantity: z.ZodDefault<z.ZodNumber>;
1588
+ }, z.core.$strip>>;
1589
+ }, z.core.$strip>>;
1590
+ }, z.core.$strip>;
1591
+ unitPrice: z.ZodNumber;
1592
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1593
+ id: z.ZodString;
1594
+ url: z.ZodString;
1595
+ mimeType: z.ZodString;
1596
+ size: z.ZodNumber;
1597
+ filename: z.ZodString;
1598
+ }, z.core.$strip>>>;
1599
+ totalPrice: z.ZodNumber;
1600
+ quantity: z.ZodNumber;
1601
+ productSnapshotId: z.ZodString;
1602
+ }, z.core.$strip>>;
1603
+ shippingMethod: z.ZodNullable<z.ZodObject<{
1604
+ id: z.ZodString;
1605
+ title: z.ZodString;
1606
+ providerName: z.ZodString;
1607
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1608
+ id: z.ZodString;
1609
+ url: z.ZodString;
1610
+ mimeType: z.ZodString;
1611
+ size: z.ZodNumber;
1612
+ filename: z.ZodString;
1613
+ }, z.core.$strip>>>;
1614
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1615
+ shippingZones: z.ZodArray<z.ZodObject<{
1616
+ id: z.ZodOptional<z.ZodString>;
1617
+ title: z.ZodString;
1618
+ distanceUpto: z.ZodCoercedNumber<unknown>;
1619
+ price: z.ZodCoercedNumber<unknown>;
1620
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
1621
+ eta: z.ZodString;
1622
+ }, z.core.$strip>>;
1623
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
1624
+ id: z.ZodOptional<z.ZodString>;
1625
+ title: z.ZodString;
1626
+ distanceUpto: z.ZodCoercedNumber<unknown>;
1627
+ price: z.ZodCoercedNumber<unknown>;
1628
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
1629
+ eta: z.ZodString;
1630
+ }, z.core.$strip>>;
1631
+ createdAt: z.ZodDate;
1632
+ updatedAt: z.ZodDate;
1633
+ }, z.core.$strip>>;
1634
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1635
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1636
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1637
+ createdAt: z.ZodDate;
1638
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1639
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1640
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1643
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1644
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1645
+ addressLineOne: z.ZodString;
1646
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ zipCode: z.ZodOptional<z.ZodString>;
1649
+ city: z.ZodString;
1650
+ country: z.ZodString;
1651
+ placeId: z.ZodString;
1652
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1653
+ }, z.core.$strip>>>;
1654
+ fulfilmentMethod: z.ZodEnum<{
1655
+ delivery: "delivery";
1656
+ pickup: "pickup";
1657
+ }>;
1658
+ currency: z.ZodEnum<{
1659
+ USD: "USD";
1660
+ EUR: "EUR";
1661
+ GBP: "GBP";
1662
+ JPY: "JPY";
1663
+ AUD: "AUD";
1664
+ CAD: "CAD";
1665
+ CHF: "CHF";
1666
+ CNY: "CNY";
1667
+ SEK: "SEK";
1668
+ NZD: "NZD";
1669
+ MXN: "MXN";
1670
+ SGD: "SGD";
1671
+ HKD: "HKD";
1672
+ NOK: "NOK";
1673
+ KRW: "KRW";
1674
+ TRY: "TRY";
1675
+ RUB: "RUB";
1676
+ INR: "INR";
1677
+ BRL: "BRL";
1678
+ ZAR: "ZAR";
1679
+ DKK: "DKK";
1680
+ PLN: "PLN";
1681
+ THB: "THB";
1682
+ IDR: "IDR";
1683
+ HUF: "HUF";
1684
+ CZK: "CZK";
1685
+ ILS: "ILS";
1686
+ PHP: "PHP";
1687
+ AED: "AED";
1688
+ COP: "COP";
1689
+ SAR: "SAR";
1690
+ MYR: "MYR";
1691
+ RON: "RON";
1692
+ }>;
1693
+ payment: z.ZodObject<{
1694
+ id: z.ZodString;
1695
+ method: z.ZodEnum<{
1696
+ card: "card";
1697
+ blik: "blik";
1698
+ paypal: "paypal";
1699
+ cash_on_delivery: "cash_on_delivery";
1700
+ }>;
1701
+ provider: z.ZodEnum<{
1702
+ stripe: "stripe";
1703
+ revolut: "revolut";
1704
+ payu: "payu";
1705
+ not_applicable: "not_applicable";
1706
+ }>;
1707
+ status: z.ZodEnum<{
1708
+ pending: "pending";
1709
+ succeeded: "succeeded";
1710
+ refunded: "refunded";
1711
+ failed: "failed";
1712
+ canceled: "canceled";
1713
+ }>;
1714
+ shipping: z.ZodDefault<z.ZodNumber>;
1715
+ subtotal: z.ZodNumber;
1716
+ total: z.ZodNumber;
1717
+ discount: z.ZodDefault<z.ZodNumber>;
1718
+ currency: z.ZodEnum<{
1719
+ USD: "USD";
1720
+ EUR: "EUR";
1721
+ GBP: "GBP";
1722
+ JPY: "JPY";
1723
+ AUD: "AUD";
1724
+ CAD: "CAD";
1725
+ CHF: "CHF";
1726
+ CNY: "CNY";
1727
+ SEK: "SEK";
1728
+ NZD: "NZD";
1729
+ MXN: "MXN";
1730
+ SGD: "SGD";
1731
+ HKD: "HKD";
1732
+ NOK: "NOK";
1733
+ KRW: "KRW";
1734
+ TRY: "TRY";
1735
+ RUB: "RUB";
1736
+ INR: "INR";
1737
+ BRL: "BRL";
1738
+ ZAR: "ZAR";
1739
+ DKK: "DKK";
1740
+ PLN: "PLN";
1741
+ THB: "THB";
1742
+ IDR: "IDR";
1743
+ HUF: "HUF";
1744
+ CZK: "CZK";
1745
+ ILS: "ILS";
1746
+ PHP: "PHP";
1747
+ AED: "AED";
1748
+ COP: "COP";
1749
+ SAR: "SAR";
1750
+ MYR: "MYR";
1751
+ RON: "RON";
1752
+ }>;
1753
+ }, z.core.$strip>;
1754
+ }, z.core.$strip>, z.ZodTransform<{
1755
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
1756
+ id: string;
1757
+ referenceId: string;
1758
+ token: string;
1759
+ expiresAt: Date;
1760
+ items: {
1761
+ translations: {
1762
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1763
+ title: string;
1764
+ subtitle: string;
1765
+ }[];
1766
+ rawData: {
1767
+ productId: string;
1768
+ modifierGroups: {
1769
+ id: string;
1770
+ modifiers: {
1771
+ id: string;
1772
+ quantity: number;
1773
+ }[];
1774
+ }[];
1775
+ quantity?: number | undefined;
1776
+ };
1777
+ unitPrice: number;
1778
+ totalPrice: number;
1779
+ quantity: number;
1780
+ productSnapshotId: string;
1781
+ image?: {
1782
+ id: string;
1783
+ url: string;
1784
+ mimeType: string;
1785
+ size: number;
1786
+ filename: string;
1787
+ } | null | undefined;
1788
+ }[];
1789
+ shippingMethod: {
1790
+ id: string;
1791
+ title: string;
1792
+ providerName: string;
1793
+ shippingZones: {
1794
+ title: string;
1795
+ distanceUpto: number;
1796
+ price: number;
1797
+ minimumOrderAmount: number | null;
1798
+ eta: string;
1799
+ id?: string | undefined;
1800
+ }[];
1801
+ createdAt: Date;
1802
+ updatedAt: Date;
1803
+ providerLogo?: {
1804
+ id: string;
1805
+ url: string;
1806
+ mimeType: string;
1807
+ size: number;
1808
+ filename: string;
1809
+ } | null | undefined;
1810
+ requireDateOfDelivery?: boolean | undefined;
1811
+ eligibleShippingZone?: {
1812
+ title: string;
1813
+ distanceUpto: number;
1814
+ price: number;
1815
+ minimumOrderAmount: number | null;
1816
+ eta: string;
1817
+ id?: string | undefined;
1818
+ } | undefined;
1819
+ } | null;
1820
+ createdAt: Date;
1821
+ fulfilmentMethod: "delivery" | "pickup";
1822
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1823
+ payment: {
1824
+ id: string;
1825
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
1826
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
1827
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
1828
+ shipping: number;
1829
+ subtotal: number;
1830
+ total: number;
1831
+ discount: number;
1832
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1833
+ };
1834
+ acceptedAt?: Date | null | undefined;
1835
+ dispatchedAt?: Date | null | undefined;
1836
+ readyForDispatchAt?: Date | null | undefined;
1837
+ completedAt?: Date | null | undefined;
1838
+ cancelledAt?: Date | null | undefined;
1839
+ shippingAddress?: {
1840
+ id: string;
1841
+ addressLineOne: string;
1842
+ city: string;
1843
+ country: string;
1844
+ placeId: string;
1845
+ firstname?: string | null | undefined;
1846
+ lastname?: string | null | undefined;
1847
+ phone?: string | null | undefined;
1848
+ doorNumber?: string | null | undefined;
1849
+ addressLineTwo?: string | null | undefined;
1850
+ zipCode?: string | undefined;
1851
+ deliveryInstructions?: string | null | undefined;
1852
+ } | null | undefined;
1853
+ }, {
1854
+ id: string;
1855
+ referenceId: string;
1856
+ token: string;
1857
+ expiresAt: Date;
1858
+ items: {
1859
+ translations: {
1860
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1861
+ title: string;
1862
+ subtitle: string;
1863
+ }[];
1864
+ rawData: {
1865
+ productId: string;
1866
+ modifierGroups: {
1867
+ id: string;
1868
+ modifiers: {
1869
+ id: string;
1870
+ quantity: number;
1871
+ }[];
1872
+ }[];
1873
+ quantity?: number | undefined;
1874
+ };
1875
+ unitPrice: number;
1876
+ totalPrice: number;
1877
+ quantity: number;
1878
+ productSnapshotId: string;
1879
+ image?: {
1880
+ id: string;
1881
+ url: string;
1882
+ mimeType: string;
1883
+ size: number;
1884
+ filename: string;
1885
+ } | null | undefined;
1886
+ }[];
1887
+ shippingMethod: {
1888
+ id: string;
1889
+ title: string;
1890
+ providerName: string;
1891
+ shippingZones: {
1892
+ title: string;
1893
+ distanceUpto: number;
1894
+ price: number;
1895
+ minimumOrderAmount: number | null;
1896
+ eta: string;
1897
+ id?: string | undefined;
1898
+ }[];
1899
+ createdAt: Date;
1900
+ updatedAt: Date;
1901
+ providerLogo?: {
1902
+ id: string;
1903
+ url: string;
1904
+ mimeType: string;
1905
+ size: number;
1906
+ filename: string;
1907
+ } | null | undefined;
1908
+ requireDateOfDelivery?: boolean | undefined;
1909
+ eligibleShippingZone?: {
1910
+ title: string;
1911
+ distanceUpto: number;
1912
+ price: number;
1913
+ minimumOrderAmount: number | null;
1914
+ eta: string;
1915
+ id?: string | undefined;
1916
+ } | undefined;
1917
+ } | null;
1918
+ createdAt: Date;
1919
+ fulfilmentMethod: "delivery" | "pickup";
1920
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1921
+ payment: {
1922
+ id: string;
1923
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
1924
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
1925
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
1926
+ shipping: number;
1927
+ subtotal: number;
1928
+ total: number;
1929
+ discount: number;
1930
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
1931
+ };
1932
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
1933
+ acceptedAt?: Date | null | undefined;
1934
+ dispatchedAt?: Date | null | undefined;
1935
+ readyForDispatchAt?: Date | null | undefined;
1936
+ completedAt?: Date | null | undefined;
1937
+ cancelledAt?: Date | null | undefined;
1938
+ shippingAddress?: {
1939
+ id: string;
1940
+ addressLineOne: string;
1941
+ city: string;
1942
+ country: string;
1943
+ placeId: string;
1944
+ firstname?: string | null | undefined;
1945
+ lastname?: string | null | undefined;
1946
+ phone?: string | null | undefined;
1947
+ doorNumber?: string | null | undefined;
1948
+ addressLineTwo?: string | null | undefined;
1949
+ zipCode?: string | undefined;
1950
+ deliveryInstructions?: string | null | undefined;
1951
+ } | null | undefined;
1952
+ }>>;
1953
+ redirectUrl: z.ZodOptional<z.ZodString>;
1954
+ }, z.core.$strip>;
1955
+ };
1956
+ };
1957
+ description: string;
1958
+ };
1959
+ 400: {
1960
+ content: {
1961
+ "application/json": {
1962
+ schema: z.ZodObject<{
1963
+ status: z.ZodNumber;
1964
+ message: z.ZodString;
1965
+ }, z.core.$strip>;
1966
+ };
1967
+ };
1968
+ description: string;
1969
+ };
1970
+ 401: {
1971
+ content: {
1972
+ "application/json": {
1973
+ schema: z.ZodObject<{
1974
+ status: z.ZodNumber;
1975
+ message: z.ZodString;
1976
+ }, z.core.$strip>;
1977
+ };
1978
+ };
1979
+ description: string;
1980
+ };
1981
+ 404: {
1982
+ content: {
1983
+ "application/json": {
1984
+ schema: z.ZodObject<{
1985
+ status: z.ZodNumber;
1986
+ message: z.ZodString;
1987
+ }, z.core.$strip>;
1988
+ };
1989
+ };
1990
+ description: string;
1991
+ };
1992
+ };
1993
+ summary: string;
1994
+ tags: string[];
1995
+ } & {
1996
+ getRoutingPath(): string;
1997
+ };
1998
+ getOrder: {
1999
+ description: string | undefined;
2000
+ method: import("@hono/zod-openapi").RouteConfig["method"];
2001
+ operationId: string;
2002
+ path: string;
2003
+ request: Record<never, never> & {
2004
+ headers: z.ZodObject<{
2005
+ "accept-language": z.ZodOptional<z.ZodString>;
2006
+ cookie: z.ZodOptional<z.ZodString>;
2007
+ }, z.core.$strip>;
2008
+ } & {
2009
+ params: z.ZodObject<{
2010
+ organizationId: z.ZodString;
2011
+ id: z.ZodString;
2012
+ }, z.core.$strip>;
2013
+ };
2014
+ responses: {
2015
+ 200: {
2016
+ content: {
2017
+ "application/json": {
2018
+ schema: z.ZodPipe<z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ referenceId: z.ZodString;
2021
+ status: z.ZodOptional<z.ZodEnum<{
2022
+ pending: "pending";
2023
+ draft: "draft";
2024
+ accepted: "accepted";
2025
+ "ready-for-dispatch": "ready-for-dispatch";
2026
+ dispatched: "dispatched";
2027
+ completed: "completed";
2028
+ cancelled: "cancelled";
2029
+ }>>;
2030
+ token: z.ZodString;
2031
+ expiresAt: z.ZodDate;
2032
+ items: z.ZodArray<z.ZodObject<{
2033
+ translations: z.ZodArray<z.ZodObject<{
2034
+ locale: z.ZodEnum<{
2035
+ id: "id";
2036
+ af: "af";
2037
+ sq: "sq";
2038
+ ar_dz: "ar_dz";
2039
+ ar_bh: "ar_bh";
2040
+ ar_eg: "ar_eg";
2041
+ ar_iq: "ar_iq";
2042
+ ar_jo: "ar_jo";
2043
+ ar_kw: "ar_kw";
2044
+ ar_lb: "ar_lb";
2045
+ ar_ly: "ar_ly";
2046
+ ar_ma: "ar_ma";
2047
+ ar_om: "ar_om";
2048
+ ar_qa: "ar_qa";
2049
+ ar_sa: "ar_sa";
2050
+ ar_sy: "ar_sy";
2051
+ ar_tn: "ar_tn";
2052
+ ar_ae: "ar_ae";
2053
+ ar_ye: "ar_ye";
2054
+ eu: "eu";
2055
+ be: "be";
2056
+ bg: "bg";
2057
+ ca: "ca";
2058
+ zh_hk: "zh_hk";
2059
+ zh_cn: "zh_cn";
2060
+ zh_sg: "zh_sg";
2061
+ zh_tw: "zh_tw";
2062
+ hr: "hr";
2063
+ cs: "cs";
2064
+ da: "da";
2065
+ nl_be: "nl_be";
2066
+ nl: "nl";
2067
+ en: "en";
2068
+ en_au: "en_au";
2069
+ en_bz: "en_bz";
2070
+ en_ca: "en_ca";
2071
+ en_ie: "en_ie";
2072
+ en_jm: "en_jm";
2073
+ en_nz: "en_nz";
2074
+ en_za: "en_za";
2075
+ en_tt: "en_tt";
2076
+ en_gb: "en_gb";
2077
+ en_us: "en_us";
2078
+ et: "et";
2079
+ fo: "fo";
2080
+ fa: "fa";
2081
+ fi: "fi";
2082
+ fr_be: "fr_be";
2083
+ fr_ca: "fr_ca";
2084
+ fr_lu: "fr_lu";
2085
+ fr: "fr";
2086
+ fr_ch: "fr_ch";
2087
+ gd: "gd";
2088
+ de_at: "de_at";
2089
+ de_li: "de_li";
2090
+ de_lu: "de_lu";
2091
+ de: "de";
2092
+ de_ch: "de_ch";
2093
+ el: "el";
2094
+ he: "he";
2095
+ hi: "hi";
2096
+ hu: "hu";
2097
+ is: "is";
2098
+ ga: "ga";
2099
+ it: "it";
2100
+ it_ch: "it_ch";
2101
+ ja: "ja";
2102
+ ko: "ko";
2103
+ ku: "ku";
2104
+ lv: "lv";
2105
+ lt: "lt";
2106
+ mk: "mk";
2107
+ ml: "ml";
2108
+ ms: "ms";
2109
+ mt: "mt";
2110
+ no: "no";
2111
+ nb: "nb";
2112
+ nn: "nn";
2113
+ pl: "pl";
2114
+ pt_br: "pt_br";
2115
+ pt: "pt";
2116
+ pa: "pa";
2117
+ rm: "rm";
2118
+ ro: "ro";
2119
+ ro_md: "ro_md";
2120
+ ru: "ru";
2121
+ ru_md: "ru_md";
2122
+ sr: "sr";
2123
+ sk: "sk";
2124
+ sl: "sl";
2125
+ sb: "sb";
2126
+ es_ar: "es_ar";
2127
+ es_bo: "es_bo";
2128
+ es_cl: "es_cl";
2129
+ es_co: "es_co";
2130
+ es_cr: "es_cr";
2131
+ es_do: "es_do";
2132
+ es_ec: "es_ec";
2133
+ es_sv: "es_sv";
2134
+ es_gt: "es_gt";
2135
+ es_hn: "es_hn";
2136
+ es_mx: "es_mx";
2137
+ es: "es";
2138
+ sv: "sv";
2139
+ sv_fi: "sv_fi";
2140
+ th: "th";
2141
+ tr: "tr";
2142
+ uk: "uk";
2143
+ ur: "ur";
2144
+ vi: "vi";
2145
+ cy: "cy";
2146
+ ji: "ji";
2147
+ zu: "zu";
2148
+ }>;
2149
+ title: z.ZodString;
2150
+ subtitle: z.ZodString;
2151
+ }, z.core.$strip>>;
2152
+ rawData: z.ZodObject<{
2153
+ productId: z.ZodString;
2154
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2155
+ modifierGroups: z.ZodArray<z.ZodObject<{
2156
+ id: z.ZodString;
2157
+ modifiers: z.ZodArray<z.ZodObject<{
2158
+ id: z.ZodString;
2159
+ quantity: z.ZodDefault<z.ZodNumber>;
2160
+ }, z.core.$strip>>;
2161
+ }, z.core.$strip>>;
2162
+ }, z.core.$strip>;
2163
+ unitPrice: z.ZodNumber;
2164
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2165
+ id: z.ZodString;
2166
+ url: z.ZodString;
2167
+ mimeType: z.ZodString;
2168
+ size: z.ZodNumber;
2169
+ filename: z.ZodString;
2170
+ }, z.core.$strip>>>;
2171
+ totalPrice: z.ZodNumber;
2172
+ quantity: z.ZodNumber;
2173
+ productSnapshotId: z.ZodString;
2174
+ }, z.core.$strip>>;
2175
+ shippingMethod: z.ZodNullable<z.ZodObject<{
2176
+ id: z.ZodString;
2177
+ title: z.ZodString;
2178
+ providerName: z.ZodString;
2179
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2180
+ id: z.ZodString;
2181
+ url: z.ZodString;
2182
+ mimeType: z.ZodString;
2183
+ size: z.ZodNumber;
2184
+ filename: z.ZodString;
2185
+ }, z.core.$strip>>>;
2186
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
2187
+ shippingZones: z.ZodArray<z.ZodObject<{
2188
+ id: z.ZodOptional<z.ZodString>;
2189
+ title: z.ZodString;
2190
+ distanceUpto: z.ZodCoercedNumber<unknown>;
2191
+ price: z.ZodCoercedNumber<unknown>;
2192
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
2193
+ eta: z.ZodString;
2194
+ }, z.core.$strip>>;
2195
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
2196
+ id: z.ZodOptional<z.ZodString>;
2197
+ title: z.ZodString;
2198
+ distanceUpto: z.ZodCoercedNumber<unknown>;
2199
+ price: z.ZodCoercedNumber<unknown>;
2200
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
2201
+ eta: z.ZodString;
2202
+ }, z.core.$strip>>;
2203
+ createdAt: z.ZodDate;
2204
+ updatedAt: z.ZodDate;
2205
+ }, z.core.$strip>>;
2206
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2207
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2208
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2209
+ createdAt: z.ZodDate;
2210
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2211
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2212
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2213
+ id: z.ZodString;
2214
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2215
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2216
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2217
+ addressLineOne: z.ZodString;
2218
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2219
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
+ zipCode: z.ZodOptional<z.ZodString>;
2221
+ city: z.ZodString;
2222
+ country: z.ZodString;
2223
+ placeId: z.ZodString;
2224
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2225
+ }, z.core.$strip>>>;
2226
+ fulfilmentMethod: z.ZodEnum<{
2227
+ delivery: "delivery";
2228
+ pickup: "pickup";
2229
+ }>;
2230
+ currency: z.ZodEnum<{
2231
+ USD: "USD";
2232
+ EUR: "EUR";
2233
+ GBP: "GBP";
2234
+ JPY: "JPY";
2235
+ AUD: "AUD";
2236
+ CAD: "CAD";
2237
+ CHF: "CHF";
2238
+ CNY: "CNY";
2239
+ SEK: "SEK";
2240
+ NZD: "NZD";
2241
+ MXN: "MXN";
2242
+ SGD: "SGD";
2243
+ HKD: "HKD";
2244
+ NOK: "NOK";
2245
+ KRW: "KRW";
2246
+ TRY: "TRY";
2247
+ RUB: "RUB";
2248
+ INR: "INR";
2249
+ BRL: "BRL";
2250
+ ZAR: "ZAR";
2251
+ DKK: "DKK";
2252
+ PLN: "PLN";
2253
+ THB: "THB";
2254
+ IDR: "IDR";
2255
+ HUF: "HUF";
2256
+ CZK: "CZK";
2257
+ ILS: "ILS";
2258
+ PHP: "PHP";
2259
+ AED: "AED";
2260
+ COP: "COP";
2261
+ SAR: "SAR";
2262
+ MYR: "MYR";
2263
+ RON: "RON";
2264
+ }>;
2265
+ payment: z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ method: z.ZodEnum<{
2268
+ card: "card";
2269
+ blik: "blik";
2270
+ paypal: "paypal";
2271
+ cash_on_delivery: "cash_on_delivery";
2272
+ }>;
2273
+ provider: z.ZodEnum<{
2274
+ stripe: "stripe";
2275
+ revolut: "revolut";
2276
+ payu: "payu";
2277
+ not_applicable: "not_applicable";
2278
+ }>;
2279
+ status: z.ZodEnum<{
2280
+ pending: "pending";
2281
+ succeeded: "succeeded";
2282
+ refunded: "refunded";
2283
+ failed: "failed";
2284
+ canceled: "canceled";
2285
+ }>;
2286
+ shipping: z.ZodDefault<z.ZodNumber>;
2287
+ subtotal: z.ZodNumber;
2288
+ total: z.ZodNumber;
2289
+ discount: z.ZodDefault<z.ZodNumber>;
2290
+ currency: z.ZodEnum<{
2291
+ USD: "USD";
2292
+ EUR: "EUR";
2293
+ GBP: "GBP";
2294
+ JPY: "JPY";
2295
+ AUD: "AUD";
2296
+ CAD: "CAD";
2297
+ CHF: "CHF";
2298
+ CNY: "CNY";
2299
+ SEK: "SEK";
2300
+ NZD: "NZD";
2301
+ MXN: "MXN";
2302
+ SGD: "SGD";
2303
+ HKD: "HKD";
2304
+ NOK: "NOK";
2305
+ KRW: "KRW";
2306
+ TRY: "TRY";
2307
+ RUB: "RUB";
2308
+ INR: "INR";
2309
+ BRL: "BRL";
2310
+ ZAR: "ZAR";
2311
+ DKK: "DKK";
2312
+ PLN: "PLN";
2313
+ THB: "THB";
2314
+ IDR: "IDR";
2315
+ HUF: "HUF";
2316
+ CZK: "CZK";
2317
+ ILS: "ILS";
2318
+ PHP: "PHP";
2319
+ AED: "AED";
2320
+ COP: "COP";
2321
+ SAR: "SAR";
2322
+ MYR: "MYR";
2323
+ RON: "RON";
2324
+ }>;
2325
+ }, z.core.$strip>;
2326
+ }, z.core.$strip>, z.ZodTransform<{
2327
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2328
+ id: string;
2329
+ referenceId: string;
2330
+ token: string;
2331
+ expiresAt: Date;
2332
+ items: {
2333
+ translations: {
2334
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2335
+ title: string;
2336
+ subtitle: string;
2337
+ }[];
2338
+ rawData: {
2339
+ productId: string;
2340
+ modifierGroups: {
2341
+ id: string;
2342
+ modifiers: {
2343
+ id: string;
2344
+ quantity: number;
2345
+ }[];
2346
+ }[];
2347
+ quantity?: number | undefined;
2348
+ };
2349
+ unitPrice: number;
2350
+ totalPrice: number;
2351
+ quantity: number;
2352
+ productSnapshotId: string;
2353
+ image?: {
2354
+ id: string;
2355
+ url: string;
2356
+ mimeType: string;
2357
+ size: number;
2358
+ filename: string;
2359
+ } | null | undefined;
2360
+ }[];
2361
+ shippingMethod: {
2362
+ id: string;
2363
+ title: string;
2364
+ providerName: string;
2365
+ shippingZones: {
2366
+ title: string;
2367
+ distanceUpto: number;
2368
+ price: number;
2369
+ minimumOrderAmount: number | null;
2370
+ eta: string;
2371
+ id?: string | undefined;
2372
+ }[];
2373
+ createdAt: Date;
2374
+ updatedAt: Date;
2375
+ providerLogo?: {
2376
+ id: string;
2377
+ url: string;
2378
+ mimeType: string;
2379
+ size: number;
2380
+ filename: string;
2381
+ } | null | undefined;
2382
+ requireDateOfDelivery?: boolean | undefined;
2383
+ eligibleShippingZone?: {
2384
+ title: string;
2385
+ distanceUpto: number;
2386
+ price: number;
2387
+ minimumOrderAmount: number | null;
2388
+ eta: string;
2389
+ id?: string | undefined;
2390
+ } | undefined;
2391
+ } | null;
2392
+ createdAt: Date;
2393
+ fulfilmentMethod: "delivery" | "pickup";
2394
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2395
+ payment: {
2396
+ id: string;
2397
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
2398
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2399
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2400
+ shipping: number;
2401
+ subtotal: number;
2402
+ total: number;
2403
+ discount: number;
2404
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2405
+ };
2406
+ acceptedAt?: Date | null | undefined;
2407
+ dispatchedAt?: Date | null | undefined;
2408
+ readyForDispatchAt?: Date | null | undefined;
2409
+ completedAt?: Date | null | undefined;
2410
+ cancelledAt?: Date | null | undefined;
2411
+ shippingAddress?: {
2412
+ id: string;
2413
+ addressLineOne: string;
2414
+ city: string;
2415
+ country: string;
2416
+ placeId: string;
2417
+ firstname?: string | null | undefined;
2418
+ lastname?: string | null | undefined;
2419
+ phone?: string | null | undefined;
2420
+ doorNumber?: string | null | undefined;
2421
+ addressLineTwo?: string | null | undefined;
2422
+ zipCode?: string | undefined;
2423
+ deliveryInstructions?: string | null | undefined;
2424
+ } | null | undefined;
2425
+ }, {
2426
+ id: string;
2427
+ referenceId: string;
2428
+ token: string;
2429
+ expiresAt: Date;
2430
+ items: {
2431
+ translations: {
2432
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2433
+ title: string;
2434
+ subtitle: string;
2435
+ }[];
2436
+ rawData: {
2437
+ productId: string;
2438
+ modifierGroups: {
2439
+ id: string;
2440
+ modifiers: {
2441
+ id: string;
2442
+ quantity: number;
2443
+ }[];
2444
+ }[];
2445
+ quantity?: number | undefined;
2446
+ };
2447
+ unitPrice: number;
2448
+ totalPrice: number;
2449
+ quantity: number;
2450
+ productSnapshotId: string;
2451
+ image?: {
2452
+ id: string;
2453
+ url: string;
2454
+ mimeType: string;
2455
+ size: number;
2456
+ filename: string;
2457
+ } | null | undefined;
2458
+ }[];
2459
+ shippingMethod: {
2460
+ id: string;
2461
+ title: string;
2462
+ providerName: string;
2463
+ shippingZones: {
2464
+ title: string;
2465
+ distanceUpto: number;
2466
+ price: number;
2467
+ minimumOrderAmount: number | null;
2468
+ eta: string;
2469
+ id?: string | undefined;
2470
+ }[];
2471
+ createdAt: Date;
2472
+ updatedAt: Date;
2473
+ providerLogo?: {
2474
+ id: string;
2475
+ url: string;
2476
+ mimeType: string;
2477
+ size: number;
2478
+ filename: string;
2479
+ } | null | undefined;
2480
+ requireDateOfDelivery?: boolean | undefined;
2481
+ eligibleShippingZone?: {
2482
+ title: string;
2483
+ distanceUpto: number;
2484
+ price: number;
2485
+ minimumOrderAmount: number | null;
2486
+ eta: string;
2487
+ id?: string | undefined;
2488
+ } | undefined;
2489
+ } | null;
2490
+ createdAt: Date;
2491
+ fulfilmentMethod: "delivery" | "pickup";
2492
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2493
+ payment: {
2494
+ id: string;
2495
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
2496
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2497
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2498
+ shipping: number;
2499
+ subtotal: number;
2500
+ total: number;
2501
+ discount: number;
2502
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2503
+ };
2504
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
2505
+ acceptedAt?: Date | null | undefined;
2506
+ dispatchedAt?: Date | null | undefined;
2507
+ readyForDispatchAt?: Date | null | undefined;
2508
+ completedAt?: Date | null | undefined;
2509
+ cancelledAt?: Date | null | undefined;
2510
+ shippingAddress?: {
2511
+ id: string;
2512
+ addressLineOne: string;
2513
+ city: string;
2514
+ country: string;
2515
+ placeId: string;
2516
+ firstname?: string | null | undefined;
2517
+ lastname?: string | null | undefined;
2518
+ phone?: string | null | undefined;
2519
+ doorNumber?: string | null | undefined;
2520
+ addressLineTwo?: string | null | undefined;
2521
+ zipCode?: string | undefined;
2522
+ deliveryInstructions?: string | null | undefined;
2523
+ } | null | undefined;
2524
+ }>>;
2525
+ };
2526
+ };
2527
+ description: string;
2528
+ };
2529
+ 401: {
2530
+ content: {
2531
+ "application/json": {
2532
+ schema: z.ZodObject<{
2533
+ status: z.ZodNumber;
2534
+ message: z.ZodString;
2535
+ }, z.core.$strip>;
2536
+ };
2537
+ };
2538
+ description: string;
2539
+ };
2540
+ 404: {
2541
+ content: {
2542
+ "application/json": {
2543
+ schema: z.ZodObject<{
2544
+ status: z.ZodNumber;
2545
+ message: z.ZodString;
2546
+ }, z.core.$strip>;
2547
+ };
2548
+ };
2549
+ description: string;
2550
+ };
2551
+ };
2552
+ summary: string;
2553
+ tags: string[];
2554
+ } & {
2555
+ getRoutingPath(): string;
2556
+ };
2557
+ updateStatus: {
2558
+ description: string | undefined;
2559
+ method: import("@hono/zod-openapi").RouteConfig["method"];
2560
+ operationId: string;
2561
+ path: string;
2562
+ request: Record<never, never> & {
2563
+ headers: z.ZodObject<{
2564
+ "accept-language": z.ZodOptional<z.ZodString>;
2565
+ cookie: z.ZodOptional<z.ZodString>;
2566
+ }, z.core.$strip>;
2567
+ } & {
2568
+ params: z.ZodObject<{
2569
+ organizationId: z.ZodString;
2570
+ id: z.ZodString;
2571
+ operation: z.ZodEnum<{
2572
+ pending: "pending";
2573
+ draft: "draft";
2574
+ accepted: "accepted";
2575
+ "ready-for-dispatch": "ready-for-dispatch";
2576
+ dispatched: "dispatched";
2577
+ completed: "completed";
2578
+ cancelled: "cancelled";
2579
+ }>;
2580
+ }, z.core.$strip>;
2581
+ };
2582
+ responses: {
2583
+ 200: {
2584
+ content: {
2585
+ "application/json": {
2586
+ schema: z.ZodPipe<z.ZodObject<{
2587
+ id: z.ZodString;
2588
+ referenceId: z.ZodString;
2589
+ status: z.ZodOptional<z.ZodEnum<{
2590
+ pending: "pending";
2591
+ draft: "draft";
2592
+ accepted: "accepted";
2593
+ "ready-for-dispatch": "ready-for-dispatch";
2594
+ dispatched: "dispatched";
2595
+ completed: "completed";
2596
+ cancelled: "cancelled";
2597
+ }>>;
2598
+ token: z.ZodString;
2599
+ expiresAt: z.ZodDate;
2600
+ items: z.ZodArray<z.ZodObject<{
2601
+ translations: z.ZodArray<z.ZodObject<{
2602
+ locale: z.ZodEnum<{
2603
+ id: "id";
2604
+ af: "af";
2605
+ sq: "sq";
2606
+ ar_dz: "ar_dz";
2607
+ ar_bh: "ar_bh";
2608
+ ar_eg: "ar_eg";
2609
+ ar_iq: "ar_iq";
2610
+ ar_jo: "ar_jo";
2611
+ ar_kw: "ar_kw";
2612
+ ar_lb: "ar_lb";
2613
+ ar_ly: "ar_ly";
2614
+ ar_ma: "ar_ma";
2615
+ ar_om: "ar_om";
2616
+ ar_qa: "ar_qa";
2617
+ ar_sa: "ar_sa";
2618
+ ar_sy: "ar_sy";
2619
+ ar_tn: "ar_tn";
2620
+ ar_ae: "ar_ae";
2621
+ ar_ye: "ar_ye";
2622
+ eu: "eu";
2623
+ be: "be";
2624
+ bg: "bg";
2625
+ ca: "ca";
2626
+ zh_hk: "zh_hk";
2627
+ zh_cn: "zh_cn";
2628
+ zh_sg: "zh_sg";
2629
+ zh_tw: "zh_tw";
2630
+ hr: "hr";
2631
+ cs: "cs";
2632
+ da: "da";
2633
+ nl_be: "nl_be";
2634
+ nl: "nl";
2635
+ en: "en";
2636
+ en_au: "en_au";
2637
+ en_bz: "en_bz";
2638
+ en_ca: "en_ca";
2639
+ en_ie: "en_ie";
2640
+ en_jm: "en_jm";
2641
+ en_nz: "en_nz";
2642
+ en_za: "en_za";
2643
+ en_tt: "en_tt";
2644
+ en_gb: "en_gb";
2645
+ en_us: "en_us";
2646
+ et: "et";
2647
+ fo: "fo";
2648
+ fa: "fa";
2649
+ fi: "fi";
2650
+ fr_be: "fr_be";
2651
+ fr_ca: "fr_ca";
2652
+ fr_lu: "fr_lu";
2653
+ fr: "fr";
2654
+ fr_ch: "fr_ch";
2655
+ gd: "gd";
2656
+ de_at: "de_at";
2657
+ de_li: "de_li";
2658
+ de_lu: "de_lu";
2659
+ de: "de";
2660
+ de_ch: "de_ch";
2661
+ el: "el";
2662
+ he: "he";
2663
+ hi: "hi";
2664
+ hu: "hu";
2665
+ is: "is";
2666
+ ga: "ga";
2667
+ it: "it";
2668
+ it_ch: "it_ch";
2669
+ ja: "ja";
2670
+ ko: "ko";
2671
+ ku: "ku";
2672
+ lv: "lv";
2673
+ lt: "lt";
2674
+ mk: "mk";
2675
+ ml: "ml";
2676
+ ms: "ms";
2677
+ mt: "mt";
2678
+ no: "no";
2679
+ nb: "nb";
2680
+ nn: "nn";
2681
+ pl: "pl";
2682
+ pt_br: "pt_br";
2683
+ pt: "pt";
2684
+ pa: "pa";
2685
+ rm: "rm";
2686
+ ro: "ro";
2687
+ ro_md: "ro_md";
2688
+ ru: "ru";
2689
+ ru_md: "ru_md";
2690
+ sr: "sr";
2691
+ sk: "sk";
2692
+ sl: "sl";
2693
+ sb: "sb";
2694
+ es_ar: "es_ar";
2695
+ es_bo: "es_bo";
2696
+ es_cl: "es_cl";
2697
+ es_co: "es_co";
2698
+ es_cr: "es_cr";
2699
+ es_do: "es_do";
2700
+ es_ec: "es_ec";
2701
+ es_sv: "es_sv";
2702
+ es_gt: "es_gt";
2703
+ es_hn: "es_hn";
2704
+ es_mx: "es_mx";
2705
+ es: "es";
2706
+ sv: "sv";
2707
+ sv_fi: "sv_fi";
2708
+ th: "th";
2709
+ tr: "tr";
2710
+ uk: "uk";
2711
+ ur: "ur";
2712
+ vi: "vi";
2713
+ cy: "cy";
2714
+ ji: "ji";
2715
+ zu: "zu";
2716
+ }>;
2717
+ title: z.ZodString;
2718
+ subtitle: z.ZodString;
2719
+ }, z.core.$strip>>;
2720
+ rawData: z.ZodObject<{
2721
+ productId: z.ZodString;
2722
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2723
+ modifierGroups: z.ZodArray<z.ZodObject<{
2724
+ id: z.ZodString;
2725
+ modifiers: z.ZodArray<z.ZodObject<{
2726
+ id: z.ZodString;
2727
+ quantity: z.ZodDefault<z.ZodNumber>;
2728
+ }, z.core.$strip>>;
2729
+ }, z.core.$strip>>;
2730
+ }, z.core.$strip>;
2731
+ unitPrice: z.ZodNumber;
2732
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2733
+ id: z.ZodString;
2734
+ url: z.ZodString;
2735
+ mimeType: z.ZodString;
2736
+ size: z.ZodNumber;
2737
+ filename: z.ZodString;
2738
+ }, z.core.$strip>>>;
2739
+ totalPrice: z.ZodNumber;
2740
+ quantity: z.ZodNumber;
2741
+ productSnapshotId: z.ZodString;
2742
+ }, z.core.$strip>>;
2743
+ shippingMethod: z.ZodNullable<z.ZodObject<{
2744
+ id: z.ZodString;
2745
+ title: z.ZodString;
2746
+ providerName: z.ZodString;
2747
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2748
+ id: z.ZodString;
2749
+ url: z.ZodString;
2750
+ mimeType: z.ZodString;
2751
+ size: z.ZodNumber;
2752
+ filename: z.ZodString;
2753
+ }, z.core.$strip>>>;
2754
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
2755
+ shippingZones: z.ZodArray<z.ZodObject<{
2756
+ id: z.ZodOptional<z.ZodString>;
2757
+ title: z.ZodString;
2758
+ distanceUpto: z.ZodCoercedNumber<unknown>;
2759
+ price: z.ZodCoercedNumber<unknown>;
2760
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
2761
+ eta: z.ZodString;
2762
+ }, z.core.$strip>>;
2763
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
2764
+ id: z.ZodOptional<z.ZodString>;
2765
+ title: z.ZodString;
2766
+ distanceUpto: z.ZodCoercedNumber<unknown>;
2767
+ price: z.ZodCoercedNumber<unknown>;
2768
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
2769
+ eta: z.ZodString;
2770
+ }, z.core.$strip>>;
2771
+ createdAt: z.ZodDate;
2772
+ updatedAt: z.ZodDate;
2773
+ }, z.core.$strip>>;
2774
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2775
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2776
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2777
+ createdAt: z.ZodDate;
2778
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2779
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2780
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2781
+ id: z.ZodString;
2782
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2783
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2784
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2785
+ addressLineOne: z.ZodString;
2786
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2787
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2788
+ zipCode: z.ZodOptional<z.ZodString>;
2789
+ city: z.ZodString;
2790
+ country: z.ZodString;
2791
+ placeId: z.ZodString;
2792
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ }, z.core.$strip>>>;
2794
+ fulfilmentMethod: z.ZodEnum<{
2795
+ delivery: "delivery";
2796
+ pickup: "pickup";
2797
+ }>;
2798
+ currency: z.ZodEnum<{
2799
+ USD: "USD";
2800
+ EUR: "EUR";
2801
+ GBP: "GBP";
2802
+ JPY: "JPY";
2803
+ AUD: "AUD";
2804
+ CAD: "CAD";
2805
+ CHF: "CHF";
2806
+ CNY: "CNY";
2807
+ SEK: "SEK";
2808
+ NZD: "NZD";
2809
+ MXN: "MXN";
2810
+ SGD: "SGD";
2811
+ HKD: "HKD";
2812
+ NOK: "NOK";
2813
+ KRW: "KRW";
2814
+ TRY: "TRY";
2815
+ RUB: "RUB";
2816
+ INR: "INR";
2817
+ BRL: "BRL";
2818
+ ZAR: "ZAR";
2819
+ DKK: "DKK";
2820
+ PLN: "PLN";
2821
+ THB: "THB";
2822
+ IDR: "IDR";
2823
+ HUF: "HUF";
2824
+ CZK: "CZK";
2825
+ ILS: "ILS";
2826
+ PHP: "PHP";
2827
+ AED: "AED";
2828
+ COP: "COP";
2829
+ SAR: "SAR";
2830
+ MYR: "MYR";
2831
+ RON: "RON";
2832
+ }>;
2833
+ payment: z.ZodObject<{
2834
+ id: z.ZodString;
2835
+ method: z.ZodEnum<{
2836
+ card: "card";
2837
+ blik: "blik";
2838
+ paypal: "paypal";
2839
+ cash_on_delivery: "cash_on_delivery";
2840
+ }>;
2841
+ provider: z.ZodEnum<{
2842
+ stripe: "stripe";
2843
+ revolut: "revolut";
2844
+ payu: "payu";
2845
+ not_applicable: "not_applicable";
2846
+ }>;
2847
+ status: z.ZodEnum<{
2848
+ pending: "pending";
2849
+ succeeded: "succeeded";
2850
+ refunded: "refunded";
2851
+ failed: "failed";
2852
+ canceled: "canceled";
2853
+ }>;
2854
+ shipping: z.ZodDefault<z.ZodNumber>;
2855
+ subtotal: z.ZodNumber;
2856
+ total: z.ZodNumber;
2857
+ discount: z.ZodDefault<z.ZodNumber>;
2858
+ currency: z.ZodEnum<{
2859
+ USD: "USD";
2860
+ EUR: "EUR";
2861
+ GBP: "GBP";
2862
+ JPY: "JPY";
2863
+ AUD: "AUD";
2864
+ CAD: "CAD";
2865
+ CHF: "CHF";
2866
+ CNY: "CNY";
2867
+ SEK: "SEK";
2868
+ NZD: "NZD";
2869
+ MXN: "MXN";
2870
+ SGD: "SGD";
2871
+ HKD: "HKD";
2872
+ NOK: "NOK";
2873
+ KRW: "KRW";
2874
+ TRY: "TRY";
2875
+ RUB: "RUB";
2876
+ INR: "INR";
2877
+ BRL: "BRL";
2878
+ ZAR: "ZAR";
2879
+ DKK: "DKK";
2880
+ PLN: "PLN";
2881
+ THB: "THB";
2882
+ IDR: "IDR";
2883
+ HUF: "HUF";
2884
+ CZK: "CZK";
2885
+ ILS: "ILS";
2886
+ PHP: "PHP";
2887
+ AED: "AED";
2888
+ COP: "COP";
2889
+ SAR: "SAR";
2890
+ MYR: "MYR";
2891
+ RON: "RON";
2892
+ }>;
2893
+ }, z.core.$strip>;
2894
+ }, z.core.$strip>, z.ZodTransform<{
2895
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2896
+ id: string;
2897
+ referenceId: string;
2898
+ token: string;
2899
+ expiresAt: Date;
2900
+ items: {
2901
+ translations: {
2902
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2903
+ title: string;
2904
+ subtitle: string;
2905
+ }[];
2906
+ rawData: {
2907
+ productId: string;
2908
+ modifierGroups: {
2909
+ id: string;
2910
+ modifiers: {
2911
+ id: string;
2912
+ quantity: number;
2913
+ }[];
2914
+ }[];
2915
+ quantity?: number | undefined;
2916
+ };
2917
+ unitPrice: number;
2918
+ totalPrice: number;
2919
+ quantity: number;
2920
+ productSnapshotId: string;
2921
+ image?: {
2922
+ id: string;
2923
+ url: string;
2924
+ mimeType: string;
2925
+ size: number;
2926
+ filename: string;
2927
+ } | null | undefined;
2928
+ }[];
2929
+ shippingMethod: {
2930
+ id: string;
2931
+ title: string;
2932
+ providerName: string;
2933
+ shippingZones: {
2934
+ title: string;
2935
+ distanceUpto: number;
2936
+ price: number;
2937
+ minimumOrderAmount: number | null;
2938
+ eta: string;
2939
+ id?: string | undefined;
2940
+ }[];
2941
+ createdAt: Date;
2942
+ updatedAt: Date;
2943
+ providerLogo?: {
2944
+ id: string;
2945
+ url: string;
2946
+ mimeType: string;
2947
+ size: number;
2948
+ filename: string;
2949
+ } | null | undefined;
2950
+ requireDateOfDelivery?: boolean | undefined;
2951
+ eligibleShippingZone?: {
2952
+ title: string;
2953
+ distanceUpto: number;
2954
+ price: number;
2955
+ minimumOrderAmount: number | null;
2956
+ eta: string;
2957
+ id?: string | undefined;
2958
+ } | undefined;
2959
+ } | null;
2960
+ createdAt: Date;
2961
+ fulfilmentMethod: "delivery" | "pickup";
2962
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2963
+ payment: {
2964
+ id: string;
2965
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
2966
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2967
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2968
+ shipping: number;
2969
+ subtotal: number;
2970
+ total: number;
2971
+ discount: number;
2972
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2973
+ };
2974
+ acceptedAt?: Date | null | undefined;
2975
+ dispatchedAt?: Date | null | undefined;
2976
+ readyForDispatchAt?: Date | null | undefined;
2977
+ completedAt?: Date | null | undefined;
2978
+ cancelledAt?: Date | null | undefined;
2979
+ shippingAddress?: {
2980
+ id: string;
2981
+ addressLineOne: string;
2982
+ city: string;
2983
+ country: string;
2984
+ placeId: string;
2985
+ firstname?: string | null | undefined;
2986
+ lastname?: string | null | undefined;
2987
+ phone?: string | null | undefined;
2988
+ doorNumber?: string | null | undefined;
2989
+ addressLineTwo?: string | null | undefined;
2990
+ zipCode?: string | undefined;
2991
+ deliveryInstructions?: string | null | undefined;
2992
+ } | null | undefined;
2993
+ }, {
2994
+ id: string;
2995
+ referenceId: string;
2996
+ token: string;
2997
+ expiresAt: Date;
2998
+ items: {
2999
+ translations: {
3000
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
3001
+ title: string;
3002
+ subtitle: string;
3003
+ }[];
3004
+ rawData: {
3005
+ productId: string;
3006
+ modifierGroups: {
3007
+ id: string;
3008
+ modifiers: {
3009
+ id: string;
3010
+ quantity: number;
3011
+ }[];
3012
+ }[];
3013
+ quantity?: number | undefined;
3014
+ };
3015
+ unitPrice: number;
3016
+ totalPrice: number;
3017
+ quantity: number;
3018
+ productSnapshotId: string;
3019
+ image?: {
3020
+ id: string;
3021
+ url: string;
3022
+ mimeType: string;
3023
+ size: number;
3024
+ filename: string;
3025
+ } | null | undefined;
3026
+ }[];
3027
+ shippingMethod: {
3028
+ id: string;
3029
+ title: string;
3030
+ providerName: string;
3031
+ shippingZones: {
3032
+ title: string;
3033
+ distanceUpto: number;
3034
+ price: number;
3035
+ minimumOrderAmount: number | null;
3036
+ eta: string;
3037
+ id?: string | undefined;
3038
+ }[];
3039
+ createdAt: Date;
3040
+ updatedAt: Date;
3041
+ providerLogo?: {
3042
+ id: string;
3043
+ url: string;
3044
+ mimeType: string;
3045
+ size: number;
3046
+ filename: string;
3047
+ } | null | undefined;
3048
+ requireDateOfDelivery?: boolean | undefined;
3049
+ eligibleShippingZone?: {
3050
+ title: string;
3051
+ distanceUpto: number;
3052
+ price: number;
3053
+ minimumOrderAmount: number | null;
3054
+ eta: string;
3055
+ id?: string | undefined;
3056
+ } | undefined;
3057
+ } | null;
3058
+ createdAt: Date;
3059
+ fulfilmentMethod: "delivery" | "pickup";
3060
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
3061
+ payment: {
3062
+ id: string;
3063
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
3064
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
3065
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
3066
+ shipping: number;
3067
+ subtotal: number;
3068
+ total: number;
3069
+ discount: number;
3070
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
3071
+ };
3072
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
3073
+ acceptedAt?: Date | null | undefined;
3074
+ dispatchedAt?: Date | null | undefined;
3075
+ readyForDispatchAt?: Date | null | undefined;
3076
+ completedAt?: Date | null | undefined;
3077
+ cancelledAt?: Date | null | undefined;
3078
+ shippingAddress?: {
3079
+ id: string;
3080
+ addressLineOne: string;
3081
+ city: string;
3082
+ country: string;
3083
+ placeId: string;
3084
+ firstname?: string | null | undefined;
3085
+ lastname?: string | null | undefined;
3086
+ phone?: string | null | undefined;
3087
+ doorNumber?: string | null | undefined;
3088
+ addressLineTwo?: string | null | undefined;
3089
+ zipCode?: string | undefined;
3090
+ deliveryInstructions?: string | null | undefined;
3091
+ } | null | undefined;
3092
+ }>>;
3093
+ };
3094
+ };
3095
+ description: string;
3096
+ };
3097
+ 400: {
3098
+ content: {
3099
+ "application/json": {
3100
+ schema: z.ZodObject<{
3101
+ status: z.ZodNumber;
3102
+ message: z.ZodString;
3103
+ }, z.core.$strip>;
3104
+ };
3105
+ };
3106
+ description: string;
3107
+ };
3108
+ 401: {
3109
+ content: {
3110
+ "application/json": {
3111
+ schema: z.ZodObject<{
3112
+ status: z.ZodNumber;
3113
+ message: z.ZodString;
3114
+ }, z.core.$strip>;
3115
+ };
3116
+ };
3117
+ description: string;
3118
+ };
3119
+ 404: {
3120
+ content: {
3121
+ "application/json": {
3122
+ schema: z.ZodObject<{
3123
+ status: z.ZodNumber;
3124
+ message: z.ZodString;
3125
+ }, z.core.$strip>;
3126
+ };
3127
+ };
3128
+ description: string;
3129
+ };
3130
+ };
3131
+ summary: string;
3132
+ tags: string[];
3133
+ } & {
3134
+ getRoutingPath(): string;
3135
+ };
3136
+ deleteOrder: {
3137
+ description: string | undefined;
3138
+ method: import("@hono/zod-openapi").RouteConfig["method"];
3139
+ operationId: string;
3140
+ path: string;
3141
+ request: Record<never, never> & {
3142
+ headers: z.ZodObject<{
3143
+ "accept-language": z.ZodOptional<z.ZodString>;
3144
+ cookie: z.ZodOptional<z.ZodString>;
3145
+ }, z.core.$strip>;
3146
+ } & {
3147
+ params: z.ZodObject<{
3148
+ organizationId: z.ZodString;
3149
+ id: z.ZodString;
3150
+ }, z.core.$strip>;
3151
+ };
3152
+ responses: {
3153
+ 204: {
3154
+ description: string;
3155
+ };
3156
+ 400: {
3157
+ content: {
3158
+ "application/json": {
3159
+ schema: z.ZodObject<{
3160
+ status: z.ZodNumber;
3161
+ message: z.ZodString;
3162
+ }, z.core.$strip>;
3163
+ };
3164
+ };
3165
+ description: string;
3166
+ };
3167
+ 401: {
3168
+ content: {
3169
+ "application/json": {
3170
+ schema: z.ZodObject<{
3171
+ status: z.ZodNumber;
3172
+ message: z.ZodString;
3173
+ }, z.core.$strip>;
3174
+ };
3175
+ };
3176
+ description: string;
3177
+ };
3178
+ 404: {
3179
+ content: {
3180
+ "application/json": {
3181
+ schema: z.ZodObject<{
3182
+ status: z.ZodNumber;
3183
+ message: z.ZodString;
3184
+ }, z.core.$strip>;
3185
+ };
3186
+ };
3187
+ description: string;
3188
+ };
3189
+ };
3190
+ summary: string;
3191
+ tags: string[];
3192
+ } & {
3193
+ getRoutingPath(): string;
3194
+ };
7
3195
  };