@teemill/orders 1.5.5 → 1.6.1

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