@teemill/orders 1.24.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/api.ts +560 -137
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +499 -137
- package/dist/api.js +127 -32
- 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 +499 -137
- package/dist/esm/api.js +126 -31
- 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/Address.md +9 -9
- package/docs/ApiError.md +3 -2
- package/docs/ConfirmOrderFulfillment.md +4 -3
- package/docs/ConfirmOrderFulfillmentWithShipment.md +3 -2
- package/docs/ConfirmOrderFulfillmentWithShippingMethod.md +3 -2
- package/docs/ConfirmOrderValidationError.md +2 -0
- package/docs/ContactInformation.md +2 -2
- package/docs/ContactInformation1.md +23 -0
- package/docs/CreateOrder.md +7 -7
- package/docs/CreateOrderItem.md +24 -0
- package/docs/CustomsInformation.md +4 -4
- package/docs/CustomsInformation1.md +5 -4
- package/docs/DeliveryEstimates.md +4 -3
- package/docs/Fulfiller.md +25 -0
- package/docs/FulfillerLocation.md +23 -0
- package/docs/Fulfillment.md +9 -8
- package/docs/FulfillmentItem.md +3 -3
- package/docs/Image.md +5 -5
- package/docs/ImportOrders202Response.md +20 -0
- package/docs/Order.md +18 -17
- package/docs/OrderItem.md +10 -9
- package/docs/OrderPaymentMethod.md +21 -0
- package/docs/OrderTracking.md +4 -3
- package/docs/OrdersApi.md +91 -31
- package/docs/Origin.md +3 -2
- package/docs/PaymentAttempt.md +4 -5
- package/docs/PaymentMethod.md +2 -1
- package/docs/Price.md +3 -3
- package/docs/ProductUnavailableError.md +35 -0
- package/docs/RecipientCost.md +23 -0
- package/docs/Shipment.md +21 -0
- package/docs/ShippingMethod.md +8 -7
- package/docs/Status.md +1 -0
- package/docs/StockConflictError.md +34 -0
- package/docs/StockUnavailableError.md +35 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.Status = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
25
|
+
exports.GetOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.StockUnavailableErrorCodeEnum = exports.Status = exports.ProductUnavailableErrorAvailableQuantityEnum = exports.ProductUnavailableErrorCodeEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = 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
|
|
@@ -49,6 +49,15 @@ exports.PaymentAttemptStatusEnum = {
|
|
|
49
49
|
Pending: 'pending',
|
|
50
50
|
Cancelled: 'cancelled'
|
|
51
51
|
};
|
|
52
|
+
exports.ProductUnavailableErrorCodeEnum = {
|
|
53
|
+
ProductUnavailable: 'PRODUCT_UNAVAILABLE'
|
|
54
|
+
};
|
|
55
|
+
exports.ProductUnavailableErrorAvailableQuantityEnum = {
|
|
56
|
+
NUMBER_0: 0
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 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
|
|
60
|
+
*/
|
|
52
61
|
exports.Status = {
|
|
53
62
|
New: 'new',
|
|
54
63
|
Paid: 'paid',
|
|
@@ -58,6 +67,9 @@ exports.Status = {
|
|
|
58
67
|
Quote: 'quote',
|
|
59
68
|
Moderation: 'moderation'
|
|
60
69
|
};
|
|
70
|
+
exports.StockUnavailableErrorCodeEnum = {
|
|
71
|
+
StockUnavailable: 'STOCK_UNAVAILABLE'
|
|
72
|
+
};
|
|
61
73
|
/**
|
|
62
74
|
* OrdersApi - axios parameter creator
|
|
63
75
|
*/
|
|
@@ -66,7 +78,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
66
78
|
/**
|
|
67
79
|
* Cancels an order if it has not yet started processing.
|
|
68
80
|
* @summary Cancel order
|
|
69
|
-
* @param {string} project
|
|
81
|
+
* @param {string} project The project identifier to scope the request to.
|
|
70
82
|
* @param {string} orderId Unique identifier of an order
|
|
71
83
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
72
84
|
* @param {*} [options] Override http request option.
|
|
@@ -111,9 +123,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
111
123
|
/**
|
|
112
124
|
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
113
125
|
* @summary Confirm order
|
|
114
|
-
* @param {string} project
|
|
126
|
+
* @param {string} project The project identifier to scope the request to.
|
|
115
127
|
* @param {string} orderId Unique identifier of an order
|
|
116
|
-
* @param {ConfirmOrderRequest} confirmOrderRequest
|
|
128
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest Confirm an order by specifying shipping methods for each fulfillment. This submits the order for payment processing and production. Orders should be confirmed promptly after creation — the longer an order remains unconfirmed, the greater the chance that stock availability changes. If stock is no longer available at the time of confirmation, the request will fail and you will need to create a new order.
|
|
117
129
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
118
130
|
* @param {*} [options] Override http request option.
|
|
119
131
|
* @throws {RequiredError}
|
|
@@ -161,7 +173,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
161
173
|
/**
|
|
162
174
|
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
163
175
|
* @summary Create order
|
|
164
|
-
* @param {string} project
|
|
176
|
+
* @param {string} project The project identifier to scope the request to.
|
|
165
177
|
* @param {CreateOrder} createOrder Create Order schema
|
|
166
178
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
167
179
|
* @param {*} [options] Override http request option.
|
|
@@ -207,7 +219,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
207
219
|
/**
|
|
208
220
|
* Download an order invoice.
|
|
209
221
|
* @summary Download order invoice
|
|
210
|
-
* @param {string} project
|
|
222
|
+
* @param {string} project The project identifier to scope the request to.
|
|
211
223
|
* @param {string} orderId Unique identifier of an order
|
|
212
224
|
* @param {*} [options] Override http request option.
|
|
213
225
|
* @throws {RequiredError}
|
|
@@ -248,9 +260,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
248
260
|
/**
|
|
249
261
|
* Export orders as a CSV file
|
|
250
262
|
* @summary Export orders
|
|
251
|
-
* @param {string} project
|
|
252
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
253
|
-
* @param {string} [end] End of date range
|
|
263
|
+
* @param {string} project The project identifier to scope the request to.
|
|
264
|
+
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
265
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
254
266
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
255
267
|
* @param {*} [options] Override http request option.
|
|
256
268
|
* @throws {RequiredError}
|
|
@@ -303,7 +315,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
303
315
|
/**
|
|
304
316
|
* Get an order by a given ID.
|
|
305
317
|
* @summary Get order
|
|
306
|
-
* @param {string} project
|
|
318
|
+
* @param {string} project The project identifier to scope the request to.
|
|
307
319
|
* @param {string} orderId Unique identifier of an order
|
|
308
320
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
309
321
|
* @param {*} [options] Override http request option.
|
|
@@ -348,15 +360,15 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
348
360
|
/**
|
|
349
361
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
350
362
|
* @summary List orders
|
|
351
|
-
* @param {string} project
|
|
363
|
+
* @param {string} project The project identifier to scope the request to.
|
|
352
364
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
353
365
|
* @param {number} [pageToken] Page reference token
|
|
354
366
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
355
367
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
356
|
-
* @param {Array<string>} [ids]
|
|
357
|
-
* @param {Array<Status>} [statuses] Filter by
|
|
358
|
-
* @param {string} [start] Start of date range
|
|
359
|
-
* @param {string} [end] End of date range
|
|
368
|
+
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
369
|
+
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
370
|
+
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
371
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
360
372
|
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
361
373
|
* @param {*} [options] Override http request option.
|
|
362
374
|
* @throws {RequiredError}
|
|
@@ -422,10 +434,56 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
422
434
|
options: localVarRequestOptions,
|
|
423
435
|
};
|
|
424
436
|
}),
|
|
437
|
+
/**
|
|
438
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
439
|
+
* @summary Import orders
|
|
440
|
+
* @param {string} project The project identifier to scope the request to.
|
|
441
|
+
* @param {File} file CSV file containing order data
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
importOrders: (project_1, file_1, ...args_1) => __awaiter(this, [project_1, file_1, ...args_1], void 0, function* (project, file, options = {}) {
|
|
446
|
+
// verify required parameter 'project' is not null or undefined
|
|
447
|
+
(0, common_1.assertParamExists)('importOrders', 'project', project);
|
|
448
|
+
// verify required parameter 'file' is not null or undefined
|
|
449
|
+
(0, common_1.assertParamExists)('importOrders', 'file', file);
|
|
450
|
+
const localVarPath = `/v1/orders/import`;
|
|
451
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
452
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
453
|
+
let baseOptions;
|
|
454
|
+
if (configuration) {
|
|
455
|
+
baseOptions = configuration.baseOptions;
|
|
456
|
+
}
|
|
457
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
458
|
+
const localVarHeaderParameter = {};
|
|
459
|
+
const localVarQueryParameter = {};
|
|
460
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
461
|
+
// authentication session-oauth required
|
|
462
|
+
// oauth required
|
|
463
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
464
|
+
// authentication api-key required
|
|
465
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
466
|
+
if (project !== undefined) {
|
|
467
|
+
localVarQueryParameter['project'] = project;
|
|
468
|
+
}
|
|
469
|
+
if (file !== undefined) {
|
|
470
|
+
localVarFormParams.append('file', file);
|
|
471
|
+
}
|
|
472
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
473
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
477
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
478
|
+
return {
|
|
479
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
+
options: localVarRequestOptions,
|
|
481
|
+
};
|
|
482
|
+
}),
|
|
425
483
|
/**
|
|
426
484
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
427
485
|
* @summary Retry
|
|
428
|
-
* @param {string} project
|
|
486
|
+
* @param {string} project The project identifier to scope the request to.
|
|
429
487
|
* @param {string} orderId Unique identifier of an order
|
|
430
488
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
431
489
|
* @param {*} [options] Override http request option.
|
|
@@ -479,7 +537,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
479
537
|
/**
|
|
480
538
|
* Cancels an order if it has not yet started processing.
|
|
481
539
|
* @summary Cancel order
|
|
482
|
-
* @param {string} project
|
|
540
|
+
* @param {string} project The project identifier to scope the request to.
|
|
483
541
|
* @param {string} orderId Unique identifier of an order
|
|
484
542
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
485
543
|
* @param {*} [options] Override http request option.
|
|
@@ -497,9 +555,9 @@ const OrdersApiFp = function (configuration) {
|
|
|
497
555
|
/**
|
|
498
556
|
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
499
557
|
* @summary Confirm order
|
|
500
|
-
* @param {string} project
|
|
558
|
+
* @param {string} project The project identifier to scope the request to.
|
|
501
559
|
* @param {string} orderId Unique identifier of an order
|
|
502
|
-
* @param {ConfirmOrderRequest} confirmOrderRequest
|
|
560
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest Confirm an order by specifying shipping methods for each fulfillment. This submits the order for payment processing and production. Orders should be confirmed promptly after creation — the longer an order remains unconfirmed, the greater the chance that stock availability changes. If stock is no longer available at the time of confirmation, the request will fail and you will need to create a new order.
|
|
503
561
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
504
562
|
* @param {*} [options] Override http request option.
|
|
505
563
|
* @throws {RequiredError}
|
|
@@ -516,7 +574,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
516
574
|
/**
|
|
517
575
|
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
518
576
|
* @summary Create order
|
|
519
|
-
* @param {string} project
|
|
577
|
+
* @param {string} project The project identifier to scope the request to.
|
|
520
578
|
* @param {CreateOrder} createOrder Create Order schema
|
|
521
579
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
522
580
|
* @param {*} [options] Override http request option.
|
|
@@ -534,7 +592,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
534
592
|
/**
|
|
535
593
|
* Download an order invoice.
|
|
536
594
|
* @summary Download order invoice
|
|
537
|
-
* @param {string} project
|
|
595
|
+
* @param {string} project The project identifier to scope the request to.
|
|
538
596
|
* @param {string} orderId Unique identifier of an order
|
|
539
597
|
* @param {*} [options] Override http request option.
|
|
540
598
|
* @throws {RequiredError}
|
|
@@ -551,9 +609,9 @@ const OrdersApiFp = function (configuration) {
|
|
|
551
609
|
/**
|
|
552
610
|
* Export orders as a CSV file
|
|
553
611
|
* @summary Export orders
|
|
554
|
-
* @param {string} project
|
|
555
|
-
* @param {string} start Start of date range to filter by when orders were placed
|
|
556
|
-
* @param {string} [end] End of date range
|
|
612
|
+
* @param {string} project The project identifier to scope the request to.
|
|
613
|
+
* @param {string} start Start of the date range to filter by when orders were placed.
|
|
614
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
557
615
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
558
616
|
* @param {*} [options] Override http request option.
|
|
559
617
|
* @throws {RequiredError}
|
|
@@ -570,7 +628,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
570
628
|
/**
|
|
571
629
|
* Get an order by a given ID.
|
|
572
630
|
* @summary Get order
|
|
573
|
-
* @param {string} project
|
|
631
|
+
* @param {string} project The project identifier to scope the request to.
|
|
574
632
|
* @param {string} orderId Unique identifier of an order
|
|
575
633
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
576
634
|
* @param {*} [options] Override http request option.
|
|
@@ -588,15 +646,15 @@ const OrdersApiFp = function (configuration) {
|
|
|
588
646
|
/**
|
|
589
647
|
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
590
648
|
* @summary List orders
|
|
591
|
-
* @param {string} project
|
|
649
|
+
* @param {string} project The project identifier to scope the request to.
|
|
592
650
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
593
651
|
* @param {number} [pageToken] Page reference token
|
|
594
652
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
595
653
|
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
596
|
-
* @param {Array<string>} [ids]
|
|
597
|
-
* @param {Array<Status>} [statuses] Filter by
|
|
598
|
-
* @param {string} [start] Start of date range
|
|
599
|
-
* @param {string} [end] End of date range
|
|
654
|
+
* @param {Array<string>} [ids] Filter to specific order IDs. Only orders matching these IDs will be returned.
|
|
655
|
+
* @param {Array<Status>} [statuses] Filter by order status. Only orders matching one of the given statuses will be returned.
|
|
656
|
+
* @param {string} [start] Start of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
657
|
+
* @param {string} [end] End of date range filter. Which date field this applies to is controlled by the `dateFilterType` parameter.
|
|
600
658
|
* @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Specifies the type of date range filter to apply. Determines which date field the `start` and `end` fields should query.
|
|
601
659
|
* @param {*} [options] Override http request option.
|
|
602
660
|
* @throws {RequiredError}
|
|
@@ -610,10 +668,27 @@ const OrdersApiFp = function (configuration) {
|
|
|
610
668
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
611
669
|
});
|
|
612
670
|
},
|
|
671
|
+
/**
|
|
672
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
673
|
+
* @summary Import orders
|
|
674
|
+
* @param {string} project The project identifier to scope the request to.
|
|
675
|
+
* @param {File} file CSV file containing order data
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
importOrders(project, file, options) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
681
|
+
var _a, _b, _c;
|
|
682
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importOrders(project, file, options);
|
|
683
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
684
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.importOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
685
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
686
|
+
});
|
|
687
|
+
},
|
|
613
688
|
/**
|
|
614
689
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
615
690
|
* @summary Retry
|
|
616
|
-
* @param {string} project
|
|
691
|
+
* @param {string} project The project identifier to scope the request to.
|
|
617
692
|
* @param {string} orderId Unique identifier of an order
|
|
618
693
|
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
619
694
|
* @param {*} [options] Override http request option.
|
|
@@ -707,6 +782,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
707
782
|
getOrders(requestParameters, options) {
|
|
708
783
|
return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
|
|
709
784
|
},
|
|
785
|
+
/**
|
|
786
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
787
|
+
* @summary Import orders
|
|
788
|
+
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
importOrders(requestParameters, options) {
|
|
793
|
+
return localVarFp.importOrders(requestParameters.project, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
794
|
+
},
|
|
710
795
|
/**
|
|
711
796
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
712
797
|
* @summary Retry
|
|
@@ -794,6 +879,16 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
794
879
|
getOrders(requestParameters, options) {
|
|
795
880
|
return (0, exports.OrdersApiFp)(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
796
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
* Initiates an order import from a CSV file. The import is processed asynchronously.
|
|
884
|
+
* @summary Import orders
|
|
885
|
+
* @param {OrdersApiImportOrdersRequest} requestParameters Request parameters.
|
|
886
|
+
* @param {*} [options] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
*/
|
|
889
|
+
importOrders(requestParameters, options) {
|
|
890
|
+
return (0, exports.OrdersApiFp)(this.configuration).importOrders(requestParameters.project, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
891
|
+
}
|
|
797
892
|
/**
|
|
798
893
|
* Retries failed platform payment, so fulfillment can proceed.
|
|
799
894
|
* @summary Retry
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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 API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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 API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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 API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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 API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.26.0
|
|
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 API
|
|
5
5
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.26.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|