@teemill/orders 1.24.1 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/api.ts +448 -135
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +444 -135
- package/dist/api.js +44 -32
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +444 -135
- package/dist/esm/api.js +43 -31
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Address.md +9 -9
- package/docs/ApiError.md +3 -2
- package/docs/ConfirmOrderFulfillment.md +4 -3
- package/docs/ConfirmOrderFulfillmentWithShipment.md +3 -2
- package/docs/ConfirmOrderFulfillmentWithShippingMethod.md +3 -2
- package/docs/ConfirmOrderValidationError.md +2 -0
- package/docs/ContactInformation.md +2 -2
- package/docs/ContactInformation1.md +23 -0
- package/docs/CreateOrder.md +7 -7
- package/docs/CreateOrderItem.md +24 -0
- package/docs/CustomsInformation.md +4 -4
- package/docs/CustomsInformation1.md +5 -4
- package/docs/DeliveryEstimates.md +4 -3
- package/docs/Fulfiller.md +25 -0
- package/docs/FulfillerLocation.md +23 -0
- package/docs/Fulfillment.md +9 -8
- package/docs/FulfillmentItem.md +3 -3
- package/docs/Image.md +5 -5
- package/docs/Order.md +17 -16
- package/docs/OrderItem.md +10 -9
- package/docs/OrderTracking.md +4 -3
- package/docs/OrdersApi.md +31 -31
- package/docs/Origin.md +3 -2
- package/docs/PaymentAttempt.md +4 -5
- package/docs/PaymentMethod.md +2 -1
- package/docs/Price.md +3 -3
- package/docs/ProductUnavailableError.md +35 -0
- package/docs/RecipientCost.md +23 -0
- package/docs/Shipment.md +21 -0
- package/docs/ShippingMethod.md +8 -7
- package/docs/Status.md +1 -0
- package/docs/StockConflictError.md +34 -0
- package/docs/StockUnavailableError.md +35 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.25.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,6 +46,15 @@ export const PaymentAttemptStatusEnum = {
|
|
|
46
46
|
Pending: 'pending',
|
|
47
47
|
Cancelled: 'cancelled'
|
|
48
48
|
};
|
|
49
|
+
export const ProductUnavailableErrorCodeEnum = {
|
|
50
|
+
ProductUnavailable: 'PRODUCT_UNAVAILABLE'
|
|
51
|
+
};
|
|
52
|
+
export const ProductUnavailableErrorAvailableQuantityEnum = {
|
|
53
|
+
NUMBER_0: 0
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The lifecycle status of an order or fulfillment: - `new` — Order has been created but not yet confirmed or paid - `paid` — Payment has been received, awaiting fulfillment - `processing` — Order is being produced or packed - `complete` — Order has been shipped - `refunded` — Order has been refunded - `quote` — Order is a draft quote, not yet submitted - `moderation` — Order is held for review
|
|
57
|
+
*/
|
|
49
58
|
export const Status = {
|
|
50
59
|
New: 'new',
|
|
51
60
|
Paid: 'paid',
|
|
@@ -55,6 +64,9 @@ export const Status = {
|
|
|
55
64
|
Quote: 'quote',
|
|
56
65
|
Moderation: 'moderation'
|
|
57
66
|
};
|
|
67
|
+
export const StockUnavailableErrorCodeEnum = {
|
|
68
|
+
StockUnavailable: 'STOCK_UNAVAILABLE'
|
|
69
|
+
};
|
|
58
70
|
/**
|
|
59
71
|
* OrdersApi - axios parameter creator
|
|
60
72
|
*/
|
|
@@ -63,7 +75,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
63
75
|
/**
|
|
64
76
|
* Cancels an order if it has not yet started processing.
|
|
65
77
|
* @summary Cancel order
|
|
66
|
-
* @param {string} project
|
|
78
|
+
* @param {string} project The project identifier to scope the request to.
|
|
67
79
|
* @param {string} orderId Unique identifier of an order
|
|
68
80
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
69
81
|
* @param {*} [options] Override http request option.
|
|
@@ -108,9 +120,9 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
108
120
|
/**
|
|
109
121
|
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
110
122
|
* @summary Confirm order
|
|
111
|
-
* @param {string} project
|
|
123
|
+
* @param {string} project The project identifier to scope the request to.
|
|
112
124
|
* @param {string} orderId Unique identifier of an order
|
|
113
|
-
* @param {ConfirmOrderRequest} confirmOrderRequest
|
|
125
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest Confirm an order by specifying shipping methods for each fulfillment. This submits the order for payment processing and production. Orders should be confirmed promptly after creation — the longer an order remains unconfirmed, the greater the chance that stock availability changes. If stock is no longer available at the time of confirmation, the request will fail and you will need to create a new order.
|
|
114
126
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
115
127
|
* @param {*} [options] Override http request option.
|
|
116
128
|
* @throws {RequiredError}
|
|
@@ -158,7 +170,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
158
170
|
/**
|
|
159
171
|
* 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.
|
|
160
172
|
* @summary Create order
|
|
161
|
-
* @param {string} project
|
|
173
|
+
* @param {string} project The project identifier to scope the request to.
|
|
162
174
|
* @param {CreateOrder} createOrder Create Order schema
|
|
163
175
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
164
176
|
* @param {*} [options] Override http request option.
|
|
@@ -204,7 +216,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
204
216
|
/**
|
|
205
217
|
* Download an order invoice.
|
|
206
218
|
* @summary Download order invoice
|
|
207
|
-
* @param {string} project
|
|
219
|
+
* @param {string} project The project identifier to scope the request to.
|
|
208
220
|
* @param {string} orderId Unique identifier of an order
|
|
209
221
|
* @param {*} [options] Override http request option.
|
|
210
222
|
* @throws {RequiredError}
|
|
@@ -245,9 +257,9 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
245
257
|
/**
|
|
246
258
|
* Export orders as a CSV file
|
|
247
259
|
* @summary Export orders
|
|
248
|
-
* @param {string} project
|
|
249
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
250
|
-
* @param {string} [end] End of date range
|
|
260
|
+
* @param {string} project The project identifier to scope the request to.
|
|
261
|
+
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
262
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
251
263
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
252
264
|
* @param {*} [options] Override http request option.
|
|
253
265
|
* @throws {RequiredError}
|
|
@@ -300,7 +312,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
300
312
|
/**
|
|
301
313
|
* Get an order by a given ID.
|
|
302
314
|
* @summary Get order
|
|
303
|
-
* @param {string} project
|
|
315
|
+
* @param {string} project The project identifier to scope the request to.
|
|
304
316
|
* @param {string} orderId Unique identifier of an order
|
|
305
317
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
306
318
|
* @param {*} [options] Override http request option.
|
|
@@ -345,15 +357,15 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
345
357
|
/**
|
|
346
358
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
347
359
|
* @summary List orders
|
|
348
|
-
* @param {string} project
|
|
360
|
+
* @param {string} project The project identifier to scope the request to.
|
|
349
361
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
350
362
|
* @param {number} [pageToken] Page reference token
|
|
351
363
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
352
364
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
353
|
-
* @param {Array<string>} [ids]
|
|
354
|
-
* @param {Array<Status>} [statuses] Filter by
|
|
355
|
-
* @param {string} [start] Start of date range
|
|
356
|
-
* @param {string} [end] End of date range
|
|
365
|
+
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
366
|
+
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
367
|
+
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
368
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
357
369
|
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
358
370
|
* @param {*} [options] Override http request option.
|
|
359
371
|
* @throws {RequiredError}
|
|
@@ -422,7 +434,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
422
434
|
/**
|
|
423
435
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
424
436
|
* @summary Retry
|
|
425
|
-
* @param {string} project
|
|
437
|
+
* @param {string} project The project identifier to scope the request to.
|
|
426
438
|
* @param {string} orderId Unique identifier of an order
|
|
427
439
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
428
440
|
* @param {*} [options] Override http request option.
|
|
@@ -475,7 +487,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
475
487
|
/**
|
|
476
488
|
* Cancels an order if it has not yet started processing.
|
|
477
489
|
* @summary Cancel order
|
|
478
|
-
* @param {string} project
|
|
490
|
+
* @param {string} project The project identifier to scope the request to.
|
|
479
491
|
* @param {string} orderId Unique identifier of an order
|
|
480
492
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
481
493
|
* @param {*} [options] Override http request option.
|
|
@@ -493,9 +505,9 @@ export const OrdersApiFp = function (configuration) {
|
|
|
493
505
|
/**
|
|
494
506
|
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
495
507
|
* @summary Confirm order
|
|
496
|
-
* @param {string} project
|
|
508
|
+
* @param {string} project The project identifier to scope the request to.
|
|
497
509
|
* @param {string} orderId Unique identifier of an order
|
|
498
|
-
* @param {ConfirmOrderRequest} confirmOrderRequest
|
|
510
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest Confirm an order by specifying shipping methods for each fulfillment. This submits the order for payment processing and production. Orders should be confirmed promptly after creation — the longer an order remains unconfirmed, the greater the chance that stock availability changes. If stock is no longer available at the time of confirmation, the request will fail and you will need to create a new order.
|
|
499
511
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
500
512
|
* @param {*} [options] Override http request option.
|
|
501
513
|
* @throws {RequiredError}
|
|
@@ -512,7 +524,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
512
524
|
/**
|
|
513
525
|
* 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.
|
|
514
526
|
* @summary Create order
|
|
515
|
-
* @param {string} project
|
|
527
|
+
* @param {string} project The project identifier to scope the request to.
|
|
516
528
|
* @param {CreateOrder} createOrder Create Order schema
|
|
517
529
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
518
530
|
* @param {*} [options] Override http request option.
|
|
@@ -530,7 +542,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
530
542
|
/**
|
|
531
543
|
* Download an order invoice.
|
|
532
544
|
* @summary Download order invoice
|
|
533
|
-
* @param {string} project
|
|
545
|
+
* @param {string} project The project identifier to scope the request to.
|
|
534
546
|
* @param {string} orderId Unique identifier of an order
|
|
535
547
|
* @param {*} [options] Override http request option.
|
|
536
548
|
* @throws {RequiredError}
|
|
@@ -547,9 +559,9 @@ export const OrdersApiFp = function (configuration) {
|
|
|
547
559
|
/**
|
|
548
560
|
* Export orders as a CSV file
|
|
549
561
|
* @summary Export orders
|
|
550
|
-
* @param {string} project
|
|
551
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
552
|
-
* @param {string} [end] End of date range
|
|
562
|
+
* @param {string} project The project identifier to scope the request to.
|
|
563
|
+
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
564
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
553
565
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
554
566
|
* @param {*} [options] Override http request option.
|
|
555
567
|
* @throws {RequiredError}
|
|
@@ -566,7 +578,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
566
578
|
/**
|
|
567
579
|
* Get an order by a given ID.
|
|
568
580
|
* @summary Get order
|
|
569
|
-
* @param {string} project
|
|
581
|
+
* @param {string} project The project identifier to scope the request to.
|
|
570
582
|
* @param {string} orderId Unique identifier of an order
|
|
571
583
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
572
584
|
* @param {*} [options] Override http request option.
|
|
@@ -584,15 +596,15 @@ export const OrdersApiFp = function (configuration) {
|
|
|
584
596
|
/**
|
|
585
597
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
586
598
|
* @summary List orders
|
|
587
|
-
* @param {string} project
|
|
599
|
+
* @param {string} project The project identifier to scope the request to.
|
|
588
600
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
589
601
|
* @param {number} [pageToken] Page reference token
|
|
590
602
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
591
603
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
592
|
-
* @param {Array<string>} [ids]
|
|
593
|
-
* @param {Array<Status>} [statuses] Filter by
|
|
594
|
-
* @param {string} [start] Start of date range
|
|
595
|
-
* @param {string} [end] End of date range
|
|
604
|
+
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
605
|
+
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
606
|
+
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
607
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
596
608
|
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
597
609
|
* @param {*} [options] Override http request option.
|
|
598
610
|
* @throws {RequiredError}
|
|
@@ -609,7 +621,7 @@ export const OrdersApiFp = function (configuration) {
|
|
|
609
621
|
/**
|
|
610
622
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
611
623
|
* @summary Retry
|
|
612
|
-
* @param {string} project
|
|
624
|
+
* @param {string} project The project identifier to scope the request to.
|
|
613
625
|
* @param {string} orderId Unique identifier of an order
|
|
614
626
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
615
627
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.25.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.25.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.25.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.25.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.25.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Orders API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.25.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.25.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.25.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.25.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.25.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Address.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Address
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A postal address for shipping or billing.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**contactName** | **string** |
|
|
10
|
-
**company** | **string** |
|
|
11
|
-
**line1** | **string** | First line of the address. | [optional] [default to undefined]
|
|
12
|
-
**line2** | **string** | Second line of the address. | [optional] [default to undefined]
|
|
13
|
-
**city** | **string** |
|
|
14
|
-
**postalCode** | **string** |
|
|
15
|
-
**country** | **string** |
|
|
16
|
-
**state** | **string** |
|
|
9
|
+
**contactName** | **string** | The full name of the recipient. | [optional] [default to undefined]
|
|
10
|
+
**company** | **string** | The company name, if applicable. | [optional] [default to undefined]
|
|
11
|
+
**line1** | **string** | First line of the street address. | [optional] [default to undefined]
|
|
12
|
+
**line2** | **string** | Second line of the street address (apartment, suite, etc.). | [optional] [default to undefined]
|
|
13
|
+
**city** | **string** | The city or town. | [optional] [default to undefined]
|
|
14
|
+
**postalCode** | **string** | The postal or ZIP code. | [optional] [default to undefined]
|
|
15
|
+
**country** | **string** | Two-letter country code (ISO 3166-1 alpha-2). | [default to undefined]
|
|
16
|
+
**state** | **string** | The state, province, or region. Required when the country is US, CA, or AU. | [optional] [default to undefined]
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
package/docs/ApiError.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# ApiError
|
|
2
2
|
|
|
3
|
+
A standard error response returned when a request fails.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**code** | **string** |
|
|
9
|
-
**message** | **string** |
|
|
9
|
+
**code** | **string** | A machine-readable error code. | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | A human-readable description of what went wrong. | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# ConfirmOrderFulfillment
|
|
2
2
|
|
|
3
|
+
Confirmation details for a single fulfillment. Provide either a `shippingMethodId` to use a PodOS shipping method, or a `shipment` object with your own shipping label.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**fulfillmentId** | **string** |
|
|
9
|
-
**shippingMethodId** | **string** |
|
|
10
|
-
**shipment** | [**
|
|
9
|
+
**fulfillmentId** | **string** | The ID of the fulfillment to confirm. | [default to undefined]
|
|
10
|
+
**shippingMethodId** | **string** | The ID of the shipping method to use, from the fulfillment\'s `availableShippingMethods`. | [default to undefined]
|
|
11
|
+
**shipment** | [**Shipment**](Shipment.md) | | [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# ConfirmOrderFulfillmentWithShipment
|
|
2
2
|
|
|
3
|
+
Confirm a fulfillment using your own shipping label. Use this when you generate shipping labels outside of PodOS.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**fulfillmentId** | **string** |
|
|
9
|
-
**shipment** | [**
|
|
9
|
+
**fulfillmentId** | **string** | The ID of the fulfillment to confirm. | [default to undefined]
|
|
10
|
+
**shipment** | [**Shipment**](Shipment.md) | | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# ConfirmOrderFulfillmentWithShippingMethod
|
|
2
2
|
|
|
3
|
+
Confirm a fulfillment using a PodOS shipping method. Choose from the `availableShippingMethods` returned on the fulfillment.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**fulfillmentId** | **string** |
|
|
9
|
-
**shippingMethodId** | **string** |
|
|
9
|
+
**fulfillmentId** | **string** | The ID of the fulfillment to confirm. | [default to undefined]
|
|
10
|
+
**shippingMethodId** | **string** | The ID of the shipping method to use, from the fulfillment\'s `availableShippingMethods`. | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**code** | **string** | | [default to undefined]
|
|
9
9
|
**message** | **string** | | [default to undefined]
|
|
10
|
+
**errors** | [**Array<StockConflictError>**](StockConflictError.md) | Present when one or more items cannot be fulfilled. Each entry describes a specific item and why it cannot be fulfilled, with a `code` that determines the error type. See `StockUnavailableError` and `ProductUnavailableError` schemas. | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { ConfirmOrderValidationError } from '@teemill/orders';
|
|
|
16
17
|
const instance: ConfirmOrderValidationError = {
|
|
17
18
|
code,
|
|
18
19
|
message,
|
|
20
|
+
errors,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -6,8 +6,8 @@ Order recipient contact information, used only for courier tracking/updates.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**email** | **string** |
|
|
10
|
-
**phone** | **string** |
|
|
9
|
+
**email** | **string** | Email address for delivery notifications. | [default to undefined]
|
|
10
|
+
**phone** | **string** | Phone number for courier contact. Include the country code. | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ContactInformation1
|
|
2
|
+
|
|
3
|
+
Contact details for the order recipient. Used for courier delivery notifications.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | Email address for delivery notifications. | [default to undefined]
|
|
10
|
+
**phone** | **string** | Phone number including country code. Used by couriers for delivery updates. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ContactInformation1 } from '@teemill/orders';
|
|
16
|
+
|
|
17
|
+
const instance: ContactInformation1 = {
|
|
18
|
+
email,
|
|
19
|
+
phone,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CreateOrder.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# CreateOrder
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The request body for creating a new print-on-demand order.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**merchantReference** | **string** |
|
|
10
|
-
**contactInformation** | [**
|
|
11
|
-
**shippingAddress** | [**Address**](Address.md) |
|
|
12
|
-
**customsInformation** | [**CustomsInformation**](CustomsInformation.md) |
|
|
13
|
-
**items** | [**Array<
|
|
14
|
-
**preferredFulfillers** | **Array<string>** |
|
|
9
|
+
**merchantReference** | **string** | Your own reference for this order, such as an order number from your storefront. This is returned in subsequent responses and can be used for reconciliation. | [optional] [default to undefined]
|
|
10
|
+
**contactInformation** | [**ContactInformation1**](ContactInformation1.md) | | [default to undefined]
|
|
11
|
+
**shippingAddress** | [**Address**](Address.md) | The address to ship the order to. | [default to undefined]
|
|
12
|
+
**customsInformation** | [**CustomsInformation**](CustomsInformation.md) | Customs and tax registration details. Required for international shipments. | [optional] [default to undefined]
|
|
13
|
+
**items** | [**Array<CreateOrderItem>**](CreateOrderItem.md) | The items to include in the order. Each item references a product variant from the Product Catalog API. | [default to undefined]
|
|
14
|
+
**preferredFulfillers** | **Array<string>** | An optional list of preferred fulfiller IDs. When provided, the system will attempt to route the order to one of these fulfillers. | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateOrderItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
|
|
9
|
+
**quantity** | **number** | The number of units to order. | [default to undefined]
|
|
10
|
+
**recipientCost** | [**RecipientCost**](RecipientCost.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateOrderItem } from '@teemill/orders';
|
|
16
|
+
|
|
17
|
+
const instance: CreateOrderItem = {
|
|
18
|
+
variantRef,
|
|
19
|
+
quantity,
|
|
20
|
+
recipientCost,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -6,10 +6,10 @@ Customs information for the order. **Note:** Adding customs information to an or
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**preRegistrationType** | **string** |
|
|
10
|
-
**preRegistrationNumber** | **string** |
|
|
11
|
-
**vatNumber** | **string** | VAT number | [optional] [default to undefined]
|
|
12
|
-
**eoriNumber** | **string** | EORI number | [optional] [default to undefined]
|
|
9
|
+
**preRegistrationType** | **string** | The type of tax pre-registration (e.g. IOSS for EU imports). | [optional] [default to undefined]
|
|
10
|
+
**preRegistrationNumber** | **string** | The pre-registration number associated with the registration type. | [optional] [default to undefined]
|
|
11
|
+
**vatNumber** | **string** | The shipper\'s VAT registration number. | [optional] [default to undefined]
|
|
12
|
+
**eoriNumber** | **string** | The shipper\'s EORI number for customs declarations. | [optional] [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# CustomsInformation1
|
|
2
2
|
|
|
3
|
+
Customs and tax registration details for international shipments.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**preRegistrationType** | **string** |
|
|
9
|
-
**preRegistrationNumber** | **string** |
|
|
10
|
-
**vatNumber** | **string** |
|
|
11
|
-
**eoriNumber** | **string** |
|
|
9
|
+
**preRegistrationType** | **string** | The type of tax pre-registration (e.g. IOSS for EU imports). | [optional] [default to undefined]
|
|
10
|
+
**preRegistrationNumber** | **string** | The pre-registration number associated with the registration type. | [optional] [default to undefined]
|
|
11
|
+
**vatNumber** | **string** | The shipper\'s VAT registration number. | [optional] [default to undefined]
|
|
12
|
+
**eoriNumber** | **string** | The shipper\'s EORI number for customs declarations. | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# DeliveryEstimates
|
|
2
2
|
|
|
3
|
+
Estimated delivery window for this shipping method.
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**isPriority** | **boolean** | Whether this is a priority shipping method. Fulfillments with priority methods aim for same
|
|
9
|
-
**min** | **string** |
|
|
10
|
-
**max** | **string** |
|
|
9
|
+
**isPriority** | **boolean** | Whether this is a priority shipping method. Fulfillments with priority methods aim for same-day dispatch when ordered before 1pm, and typically offer faster delivery times. | [optional] [default to undefined]
|
|
10
|
+
**min** | **string** | The earliest estimated delivery date. | [optional] [default to undefined]
|
|
11
|
+
**max** | **string** | The latest estimated delivery date. | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Fulfiller
|
|
2
|
+
|
|
3
|
+
The fulfiller that will produce and ship this package.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique identifier of the fulfiller. | [optional] [default to undefined]
|
|
10
|
+
**location** | [**FulfillerLocation**](FulfillerLocation.md) | | [optional] [default to undefined]
|
|
11
|
+
**canFulfillImmediately** | **boolean** | Whether the fulfiller has the stock and capacity to begin processing immediately. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { Fulfiller } from '@teemill/orders';
|
|
17
|
+
|
|
18
|
+
const instance: Fulfiller = {
|
|
19
|
+
id,
|
|
20
|
+
location,
|
|
21
|
+
canFulfillImmediately,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# FulfillerLocation
|
|
2
|
+
|
|
3
|
+
The geographic location of the fulfiller.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**city** | **string** | The city where the fulfiller is located. | [optional] [default to undefined]
|
|
10
|
+
**country** | **string** | The country code where the fulfiller is located (ISO 3166-1 alpha-2). | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { FulfillerLocation } from '@teemill/orders';
|
|
16
|
+
|
|
17
|
+
const instance: FulfillerLocation = {
|
|
18
|
+
city,
|
|
19
|
+
country,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|