@teemill/orders 1.24.0 → 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.
Files changed (60) hide show
  1. package/README.md +11 -8
  2. package/api.ts +457 -146
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +444 -135
  7. package/dist/api.js +52 -32
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +444 -135
  15. package/dist/esm/api.js +51 -31
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/Address.md +9 -9
  27. package/docs/ApiError.md +3 -2
  28. package/docs/ConfirmOrderFulfillment.md +4 -3
  29. package/docs/ConfirmOrderFulfillmentWithShipment.md +3 -2
  30. package/docs/ConfirmOrderFulfillmentWithShippingMethod.md +3 -2
  31. package/docs/ConfirmOrderValidationError.md +2 -0
  32. package/docs/ContactInformation.md +2 -2
  33. package/docs/ContactInformation1.md +23 -0
  34. package/docs/CreateOrder.md +7 -7
  35. package/docs/CreateOrderItem.md +24 -0
  36. package/docs/CustomsInformation.md +4 -4
  37. package/docs/CustomsInformation1.md +5 -4
  38. package/docs/DeliveryEstimates.md +4 -3
  39. package/docs/Fulfiller.md +25 -0
  40. package/docs/FulfillerLocation.md +23 -0
  41. package/docs/Fulfillment.md +9 -8
  42. package/docs/FulfillmentItem.md +3 -3
  43. package/docs/Image.md +5 -5
  44. package/docs/Order.md +17 -16
  45. package/docs/OrderItem.md +10 -9
  46. package/docs/OrderTracking.md +4 -3
  47. package/docs/OrdersApi.md +31 -31
  48. package/docs/Origin.md +3 -2
  49. package/docs/PaymentAttempt.md +4 -5
  50. package/docs/PaymentMethod.md +2 -1
  51. package/docs/Price.md +3 -3
  52. package/docs/ProductUnavailableError.md +35 -0
  53. package/docs/RecipientCost.md +23 -0
  54. package/docs/Shipment.md +21 -0
  55. package/docs/ShippingMethod.md +8 -7
  56. package/docs/Status.md +1 -0
  57. package/docs/StockConflictError.md +34 -0
  58. package/docs/StockUnavailableError.md +35 -0
  59. package/index.ts +1 -1
  60. package/package.json +2 -2
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.24.0
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 What project it is
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.
@@ -96,6 +108,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
96
108
  if (fields !== undefined) {
97
109
  localVarQueryParameter['fields'] = fields;
98
110
  }
111
+ localVarHeaderParameter['Accept'] = 'application/json';
99
112
  setSearchParams(localVarUrlObj, localVarQueryParameter);
100
113
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
114
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -107,9 +120,9 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
107
120
  /**
108
121
  * Confirms an order, and submits it as ready to take payment and begin processing.
109
122
  * @summary Confirm order
110
- * @param {string} project What project it is
123
+ * @param {string} project The project identifier to scope the request to.
111
124
  * @param {string} orderId Unique identifier of an order
112
- * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
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.
113
126
  * @param {string} [fields] Specifies which fields to return, separated by commas
114
127
  * @param {*} [options] Override http request option.
115
128
  * @throws {RequiredError}
@@ -144,6 +157,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
144
157
  localVarQueryParameter['fields'] = fields;
145
158
  }
146
159
  localVarHeaderParameter['Content-Type'] = 'application/json';
160
+ localVarHeaderParameter['Accept'] = 'application/json';
147
161
  setSearchParams(localVarUrlObj, localVarQueryParameter);
148
162
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
163
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -156,7 +170,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
156
170
  /**
157
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.
158
172
  * @summary Create order
159
- * @param {string} project What project it is
173
+ * @param {string} project The project identifier to scope the request to.
160
174
  * @param {CreateOrder} createOrder Create Order schema
161
175
  * @param {string} [fields] Specifies which fields to return, separated by commas
162
176
  * @param {*} [options] Override http request option.
@@ -189,6 +203,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
189
203
  localVarQueryParameter['fields'] = fields;
190
204
  }
191
205
  localVarHeaderParameter['Content-Type'] = 'application/json';
206
+ localVarHeaderParameter['Accept'] = 'application/json';
192
207
  setSearchParams(localVarUrlObj, localVarQueryParameter);
193
208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
209
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -201,7 +216,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
201
216
  /**
202
217
  * Download an order invoice.
203
218
  * @summary Download order invoice
204
- * @param {string} project What project it is
219
+ * @param {string} project The project identifier to scope the request to.
205
220
  * @param {string} orderId Unique identifier of an order
206
221
  * @param {*} [options] Override http request option.
207
222
  * @throws {RequiredError}
@@ -230,6 +245,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
230
245
  if (project !== undefined) {
231
246
  localVarQueryParameter['project'] = project;
232
247
  }
248
+ localVarHeaderParameter['Accept'] = 'application/pdf,application/json';
233
249
  setSearchParams(localVarUrlObj, localVarQueryParameter);
234
250
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
251
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -241,9 +257,9 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
241
257
  /**
242
258
  * Export orders as a CSV file
243
259
  * @summary Export orders
244
- * @param {string} project What project it is
245
- * @param {string} start Start of date range to filter by when orders were placed
246
- * @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.
247
263
  * @param {string} [search] Search term to filter based on order reference, customer name and email
248
264
  * @param {*} [options] Override http request option.
249
265
  * @throws {RequiredError}
@@ -284,6 +300,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
284
300
  if (search !== undefined) {
285
301
  localVarQueryParameter['search'] = search;
286
302
  }
303
+ localVarHeaderParameter['Accept'] = 'text/csv; charset=utf-8,application/json';
287
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
288
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
306
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -295,7 +312,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
295
312
  /**
296
313
  * Get an order by a given ID.
297
314
  * @summary Get order
298
- * @param {string} project What project it is
315
+ * @param {string} project The project identifier to scope the request to.
299
316
  * @param {string} orderId Unique identifier of an order
300
317
  * @param {string} [fields] Specifies which fields to return, separated by commas
301
318
  * @param {*} [options] Override http request option.
@@ -328,6 +345,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
328
345
  if (fields !== undefined) {
329
346
  localVarQueryParameter['fields'] = fields;
330
347
  }
348
+ localVarHeaderParameter['Accept'] = 'application/json';
331
349
  setSearchParams(localVarUrlObj, localVarQueryParameter);
332
350
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
351
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -339,15 +357,15 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
339
357
  /**
340
358
  * Lists all orders placed on this project, paginated into configurable chunks.
341
359
  * @summary List orders
342
- * @param {string} project What project it is
360
+ * @param {string} project The project identifier to scope the request to.
343
361
  * @param {string} [fields] Specifies which fields to return, separated by commas
344
362
  * @param {number} [pageToken] Page reference token
345
363
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
346
364
  * @param {string} [search] Search term to filter based on order reference, customer name and email
347
- * @param {Array<string>} [ids] Specify fulfillment IDs to list
348
- * @param {Array<Status>} [statuses] Filter by fulfillment status
349
- * @param {string} [start] Start of date range
350
- * @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 &#x60;dateFilterType&#x60; parameter.
368
+ * @param {string} [end] End of date range filter. Which date field this applies to is controlled by the &#x60;dateFilterType&#x60; parameter.
351
369
  * @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
352
370
  * @param {*} [options] Override http request option.
353
371
  * @throws {RequiredError}
@@ -404,6 +422,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
404
422
  if (dateFilterType !== undefined) {
405
423
  localVarQueryParameter['dateFilterType'] = dateFilterType;
406
424
  }
425
+ localVarHeaderParameter['Accept'] = 'application/json';
407
426
  setSearchParams(localVarUrlObj, localVarQueryParameter);
408
427
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
409
428
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -415,7 +434,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
415
434
  /**
416
435
  * Retries failed platform payment, so fulfillment can proceed.
417
436
  * @summary Retry
418
- * @param {string} project What project it is
437
+ * @param {string} project The project identifier to scope the request to.
419
438
  * @param {string} orderId Unique identifier of an order
420
439
  * @param {string} [fields] Specifies which fields to return, separated by commas
421
440
  * @param {*} [options] Override http request option.
@@ -448,6 +467,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
448
467
  if (fields !== undefined) {
449
468
  localVarQueryParameter['fields'] = fields;
450
469
  }
470
+ localVarHeaderParameter['Accept'] = 'application/json';
451
471
  setSearchParams(localVarUrlObj, localVarQueryParameter);
452
472
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
453
473
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -467,7 +487,7 @@ export const OrdersApiFp = function (configuration) {
467
487
  /**
468
488
  * Cancels an order if it has not yet started processing.
469
489
  * @summary Cancel order
470
- * @param {string} project What project it is
490
+ * @param {string} project The project identifier to scope the request to.
471
491
  * @param {string} orderId Unique identifier of an order
472
492
  * @param {string} [fields] Specifies which fields to return, separated by commas
473
493
  * @param {*} [options] Override http request option.
@@ -485,9 +505,9 @@ export const OrdersApiFp = function (configuration) {
485
505
  /**
486
506
  * Confirms an order, and submits it as ready to take payment and begin processing.
487
507
  * @summary Confirm order
488
- * @param {string} project What project it is
508
+ * @param {string} project The project identifier to scope the request to.
489
509
  * @param {string} orderId Unique identifier of an order
490
- * @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
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.
491
511
  * @param {string} [fields] Specifies which fields to return, separated by commas
492
512
  * @param {*} [options] Override http request option.
493
513
  * @throws {RequiredError}
@@ -504,7 +524,7 @@ export const OrdersApiFp = function (configuration) {
504
524
  /**
505
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.
506
526
  * @summary Create order
507
- * @param {string} project What project it is
527
+ * @param {string} project The project identifier to scope the request to.
508
528
  * @param {CreateOrder} createOrder Create Order schema
509
529
  * @param {string} [fields] Specifies which fields to return, separated by commas
510
530
  * @param {*} [options] Override http request option.
@@ -522,7 +542,7 @@ export const OrdersApiFp = function (configuration) {
522
542
  /**
523
543
  * Download an order invoice.
524
544
  * @summary Download order invoice
525
- * @param {string} project What project it is
545
+ * @param {string} project The project identifier to scope the request to.
526
546
  * @param {string} orderId Unique identifier of an order
527
547
  * @param {*} [options] Override http request option.
528
548
  * @throws {RequiredError}
@@ -539,9 +559,9 @@ export const OrdersApiFp = function (configuration) {
539
559
  /**
540
560
  * Export orders as a CSV file
541
561
  * @summary Export orders
542
- * @param {string} project What project it is
543
- * @param {string} start Start of date range to filter by when orders were placed
544
- * @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 &#x60;dateFilterType&#x60; parameter.
545
565
  * @param {string} [search] Search term to filter based on order reference, customer name and email
546
566
  * @param {*} [options] Override http request option.
547
567
  * @throws {RequiredError}
@@ -558,7 +578,7 @@ export const OrdersApiFp = function (configuration) {
558
578
  /**
559
579
  * Get an order by a given ID.
560
580
  * @summary Get order
561
- * @param {string} project What project it is
581
+ * @param {string} project The project identifier to scope the request to.
562
582
  * @param {string} orderId Unique identifier of an order
563
583
  * @param {string} [fields] Specifies which fields to return, separated by commas
564
584
  * @param {*} [options] Override http request option.
@@ -576,15 +596,15 @@ export const OrdersApiFp = function (configuration) {
576
596
  /**
577
597
  * Lists all orders placed on this project, paginated into configurable chunks.
578
598
  * @summary List orders
579
- * @param {string} project What project it is
599
+ * @param {string} project The project identifier to scope the request to.
580
600
  * @param {string} [fields] Specifies which fields to return, separated by commas
581
601
  * @param {number} [pageToken] Page reference token
582
602
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
583
603
  * @param {string} [search] Search term to filter based on order reference, customer name and email
584
- * @param {Array<string>} [ids] Specify fulfillment IDs to list
585
- * @param {Array<Status>} [statuses] Filter by fulfillment status
586
- * @param {string} [start] Start of date range
587
- * @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 &#x60;dateFilterType&#x60; parameter.
607
+ * @param {string} [end] End of date range filter. Which date field this applies to is controlled by the &#x60;dateFilterType&#x60; parameter.
588
608
  * @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the &#x60;start&#x60; and &#x60;end&#x60; fields should query.
589
609
  * @param {*} [options] Override http request option.
590
610
  * @throws {RequiredError}
@@ -601,7 +621,7 @@ export const OrdersApiFp = function (configuration) {
601
621
  /**
602
622
  * Retries failed platform payment, so fulfillment can proceed.
603
623
  * @summary Retry
604
- * @param {string} project What project it is
624
+ * @param {string} project The project identifier to scope the request to.
605
625
  * @param {string} orderId Unique identifier of an order
606
626
  * @param {string} [fields] Specifies which fields to return, separated by commas
607
627
  * @param {*} [options] Override http request option.
@@ -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.24.0
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.24.0
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.24.0
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).
@@ -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.24.0
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.24.0
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.24.0
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).
@@ -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.24.0
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.24.0
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.24.0
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.24.0
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 person\'s address.
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** | | [optional] [default to undefined]
10
- **company** | **string** | | [optional] [default to undefined]
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** | City of the address. | [optional] [default to undefined]
14
- **postalCode** | **string** | Postal code of the address. | [optional] [default to undefined]
15
- **country** | **string** | Country of the address (ISO 3166-1 alpha-2). | [default to undefined]
16
- **state** | **string** | State of the address. If the country is Canada, Australia, or the United States, this field is required. | [optional] [default to undefined]
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** | | [optional] [default to undefined]
9
- **message** | **string** | | [default to undefined]
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** | Unique object identifier | [default to undefined]
9
- **shippingMethodId** | **string** | Unique object identifier | [default to undefined]
10
- **shipment** | [**ConfirmOrderFulfillmentWithShipmentShipment**](ConfirmOrderFulfillmentWithShipmentShipment.md) | | [default to undefined]
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\&#39;s &#x60;availableShippingMethods&#x60;. | [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** | Unique object identifier | [default to undefined]
9
- **shipment** | [**ConfirmOrderFulfillmentWithShipmentShipment**](ConfirmOrderFulfillmentWithShipmentShipment.md) | | [default to undefined]
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** | Unique object identifier | [default to undefined]
9
- **shippingMethodId** | **string** | Unique object identifier | [default to undefined]
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\&#39;s &#x60;availableShippingMethods&#x60;. | [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&lt;StockConflictError&gt;**](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 &#x60;code&#x60; that determines the error type. See &#x60;StockUnavailableError&#x60; and &#x60;ProductUnavailableError&#x60; 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** | | [default to undefined]
10
- **phone** | **string** | | [optional] [default to undefined]
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)
@@ -1,17 +1,17 @@
1
1
  # CreateOrder
2
2
 
3
- Create an order
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** | A custom reference to the merchant\&#39;s order. | [optional] [default to undefined]
10
- **contactInformation** | [**CreateOrderContactInformation**](CreateOrderContactInformation.md) | | [default to undefined]
11
- **shippingAddress** | [**Address**](Address.md) | | [default to undefined]
12
- **customsInformation** | [**CustomsInformation**](CustomsInformation.md) | | [optional] [default to undefined]
13
- **items** | [**Array&lt;OrderItem1&gt;**](OrderItem1.md) | Items to be ordered | [default to undefined]
14
- **preferredFulfillers** | **Array&lt;string&gt;** | | [optional] [default to undefined]
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&lt;CreateOrderItem&gt;**](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&lt;string&gt;** | 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** | Pre-registration type | [optional] [default to undefined]
10
- **preRegistrationNumber** | **string** | Pre-registration number | [optional] [default to undefined]
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\&#39;s VAT registration number. | [optional] [default to undefined]
12
+ **eoriNumber** | **string** | The shipper\&#39;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** | | [optional] [default to undefined]
9
- **preRegistrationNumber** | **string** | | [optional] [default to undefined]
10
- **vatNumber** | **string** | | [optional] [default to undefined]
11
- **eoriNumber** | **string** | | [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\&#39;s VAT registration number. | [optional] [default to undefined]
12
+ **eoriNumber** | **string** | The shipper\&#39;s EORI number for customs declarations. | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15