@teemill/orders 1.29.0 → 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/base.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.29.0
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/dist/common.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.29.0
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/common.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.29.0
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).
@@ -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.29.0
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.29.0
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/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.29.0
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
  }
@@ -321,10 +324,21 @@ export interface Fulfillment {
321
324
  */
322
325
  'frozen'?: boolean;
323
326
  /**
324
- * List of reason codes why this fulfillment is frozen.
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.
325
328
  */
326
- 'frozenReasons'?: Array<string>;
329
+ 'frozenReasons'?: Array<FulfillmentFrozenReasonsEnum>;
327
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];
328
342
  export interface FulfillmentItem {
329
343
  /**
330
344
  * Unique identifier for this fulfillment item.
@@ -362,7 +376,7 @@ export interface Image {
362
376
  }
363
377
  export interface ImportOrders202Response {
364
378
  /**
365
- * Unique object identifier
379
+ * Unique identifier of the created import. Use this with the GET /v1/orders/imports/{importId} endpoint to track progress.
366
380
  */
367
381
  'importId'?: string;
368
382
  }
@@ -381,11 +395,11 @@ export interface Option {
381
395
  */
382
396
  export interface Order {
383
397
  /**
384
- * Unique object identifier
398
+ * The unique identifier of the order.
385
399
  */
386
400
  'id'?: string;
387
401
  /**
388
- * A reference to the resource location
402
+ * A URI reference to this order resource.
389
403
  */
390
404
  'ref'?: string;
391
405
  /**
@@ -457,21 +471,39 @@ export interface Order {
457
471
  */
458
472
  'paymentAttempts'?: Array<PaymentAttempt>;
459
473
  }
474
+ /**
475
+ * Represents a bulk order import job, tracking the progress and outcome of importing orders from a CSV file.
476
+ */
460
477
  export interface OrderImport {
461
478
  /**
462
- * Unique object identifier
479
+ * The unique identifier of this import job.
463
480
  */
464
481
  'importId': string;
482
+ /**
483
+ * The current lifecycle status of this import.
484
+ */
465
485
  'status': OrderImportStatus;
466
486
  'counts': OrderImportCounts;
467
487
  /**
468
- * ISO 8601 Timestamp
488
+ * The timestamp when the import was created.
469
489
  */
470
490
  'createdAt': string;
491
+ /**
492
+ * The timestamp when the import was cancelled. Null if the import has not been cancelled.
493
+ */
471
494
  'cancelledAt'?: string | null;
495
+ /**
496
+ * The timestamp when the import started processing. Null if processing has not yet begun.
497
+ */
472
498
  'startedAt'?: string | null;
499
+ /**
500
+ * The timestamp when the import finished processing. Null if processing has not yet completed.
501
+ */
473
502
  'finishedAt'?: string | null;
474
503
  }
504
+ /**
505
+ * Counts of import groups in each processing state.
506
+ */
475
507
  export interface OrderImportCounts {
476
508
  'total': number;
477
509
  'pending': number;
@@ -481,7 +513,13 @@ export interface OrderImportCounts {
481
513
  'cancelled': number;
482
514
  'completed': number;
483
515
  }
516
+ /**
517
+ * An error encountered while processing an import group, including a machine-readable code and human-readable message.
518
+ */
484
519
  export interface OrderImportError {
520
+ /**
521
+ * A machine-readable error code identifying the type of import failure.
522
+ */
485
523
  'code': OrderImportErrorCode;
486
524
  /**
487
525
  * A human-readable description of the error.
@@ -515,11 +553,17 @@ export declare const OrderImportErrorCode: {
515
553
  readonly ImportFailed: "IMPORT_FAILED";
516
554
  };
517
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
+ */
518
559
  export interface OrderImportGroup {
519
560
  /**
520
- * Unique object identifier
561
+ * Unique identifier for this import group.
521
562
  */
522
563
  'id': string;
564
+ /**
565
+ * The current lifecycle status of this import group.
566
+ */
523
567
  'status': OrderImportGroupStatus;
524
568
  /**
525
569
  * The merchant reference from the CSV rows belonging to this group.
@@ -545,8 +589,17 @@ export interface OrderImportGroup {
545
589
  * Errors encountered while processing this group. Empty when the group succeeded.
546
590
  */
547
591
  'errors': Array<OrderImportError>;
592
+ /**
593
+ * The timestamp when this group was created. Null if not yet set.
594
+ */
548
595
  'createdAt'?: string | null;
596
+ /**
597
+ * The timestamp when this group started processing. Null if processing has not yet begun.
598
+ */
549
599
  'startedAt'?: string | null;
600
+ /**
601
+ * The timestamp when this group finished processing. Null if processing has not yet completed.
602
+ */
550
603
  'finishedAt'?: string | null;
551
604
  }
552
605
  /**
@@ -589,11 +642,11 @@ export interface OrderItem {
589
642
  */
590
643
  'id'?: string;
591
644
  /**
592
- * A reference to the variant being ordered
645
+ * A reference to the product variant being ordered.
593
646
  */
594
647
  'variantRef': string;
595
648
  /**
596
- * 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.
597
650
  */
598
651
  'options'?: Array<Option>;
599
652
  /**
@@ -727,6 +780,9 @@ export interface Price {
727
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).
728
781
  */
729
782
  export interface ProductUnavailableError {
783
+ /**
784
+ * The error code identifying this as a product unavailable error.
785
+ */
730
786
  'code': ProductUnavailableErrorCodeEnum;
731
787
  /**
732
788
  * Human-readable description including the product name.
@@ -737,11 +793,11 @@ export interface ProductUnavailableError {
737
793
  */
738
794
  'productTitle': string;
739
795
  /**
740
- * Unique object identifier
796
+ * The unique identifier of the unavailable variant.
741
797
  */
742
798
  'variantId': string;
743
799
  /**
744
- * A reference to the variant being ordered
800
+ * A URI reference to the unavailable variant.
745
801
  */
746
802
  'variantRef': string;
747
803
  /**
@@ -843,6 +899,7 @@ export interface StatusHistoryItem {
843
899
  }
844
900
  /**
845
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.
846
903
  */
847
904
  export type StockConflictError = {
848
905
  code: 'PRODUCT_UNAVAILABLE';
@@ -853,6 +910,9 @@ export type StockConflictError = {
853
910
  * The requested quantity exceeds available stock. The item can still be ordered in a smaller quantity.
854
911
  */
855
912
  export interface StockUnavailableError {
913
+ /**
914
+ * The error code identifying this as a stock unavailable error.
915
+ */
856
916
  'code': StockUnavailableErrorCodeEnum;
857
917
  /**
858
918
  * Human-readable description including the product name and available quantity.
@@ -863,11 +923,11 @@ export interface StockUnavailableError {
863
923
  */
864
924
  'productTitle': string;
865
925
  /**
866
- * Unique object identifier
926
+ * The unique identifier of the variant with insufficient stock.
867
927
  */
868
928
  'variantId': string;
869
929
  /**
870
- * A reference to the variant being ordered
930
+ * A URI reference to the variant with insufficient stock.
871
931
  */
872
932
  'variantRef': string;
873
933
  /**
@@ -1011,7 +1071,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
1011
1071
  listOrderImports: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1012
1072
  /**
1013
1073
  * Retries failed platform payment, so fulfillment can proceed.
1014
- * @summary Retry
1074
+ * @summary Retry platform payment
1015
1075
  * @param {string} project The project identifier to scope the request to.
1016
1076
  * @param {string} orderId Unique identifier of an order
1017
1077
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1144,7 +1204,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
1144
1204
  listOrderImports(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportsResponse>>;
1145
1205
  /**
1146
1206
  * Retries failed platform payment, so fulfillment can proceed.
1147
- * @summary Retry
1207
+ * @summary Retry platform payment
1148
1208
  * @param {string} project The project identifier to scope the request to.
1149
1209
  * @param {string} orderId Unique identifier of an order
1150
1210
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1247,7 +1307,7 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
1247
1307
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportsResponse>;
1248
1308
  /**
1249
1309
  * Retries failed platform payment, so fulfillment can proceed.
1250
- * @summary Retry
1310
+ * @summary Retry platform payment
1251
1311
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1252
1312
  * @param {*} [options] Override http request option.
1253
1313
  * @throws {RequiredError}
@@ -1584,7 +1644,7 @@ export declare class OrdersApi extends BaseAPI {
1584
1644
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportsResponse, any, {}>>;
1585
1645
  /**
1586
1646
  * Retries failed platform payment, so fulfillment can proceed.
1587
- * @summary Retry
1647
+ * @summary Retry platform payment
1588
1648
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1589
1649
  * @param {*} [options] Override http request option.
1590
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.29.0
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).
@@ -35,6 +35,16 @@ export const ConfirmOrderValidationErrorCodeEnum = {
35
35
  export const CustomsInformationPreRegistrationTypeEnum = {
36
36
  Ioss: 'IOSS',
37
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',
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
40
50
  */
@@ -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}
@@ -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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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.29.0
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
 
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
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
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. | [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]
20
20
 
21
21
  ## Example
22
22
 
@@ -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
 
package/docs/OrderItem.md CHANGED
@@ -7,8 +7,8 @@ A line item in an order, representing a specific product variant and quantity.
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **id** | **string** | Unique identifier for this order item. | [optional] [readonly] [default to undefined]
10
- **variantRef** | **string** | A reference to the variant being ordered | [default to undefined]
11
- **_options** | [**Array&lt;Option&gt;**](Option.md) | Options associated to an order item\&#39;s variant, such as color and size. | [optional] [default to undefined]
10
+ **variantRef** | **string** | A reference to the product variant being ordered. | [default to undefined]
11
+ **_options** | [**Array&lt;Option&gt;**](Option.md) | The variant attributes (e.g. Colour, Size) for this line item. | [optional] [default to undefined]
12
12
  **quantity** | **number** | The number of units of this variant to order. | [default to undefined]
13
13
  **name** | **string** | The display name of the product. | [optional] [readonly] [default to undefined]
14
14
  **images** | [**Array&lt;Image&gt;**](Image.md) | Product images associated with this item. | [optional] [readonly] [default to undefined]