@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/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +101 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +87 -19
- package/dist/api.js +29 -19
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +87 -19
- package/dist/esm/api.js +28 -18
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Coupon.md +3 -3
- package/docs/Fulfillment.md +4 -0
- package/docs/ImportOrders202Response.md +1 -1
- package/docs/Order.md +2 -2
- package/docs/OrderImport.md +7 -6
- package/docs/OrderImportCounts.md +1 -0
- package/docs/OrderImportError.md +2 -1
- package/docs/OrderImportGroup.md +6 -5
- package/docs/OrderItem.md +2 -2
- package/docs/OrdersApi.md +13 -13
- package/docs/ProductUnavailableError.md +3 -3
- package/docs/StockConflictError.md +4 -3
- package/docs/StockUnavailableError.md +3 -3
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/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.
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
398
|
+
* The unique identifier of the order.
|
|
377
399
|
*/
|
|
378
400
|
'id'?: string;
|
|
379
401
|
/**
|
|
380
|
-
* A reference to
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
796
|
+
* The unique identifier of the unavailable variant.
|
|
733
797
|
*/
|
|
734
798
|
'variantId': string;
|
|
735
799
|
/**
|
|
736
|
-
* A reference to the variant
|
|
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
|
-
*
|
|
926
|
+
* The unique identifier of the variant with insufficient stock.
|
|
859
927
|
*/
|
|
860
928
|
'variantId': string;
|
|
861
929
|
/**
|
|
862
|
-
* A reference to the variant
|
|
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/api.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.
|
|
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).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.StockUnavailableErrorCodeEnum = exports.Status = exports.ProductUnavailableErrorAvailableQuantityEnum = exports.ProductUnavailableErrorCodeEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.OrderImportStatus = exports.OrderImportGroupStatus = exports.OrderImportErrorCode = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
25
|
+
exports.GetOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.StockUnavailableErrorCodeEnum = exports.Status = exports.ProductUnavailableErrorAvailableQuantityEnum = exports.ProductUnavailableErrorCodeEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.OrderImportStatus = exports.OrderImportGroupStatus = exports.OrderImportErrorCode = exports.FulfillmentFrozenReasonsEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -33,10 +33,20 @@ exports.ConfirmOrderValidationErrorCodeEnum = {
|
|
|
33
33
|
BadRequest: 'BAD_REQUEST',
|
|
34
34
|
PaymentFailed: 'PAYMENT_FAILED',
|
|
35
35
|
Conflict: 'CONFLICT',
|
|
36
|
-
ActionRequired: 'ACTION_REQUIRED'
|
|
36
|
+
ActionRequired: 'ACTION_REQUIRED',
|
|
37
37
|
};
|
|
38
38
|
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
39
|
-
Ioss: 'IOSS'
|
|
39
|
+
Ioss: 'IOSS',
|
|
40
|
+
};
|
|
41
|
+
exports.FulfillmentFrozenReasonsEnum = {
|
|
42
|
+
Moderation: 'moderation',
|
|
43
|
+
InternalScreenPrint: 'internal_screen_print',
|
|
44
|
+
Manual: 'manual',
|
|
45
|
+
CreditControl: 'credit_control',
|
|
46
|
+
BillingFailed: 'billing_failed',
|
|
47
|
+
PickfaceFlagged: 'pickface_flagged',
|
|
48
|
+
FlowFrozen: 'flow_frozen',
|
|
49
|
+
Fraud: 'fraud',
|
|
40
50
|
};
|
|
41
51
|
/**
|
|
42
52
|
* 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
|
|
@@ -46,7 +56,7 @@ exports.OrderImportErrorCode = {
|
|
|
46
56
|
MissingSku: 'MISSING_SKU',
|
|
47
57
|
ShippingMethodUnavailable: 'SHIPPING_METHOD_UNAVAILABLE',
|
|
48
58
|
TransientSystemError: 'TRANSIENT_SYSTEM_ERROR',
|
|
49
|
-
ImportFailed: 'IMPORT_FAILED'
|
|
59
|
+
ImportFailed: 'IMPORT_FAILED',
|
|
50
60
|
};
|
|
51
61
|
/**
|
|
52
62
|
* 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)
|
|
@@ -56,7 +66,7 @@ exports.OrderImportGroupStatus = {
|
|
|
56
66
|
Processing: 'processing',
|
|
57
67
|
Success: 'success',
|
|
58
68
|
Failed: 'failed',
|
|
59
|
-
Cancelled: 'cancelled'
|
|
69
|
+
Cancelled: 'cancelled',
|
|
60
70
|
};
|
|
61
71
|
/**
|
|
62
72
|
* 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
|
|
@@ -67,24 +77,24 @@ exports.OrderImportStatus = {
|
|
|
67
77
|
CompletedSuccess: 'completedSuccess',
|
|
68
78
|
CompletedPartial: 'completedPartial',
|
|
69
79
|
CompletedFailed: 'completedFailed',
|
|
70
|
-
Cancelled: 'cancelled'
|
|
80
|
+
Cancelled: 'cancelled',
|
|
71
81
|
};
|
|
72
82
|
exports.PaymentAttemptPaymentProviderEnum = {
|
|
73
83
|
Stripe: 'stripe',
|
|
74
84
|
Paypal: 'paypal',
|
|
75
|
-
Wallet: 'wallet'
|
|
85
|
+
Wallet: 'wallet',
|
|
76
86
|
};
|
|
77
87
|
exports.PaymentAttemptStatusEnum = {
|
|
78
88
|
Success: 'success',
|
|
79
89
|
Failed: 'failed',
|
|
80
90
|
Pending: 'pending',
|
|
81
|
-
Cancelled: 'cancelled'
|
|
91
|
+
Cancelled: 'cancelled',
|
|
82
92
|
};
|
|
83
93
|
exports.ProductUnavailableErrorCodeEnum = {
|
|
84
|
-
ProductUnavailable: 'PRODUCT_UNAVAILABLE'
|
|
94
|
+
ProductUnavailable: 'PRODUCT_UNAVAILABLE',
|
|
85
95
|
};
|
|
86
96
|
exports.ProductUnavailableErrorAvailableQuantityEnum = {
|
|
87
|
-
NUMBER_0: 0
|
|
97
|
+
NUMBER_0: 0,
|
|
88
98
|
};
|
|
89
99
|
/**
|
|
90
100
|
* 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
|
|
@@ -96,10 +106,10 @@ exports.Status = {
|
|
|
96
106
|
Complete: 'complete',
|
|
97
107
|
Refunded: 'refunded',
|
|
98
108
|
Quote: 'quote',
|
|
99
|
-
Moderation: 'moderation'
|
|
109
|
+
Moderation: 'moderation',
|
|
100
110
|
};
|
|
101
111
|
exports.StockUnavailableErrorCodeEnum = {
|
|
102
|
-
StockUnavailable: 'STOCK_UNAVAILABLE'
|
|
112
|
+
StockUnavailable: 'STOCK_UNAVAILABLE',
|
|
103
113
|
};
|
|
104
114
|
/**
|
|
105
115
|
* OrdersApi - axios parameter creator
|
|
@@ -652,7 +662,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
652
662
|
}),
|
|
653
663
|
/**
|
|
654
664
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
655
|
-
* @summary Retry
|
|
665
|
+
* @summary Retry platform payment
|
|
656
666
|
* @param {string} project The project identifier to scope the request to.
|
|
657
667
|
* @param {string} orderId Unique identifier of an order
|
|
658
668
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
@@ -912,7 +922,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
912
922
|
},
|
|
913
923
|
/**
|
|
914
924
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
915
|
-
* @summary Retry
|
|
925
|
+
* @summary Retry platform payment
|
|
916
926
|
* @param {string} project The project identifier to scope the request to.
|
|
917
927
|
* @param {string} orderId Unique identifier of an order
|
|
918
928
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
@@ -1049,7 +1059,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1049
1059
|
},
|
|
1050
1060
|
/**
|
|
1051
1061
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1052
|
-
* @summary Retry
|
|
1062
|
+
* @summary Retry platform payment
|
|
1053
1063
|
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1054
1064
|
* @param {*} [options] Override http request option.
|
|
1055
1065
|
* @throws {RequiredError}
|
|
@@ -1176,7 +1186,7 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
1176
1186
|
}
|
|
1177
1187
|
/**
|
|
1178
1188
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
1179
|
-
* @summary Retry
|
|
1189
|
+
* @summary Retry platform payment
|
|
1180
1190
|
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
1181
1191
|
* @param {*} [options] Override http request option.
|
|
1182
1192
|
* @throws {RequiredError}
|
|
@@ -1193,7 +1203,7 @@ exports.ExportOrdersDateFilterTypeEnum = {
|
|
|
1193
1203
|
StatusChangedAt: 'statusChangedAt',
|
|
1194
1204
|
CompletedAt: 'completedAt',
|
|
1195
1205
|
RefundedAt: 'refundedAt',
|
|
1196
|
-
QuoteAt: 'quoteAt'
|
|
1206
|
+
QuoteAt: 'quoteAt',
|
|
1197
1207
|
};
|
|
1198
1208
|
exports.GetOrdersDateFilterTypeEnum = {
|
|
1199
1209
|
CreatedAt: 'createdAt',
|
|
@@ -1202,5 +1212,5 @@ exports.GetOrdersDateFilterTypeEnum = {
|
|
|
1202
1212
|
StatusChangedAt: 'statusChangedAt',
|
|
1203
1213
|
CompletedAt: 'completedAt',
|
|
1204
1214
|
RefundedAt: 'refundedAt',
|
|
1205
|
-
QuoteAt: 'quoteAt'
|
|
1215
|
+
QuoteAt: 'quoteAt',
|
|
1206
1216
|
};
|
package/dist/base.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.
|
|
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/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.
|
|
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.
|
|
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.
|
|
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/configuration.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.
|
|
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/configuration.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.
|
|
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).
|