@teemill/orders 1.29.0 → 1.29.3

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.3
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.3
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.3
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.3
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.3
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.3
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,22 @@ 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. - `client_credit_control` - The client is under credit control. - `factory_credit_control` - The factory fulfilling the order 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 ClientCreditControl: "client_credit_control";
336
+ readonly FactoryCreditControl: "factory_credit_control";
337
+ readonly BillingFailed: "billing_failed";
338
+ readonly PickfaceFlagged: "pickface_flagged";
339
+ readonly FlowFrozen: "flow_frozen";
340
+ readonly Fraud: "fraud";
341
+ };
342
+ export type FulfillmentFrozenReasonsEnum = typeof FulfillmentFrozenReasonsEnum[keyof typeof FulfillmentFrozenReasonsEnum];
328
343
  export interface FulfillmentItem {
329
344
  /**
330
345
  * Unique identifier for this fulfillment item.
@@ -362,7 +377,7 @@ export interface Image {
362
377
  }
363
378
  export interface ImportOrders202Response {
364
379
  /**
365
- * Unique object identifier
380
+ * Unique identifier of the created import. Use this with the GET /v1/orders/imports/{importId} endpoint to track progress.
366
381
  */
367
382
  'importId'?: string;
368
383
  }
@@ -381,11 +396,11 @@ export interface Option {
381
396
  */
382
397
  export interface Order {
383
398
  /**
384
- * Unique object identifier
399
+ * The unique identifier of the order.
385
400
  */
386
401
  'id'?: string;
387
402
  /**
388
- * A reference to the resource location
403
+ * A URI reference to this order resource.
389
404
  */
390
405
  'ref'?: string;
391
406
  /**
@@ -457,21 +472,39 @@ export interface Order {
457
472
  */
458
473
  'paymentAttempts'?: Array<PaymentAttempt>;
459
474
  }
475
+ /**
476
+ * Represents a bulk order import job, tracking the progress and outcome of importing orders from a CSV file.
477
+ */
460
478
  export interface OrderImport {
461
479
  /**
462
- * Unique object identifier
480
+ * The unique identifier of this import job.
463
481
  */
464
482
  'importId': string;
483
+ /**
484
+ * The current lifecycle status of this import.
485
+ */
465
486
  'status': OrderImportStatus;
466
487
  'counts': OrderImportCounts;
467
488
  /**
468
- * ISO 8601 Timestamp
489
+ * The timestamp when the import was created.
469
490
  */
470
491
  'createdAt': string;
492
+ /**
493
+ * The timestamp when the import was cancelled. Null if the import has not been cancelled.
494
+ */
471
495
  'cancelledAt'?: string | null;
496
+ /**
497
+ * The timestamp when the import started processing. Null if processing has not yet begun.
498
+ */
472
499
  'startedAt'?: string | null;
500
+ /**
501
+ * The timestamp when the import finished processing. Null if processing has not yet completed.
502
+ */
473
503
  'finishedAt'?: string | null;
474
504
  }
505
+ /**
506
+ * Counts of import groups in each processing state.
507
+ */
475
508
  export interface OrderImportCounts {
476
509
  'total': number;
477
510
  'pending': number;
@@ -481,7 +514,13 @@ export interface OrderImportCounts {
481
514
  'cancelled': number;
482
515
  'completed': number;
483
516
  }
517
+ /**
518
+ * An error encountered while processing an import group, including a machine-readable code and human-readable message.
519
+ */
484
520
  export interface OrderImportError {
521
+ /**
522
+ * A machine-readable error code identifying the type of import failure.
523
+ */
485
524
  'code': OrderImportErrorCode;
486
525
  /**
487
526
  * A human-readable description of the error.
@@ -515,11 +554,17 @@ export declare const OrderImportErrorCode: {
515
554
  readonly ImportFailed: "IMPORT_FAILED";
516
555
  };
517
556
  export type OrderImportErrorCode = typeof OrderImportErrorCode[keyof typeof OrderImportErrorCode];
557
+ /**
558
+ * A single group (order) within a bulk import, representing one merchant reference and its processing outcome.
559
+ */
518
560
  export interface OrderImportGroup {
519
561
  /**
520
- * Unique object identifier
562
+ * Unique identifier for this import group.
521
563
  */
522
564
  'id': string;
565
+ /**
566
+ * The current lifecycle status of this import group.
567
+ */
523
568
  'status': OrderImportGroupStatus;
524
569
  /**
525
570
  * The merchant reference from the CSV rows belonging to this group.
@@ -545,8 +590,17 @@ export interface OrderImportGroup {
545
590
  * Errors encountered while processing this group. Empty when the group succeeded.
546
591
  */
547
592
  'errors': Array<OrderImportError>;
593
+ /**
594
+ * The timestamp when this group was created. Null if not yet set.
595
+ */
548
596
  'createdAt'?: string | null;
597
+ /**
598
+ * The timestamp when this group started processing. Null if processing has not yet begun.
599
+ */
549
600
  'startedAt'?: string | null;
601
+ /**
602
+ * The timestamp when this group finished processing. Null if processing has not yet completed.
603
+ */
550
604
  'finishedAt'?: string | null;
551
605
  }
552
606
  /**
@@ -589,11 +643,11 @@ export interface OrderItem {
589
643
  */
590
644
  'id'?: string;
591
645
  /**
592
- * A reference to the variant being ordered
646
+ * A reference to the product variant being ordered.
593
647
  */
594
648
  'variantRef': string;
595
649
  /**
596
- * Options associated to an order item\'s variant, such as color and size.
650
+ * The variant attributes (e.g. Colour, Size) for this line item.
597
651
  */
598
652
  'options'?: Array<Option>;
599
653
  /**
@@ -727,6 +781,9 @@ export interface Price {
727
781
  * 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
782
  */
729
783
  export interface ProductUnavailableError {
784
+ /**
785
+ * The error code identifying this as a product unavailable error.
786
+ */
730
787
  'code': ProductUnavailableErrorCodeEnum;
731
788
  /**
732
789
  * Human-readable description including the product name.
@@ -737,11 +794,11 @@ export interface ProductUnavailableError {
737
794
  */
738
795
  'productTitle': string;
739
796
  /**
740
- * Unique object identifier
797
+ * The unique identifier of the unavailable variant.
741
798
  */
742
799
  'variantId': string;
743
800
  /**
744
- * A reference to the variant being ordered
801
+ * A URI reference to the unavailable variant.
745
802
  */
746
803
  'variantRef': string;
747
804
  /**
@@ -843,6 +900,7 @@ export interface StatusHistoryItem {
843
900
  }
844
901
  /**
845
902
  * @type StockConflictError
903
+ * 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
904
  */
847
905
  export type StockConflictError = {
848
906
  code: 'PRODUCT_UNAVAILABLE';
@@ -853,6 +911,9 @@ export type StockConflictError = {
853
911
  * The requested quantity exceeds available stock. The item can still be ordered in a smaller quantity.
854
912
  */
855
913
  export interface StockUnavailableError {
914
+ /**
915
+ * The error code identifying this as a stock unavailable error.
916
+ */
856
917
  'code': StockUnavailableErrorCodeEnum;
857
918
  /**
858
919
  * Human-readable description including the product name and available quantity.
@@ -863,11 +924,11 @@ export interface StockUnavailableError {
863
924
  */
864
925
  'productTitle': string;
865
926
  /**
866
- * Unique object identifier
927
+ * The unique identifier of the variant with insufficient stock.
867
928
  */
868
929
  'variantId': string;
869
930
  /**
870
- * A reference to the variant being ordered
931
+ * A URI reference to the variant with insufficient stock.
871
932
  */
872
933
  'variantRef': string;
873
934
  /**
@@ -1011,7 +1072,7 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
1011
1072
  listOrderImports: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1012
1073
  /**
1013
1074
  * Retries failed platform payment, so fulfillment can proceed.
1014
- * @summary Retry
1075
+ * @summary Retry platform payment
1015
1076
  * @param {string} project The project identifier to scope the request to.
1016
1077
  * @param {string} orderId Unique identifier of an order
1017
1078
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1144,7 +1205,7 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
1144
1205
  listOrderImports(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderImportsResponse>>;
1145
1206
  /**
1146
1207
  * Retries failed platform payment, so fulfillment can proceed.
1147
- * @summary Retry
1208
+ * @summary Retry platform payment
1148
1209
  * @param {string} project The project identifier to scope the request to.
1149
1210
  * @param {string} orderId Unique identifier of an order
1150
1211
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1247,7 +1308,7 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
1247
1308
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrderImportsResponse>;
1248
1309
  /**
1249
1310
  * Retries failed platform payment, so fulfillment can proceed.
1250
- * @summary Retry
1311
+ * @summary Retry platform payment
1251
1312
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1252
1313
  * @param {*} [options] Override http request option.
1253
1314
  * @throws {RequiredError}
@@ -1584,7 +1645,7 @@ export declare class OrdersApi extends BaseAPI {
1584
1645
  listOrderImports(requestParameters: OrdersApiListOrderImportsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderImportsResponse, any, {}>>;
1585
1646
  /**
1586
1647
  * Retries failed platform payment, so fulfillment can proceed.
1587
- * @summary Retry
1648
+ * @summary Retry platform payment
1588
1649
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1589
1650
  * @param {*} [options] Override http request option.
1590
1651
  * @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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,6 +35,17 @@ 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
+ ClientCreditControl: 'client_credit_control',
43
+ FactoryCreditControl: 'factory_credit_control',
44
+ BillingFailed: 'billing_failed',
45
+ PickfaceFlagged: 'pickface_flagged',
46
+ FlowFrozen: 'flow_frozen',
47
+ Fraud: 'fraud',
48
+ };
38
49
  /**
39
50
  * 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
51
  */
@@ -649,7 +660,7 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
649
660
  }),
650
661
  /**
651
662
  * Retries failed platform payment, so fulfillment can proceed.
652
- * @summary Retry
663
+ * @summary Retry platform payment
653
664
  * @param {string} project The project identifier to scope the request to.
654
665
  * @param {string} orderId Unique identifier of an order
655
666
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -908,7 +919,7 @@ export const OrdersApiFp = function (configuration) {
908
919
  },
909
920
  /**
910
921
  * Retries failed platform payment, so fulfillment can proceed.
911
- * @summary Retry
922
+ * @summary Retry platform payment
912
923
  * @param {string} project The project identifier to scope the request to.
913
924
  * @param {string} orderId Unique identifier of an order
914
925
  * @param {string} [fields] Specifies which fields to return, separated by commas
@@ -1044,7 +1055,7 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
1044
1055
  },
1045
1056
  /**
1046
1057
  * Retries failed platform payment, so fulfillment can proceed.
1047
- * @summary Retry
1058
+ * @summary Retry platform payment
1048
1059
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1049
1060
  * @param {*} [options] Override http request option.
1050
1061
  * @throws {RequiredError}
@@ -1170,7 +1181,7 @@ export class OrdersApi extends BaseAPI {
1170
1181
  }
1171
1182
  /**
1172
1183
  * Retries failed platform payment, so fulfillment can proceed.
1173
- * @summary Retry
1184
+ * @summary Retry platform payment
1174
1185
  * @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
1175
1186
  * @param {*} [options] Override http request option.
1176
1187
  * @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.3
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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;client_credit_control&#x60; - The client is under credit control. - &#x60;factory_credit_control&#x60; - The factory fulfilling the order 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]