@teemill/orders 1.6.1 → 1.7.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 +2 -2
- package/api.ts +133 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +85 -31
- package/dist/api.js +76 -2
- 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 +85 -31
- package/dist/esm/api.js +76 -2
- 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/index.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.7.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.
|
|
1
|
+
## @teemill/orders@1.7.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/orders@1.
|
|
39
|
+
npm install @teemill/orders@1.7.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -227,12 +227,6 @@ export interface Fulfillment {
|
|
|
227
227
|
* @memberof Fulfillment
|
|
228
228
|
*/
|
|
229
229
|
'status'?: Status;
|
|
230
|
-
/**
|
|
231
|
-
* A human readable identifier for the fulfiller to use internally during production.
|
|
232
|
-
* @type {string}
|
|
233
|
-
* @memberof Fulfillment
|
|
234
|
-
*/
|
|
235
|
-
'fulfillerReference'?: string;
|
|
236
230
|
/**
|
|
237
231
|
*
|
|
238
232
|
* @type {FulfillmentFulfiller}
|
|
@@ -280,10 +274,29 @@ export interface Fulfillment {
|
|
|
280
274
|
export interface FulfillmentFulfiller {
|
|
281
275
|
/**
|
|
282
276
|
*
|
|
283
|
-
* @type {
|
|
277
|
+
* @type {FulfillmentFulfillerLocation}
|
|
284
278
|
* @memberof FulfillmentFulfiller
|
|
285
279
|
*/
|
|
286
|
-
'location'?:
|
|
280
|
+
'location'?: FulfillmentFulfillerLocation;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @export
|
|
285
|
+
* @interface FulfillmentFulfillerLocation
|
|
286
|
+
*/
|
|
287
|
+
export interface FulfillmentFulfillerLocation {
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof FulfillmentFulfillerLocation
|
|
292
|
+
*/
|
|
293
|
+
'city'?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof FulfillmentFulfillerLocation
|
|
298
|
+
*/
|
|
299
|
+
'country'?: string | null;
|
|
287
300
|
}
|
|
288
301
|
/**
|
|
289
302
|
*
|
|
@@ -452,11 +465,11 @@ export interface OrderItem {
|
|
|
452
465
|
*/
|
|
453
466
|
'totalPrice'?: Price;
|
|
454
467
|
/**
|
|
455
|
-
*
|
|
456
|
-
* @type {
|
|
468
|
+
* This is an estimate until the order has been confirmed
|
|
469
|
+
* @type {Price}
|
|
457
470
|
* @memberof OrderItem
|
|
458
471
|
*/
|
|
459
|
-
'taxPrice'?:
|
|
472
|
+
'taxPrice'?: Price;
|
|
460
473
|
/**
|
|
461
474
|
*
|
|
462
475
|
* @type {Price}
|
|
@@ -476,25 +489,6 @@ export interface OrderItem {
|
|
|
476
489
|
*/
|
|
477
490
|
'recipientCost'?: Price;
|
|
478
491
|
}
|
|
479
|
-
/**
|
|
480
|
-
* This is an estimate until the order has been confirmed
|
|
481
|
-
* @export
|
|
482
|
-
* @interface OrderItemTaxPrice
|
|
483
|
-
*/
|
|
484
|
-
export interface OrderItemTaxPrice {
|
|
485
|
-
/**
|
|
486
|
-
* Price including tax in the specified currency.
|
|
487
|
-
* @type {string}
|
|
488
|
-
* @memberof OrderItemTaxPrice
|
|
489
|
-
*/
|
|
490
|
-
'amount'?: string;
|
|
491
|
-
/**
|
|
492
|
-
* Currency code for the currency the price is valued in.
|
|
493
|
-
* @type {string}
|
|
494
|
-
* @memberof OrderItemTaxPrice
|
|
495
|
-
*/
|
|
496
|
-
'currencyCode'?: string;
|
|
497
|
-
}
|
|
498
492
|
/**
|
|
499
493
|
*
|
|
500
494
|
* @export
|
|
@@ -539,6 +533,19 @@ export interface OrdersResponse {
|
|
|
539
533
|
*/
|
|
540
534
|
'nextPageToken'?: number;
|
|
541
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @export
|
|
539
|
+
* @interface OrdersStatusesResponse
|
|
540
|
+
*/
|
|
541
|
+
export interface OrdersStatusesResponse {
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @type {Array<Status>}
|
|
545
|
+
* @memberof OrdersStatusesResponse
|
|
546
|
+
*/
|
|
547
|
+
'statuses'?: Array<Status>;
|
|
548
|
+
}
|
|
542
549
|
/**
|
|
543
550
|
*
|
|
544
551
|
* @export
|
|
@@ -643,7 +650,8 @@ export const Status = {
|
|
|
643
650
|
Paid: 'paid',
|
|
644
651
|
Processing: 'processing',
|
|
645
652
|
Complete: 'complete',
|
|
646
|
-
Refunded: 'refunded'
|
|
653
|
+
Refunded: 'refunded',
|
|
654
|
+
Quote: 'quote'
|
|
647
655
|
} as const;
|
|
648
656
|
|
|
649
657
|
export type Status = typeof Status[keyof typeof Status];
|
|
@@ -1036,6 +1044,50 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1036
1044
|
|
|
1037
1045
|
|
|
1038
1046
|
|
|
1047
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1049
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1050
|
+
|
|
1051
|
+
return {
|
|
1052
|
+
url: toPathString(localVarUrlObj),
|
|
1053
|
+
options: localVarRequestOptions,
|
|
1054
|
+
};
|
|
1055
|
+
},
|
|
1056
|
+
/**
|
|
1057
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1058
|
+
* @summary List orders\' statuses
|
|
1059
|
+
* @param {string} project What project it is
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
getStatuses: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1064
|
+
// verify required parameter 'project' is not null or undefined
|
|
1065
|
+
assertParamExists('getStatuses', 'project', project)
|
|
1066
|
+
const localVarPath = `/v1/orders/statuses`;
|
|
1067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1069
|
+
let baseOptions;
|
|
1070
|
+
if (configuration) {
|
|
1071
|
+
baseOptions = configuration.baseOptions;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1075
|
+
const localVarHeaderParameter = {} as any;
|
|
1076
|
+
const localVarQueryParameter = {} as any;
|
|
1077
|
+
|
|
1078
|
+
// authentication session-oauth required
|
|
1079
|
+
// oauth required
|
|
1080
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1081
|
+
|
|
1082
|
+
// authentication api-key required
|
|
1083
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1084
|
+
|
|
1085
|
+
if (project !== undefined) {
|
|
1086
|
+
localVarQueryParameter['project'] = project;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
|
|
1039
1091
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1040
1092
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1041
1093
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1152,6 +1204,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
1152
1204
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
1153
1205
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1154
1206
|
},
|
|
1207
|
+
/**
|
|
1208
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1209
|
+
* @summary List orders\' statuses
|
|
1210
|
+
* @param {string} project What project it is
|
|
1211
|
+
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @throws {RequiredError}
|
|
1213
|
+
*/
|
|
1214
|
+
async getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>> {
|
|
1215
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatuses(project, options);
|
|
1216
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1217
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getStatuses']?.[localVarOperationServerIndex]?.url;
|
|
1218
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1219
|
+
},
|
|
1155
1220
|
}
|
|
1156
1221
|
};
|
|
1157
1222
|
|
|
@@ -1222,6 +1287,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
1222
1287
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
|
|
1223
1288
|
return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1224
1289
|
},
|
|
1290
|
+
/**
|
|
1291
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1292
|
+
* @summary List orders\' statuses
|
|
1293
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse> {
|
|
1298
|
+
return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1299
|
+
},
|
|
1225
1300
|
};
|
|
1226
1301
|
};
|
|
1227
1302
|
|
|
@@ -1442,6 +1517,20 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1442
1517
|
readonly end?: string
|
|
1443
1518
|
}
|
|
1444
1519
|
|
|
1520
|
+
/**
|
|
1521
|
+
* Request parameters for getStatuses operation in OrdersApi.
|
|
1522
|
+
* @export
|
|
1523
|
+
* @interface OrdersApiGetStatusesRequest
|
|
1524
|
+
*/
|
|
1525
|
+
export interface OrdersApiGetStatusesRequest {
|
|
1526
|
+
/**
|
|
1527
|
+
* What project it is
|
|
1528
|
+
* @type {string}
|
|
1529
|
+
* @memberof OrdersApiGetStatuses
|
|
1530
|
+
*/
|
|
1531
|
+
readonly project: string
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1445
1534
|
/**
|
|
1446
1535
|
* OrdersApi - object-oriented interface
|
|
1447
1536
|
* @export
|
|
@@ -1520,6 +1609,18 @@ export class OrdersApi extends BaseAPI {
|
|
|
1520
1609
|
public getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig) {
|
|
1521
1610
|
return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1522
1611
|
}
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1615
|
+
* @summary List orders\' statuses
|
|
1616
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
* @memberof OrdersApi
|
|
1620
|
+
*/
|
|
1621
|
+
public getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig) {
|
|
1622
|
+
return OrdersApiFp(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1623
|
+
}
|
|
1523
1624
|
}
|
|
1524
1625
|
|
|
1525
1626
|
|
package/base.ts
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -214,12 +214,6 @@ export interface Fulfillment {
|
|
|
214
214
|
* @memberof Fulfillment
|
|
215
215
|
*/
|
|
216
216
|
'status'?: Status;
|
|
217
|
-
/**
|
|
218
|
-
* A human readable identifier for the fulfiller to use internally during production.
|
|
219
|
-
* @type {string}
|
|
220
|
-
* @memberof Fulfillment
|
|
221
|
-
*/
|
|
222
|
-
'fulfillerReference'?: string;
|
|
223
217
|
/**
|
|
224
218
|
*
|
|
225
219
|
* @type {FulfillmentFulfiller}
|
|
@@ -265,10 +259,29 @@ export interface Fulfillment {
|
|
|
265
259
|
export interface FulfillmentFulfiller {
|
|
266
260
|
/**
|
|
267
261
|
*
|
|
268
|
-
* @type {
|
|
262
|
+
* @type {FulfillmentFulfillerLocation}
|
|
269
263
|
* @memberof FulfillmentFulfiller
|
|
270
264
|
*/
|
|
271
|
-
'location'?:
|
|
265
|
+
'location'?: FulfillmentFulfillerLocation;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @export
|
|
270
|
+
* @interface FulfillmentFulfillerLocation
|
|
271
|
+
*/
|
|
272
|
+
export interface FulfillmentFulfillerLocation {
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof FulfillmentFulfillerLocation
|
|
277
|
+
*/
|
|
278
|
+
'city'?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof FulfillmentFulfillerLocation
|
|
283
|
+
*/
|
|
284
|
+
'country'?: string | null;
|
|
272
285
|
}
|
|
273
286
|
/**
|
|
274
287
|
*
|
|
@@ -435,11 +448,11 @@ export interface OrderItem {
|
|
|
435
448
|
*/
|
|
436
449
|
'totalPrice'?: Price;
|
|
437
450
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @type {
|
|
451
|
+
* This is an estimate until the order has been confirmed
|
|
452
|
+
* @type {Price}
|
|
440
453
|
* @memberof OrderItem
|
|
441
454
|
*/
|
|
442
|
-
'taxPrice'?:
|
|
455
|
+
'taxPrice'?: Price;
|
|
443
456
|
/**
|
|
444
457
|
*
|
|
445
458
|
* @type {Price}
|
|
@@ -459,25 +472,6 @@ export interface OrderItem {
|
|
|
459
472
|
*/
|
|
460
473
|
'recipientCost'?: Price;
|
|
461
474
|
}
|
|
462
|
-
/**
|
|
463
|
-
* This is an estimate until the order has been confirmed
|
|
464
|
-
* @export
|
|
465
|
-
* @interface OrderItemTaxPrice
|
|
466
|
-
*/
|
|
467
|
-
export interface OrderItemTaxPrice {
|
|
468
|
-
/**
|
|
469
|
-
* Price including tax in the specified currency.
|
|
470
|
-
* @type {string}
|
|
471
|
-
* @memberof OrderItemTaxPrice
|
|
472
|
-
*/
|
|
473
|
-
'amount'?: string;
|
|
474
|
-
/**
|
|
475
|
-
* Currency code for the currency the price is valued in.
|
|
476
|
-
* @type {string}
|
|
477
|
-
* @memberof OrderItemTaxPrice
|
|
478
|
-
*/
|
|
479
|
-
'currencyCode'?: string;
|
|
480
|
-
}
|
|
481
475
|
/**
|
|
482
476
|
*
|
|
483
477
|
* @export
|
|
@@ -522,6 +516,19 @@ export interface OrdersResponse {
|
|
|
522
516
|
*/
|
|
523
517
|
'nextPageToken'?: number;
|
|
524
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @export
|
|
522
|
+
* @interface OrdersStatusesResponse
|
|
523
|
+
*/
|
|
524
|
+
export interface OrdersStatusesResponse {
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {Array<Status>}
|
|
528
|
+
* @memberof OrdersStatusesResponse
|
|
529
|
+
*/
|
|
530
|
+
'statuses'?: Array<Status>;
|
|
531
|
+
}
|
|
525
532
|
/**
|
|
526
533
|
*
|
|
527
534
|
* @export
|
|
@@ -626,6 +633,7 @@ export declare const Status: {
|
|
|
626
633
|
readonly Processing: "processing";
|
|
627
634
|
readonly Complete: "complete";
|
|
628
635
|
readonly Refunded: "refunded";
|
|
636
|
+
readonly Quote: "quote";
|
|
629
637
|
};
|
|
630
638
|
export type Status = typeof Status[keyof typeof Status];
|
|
631
639
|
/**
|
|
@@ -719,6 +727,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
719
727
|
* @throws {RequiredError}
|
|
720
728
|
*/
|
|
721
729
|
getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
730
|
+
/**
|
|
731
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
732
|
+
* @summary List orders\' statuses
|
|
733
|
+
* @param {string} project What project it is
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
getStatuses: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
722
738
|
};
|
|
723
739
|
/**
|
|
724
740
|
* OrdersApi - functional programming interface
|
|
@@ -792,6 +808,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
792
808
|
* @throws {RequiredError}
|
|
793
809
|
*/
|
|
794
810
|
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
811
|
+
/**
|
|
812
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
813
|
+
* @summary List orders\' statuses
|
|
814
|
+
* @param {string} project What project it is
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>>;
|
|
795
819
|
};
|
|
796
820
|
/**
|
|
797
821
|
* OrdersApi - factory interface
|
|
@@ -846,6 +870,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
846
870
|
* @throws {RequiredError}
|
|
847
871
|
*/
|
|
848
872
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
873
|
+
/**
|
|
874
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
875
|
+
* @summary List orders\' statuses
|
|
876
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
|
|
849
881
|
};
|
|
850
882
|
/**
|
|
851
883
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1039,6 +1071,19 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1039
1071
|
*/
|
|
1040
1072
|
readonly end?: string;
|
|
1041
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Request parameters for getStatuses operation in OrdersApi.
|
|
1076
|
+
* @export
|
|
1077
|
+
* @interface OrdersApiGetStatusesRequest
|
|
1078
|
+
*/
|
|
1079
|
+
export interface OrdersApiGetStatusesRequest {
|
|
1080
|
+
/**
|
|
1081
|
+
* What project it is
|
|
1082
|
+
* @type {string}
|
|
1083
|
+
* @memberof OrdersApiGetStatuses
|
|
1084
|
+
*/
|
|
1085
|
+
readonly project: string;
|
|
1086
|
+
}
|
|
1042
1087
|
/**
|
|
1043
1088
|
* OrdersApi - object-oriented interface
|
|
1044
1089
|
* @export
|
|
@@ -1100,4 +1145,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1100
1145
|
* @memberof OrdersApi
|
|
1101
1146
|
*/
|
|
1102
1147
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
1148
|
+
/**
|
|
1149
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1150
|
+
* @summary List orders\' statuses
|
|
1151
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
* @memberof OrdersApi
|
|
1155
|
+
*/
|
|
1156
|
+
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
|
|
1103
1157
|
}
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,8 @@ exports.Status = {
|
|
|
45
45
|
Paid: 'paid',
|
|
46
46
|
Processing: 'processing',
|
|
47
47
|
Complete: 'complete',
|
|
48
|
-
Refunded: 'refunded'
|
|
48
|
+
Refunded: 'refunded',
|
|
49
|
+
Quote: 'quote'
|
|
49
50
|
};
|
|
50
51
|
/**
|
|
51
52
|
* OrdersApi - axios parameter creator
|
|
@@ -357,6 +358,42 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
357
358
|
options: localVarRequestOptions,
|
|
358
359
|
};
|
|
359
360
|
}),
|
|
361
|
+
/**
|
|
362
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
363
|
+
* @summary List orders\' statuses
|
|
364
|
+
* @param {string} project What project it is
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
getStatuses: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
369
|
+
// verify required parameter 'project' is not null or undefined
|
|
370
|
+
(0, common_1.assertParamExists)('getStatuses', 'project', project);
|
|
371
|
+
const localVarPath = `/v1/orders/statuses`;
|
|
372
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
373
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
374
|
+
let baseOptions;
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
}
|
|
378
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
379
|
+
const localVarHeaderParameter = {};
|
|
380
|
+
const localVarQueryParameter = {};
|
|
381
|
+
// authentication session-oauth required
|
|
382
|
+
// oauth required
|
|
383
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
384
|
+
// authentication api-key required
|
|
385
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
386
|
+
if (project !== undefined) {
|
|
387
|
+
localVarQueryParameter['project'] = project;
|
|
388
|
+
}
|
|
389
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
391
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
392
|
+
return {
|
|
393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
394
|
+
options: localVarRequestOptions,
|
|
395
|
+
};
|
|
396
|
+
}),
|
|
360
397
|
};
|
|
361
398
|
};
|
|
362
399
|
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
@@ -482,6 +519,22 @@ const OrdersApiFp = function (configuration) {
|
|
|
482
519
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
483
520
|
});
|
|
484
521
|
},
|
|
522
|
+
/**
|
|
523
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
524
|
+
* @summary List orders\' statuses
|
|
525
|
+
* @param {string} project What project it is
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
getStatuses(project, options) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
531
|
+
var _a, _b, _c;
|
|
532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatuses(project, options);
|
|
533
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
534
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getStatuses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
535
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
536
|
+
});
|
|
537
|
+
},
|
|
485
538
|
};
|
|
486
539
|
};
|
|
487
540
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -552,6 +605,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
552
605
|
getOrders(requestParameters, options) {
|
|
553
606
|
return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
554
607
|
},
|
|
608
|
+
/**
|
|
609
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
610
|
+
* @summary List orders\' statuses
|
|
611
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
getStatuses(requestParameters, options) {
|
|
616
|
+
return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
617
|
+
},
|
|
555
618
|
};
|
|
556
619
|
};
|
|
557
620
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -628,5 +691,16 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
628
691
|
getOrders(requestParameters, options) {
|
|
629
692
|
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, options).then((request) => request(this.axios, this.basePath));
|
|
630
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
696
|
+
* @summary List orders\' statuses
|
|
697
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
* @memberof OrdersApi
|
|
701
|
+
*/
|
|
702
|
+
getStatuses(requestParameters, options) {
|
|
703
|
+
return (0, exports.OrdersApiFp)(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
}
|
|
631
705
|
}
|
|
632
706
|
exports.OrdersApi = OrdersApi;
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* 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 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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -214,12 +214,6 @@ export interface Fulfillment {
|
|
|
214
214
|
* @memberof Fulfillment
|
|
215
215
|
*/
|
|
216
216
|
'status'?: Status;
|
|
217
|
-
/**
|
|
218
|
-
* A human readable identifier for the fulfiller to use internally during production.
|
|
219
|
-
* @type {string}
|
|
220
|
-
* @memberof Fulfillment
|
|
221
|
-
*/
|
|
222
|
-
'fulfillerReference'?: string;
|
|
223
217
|
/**
|
|
224
218
|
*
|
|
225
219
|
* @type {FulfillmentFulfiller}
|
|
@@ -265,10 +259,29 @@ export interface Fulfillment {
|
|
|
265
259
|
export interface FulfillmentFulfiller {
|
|
266
260
|
/**
|
|
267
261
|
*
|
|
268
|
-
* @type {
|
|
262
|
+
* @type {FulfillmentFulfillerLocation}
|
|
269
263
|
* @memberof FulfillmentFulfiller
|
|
270
264
|
*/
|
|
271
|
-
'location'?:
|
|
265
|
+
'location'?: FulfillmentFulfillerLocation;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @export
|
|
270
|
+
* @interface FulfillmentFulfillerLocation
|
|
271
|
+
*/
|
|
272
|
+
export interface FulfillmentFulfillerLocation {
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof FulfillmentFulfillerLocation
|
|
277
|
+
*/
|
|
278
|
+
'city'?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof FulfillmentFulfillerLocation
|
|
283
|
+
*/
|
|
284
|
+
'country'?: string | null;
|
|
272
285
|
}
|
|
273
286
|
/**
|
|
274
287
|
*
|
|
@@ -435,11 +448,11 @@ export interface OrderItem {
|
|
|
435
448
|
*/
|
|
436
449
|
'totalPrice'?: Price;
|
|
437
450
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @type {
|
|
451
|
+
* This is an estimate until the order has been confirmed
|
|
452
|
+
* @type {Price}
|
|
440
453
|
* @memberof OrderItem
|
|
441
454
|
*/
|
|
442
|
-
'taxPrice'?:
|
|
455
|
+
'taxPrice'?: Price;
|
|
443
456
|
/**
|
|
444
457
|
*
|
|
445
458
|
* @type {Price}
|
|
@@ -459,25 +472,6 @@ export interface OrderItem {
|
|
|
459
472
|
*/
|
|
460
473
|
'recipientCost'?: Price;
|
|
461
474
|
}
|
|
462
|
-
/**
|
|
463
|
-
* This is an estimate until the order has been confirmed
|
|
464
|
-
* @export
|
|
465
|
-
* @interface OrderItemTaxPrice
|
|
466
|
-
*/
|
|
467
|
-
export interface OrderItemTaxPrice {
|
|
468
|
-
/**
|
|
469
|
-
* Price including tax in the specified currency.
|
|
470
|
-
* @type {string}
|
|
471
|
-
* @memberof OrderItemTaxPrice
|
|
472
|
-
*/
|
|
473
|
-
'amount'?: string;
|
|
474
|
-
/**
|
|
475
|
-
* Currency code for the currency the price is valued in.
|
|
476
|
-
* @type {string}
|
|
477
|
-
* @memberof OrderItemTaxPrice
|
|
478
|
-
*/
|
|
479
|
-
'currencyCode'?: string;
|
|
480
|
-
}
|
|
481
475
|
/**
|
|
482
476
|
*
|
|
483
477
|
* @export
|
|
@@ -522,6 +516,19 @@ export interface OrdersResponse {
|
|
|
522
516
|
*/
|
|
523
517
|
'nextPageToken'?: number;
|
|
524
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @export
|
|
522
|
+
* @interface OrdersStatusesResponse
|
|
523
|
+
*/
|
|
524
|
+
export interface OrdersStatusesResponse {
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {Array<Status>}
|
|
528
|
+
* @memberof OrdersStatusesResponse
|
|
529
|
+
*/
|
|
530
|
+
'statuses'?: Array<Status>;
|
|
531
|
+
}
|
|
525
532
|
/**
|
|
526
533
|
*
|
|
527
534
|
* @export
|
|
@@ -626,6 +633,7 @@ export declare const Status: {
|
|
|
626
633
|
readonly Processing: "processing";
|
|
627
634
|
readonly Complete: "complete";
|
|
628
635
|
readonly Refunded: "refunded";
|
|
636
|
+
readonly Quote: "quote";
|
|
629
637
|
};
|
|
630
638
|
export type Status = typeof Status[keyof typeof Status];
|
|
631
639
|
/**
|
|
@@ -719,6 +727,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
719
727
|
* @throws {RequiredError}
|
|
720
728
|
*/
|
|
721
729
|
getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
730
|
+
/**
|
|
731
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
732
|
+
* @summary List orders\' statuses
|
|
733
|
+
* @param {string} project What project it is
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
getStatuses: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
722
738
|
};
|
|
723
739
|
/**
|
|
724
740
|
* OrdersApi - functional programming interface
|
|
@@ -792,6 +808,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
792
808
|
* @throws {RequiredError}
|
|
793
809
|
*/
|
|
794
810
|
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
|
|
811
|
+
/**
|
|
812
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
813
|
+
* @summary List orders\' statuses
|
|
814
|
+
* @param {string} project What project it is
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>>;
|
|
795
819
|
};
|
|
796
820
|
/**
|
|
797
821
|
* OrdersApi - factory interface
|
|
@@ -846,6 +870,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
846
870
|
* @throws {RequiredError}
|
|
847
871
|
*/
|
|
848
872
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
|
|
873
|
+
/**
|
|
874
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
875
|
+
* @summary List orders\' statuses
|
|
876
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
|
|
849
881
|
};
|
|
850
882
|
/**
|
|
851
883
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1039,6 +1071,19 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1039
1071
|
*/
|
|
1040
1072
|
readonly end?: string;
|
|
1041
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Request parameters for getStatuses operation in OrdersApi.
|
|
1076
|
+
* @export
|
|
1077
|
+
* @interface OrdersApiGetStatusesRequest
|
|
1078
|
+
*/
|
|
1079
|
+
export interface OrdersApiGetStatusesRequest {
|
|
1080
|
+
/**
|
|
1081
|
+
* What project it is
|
|
1082
|
+
* @type {string}
|
|
1083
|
+
* @memberof OrdersApiGetStatuses
|
|
1084
|
+
*/
|
|
1085
|
+
readonly project: string;
|
|
1086
|
+
}
|
|
1042
1087
|
/**
|
|
1043
1088
|
* OrdersApi - object-oriented interface
|
|
1044
1089
|
* @export
|
|
@@ -1100,4 +1145,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1100
1145
|
* @memberof OrdersApi
|
|
1101
1146
|
*/
|
|
1102
1147
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
|
|
1148
|
+
/**
|
|
1149
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
1150
|
+
* @summary List orders\' statuses
|
|
1151
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
* @memberof OrdersApi
|
|
1155
|
+
*/
|
|
1156
|
+
getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
|
|
1103
1157
|
}
|
package/dist/esm/api.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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,7 +42,8 @@ export const Status = {
|
|
|
42
42
|
Paid: 'paid',
|
|
43
43
|
Processing: 'processing',
|
|
44
44
|
Complete: 'complete',
|
|
45
|
-
Refunded: 'refunded'
|
|
45
|
+
Refunded: 'refunded',
|
|
46
|
+
Quote: 'quote'
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* OrdersApi - axios parameter creator
|
|
@@ -354,6 +355,42 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
354
355
|
options: localVarRequestOptions,
|
|
355
356
|
};
|
|
356
357
|
}),
|
|
358
|
+
/**
|
|
359
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
360
|
+
* @summary List orders\' statuses
|
|
361
|
+
* @param {string} project What project it is
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getStatuses: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
366
|
+
// verify required parameter 'project' is not null or undefined
|
|
367
|
+
assertParamExists('getStatuses', 'project', project);
|
|
368
|
+
const localVarPath = `/v1/orders/statuses`;
|
|
369
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
370
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
371
|
+
let baseOptions;
|
|
372
|
+
if (configuration) {
|
|
373
|
+
baseOptions = configuration.baseOptions;
|
|
374
|
+
}
|
|
375
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
376
|
+
const localVarHeaderParameter = {};
|
|
377
|
+
const localVarQueryParameter = {};
|
|
378
|
+
// authentication session-oauth required
|
|
379
|
+
// oauth required
|
|
380
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
381
|
+
// authentication api-key required
|
|
382
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
383
|
+
if (project !== undefined) {
|
|
384
|
+
localVarQueryParameter['project'] = project;
|
|
385
|
+
}
|
|
386
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
388
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
389
|
+
return {
|
|
390
|
+
url: toPathString(localVarUrlObj),
|
|
391
|
+
options: localVarRequestOptions,
|
|
392
|
+
};
|
|
393
|
+
}),
|
|
357
394
|
};
|
|
358
395
|
};
|
|
359
396
|
/**
|
|
@@ -478,6 +515,22 @@ export const OrdersApiFp = function (configuration) {
|
|
|
478
515
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
516
|
});
|
|
480
517
|
},
|
|
518
|
+
/**
|
|
519
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
520
|
+
* @summary List orders\' statuses
|
|
521
|
+
* @param {string} project What project it is
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
getStatuses(project, options) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
+
var _a, _b, _c;
|
|
528
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatuses(project, options);
|
|
529
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
530
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getStatuses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
531
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
532
|
+
});
|
|
533
|
+
},
|
|
481
534
|
};
|
|
482
535
|
};
|
|
483
536
|
/**
|
|
@@ -547,6 +600,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
547
600
|
getOrders(requestParameters, options) {
|
|
548
601
|
return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
549
602
|
},
|
|
603
|
+
/**
|
|
604
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
605
|
+
* @summary List orders\' statuses
|
|
606
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
getStatuses(requestParameters, options) {
|
|
611
|
+
return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
612
|
+
},
|
|
550
613
|
};
|
|
551
614
|
};
|
|
552
615
|
/**
|
|
@@ -622,4 +685,15 @@ export class OrdersApi extends BaseAPI {
|
|
|
622
685
|
getOrders(requestParameters, options) {
|
|
623
686
|
return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
624
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* Lists orders\' statuses and only include \'quote\' if at least one order has that status
|
|
690
|
+
* @summary List orders\' statuses
|
|
691
|
+
* @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
* @memberof OrdersApi
|
|
695
|
+
*/
|
|
696
|
+
getStatuses(requestParameters, options) {
|
|
697
|
+
return OrdersApiFp(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
698
|
+
}
|
|
625
699
|
}
|
package/dist/esm/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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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 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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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 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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
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 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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.7.2
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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 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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.7.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
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. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|