@teemill/orders 1.28.4 → 1.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -140,12 +140,15 @@ export interface ContactInformation1 {
140
140
  */
141
141
  export interface Coupon {
142
142
  /**
143
- * Unique object identifier
143
+ * The unique identifier of the coupon.
144
144
  */
145
145
  'id': string;
146
+ /**
147
+ * The discount code entered by the customer.
148
+ */
146
149
  'code': string;
147
150
  /**
148
- * Reference to the discount. **Note:** Requires the discounts integration to see the reference.
151
+ * A URI reference to the discount resource. Requires the discounts integration.
149
152
  */
150
153
  'ref'?: string | null;
151
154
  }
@@ -316,7 +319,26 @@ export interface Fulfillment {
316
319
  * Reference to the source platform of this fulfillment.
317
320
  */
318
321
  'platformRef'?: string;
322
+ /**
323
+ * Whether the fulfillment is frozen. This will prevent the fulfillment from being picked.
324
+ */
325
+ 'frozen'?: boolean;
326
+ /**
327
+ * List of reason codes why this fulfillment is frozen. - `moderation` - Held for content moderation review. - `internal_screen_print` - Awaiting internal screen print processing. - `manual` - Manually frozen by a user. - `credit_control` - Client is under credit control. - `billing_failed` - Payment for this order failed. - `pickface_flagged` - Flagged on the pickface for review. - `flow_frozen` - Frozen by internal production flow handling. - `fraud` - Frozen due to fraud checks.
328
+ */
329
+ 'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
319
330
  }
331
+ export declare const FulfillmentFrozenReasonsEnum: {
332
+ readonly Moderation: "moderation";
333
+ readonly InternalScreenPrint: "internal_screen_print";
334
+ readonly Manual: "manual";
335
+ readonly CreditControl: "credit_control";
336
+ readonly BillingFailed: "billing_failed";
337
+ readonly PickfaceFlagged: "pickface_flagged";
338
+ readonly FlowFrozen: "flow_frozen";
339
+ readonly Fraud: "fraud";
340
+ };
341
+ export type FulfillmentFrozenReasonsEnum = typeof FulfillmentFrozenReasonsEnum[keyof typeof FulfillmentFrozenReasonsEnum];
320
342
  export interface FulfillmentItem {
321
343
  /**
322
344
  * Unique identifier for this fulfillment item.
@@ -354,7 +376,7 @@ export interface Image {
354
376
  }
355
377
  export interface ImportOrders202Response {
356
378
  /**
357
- * Unique object identifier
379
+ * Unique identifier of the created import. Use this with the GET /v1/orders/imports/{importId} endpoint to track progress.
358
380
  */
359
381
  'importId'?: string;
360
382
  }
@@ -373,11 +395,11 @@ export interface Option {
373
395
  */
374
396
  export interface Order {
375
397
  /**
376
- * Unique object identifier
398
+ * The unique identifier of the order.
377
399
  */
378
400
  'id'?: string;
379
401
  /**
380
- * A reference to the resource location
402
+ * A URI reference to this order resource.
381
403
  */
382
404
  'ref'?: string;
383
405
  /**
@@ -449,21 +471,39 @@ export interface Order {
449
471
  */
450
472
  'paymentAttempts'?: Array<PaymentAttempt>;
451
473
  }
474
+ /**
475
+ * Represents a bulk order import job, tracking the progress and outcome of importing orders from a CSV file.
476
+ */
452
477
  export interface OrderImport {
453
478
  /**
454
- * Unique object identifier
479
+ * The unique identifier of this import job.
455
480
  */
456
481
  'importId': string;
482
+ /**
483
+ * The current lifecycle status of this import.
484
+ */
457
485
  'status': OrderImportStatus;
458
486
  'counts': OrderImportCounts;
459
487
  /**
460
- * ISO 8601 Timestamp
488
+ * The timestamp when the import was created.
461
489
  */
462
490
  'createdAt': string;
491
+ /**
492
+ * The timestamp when the import was cancelled. Null if the import has not been cancelled.
493
+ */
463
494
  'cancelledAt'?: string | null;
495
+ /**
496
+ * The timestamp when the import started processing. Null if processing has not yet begun.
497
+ */
464
498
  'startedAt'?: string | null;
499
+ /**
500
+ * The timestamp when the import finished processing. Null if processing has not yet completed.
501
+ */
465
502
  'finishedAt'?: string | null;
466
503
  }
504
+ /**
505
+ * Counts of import groups in each processing state.
506
+ */
467
507
  export interface OrderImportCounts {
468
508
  'total': number;
469
509
  'pending': number;
@@ -473,7 +513,13 @@ export interface OrderImportCounts {
473
513
  'cancelled': number;
474
514
  'completed': number;
475
515
  }
516
+ /**
517
+ * An error encountered while processing an import group, including a machine-readable code and human-readable message.
518
+ */
476
519
  export interface OrderImportError {
520
+ /**
521
+ * A machine-readable error code identifying the type of import failure.
522
+ */
477
523
  'code': OrderImportErrorCode;
478
524
  /**
479
525
  * A human-readable description of the error.
@@ -507,11 +553,17 @@ export declare const OrderImportErrorCode: {
507
553
  readonly ImportFailed: "IMPORT_FAILED";
508
554
  };
509
555
  export type OrderImportErrorCode = typeof OrderImportErrorCode[keyof typeof OrderImportErrorCode];
556
+ /**
557
+ * A single group (order) within a bulk import, representing one merchant reference and its processing outcome.
558
+ */
510
559
  export interface OrderImportGroup {
511
560
  /**
512
- * Unique object identifier
561
+ * Unique identifier for this import group.
513
562
  */
514
563
  'id': string;
564
+ /**
565
+ * The current lifecycle status of this import group.
566
+ */
515
567
  'status': OrderImportGroupStatus;
516
568
  /**
517
569
  * The merchant reference from the CSV rows belonging to this group.
@@ -537,8 +589,17 @@ export interface OrderImportGroup {
537
589
  * Errors encountered while processing this group. Empty when the group succeeded.
538
590
  */
539
591
  'errors': Array<OrderImportError>;
592
+ /**
593
+ * The timestamp when this group was created. Null if not yet set.
594
+ */
540
595
  'createdAt'?: string | null;
596
+ /**
597
+ * The timestamp when this group started processing. Null if processing has not yet begun.
598
+ */
541
599
  'startedAt'?: string | null;
600
+ /**
601
+ * The timestamp when this group finished processing. Null if processing has not yet completed.
602
+ */
542
603
  'finishedAt'?: string | null;
543
604
  }
544
605
  /**
@@ -581,11 +642,11 @@ export interface OrderItem {
581
642
  */
582
643
  'id'?: string;
583
644
  /**
584
- * A reference to the variant being ordered
645
+ * A reference to the product variant being ordered.
585
646
  */
586
647
  'variantRef': string;
587
648
  /**
588
- * Options associated to an order item\'s variant, such as color and size.
649
+ * The variant attributes (e.g. Colour, Size) for this line item.
589
650
  */
590
651
  'options'?: Array<Option>;
591
652
  /**
@@ -719,6 +780,9 @@ export interface Price {
719
780
  * The item cannot be fulfilled at all — either it is out of stock entirely, or the assigned fulfiller cannot produce it (e.g. missing machinery or variant not configured).
720
781
  */
721
782
  export interface ProductUnavailableError {
783
+ /**
784
+ * The error code identifying this as a product unavailable error.
785
+ */
722
786
  'code': ProductUnavailableErrorCodeEnum;
723
787
  /**
724
788
  * Human-readable description including the product name.
@@ -729,11 +793,11 @@ export interface ProductUnavailableError {
729
793
  */
730
794
  'productTitle': string;
731
795
  /**
732
- * Unique object identifier
796
+ * The unique identifier of the unavailable variant.
733
797
  */
734
798
  'variantId': string;
735
799
  /**
736
- * A reference to the variant being ordered
800
+ * A URI reference to the unavailable variant.
737
801
  */
738
802
  'variantRef': string;
739
803
  /**
@@ -835,6 +899,7 @@ export interface StatusHistoryItem {
835
899
  }
836
900
  /**
837
901
  * @type StockConflictError
902
+ * An error indicating that one or more items in the order cannot be fulfilled due to stock or product availability issues. Use the \'code\' field to determine the specific error type.
838
903
  */
839
904
  export type StockConflictError = {
840
905
  code: 'PRODUCT_UNAVAILABLE';
@@ -845,6 +910,9 @@ export type StockConflictError = {
845
910
  * The requested quantity exceeds available stock. The item can still be ordered in a smaller quantity.
846
911
  */
847
912
  export interface StockUnavailableError {
913
+ /**
914
+ * The error code identifying this as a stock unavailable error.
915
+ */
848
916
  'code': StockUnavailableErrorCodeEnum;
849
917
  /**
850
918
  * Human-readable description including the product name and available quantity.
@@ -855,11 +923,11 @@ export interface StockUnavailableError {
855
923
  */
856
924
  'productTitle': string;
857
925
  /**
858
- * Unique object identifier
926
+ * The unique identifier of the variant with insufficient stock.
859
927
  */
860
928
  'variantId': string;
861
929
  /**
862
- * A reference to the variant being ordered
930
+ * A URI reference to the variant with insufficient stock.
863
931
  */
864
932
  'variantRef': string;
865
933
  /**
@@ -1003,7 +1071,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
1003
1071
  listOrderImports: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1004
1072
  /**
1005
1073
  * Retries failed platform payment, so fulfillment can proceed.
1006
- * @summary Retry
1074
+ * @summary Retry platform payment
1007
1075
  * @param {string} project The project identifier to scope the request to.
1008
1076
  * @param {string} orderId Unique identifier of an order
1009
1077
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1136,7 +1204,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
1136
1204
  listOrderImports(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportsResponse>>;
1137
1205
  /**
1138
1206
  * Retries failed platform payment, so fulfillment can proceed.
1139
- * @summary Retry
1207
+ * @summary Retry platform payment
1140
1208
  * @param {string} project The project identifier to scope the request to.
1141
1209
  * @param {string} orderId Unique identifier of an order
1142
1210
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1239,7 +1307,7 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
1239
1307
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportsResponse>;
1240
1308
  /**
1241
1309
  * Retries failed platform payment, so fulfillment can proceed.
1242
- * @summary Retry
1310
+ * @summary Retry platform payment
1243
1311
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1244
1312
  * @param {*} [options] Override http request option.
1245
1313
  * @throws {RequiredError}
@@ -1576,7 +1644,7 @@ export declare class OrdersApi extends BaseAPI {
1576
1644
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportsResponse, any, {}>>;
1577
1645
  /**
1578
1646
  * Retries failed platform payment, so fulfillment can proceed.
1579
- * @summary Retry
1647
+ * @summary Retry platform payment
1580
1648
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1581
1649
  * @param {*} [options] Override http request option.
1582
1650
  * @throws {RequiredError}
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders
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.28.4
7
+ * The version of the OpenAPI document: 1.29.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,10 +30,20 @@ export const ConfirmOrderValidationErrorCodeEnum = {
30
30
  BadRequest: 'BAD_REQUEST',
31
31
  PaymentFailed: 'PAYMENT_FAILED',
32
32
  Conflict: 'CONFLICT',
33
- ActionRequired: 'ACTION_REQUIRED'
33
+ ActionRequired: 'ACTION_REQUIRED',
34
34
  };
35
35
  export const CustomsInformationPreRegistrationTypeEnum = {
36
- Ioss: 'IOSS'
36
+ Ioss: 'IOSS',
37
+ };
38
+ export const FulfillmentFrozenReasonsEnum = {
39
+ Moderation: 'moderation',
40
+ InternalScreenPrint: 'internal_screen_print',
41
+ Manual: 'manual',
42
+ CreditControl: 'credit_control',
43
+ BillingFailed: 'billing_failed',
44
+ PickfaceFlagged: 'pickface_flagged',
45
+ FlowFrozen: 'flow_frozen',
46
+ Fraud: 'fraud',
37
47
  };
38
48
  /**
39
49
  * Machine-readable error code identifying the type of import failure: - `VARIANT_NOT_FOUND` — The SKU does not match any variant in the project\'s catalog - `MISSING_SKU` — A required SKU field was empty or missing - `SHIPPING_METHOD_UNAVAILABLE` — No shipping methods are available for the fulfillment - `TRANSIENT_SYSTEM_ERROR` — A temporary system issue occurred; the import may succeed on retry - `IMPORT_FAILED` — A general import failure that does not match a more specific code
@@ -43,7 +53,7 @@ export const OrderImportErrorCode = {
43
53
  MissingSku: 'MISSING_SKU',
44
54
  ShippingMethodUnavailable: 'SHIPPING_METHOD_UNAVAILABLE',
45
55
  TransientSystemError: 'TRANSIENT_SYSTEM_ERROR',
46
- ImportFailed: 'IMPORT_FAILED'
56
+ ImportFailed: 'IMPORT_FAILED',
47
57
  };
48
58
  /**
49
59
  * The lifecycle status of a single group (order) within an import: - `pending` — Group is queued and has not started processing - `processing` — Group is currently being processed - `success` — Order was created and confirmed successfully - `failed` — Order creation or confirmation failed - `cancelled` — Group was cancelled (e.g. parent import was cancelled)
@@ -53,7 +63,7 @@ export const OrderImportGroupStatus = {
53
63
  Processing: 'processing',
54
64
  Success: 'success',
55
65
  Failed: 'failed',
56
- Cancelled: 'cancelled'
66
+ Cancelled: 'cancelled',
57
67
  };
58
68
  /**
59
69
  * The lifecycle status of an order import: - `queued` — Import has been accepted but no groups have started processing yet - `processing` — One or more groups are currently being processed - `completedSuccess` — All groups were imported successfully - `completedPartial` — Some groups succeeded but others failed or were cancelled - `completedFailed` — All groups failed or were cancelled, with none succeeding - `cancelled` — The entire import was cancelled before completion
@@ -64,24 +74,24 @@ export const OrderImportStatus = {
64
74
  CompletedSuccess: 'completedSuccess',
65
75
  CompletedPartial: 'completedPartial',
66
76
  CompletedFailed: 'completedFailed',
67
- Cancelled: 'cancelled'
77
+ Cancelled: 'cancelled',
68
78
  };
69
79
  export const PaymentAttemptPaymentProviderEnum = {
70
80
  Stripe: 'stripe',
71
81
  Paypal: 'paypal',
72
- Wallet: 'wallet'
82
+ Wallet: 'wallet',
73
83
  };
74
84
  export const PaymentAttemptStatusEnum = {
75
85
  Success: 'success',
76
86
  Failed: 'failed',
77
87
  Pending: 'pending',
78
- Cancelled: 'cancelled'
88
+ Cancelled: 'cancelled',
79
89
  };
80
90
  export const ProductUnavailableErrorCodeEnum = {
81
- ProductUnavailable: 'PRODUCT_UNAVAILABLE'
91
+ ProductUnavailable: 'PRODUCT_UNAVAILABLE',
82
92
  };
83
93
  export const ProductUnavailableErrorAvailableQuantityEnum = {
84
- NUMBER_0: 0
94
+ NUMBER_0: 0,
85
95
  };
86
96
  /**
87
97
  * 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
@@ -93,10 +103,10 @@ export const Status = {
93
103
  Complete: 'complete',
94
104
  Refunded: 'refunded',
95
105
  Quote: 'quote',
96
- Moderation: 'moderation'
106
+ Moderation: 'moderation',
97
107
  };
98
108
  export const StockUnavailableErrorCodeEnum = {
99
- StockUnavailable: 'STOCK_UNAVAILABLE'
109
+ StockUnavailable: 'STOCK_UNAVAILABLE',
100
110
  };
101
111
  /**
102
112
  * OrdersApi - axios parameter creator
@@ -649,7 +659,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
649
659
  }),
650
660
  /**
651
661
  * Retries failed platform payment, so fulfillment can proceed.
652
- * @summary Retry
662
+ * @summary Retry platform payment
653
663
  * @param {string} project The project identifier to scope the request to.
654
664
  * @param {string} orderId Unique identifier of an order
655
665
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -908,7 +918,7 @@ export const OrdersApiFp = function (configuration) {
908
918
  },
909
919
  /**
910
920
  * Retries failed platform payment, so fulfillment can proceed.
911
- * @summary Retry
921
+ * @summary Retry platform payment
912
922
  * @param {string} project The project identifier to scope the request to.
913
923
  * @param {string} orderId Unique identifier of an order
914
924
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1044,7 +1054,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1044
1054
  },
1045
1055
  /**
1046
1056
  * Retries failed platform payment, so fulfillment can proceed.
1047
- * @summary Retry
1057
+ * @summary Retry platform payment
1048
1058
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1049
1059
  * @param {*} [options] Override http request option.
1050
1060
  * @throws {RequiredError}
@@ -1170,7 +1180,7 @@ export class OrdersApi extends BaseAPI {
1170
1180
  }
1171
1181
  /**
1172
1182
  * Retries failed platform payment, so fulfillment can proceed.
1173
- * @summary Retry
1183
+ * @summary Retry platform payment
1174
1184
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1175
1185
  * @param {*} [options] Override http request option.
1176
1186
  * @throws {RequiredError}
@@ -1186,7 +1196,7 @@ export const ExportOrdersDateFilterTypeEnum = {
1186
1196
  StatusChangedAt: 'statusChangedAt',
1187
1197
  CompletedAt: 'completedAt',
1188
1198
  RefundedAt: 'refundedAt',
1189
- QuoteAt: 'quoteAt'
1199
+ QuoteAt: 'quoteAt',
1190
1200
  };
1191
1201
  export const GetOrdersDateFilterTypeEnum = {
1192
1202
  CreatedAt: 'createdAt',
@@ -1195,5 +1205,5 @@ export const GetOrdersDateFilterTypeEnum = {
1195
1205
  StatusChangedAt: 'statusChangedAt',
1196
1206
  CompletedAt: 'completedAt',
1197
1207
  RefundedAt: 'refundedAt',
1198
- QuoteAt: 'quoteAt'
1208
+ QuoteAt: 'quoteAt',
1199
1209
  };
@@ -2,7 +2,7 @@
2
2
  * Orders
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
7
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
7
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
6
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
7
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
5
+ * The version of the OpenAPI document: 1.29.2
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
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.28.4
8
+ * The version of the OpenAPI document: 1.29.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Coupon.md CHANGED
@@ -6,9 +6,9 @@ Coupon applied to the order.
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | Unique object identifier | [default to undefined]
10
- **code** | **string** | | [default to undefined]
11
- **ref** | **string** | Reference to the discount. **Note:** Requires the discounts integration to see the reference. | [optional] [default to undefined]
9
+ **id** | **string** | The unique identifier of the coupon. | [default to undefined]
10
+ **code** | **string** | The discount code entered by the customer. | [default to undefined]
11
+ **ref** | **string** | A URI reference to the discount resource. Requires the discounts integration. | [optional] [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
@@ -15,6 +15,8 @@ Name | Type | Description | Notes
15
15
  **availableShippingMethods** | [**Array&lt;ShippingMethod&gt;**](ShippingMethod.md) | Shipping methods available for this fulfillment. Use one of these IDs when confirming the order. | [optional] [default to undefined]
16
16
  **packageWeight** | **number** | The estimated weight of the package in grams. | [optional] [default to undefined]
17
17
  **platformRef** | **string** | Reference to the source platform of this fulfillment. | [optional] [default to undefined]
18
+ **frozen** | **boolean** | Whether the fulfillment is frozen. This will prevent the fulfillment from being picked. | [optional] [readonly] [default to undefined]
19
+ **frozenReasons** | **Array&lt;string&gt;** | List of reason codes why this fulfillment is frozen. - &#x60;moderation&#x60; - Held for content moderation review. - &#x60;internal_screen_print&#x60; - Awaiting internal screen print processing. - &#x60;manual&#x60; - Manually frozen by a user. - &#x60;credit_control&#x60; - Client is under credit control. - &#x60;billing_failed&#x60; - Payment for this order failed. - &#x60;pickface_flagged&#x60; - Flagged on the pickface for review. - &#x60;flow_frozen&#x60; - Frozen by internal production flow handling. - &#x60;fraud&#x60; - Frozen due to fraud checks. | [optional] [readonly] [default to undefined]
18
20
 
19
21
  ## Example
20
22
 
@@ -31,6 +33,8 @@ const instance: Fulfillment = {
31
33
  availableShippingMethods,
32
34
  packageWeight,
33
35
  platformRef,
36
+ frozen,
37
+ frozenReasons,
34
38
  };
35
39
  ```
36
40
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **importId** | **string** | Unique object identifier | [optional] [default to undefined]
8
+ **importId** | **string** | Unique identifier of the created import. Use this with the GET /v1/orders/imports/{importId} endpoint to track progress. | [optional] [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
package/docs/Order.md CHANGED
@@ -6,8 +6,8 @@ Represents a print-on-demand order placed on a project. An order contains items,
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | Unique object identifier | [optional] [default to undefined]
10
- **ref** | **string** | A reference to the resource location | [optional] [default to undefined]
9
+ **id** | **string** | The unique identifier of the order. | [optional] [default to undefined]
10
+ **ref** | **string** | A URI reference to this order resource. | [optional] [default to undefined]
11
11
  **status** | [**Status**](Status.md) | The current status of the order. | [optional] [default to undefined]
12
12
  **contactInformation** | [**ContactInformation**](ContactInformation.md) | | [default to undefined]
13
13
  **paymentMethod** | [**OrderPaymentMethod**](OrderPaymentMethod.md) | | [optional] [default to undefined]
@@ -1,17 +1,18 @@
1
1
  # OrderImport
2
2
 
3
+ Represents a bulk order import job, tracking the progress and outcome of importing orders from a CSV file.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **importId** | **string** | Unique object identifier | [default to undefined]
9
- **status** | [**OrderImportStatus**](OrderImportStatus.md) | | [default to undefined]
9
+ **importId** | **string** | The unique identifier of this import job. | [default to undefined]
10
+ **status** | [**OrderImportStatus**](OrderImportStatus.md) | The current lifecycle status of this import. | [default to undefined]
10
11
  **counts** | [**OrderImportCounts**](OrderImportCounts.md) | | [default to undefined]
11
- **createdAt** | **string** | ISO 8601 Timestamp | [default to undefined]
12
- **cancelledAt** | **string** | | [optional] [default to undefined]
13
- **startedAt** | **string** | | [optional] [default to undefined]
14
- **finishedAt** | **string** | | [optional] [default to undefined]
12
+ **createdAt** | **string** | The timestamp when the import was created. | [default to undefined]
13
+ **cancelledAt** | **string** | The timestamp when the import was cancelled. Null if the import has not been cancelled. | [optional] [default to undefined]
14
+ **startedAt** | **string** | The timestamp when the import started processing. Null if processing has not yet begun. | [optional] [default to undefined]
15
+ **finishedAt** | **string** | The timestamp when the import finished processing. Null if processing has not yet completed. | [optional] [default to undefined]
15
16
 
16
17
  ## Example
17
18
 
@@ -1,5 +1,6 @@
1
1
  # OrderImportCounts
2
2
 
3
+ Counts of import groups in each processing state.
3
4
 
4
5
  ## Properties
5
6
 
@@ -1,11 +1,12 @@
1
1
  # OrderImportError
2
2
 
3
+ An error encountered while processing an import group, including a machine-readable code and human-readable message.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **code** | [**OrderImportErrorCode**](OrderImportErrorCode.md) | | [default to undefined]
9
+ **code** | [**OrderImportErrorCode**](OrderImportErrorCode.md) | A machine-readable error code identifying the type of import failure. | [default to undefined]
9
10
  **message** | **string** | A human-readable description of the error. | [default to undefined]
10
11
  **fieldPath** | **string** | Dot-notation path to the field that caused the error (e.g. &#x60;items.sku&#x60;). | [optional] [default to undefined]
11
12
  **sku** | **string** | The SKU that triggered the error, if applicable. | [optional] [default to undefined]
@@ -1,21 +1,22 @@
1
1
  # OrderImportGroup
2
2
 
3
+ A single group (order) within a bulk import, representing one merchant reference and its processing outcome.
3
4
 
4
5
  ## Properties
5
6
 
6
7
  Name | Type | Description | Notes
7
8
  ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | Unique object identifier | [default to undefined]
9
- **status** | [**OrderImportGroupStatus**](OrderImportGroupStatus.md) | | [default to undefined]
9
+ **id** | **string** | Unique identifier for this import group. | [default to undefined]
10
+ **status** | [**OrderImportGroupStatus**](OrderImportGroupStatus.md) | The current lifecycle status of this import group. | [default to undefined]
10
11
  **merchantReference** | **string** | The merchant reference from the CSV rows belonging to this group. | [optional] [default to undefined]
11
12
  **resultReference** | **string** | A URI reference to the order created by this group. Only present when the group status is &#x60;success&#x60;. | [optional] [default to undefined]
12
13
  **message** | **string** | A human-readable message describing the outcome of this group. | [optional] [default to undefined]
13
14
  **rowsCount** | **number** | The number of CSV rows that belong to this group. | [default to undefined]
14
15
  **skus** | **Array&lt;string&gt;** | The distinct SKUs referenced by rows in this group. | [default to undefined]
15
16
  **errors** | [**Array&lt;OrderImportError&gt;**](OrderImportError.md) | Errors encountered while processing this group. Empty when the group succeeded. | [default to undefined]
16
- **createdAt** | **string** | | [optional] [default to undefined]
17
- **startedAt** | **string** | | [optional] [default to undefined]
18
- **finishedAt** | **string** | | [optional] [default to undefined]
17
+ **createdAt** | **string** | The timestamp when this group was created. Null if not yet set. | [optional] [default to undefined]
18
+ **startedAt** | **string** | The timestamp when this group started processing. Null if processing has not yet begun. | [optional] [default to undefined]
19
+ **finishedAt** | **string** | The timestamp when this group finished processing. Null if processing has not yet completed. | [optional] [default to undefined]
19
20
 
20
21
  ## Example
21
22