@teemill/orders 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/.openapi-generator/FILES +7 -25
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1539 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1116 -0
  9. package/dist/api.js +632 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1116 -0
  17. package/dist/esm/api.js +625 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/{models/Status.d.ts → esm/index.d.ts} +3 -16
  25. package/dist/esm/index.js +15 -0
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/{src/models/Status.ts → index.ts} +3 -26
  30. package/package.json +18 -4
  31. package/tsconfig.esm.json +7 -0
  32. package/tsconfig.json +4 -6
  33. package/dist/apis/OrdersApi.d.ts +0 -115
  34. package/dist/apis/OrdersApi.js +0 -531
  35. package/dist/apis/index.d.ts +0 -1
  36. package/dist/apis/index.js +0 -19
  37. package/dist/models/Address.d.ts +0 -73
  38. package/dist/models/Address.js +0 -67
  39. package/dist/models/ApiError.d.ts +0 -37
  40. package/dist/models/ApiError.js +0 -49
  41. package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
  42. package/dist/models/ConfirmOrderFulfillment.js +0 -51
  43. package/dist/models/ConfirmOrderRequest.d.ts +0 -32
  44. package/dist/models/ConfirmOrderRequest.js +0 -48
  45. package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
  46. package/dist/models/ConfirmOrderValidationError.js +0 -60
  47. package/dist/models/ContactInformation.d.ts +0 -37
  48. package/dist/models/ContactInformation.js +0 -49
  49. package/dist/models/DeliveryEstimates.d.ts +0 -37
  50. package/dist/models/DeliveryEstimates.js +0 -47
  51. package/dist/models/ExportOrders202Response.d.ts +0 -31
  52. package/dist/models/ExportOrders202Response.js +0 -45
  53. package/dist/models/Fulfillment.d.ts +0 -71
  54. package/dist/models/Fulfillment.js +0 -61
  55. package/dist/models/FulfillmentItem.d.ts +0 -43
  56. package/dist/models/FulfillmentItem.js +0 -49
  57. package/dist/models/Order.d.ts +0 -135
  58. package/dist/models/Order.js +0 -90
  59. package/dist/models/OrderItem.d.ts +0 -75
  60. package/dist/models/OrderItem.js +0 -61
  61. package/dist/models/OrderItemTaxPrice.d.ts +0 -37
  62. package/dist/models/OrderItemTaxPrice.js +0 -47
  63. package/dist/models/OrderTracking.d.ts +0 -43
  64. package/dist/models/OrderTracking.js +0 -49
  65. package/dist/models/OrdersResponse.d.ts +0 -38
  66. package/dist/models/OrdersResponse.js +0 -48
  67. package/dist/models/Origin.d.ts +0 -37
  68. package/dist/models/Origin.js +0 -47
  69. package/dist/models/Price.d.ts +0 -37
  70. package/dist/models/Price.js +0 -47
  71. package/dist/models/ShippingMethod.d.ts +0 -75
  72. package/dist/models/ShippingMethod.js +0 -61
  73. package/dist/models/Status.js +0 -39
  74. package/dist/models/StatusHistoryItem.d.ts +0 -38
  75. package/dist/models/StatusHistoryItem.js +0 -48
  76. package/dist/models/index.d.ts +0 -20
  77. package/dist/models/index.js +0 -38
  78. package/dist/runtime.d.ts +0 -187
  79. package/dist/runtime.js +0 -565
  80. package/src/apis/OrdersApi.ts +0 -511
  81. package/src/apis/index.ts +0 -3
  82. package/src/index.ts +0 -5
  83. package/src/models/Address.ts +0 -120
  84. package/src/models/ApiError.ts +0 -69
  85. package/src/models/ConfirmOrderFulfillment.ts +0 -70
  86. package/src/models/ConfirmOrderRequest.ts +0 -68
  87. package/src/models/ConfirmOrderValidationError.ts +0 -83
  88. package/src/models/ContactInformation.ts +0 -69
  89. package/src/models/DeliveryEstimates.ts +0 -68
  90. package/src/models/ExportOrders202Response.ts +0 -60
  91. package/src/models/Fulfillment.ts +0 -133
  92. package/src/models/FulfillmentItem.ts +0 -76
  93. package/src/models/Order.ts +0 -239
  94. package/src/models/OrderItem.ts +0 -127
  95. package/src/models/OrderItemTaxPrice.ts +0 -68
  96. package/src/models/OrderTracking.ts +0 -76
  97. package/src/models/OrdersResponse.ts +0 -75
  98. package/src/models/Origin.ts +0 -68
  99. package/src/models/Price.ts +0 -68
  100. package/src/models/ShippingMethod.ts +0 -129
  101. package/src/models/StatusHistoryItem.ts +0 -75
  102. package/src/models/index.ts +0 -22
  103. package/src/runtime.ts +0 -441
package/dist/api.d.ts ADDED
@@ -0,0 +1,1116 @@
1
+ /**
2
+ * Orders API
3
+ * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
4
+ *
5
+ * The version of the OpenAPI document: 1.6.2
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ * A person\'s address.
18
+ * @export
19
+ * @interface Address
20
+ */
21
+ export interface Address {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Address
26
+ */
27
+ 'contactName': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Address
32
+ */
33
+ 'company'?: string;
34
+ /**
35
+ * First line of the address.
36
+ * @type {string}
37
+ * @memberof Address
38
+ */
39
+ 'line1': string;
40
+ /**
41
+ * Second line of the address.
42
+ * @type {string}
43
+ * @memberof Address
44
+ */
45
+ 'line2'?: string;
46
+ /**
47
+ * City of the address.
48
+ * @type {string}
49
+ * @memberof Address
50
+ */
51
+ 'city': string;
52
+ /**
53
+ * Postal code of the address.
54
+ * @type {string}
55
+ * @memberof Address
56
+ */
57
+ 'postalCode'?: string;
58
+ /**
59
+ * Country of the address (ISO 3166-1 alpha-2).
60
+ * @type {string}
61
+ * @memberof Address
62
+ */
63
+ 'country': string;
64
+ /**
65
+ * State of the address.
66
+ * @type {string}
67
+ * @memberof Address
68
+ */
69
+ 'state'?: string;
70
+ }
71
+ /**
72
+ *
73
+ * @export
74
+ * @interface ApiError
75
+ */
76
+ export interface ApiError {
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof ApiError
81
+ */
82
+ 'code'?: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof ApiError
87
+ */
88
+ 'message': string;
89
+ }
90
+ /**
91
+ *
92
+ * @export
93
+ * @interface ConfirmOrderFulfillment
94
+ */
95
+ export interface ConfirmOrderFulfillment {
96
+ /**
97
+ * Unique object identifier
98
+ * @type {string}
99
+ * @memberof ConfirmOrderFulfillment
100
+ */
101
+ 'fulfillmentId': string;
102
+ /**
103
+ * Unique object identifier
104
+ * @type {string}
105
+ * @memberof ConfirmOrderFulfillment
106
+ */
107
+ 'shippingMethodId': string;
108
+ }
109
+ /**
110
+ *
111
+ * @export
112
+ * @interface ConfirmOrderRequest
113
+ */
114
+ export interface ConfirmOrderRequest {
115
+ /**
116
+ *
117
+ * @type {Array<ConfirmOrderFulfillment>}
118
+ * @memberof ConfirmOrderRequest
119
+ */
120
+ 'fulfillments': Array<ConfirmOrderFulfillment>;
121
+ }
122
+ /**
123
+ *
124
+ * @export
125
+ * @interface ConfirmOrderValidationError
126
+ */
127
+ export interface ConfirmOrderValidationError {
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof ConfirmOrderValidationError
132
+ */
133
+ 'code': ConfirmOrderValidationErrorCodeEnum;
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof ConfirmOrderValidationError
138
+ */
139
+ 'message': string;
140
+ }
141
+ export declare const ConfirmOrderValidationErrorCodeEnum: {
142
+ readonly BadRequest: "BAD_REQUEST";
143
+ readonly PaymentFailed: "PAYMENT_FAILED";
144
+ readonly Conflict: "CONFLICT";
145
+ readonly ActionRequired: "ACTION_REQUIRED";
146
+ };
147
+ export type ConfirmOrderValidationErrorCodeEnum = typeof ConfirmOrderValidationErrorCodeEnum[keyof typeof ConfirmOrderValidationErrorCodeEnum];
148
+ /**
149
+ * Order recipient contact information, used only for courier tracking/updates.
150
+ * @export
151
+ * @interface ContactInformation
152
+ */
153
+ export interface ContactInformation {
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof ContactInformation
158
+ */
159
+ 'email': string;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof ContactInformation
164
+ */
165
+ 'phone'?: string | null;
166
+ }
167
+ /**
168
+ *
169
+ * @export
170
+ * @interface DeliveryEstimates
171
+ */
172
+ export interface DeliveryEstimates {
173
+ /**
174
+ * ISO 8601 Timestamp
175
+ * @type {string}
176
+ * @memberof DeliveryEstimates
177
+ */
178
+ 'min'?: string;
179
+ /**
180
+ * ISO 8601 Timestamp
181
+ * @type {string}
182
+ * @memberof DeliveryEstimates
183
+ */
184
+ 'max'?: string;
185
+ }
186
+ /**
187
+ *
188
+ * @export
189
+ * @interface ExportOrders202Response
190
+ */
191
+ export interface ExportOrders202Response {
192
+ /**
193
+ * A message describing the export status
194
+ * @type {string}
195
+ * @memberof ExportOrders202Response
196
+ */
197
+ 'message'?: string;
198
+ }
199
+ /**
200
+ *
201
+ * @export
202
+ * @interface Fulfillment
203
+ */
204
+ export interface Fulfillment {
205
+ /**
206
+ * Unique fulfillment id
207
+ * @type {string}
208
+ * @memberof Fulfillment
209
+ */
210
+ 'id'?: string;
211
+ /**
212
+ *
213
+ * @type {Status}
214
+ * @memberof Fulfillment
215
+ */
216
+ 'status'?: Status;
217
+ /**
218
+ *
219
+ * @type {FulfillmentFulfiller}
220
+ * @memberof Fulfillment
221
+ */
222
+ 'fulfiller'?: FulfillmentFulfiller;
223
+ /**
224
+ *
225
+ * @type {Array<FulfillmentItem>}
226
+ * @memberof Fulfillment
227
+ */
228
+ 'items'?: Array<FulfillmentItem>;
229
+ /**
230
+ *
231
+ * @type {OrderTracking}
232
+ * @memberof Fulfillment
233
+ */
234
+ 'tracking'?: OrderTracking | null;
235
+ /**
236
+ * Shipping method currently set
237
+ * @type {ShippingMethod}
238
+ * @memberof Fulfillment
239
+ */
240
+ 'shippingMethod'?: ShippingMethod;
241
+ /**
242
+ * Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment.
243
+ * @type {Array<ShippingMethod>}
244
+ * @memberof Fulfillment
245
+ */
246
+ 'availableShippingMethods'?: Array<ShippingMethod>;
247
+ /**
248
+ * Weight of the package being shipped in grams
249
+ * @type {number}
250
+ * @memberof Fulfillment
251
+ */
252
+ 'packageWeight'?: number;
253
+ }
254
+ /**
255
+ * The fulfiller that will be processing this order.
256
+ * @export
257
+ * @interface FulfillmentFulfiller
258
+ */
259
+ export interface FulfillmentFulfiller {
260
+ /**
261
+ *
262
+ * @type {FulfillmentFulfillerLocation}
263
+ * @memberof FulfillmentFulfiller
264
+ */
265
+ 'location'?: FulfillmentFulfillerLocation;
266
+ }
267
+ /**
268
+ *
269
+ * @export
270
+ * @interface FulfillmentFulfillerLocation
271
+ */
272
+ export interface FulfillmentFulfillerLocation {
273
+ /**
274
+ *
275
+ * @type {string}
276
+ * @memberof FulfillmentFulfillerLocation
277
+ */
278
+ 'city'?: string | null;
279
+ /**
280
+ *
281
+ * @type {string}
282
+ * @memberof FulfillmentFulfillerLocation
283
+ */
284
+ 'country'?: string | null;
285
+ }
286
+ /**
287
+ *
288
+ * @export
289
+ * @interface FulfillmentItem
290
+ */
291
+ export interface FulfillmentItem {
292
+ /**
293
+ * Unique fulfillment item id
294
+ * @type {string}
295
+ * @memberof FulfillmentItem
296
+ */
297
+ 'id'?: string;
298
+ /**
299
+ * Id of the order item being fulfilled
300
+ * @type {string}
301
+ * @memberof FulfillmentItem
302
+ */
303
+ 'itemId'?: string;
304
+ /**
305
+ * Number of this item being fulfilled
306
+ * @type {number}
307
+ * @memberof FulfillmentItem
308
+ */
309
+ 'quantity'?: number;
310
+ }
311
+ /**
312
+ *
313
+ * @export
314
+ * @interface Order
315
+ */
316
+ export interface Order {
317
+ /**
318
+ * Unique object identifier
319
+ * @type {string}
320
+ * @memberof Order
321
+ */
322
+ 'id'?: string;
323
+ /**
324
+ * A reference to the resource location
325
+ * @type {string}
326
+ * @memberof Order
327
+ */
328
+ 'ref'?: string;
329
+ /**
330
+ *
331
+ * @type {Status}
332
+ * @memberof Order
333
+ */
334
+ 'status'?: Status;
335
+ /**
336
+ *
337
+ * @type {ContactInformation}
338
+ * @memberof Order
339
+ */
340
+ 'contactInformation': ContactInformation;
341
+ /**
342
+ *
343
+ * @type {Address}
344
+ * @memberof Order
345
+ */
346
+ 'shippingAddress': Address;
347
+ /**
348
+ * ISO 8601 Timestamp
349
+ * @type {string}
350
+ * @memberof Order
351
+ */
352
+ 'createdAt'?: string;
353
+ /**
354
+ * ISO 8601 Timestamp
355
+ * @type {string}
356
+ * @memberof Order
357
+ */
358
+ 'updatedAt'?: string;
359
+ /**
360
+ * A custom reference to the merchant\'s order that will be displayed on the shipping label.
361
+ * @type {string}
362
+ * @memberof Order
363
+ */
364
+ 'merchantReference'?: string | null;
365
+ /**
366
+ *
367
+ * @type {Array<Fulfillment>}
368
+ * @memberof Order
369
+ */
370
+ 'fulfillments'?: Array<Fulfillment>;
371
+ /**
372
+ *
373
+ * @type {Array<OrderItem>}
374
+ * @memberof Order
375
+ */
376
+ 'items': Array<OrderItem>;
377
+ /**
378
+ *
379
+ * @type {Price}
380
+ * @memberof Order
381
+ */
382
+ 'totalPrice'?: Price;
383
+ /**
384
+ *
385
+ * @type {Price}
386
+ * @memberof Order
387
+ */
388
+ 'taxPrice'?: Price;
389
+ /**
390
+ *
391
+ * @type {Price}
392
+ * @memberof Order
393
+ */
394
+ 'subtotalPrice'?: Price;
395
+ /**
396
+ *
397
+ * @type {Price}
398
+ * @memberof Order
399
+ */
400
+ 'discountPrice'?: Price;
401
+ /**
402
+ *
403
+ * @type {Price}
404
+ * @memberof Order
405
+ */
406
+ 'shippingPrice'?: Price;
407
+ /**
408
+ *
409
+ * @type {Origin}
410
+ * @memberof Order
411
+ */
412
+ 'origin'?: Origin;
413
+ /**
414
+ *
415
+ * @type {Array<StatusHistoryItem>}
416
+ * @memberof Order
417
+ */
418
+ 'statusHistory'?: Array<StatusHistoryItem>;
419
+ }
420
+ /**
421
+ *
422
+ * @export
423
+ * @interface OrderItem
424
+ */
425
+ export interface OrderItem {
426
+ /**
427
+ * Unique object identifier
428
+ * @type {string}
429
+ * @memberof OrderItem
430
+ */
431
+ 'id'?: string;
432
+ /**
433
+ * Reference URL to the order item variant
434
+ * @type {string}
435
+ * @memberof OrderItem
436
+ */
437
+ 'variantRef': string;
438
+ /**
439
+ *
440
+ * @type {number}
441
+ * @memberof OrderItem
442
+ */
443
+ 'quantity': number;
444
+ /**
445
+ *
446
+ * @type {Price}
447
+ * @memberof OrderItem
448
+ */
449
+ 'totalPrice'?: Price;
450
+ /**
451
+ *
452
+ * @type {OrderItemTaxPrice}
453
+ * @memberof OrderItem
454
+ */
455
+ 'taxPrice'?: OrderItemTaxPrice;
456
+ /**
457
+ *
458
+ * @type {Price}
459
+ * @memberof OrderItem
460
+ */
461
+ 'subtotalPrice'?: Price;
462
+ /**
463
+ *
464
+ * @type {Price}
465
+ * @memberof OrderItem
466
+ */
467
+ 'discountPrice'?: Price;
468
+ /**
469
+ * The price you charged the recipient for each item. It\'s highly recommended if you have international orders as it aids customs issues.
470
+ * @type {Price}
471
+ * @memberof OrderItem
472
+ */
473
+ 'recipientCost'?: Price;
474
+ }
475
+ /**
476
+ * This is an estimate until the order has been confirmed
477
+ * @export
478
+ * @interface OrderItemTaxPrice
479
+ */
480
+ export interface OrderItemTaxPrice {
481
+ /**
482
+ * Price including tax in the specified currency.
483
+ * @type {string}
484
+ * @memberof OrderItemTaxPrice
485
+ */
486
+ 'amount'?: string;
487
+ /**
488
+ * Currency code for the currency the price is valued in.
489
+ * @type {string}
490
+ * @memberof OrderItemTaxPrice
491
+ */
492
+ 'currencyCode'?: string;
493
+ }
494
+ /**
495
+ *
496
+ * @export
497
+ * @interface OrderTracking
498
+ */
499
+ export interface OrderTracking {
500
+ /**
501
+ *
502
+ * @type {string}
503
+ * @memberof OrderTracking
504
+ */
505
+ 'courier'?: string;
506
+ /**
507
+ *
508
+ * @type {string}
509
+ * @memberof OrderTracking
510
+ */
511
+ 'code'?: string;
512
+ /**
513
+ *
514
+ * @type {string}
515
+ * @memberof OrderTracking
516
+ */
517
+ 'url'?: string;
518
+ }
519
+ /**
520
+ *
521
+ * @export
522
+ * @interface OrdersResponse
523
+ */
524
+ export interface OrdersResponse {
525
+ /**
526
+ *
527
+ * @type {Array<Order>}
528
+ * @memberof OrdersResponse
529
+ */
530
+ 'orders'?: Array<Order>;
531
+ /**
532
+ *
533
+ * @type {number}
534
+ * @memberof OrdersResponse
535
+ */
536
+ 'nextPageToken'?: number;
537
+ }
538
+ /**
539
+ *
540
+ * @export
541
+ * @interface Origin
542
+ */
543
+ export interface Origin {
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof Origin
548
+ */
549
+ 'code'?: string;
550
+ /**
551
+ *
552
+ * @type {boolean}
553
+ * @memberof Origin
554
+ */
555
+ 'isPaid'?: boolean;
556
+ }
557
+ /**
558
+ * Standard price definition that defines the amount and currency.
559
+ * @export
560
+ * @interface Price
561
+ */
562
+ export interface Price {
563
+ /**
564
+ * Price including tax in the specified currency.
565
+ * @type {string}
566
+ * @memberof Price
567
+ */
568
+ 'amount'?: string;
569
+ /**
570
+ * Currency code for the currency the price is valued in.
571
+ * @type {string}
572
+ * @memberof Price
573
+ */
574
+ 'currencyCode'?: string;
575
+ }
576
+ /**
577
+ *
578
+ * @export
579
+ * @interface ShippingMethod
580
+ */
581
+ export interface ShippingMethod {
582
+ /**
583
+ * Unique object identifier
584
+ * @type {string}
585
+ * @memberof ShippingMethod
586
+ */
587
+ 'id'?: string;
588
+ /**
589
+ *
590
+ * @type {string}
591
+ * @memberof ShippingMethod
592
+ */
593
+ 'name'?: string;
594
+ /**
595
+ *
596
+ * @type {string}
597
+ * @memberof ShippingMethod
598
+ */
599
+ 'description'?: string;
600
+ /**
601
+ *
602
+ * @type {DeliveryEstimates}
603
+ * @memberof ShippingMethod
604
+ */
605
+ 'deliveryEstimates'?: DeliveryEstimates;
606
+ /**
607
+ *
608
+ * @type {Price}
609
+ * @memberof ShippingMethod
610
+ */
611
+ 'totalPrice'?: Price;
612
+ /**
613
+ *
614
+ * @type {Price}
615
+ * @memberof ShippingMethod
616
+ */
617
+ 'taxPrice'?: Price;
618
+ /**
619
+ *
620
+ * @type {Price}
621
+ * @memberof ShippingMethod
622
+ */
623
+ 'subtotalPrice'?: Price;
624
+ /**
625
+ *
626
+ * @type {Price}
627
+ * @memberof ShippingMethod
628
+ */
629
+ 'discountPrice'?: Price;
630
+ }
631
+ /**
632
+ *
633
+ * @export
634
+ * @enum {string}
635
+ */
636
+ export declare const Status: {
637
+ readonly New: "new";
638
+ readonly Paid: "paid";
639
+ readonly Processing: "processing";
640
+ readonly Complete: "complete";
641
+ readonly Refunded: "refunded";
642
+ };
643
+ export type Status = typeof Status[keyof typeof Status];
644
+ /**
645
+ *
646
+ * @export
647
+ * @interface StatusHistoryItem
648
+ */
649
+ export interface StatusHistoryItem {
650
+ /**
651
+ *
652
+ * @type {Status}
653
+ * @memberof StatusHistoryItem
654
+ */
655
+ 'status'?: Status;
656
+ /**
657
+ * ISO 8601 Timestamp
658
+ * @type {string}
659
+ * @memberof StatusHistoryItem
660
+ */
661
+ 'createdAt'?: string;
662
+ }
663
+ /**
664
+ * OrdersApi - axios parameter creator
665
+ * @export
666
+ */
667
+ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
668
+ /**
669
+ * Cancels an order if it has not yet started processing.
670
+ * @summary Cancel order
671
+ * @param {string} project What project it is
672
+ * @param {string} orderId Unique identifier of an order
673
+ * @param {string} [fields] Specifies which fields to return, separated by commas
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ cancelOrder: (project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
678
+ /**
679
+ * Confirms an order, and submits it as ready to take payment and begin processing.
680
+ * @summary Confirm order
681
+ * @param {string} project What project it is
682
+ * @param {string} orderId Unique identifier of an order
683
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
684
+ * @param {string} [fields] Specifies which fields to return, separated by commas
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ confirmOrder: (project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
689
+ /**
690
+ * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
691
+ * @summary Create order
692
+ * @param {string} project What project it is
693
+ * @param {Order} order Order schema
694
+ * @param {string} [fields] Specifies which fields to return, separated by commas
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ createOrder: (project: string, order: Order, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
699
+ /**
700
+ * Export orders as a CSV file
701
+ * @summary Export orders
702
+ * @param {string} project What project it is
703
+ * @param {string} start Start of date range to filter by when orders were placed
704
+ * @param {string} [end] End of date range to filter by when orders were placed
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ exportOrders: (project: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
709
+ /**
710
+ * Get an order by a given ID.
711
+ * @summary Get order
712
+ * @param {string} project What project it is
713
+ * @param {string} orderId Unique identifier of an order
714
+ * @param {string} [fields] Specifies which fields to return, separated by commas
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ getOrder: (project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
719
+ /**
720
+ * Lists all orders placed on this project, paginated into configurable chunks.
721
+ * @summary List orders
722
+ * @param {string} project What project it is
723
+ * @param {string} [fields] Specifies which fields to return, separated by commas
724
+ * @param {number} [pageToken] Page reference token
725
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
726
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
727
+ * @param {Array<string>} [ids] Specify fulfillment IDs to list
728
+ * @param {Array<Status>} [statuses] Filter by fulfillment status
729
+ * @param {string} [start] Start of date range to filter by when orders were placed
730
+ * @param {string} [end] End of date range to filter by when orders were placed
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
735
+ };
736
+ /**
737
+ * OrdersApi - functional programming interface
738
+ * @export
739
+ */
740
+ export declare const OrdersApiFp: (configuration?: Configuration) => {
741
+ /**
742
+ * Cancels an order if it has not yet started processing.
743
+ * @summary Cancel order
744
+ * @param {string} project What project it is
745
+ * @param {string} orderId Unique identifier of an order
746
+ * @param {string} [fields] Specifies which fields to return, separated by commas
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ cancelOrder(project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
751
+ /**
752
+ * Confirms an order, and submits it as ready to take payment and begin processing.
753
+ * @summary Confirm order
754
+ * @param {string} project What project it is
755
+ * @param {string} orderId Unique identifier of an order
756
+ * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
757
+ * @param {string} [fields] Specifies which fields to return, separated by commas
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
762
+ /**
763
+ * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
764
+ * @summary Create order
765
+ * @param {string} project What project it is
766
+ * @param {Order} order Order schema
767
+ * @param {string} [fields] Specifies which fields to return, separated by commas
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ createOrder(project: string, order: Order, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
772
+ /**
773
+ * Export orders as a CSV file
774
+ * @summary Export orders
775
+ * @param {string} project What project it is
776
+ * @param {string} start Start of date range to filter by when orders were placed
777
+ * @param {string} [end] End of date range to filter by when orders were placed
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ exportOrders(project: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
782
+ /**
783
+ * Get an order by a given ID.
784
+ * @summary Get order
785
+ * @param {string} project What project it is
786
+ * @param {string} orderId Unique identifier of an order
787
+ * @param {string} [fields] Specifies which fields to return, separated by commas
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ getOrder(project: string, orderId: string, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
792
+ /**
793
+ * Lists all orders placed on this project, paginated into configurable chunks.
794
+ * @summary List orders
795
+ * @param {string} project What project it is
796
+ * @param {string} [fields] Specifies which fields to return, separated by commas
797
+ * @param {number} [pageToken] Page reference token
798
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
799
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
800
+ * @param {Array<string>} [ids] Specify fulfillment IDs to list
801
+ * @param {Array<Status>} [statuses] Filter by fulfillment status
802
+ * @param {string} [start] Start of date range to filter by when orders were placed
803
+ * @param {string} [end] End of date range to filter by when orders were placed
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
808
+ };
809
+ /**
810
+ * OrdersApi - factory interface
811
+ * @export
812
+ */
813
+ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
814
+ /**
815
+ * Cancels an order if it has not yet started processing.
816
+ * @summary Cancel order
817
+ * @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ cancelOrder(requestParameters: OrdersApiCancelOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
822
+ /**
823
+ * Confirms an order, and submits it as ready to take payment and begin processing.
824
+ * @summary Confirm order
825
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ */
829
+ confirmOrder(requestParameters: OrdersApiConfirmOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
830
+ /**
831
+ * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
832
+ * @summary Create order
833
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
838
+ /**
839
+ * Export orders as a CSV file
840
+ * @summary Export orders
841
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
846
+ /**
847
+ * Get an order by a given ID.
848
+ * @summary Get order
849
+ * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ */
853
+ getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
854
+ /**
855
+ * Lists all orders placed on this project, paginated into configurable chunks.
856
+ * @summary List orders
857
+ * @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
862
+ };
863
+ /**
864
+ * Request parameters for cancelOrder operation in OrdersApi.
865
+ * @export
866
+ * @interface OrdersApiCancelOrderRequest
867
+ */
868
+ export interface OrdersApiCancelOrderRequest {
869
+ /**
870
+ * What project it is
871
+ * @type {string}
872
+ * @memberof OrdersApiCancelOrder
873
+ */
874
+ readonly project: string;
875
+ /**
876
+ * Unique identifier of an order
877
+ * @type {string}
878
+ * @memberof OrdersApiCancelOrder
879
+ */
880
+ readonly orderId: string;
881
+ /**
882
+ * Specifies which fields to return, separated by commas
883
+ * @type {string}
884
+ * @memberof OrdersApiCancelOrder
885
+ */
886
+ readonly fields?: string;
887
+ }
888
+ /**
889
+ * Request parameters for confirmOrder operation in OrdersApi.
890
+ * @export
891
+ * @interface OrdersApiConfirmOrderRequest
892
+ */
893
+ export interface OrdersApiConfirmOrderRequest {
894
+ /**
895
+ * What project it is
896
+ * @type {string}
897
+ * @memberof OrdersApiConfirmOrder
898
+ */
899
+ readonly project: string;
900
+ /**
901
+ * Unique identifier of an order
902
+ * @type {string}
903
+ * @memberof OrdersApiConfirmOrder
904
+ */
905
+ readonly orderId: string;
906
+ /**
907
+ * ConfirmFulfillment schema
908
+ * @type {ConfirmOrderRequest}
909
+ * @memberof OrdersApiConfirmOrder
910
+ */
911
+ readonly confirmOrderRequest: ConfirmOrderRequest;
912
+ /**
913
+ * Specifies which fields to return, separated by commas
914
+ * @type {string}
915
+ * @memberof OrdersApiConfirmOrder
916
+ */
917
+ readonly fields?: string;
918
+ }
919
+ /**
920
+ * Request parameters for createOrder operation in OrdersApi.
921
+ * @export
922
+ * @interface OrdersApiCreateOrderRequest
923
+ */
924
+ export interface OrdersApiCreateOrderRequest {
925
+ /**
926
+ * What project it is
927
+ * @type {string}
928
+ * @memberof OrdersApiCreateOrder
929
+ */
930
+ readonly project: string;
931
+ /**
932
+ * Order schema
933
+ * @type {Order}
934
+ * @memberof OrdersApiCreateOrder
935
+ */
936
+ readonly order: Order;
937
+ /**
938
+ * Specifies which fields to return, separated by commas
939
+ * @type {string}
940
+ * @memberof OrdersApiCreateOrder
941
+ */
942
+ readonly fields?: string;
943
+ }
944
+ /**
945
+ * Request parameters for exportOrders operation in OrdersApi.
946
+ * @export
947
+ * @interface OrdersApiExportOrdersRequest
948
+ */
949
+ export interface OrdersApiExportOrdersRequest {
950
+ /**
951
+ * What project it is
952
+ * @type {string}
953
+ * @memberof OrdersApiExportOrders
954
+ */
955
+ readonly project: string;
956
+ /**
957
+ * Start of date range to filter by when orders were placed
958
+ * @type {string}
959
+ * @memberof OrdersApiExportOrders
960
+ */
961
+ readonly start: string;
962
+ /**
963
+ * End of date range to filter by when orders were placed
964
+ * @type {string}
965
+ * @memberof OrdersApiExportOrders
966
+ */
967
+ readonly end?: string;
968
+ }
969
+ /**
970
+ * Request parameters for getOrder operation in OrdersApi.
971
+ * @export
972
+ * @interface OrdersApiGetOrderRequest
973
+ */
974
+ export interface OrdersApiGetOrderRequest {
975
+ /**
976
+ * What project it is
977
+ * @type {string}
978
+ * @memberof OrdersApiGetOrder
979
+ */
980
+ readonly project: string;
981
+ /**
982
+ * Unique identifier of an order
983
+ * @type {string}
984
+ * @memberof OrdersApiGetOrder
985
+ */
986
+ readonly orderId: string;
987
+ /**
988
+ * Specifies which fields to return, separated by commas
989
+ * @type {string}
990
+ * @memberof OrdersApiGetOrder
991
+ */
992
+ readonly fields?: string;
993
+ }
994
+ /**
995
+ * Request parameters for getOrders operation in OrdersApi.
996
+ * @export
997
+ * @interface OrdersApiGetOrdersRequest
998
+ */
999
+ export interface OrdersApiGetOrdersRequest {
1000
+ /**
1001
+ * What project it is
1002
+ * @type {string}
1003
+ * @memberof OrdersApiGetOrders
1004
+ */
1005
+ readonly project: string;
1006
+ /**
1007
+ * Specifies which fields to return, separated by commas
1008
+ * @type {string}
1009
+ * @memberof OrdersApiGetOrders
1010
+ */
1011
+ readonly fields?: string;
1012
+ /**
1013
+ * Page reference token
1014
+ * @type {number}
1015
+ * @memberof OrdersApiGetOrders
1016
+ */
1017
+ readonly pageToken?: number;
1018
+ /**
1019
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1020
+ * @type {number}
1021
+ * @memberof OrdersApiGetOrders
1022
+ */
1023
+ readonly pageSize?: number;
1024
+ /**
1025
+ * Search term to filter based on order reference, customer name and email
1026
+ * @type {string}
1027
+ * @memberof OrdersApiGetOrders
1028
+ */
1029
+ readonly search?: string;
1030
+ /**
1031
+ * Specify fulfillment IDs to list
1032
+ * @type {Array<string>}
1033
+ * @memberof OrdersApiGetOrders
1034
+ */
1035
+ readonly ids?: Array<string>;
1036
+ /**
1037
+ * Filter by fulfillment status
1038
+ * @type {Array<Status>}
1039
+ * @memberof OrdersApiGetOrders
1040
+ */
1041
+ readonly statuses?: Array<Status>;
1042
+ /**
1043
+ * Start of date range to filter by when orders were placed
1044
+ * @type {string}
1045
+ * @memberof OrdersApiGetOrders
1046
+ */
1047
+ readonly start?: string;
1048
+ /**
1049
+ * End of date range to filter by when orders were placed
1050
+ * @type {string}
1051
+ * @memberof OrdersApiGetOrders
1052
+ */
1053
+ readonly end?: string;
1054
+ }
1055
+ /**
1056
+ * OrdersApi - object-oriented interface
1057
+ * @export
1058
+ * @class OrdersApi
1059
+ * @extends {BaseAPI}
1060
+ */
1061
+ export declare class OrdersApi extends BaseAPI {
1062
+ /**
1063
+ * Cancels an order if it has not yet started processing.
1064
+ * @summary Cancel order
1065
+ * @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ * @memberof OrdersApi
1069
+ */
1070
+ cancelOrder(requestParameters: OrdersApiCancelOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1071
+ /**
1072
+ * Confirms an order, and submits it as ready to take payment and begin processing.
1073
+ * @summary Confirm order
1074
+ * @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ * @memberof OrdersApi
1078
+ */
1079
+ confirmOrder(requestParameters: OrdersApiConfirmOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
1080
+ /**
1081
+ * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
1082
+ * @summary Create order
1083
+ * @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ * @memberof OrdersApi
1087
+ */
1088
+ createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
1089
+ /**
1090
+ * Export orders as a CSV file
1091
+ * @summary Export orders
1092
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ * @memberof OrdersApi
1096
+ */
1097
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
1098
+ /**
1099
+ * Get an order by a given ID.
1100
+ * @summary Get order
1101
+ * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ * @memberof OrdersApi
1105
+ */
1106
+ getOrder(requestParameters: OrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
1107
+ /**
1108
+ * Lists all orders placed on this project, paginated into configurable chunks.
1109
+ * @summary List orders
1110
+ * @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ * @memberof OrdersApi
1114
+ */
1115
+ getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
1116
+ }