@teemill/orders 1.6.2 → 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 +112 -24
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +64 -23
- 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 +64 -23
- 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).
|
|
@@ -465,11 +465,11 @@ export interface OrderItem {
|
|
|
465
465
|
*/
|
|
466
466
|
'totalPrice'?: Price;
|
|
467
467
|
/**
|
|
468
|
-
*
|
|
469
|
-
* @type {
|
|
468
|
+
* This is an estimate until the order has been confirmed
|
|
469
|
+
* @type {Price}
|
|
470
470
|
* @memberof OrderItem
|
|
471
471
|
*/
|
|
472
|
-
'taxPrice'?:
|
|
472
|
+
'taxPrice'?: Price;
|
|
473
473
|
/**
|
|
474
474
|
*
|
|
475
475
|
* @type {Price}
|
|
@@ -489,25 +489,6 @@ export interface OrderItem {
|
|
|
489
489
|
*/
|
|
490
490
|
'recipientCost'?: Price;
|
|
491
491
|
}
|
|
492
|
-
/**
|
|
493
|
-
* This is an estimate until the order has been confirmed
|
|
494
|
-
* @export
|
|
495
|
-
* @interface OrderItemTaxPrice
|
|
496
|
-
*/
|
|
497
|
-
export interface OrderItemTaxPrice {
|
|
498
|
-
/**
|
|
499
|
-
* Price including tax in the specified currency.
|
|
500
|
-
* @type {string}
|
|
501
|
-
* @memberof OrderItemTaxPrice
|
|
502
|
-
*/
|
|
503
|
-
'amount'?: string;
|
|
504
|
-
/**
|
|
505
|
-
* Currency code for the currency the price is valued in.
|
|
506
|
-
* @type {string}
|
|
507
|
-
* @memberof OrderItemTaxPrice
|
|
508
|
-
*/
|
|
509
|
-
'currencyCode'?: string;
|
|
510
|
-
}
|
|
511
492
|
/**
|
|
512
493
|
*
|
|
513
494
|
* @export
|
|
@@ -552,6 +533,19 @@ export interface OrdersResponse {
|
|
|
552
533
|
*/
|
|
553
534
|
'nextPageToken'?: number;
|
|
554
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
|
+
}
|
|
555
549
|
/**
|
|
556
550
|
*
|
|
557
551
|
* @export
|
|
@@ -656,7 +650,8 @@ export const Status = {
|
|
|
656
650
|
Paid: 'paid',
|
|
657
651
|
Processing: 'processing',
|
|
658
652
|
Complete: 'complete',
|
|
659
|
-
Refunded: 'refunded'
|
|
653
|
+
Refunded: 'refunded',
|
|
654
|
+
Quote: 'quote'
|
|
660
655
|
} as const;
|
|
661
656
|
|
|
662
657
|
export type Status = typeof Status[keyof typeof Status];
|
|
@@ -1049,6 +1044,50 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1049
1044
|
|
|
1050
1045
|
|
|
1051
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
|
+
|
|
1052
1091
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1053
1092
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1054
1093
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1165,6 +1204,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
1165
1204
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
1166
1205
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1167
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
|
+
},
|
|
1168
1220
|
}
|
|
1169
1221
|
};
|
|
1170
1222
|
|
|
@@ -1235,6 +1287,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
1235
1287
|
getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
|
|
1236
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));
|
|
1237
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
|
+
},
|
|
1238
1300
|
};
|
|
1239
1301
|
};
|
|
1240
1302
|
|
|
@@ -1455,6 +1517,20 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1455
1517
|
readonly end?: string
|
|
1456
1518
|
}
|
|
1457
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
|
+
|
|
1458
1534
|
/**
|
|
1459
1535
|
* OrdersApi - object-oriented interface
|
|
1460
1536
|
* @export
|
|
@@ -1533,6 +1609,18 @@ export class OrdersApi extends BaseAPI {
|
|
|
1533
1609
|
public getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig) {
|
|
1534
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));
|
|
1535
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
|
+
}
|
|
1536
1624
|
}
|
|
1537
1625
|
|
|
1538
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).
|
|
@@ -448,11 +448,11 @@ export interface OrderItem {
|
|
|
448
448
|
*/
|
|
449
449
|
'totalPrice'?: Price;
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
452
|
-
* @type {
|
|
451
|
+
* This is an estimate until the order has been confirmed
|
|
452
|
+
* @type {Price}
|
|
453
453
|
* @memberof OrderItem
|
|
454
454
|
*/
|
|
455
|
-
'taxPrice'?:
|
|
455
|
+
'taxPrice'?: Price;
|
|
456
456
|
/**
|
|
457
457
|
*
|
|
458
458
|
* @type {Price}
|
|
@@ -472,25 +472,6 @@ export interface OrderItem {
|
|
|
472
472
|
*/
|
|
473
473
|
'recipientCost'?: Price;
|
|
474
474
|
}
|
|
475
|
-
/**
|
|
476
|
-
* This is an estimate until the order has been confirmed
|
|
477
|
-
* @export
|
|
478
|
-
* @interface OrderItemTaxPrice
|
|
479
|
-
*/
|
|
480
|
-
export interface OrderItemTaxPrice {
|
|
481
|
-
/**
|
|
482
|
-
* Price including tax in the specified currency.
|
|
483
|
-
* @type {string}
|
|
484
|
-
* @memberof OrderItemTaxPrice
|
|
485
|
-
*/
|
|
486
|
-
'amount'?: string;
|
|
487
|
-
/**
|
|
488
|
-
* Currency code for the currency the price is valued in.
|
|
489
|
-
* @type {string}
|
|
490
|
-
* @memberof OrderItemTaxPrice
|
|
491
|
-
*/
|
|
492
|
-
'currencyCode'?: string;
|
|
493
|
-
}
|
|
494
475
|
/**
|
|
495
476
|
*
|
|
496
477
|
* @export
|
|
@@ -535,6 +516,19 @@ export interface OrdersResponse {
|
|
|
535
516
|
*/
|
|
536
517
|
'nextPageToken'?: number;
|
|
537
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
|
+
}
|
|
538
532
|
/**
|
|
539
533
|
*
|
|
540
534
|
* @export
|
|
@@ -639,6 +633,7 @@ export declare const Status: {
|
|
|
639
633
|
readonly Processing: "processing";
|
|
640
634
|
readonly Complete: "complete";
|
|
641
635
|
readonly Refunded: "refunded";
|
|
636
|
+
readonly Quote: "quote";
|
|
642
637
|
};
|
|
643
638
|
export type Status = typeof Status[keyof typeof Status];
|
|
644
639
|
/**
|
|
@@ -732,6 +727,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
732
727
|
* @throws {RequiredError}
|
|
733
728
|
*/
|
|
734
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>;
|
|
735
738
|
};
|
|
736
739
|
/**
|
|
737
740
|
* OrdersApi - functional programming interface
|
|
@@ -805,6 +808,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
805
808
|
* @throws {RequiredError}
|
|
806
809
|
*/
|
|
807
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>>;
|
|
808
819
|
};
|
|
809
820
|
/**
|
|
810
821
|
* OrdersApi - factory interface
|
|
@@ -859,6 +870,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
859
870
|
* @throws {RequiredError}
|
|
860
871
|
*/
|
|
861
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>;
|
|
862
881
|
};
|
|
863
882
|
/**
|
|
864
883
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1052,6 +1071,19 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1052
1071
|
*/
|
|
1053
1072
|
readonly end?: string;
|
|
1054
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
|
+
}
|
|
1055
1087
|
/**
|
|
1056
1088
|
* OrdersApi - object-oriented interface
|
|
1057
1089
|
* @export
|
|
@@ -1113,4 +1145,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1113
1145
|
* @memberof OrdersApi
|
|
1114
1146
|
*/
|
|
1115
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>>;
|
|
1116
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).
|
|
@@ -448,11 +448,11 @@ export interface OrderItem {
|
|
|
448
448
|
*/
|
|
449
449
|
'totalPrice'?: Price;
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
452
|
-
* @type {
|
|
451
|
+
* This is an estimate until the order has been confirmed
|
|
452
|
+
* @type {Price}
|
|
453
453
|
* @memberof OrderItem
|
|
454
454
|
*/
|
|
455
|
-
'taxPrice'?:
|
|
455
|
+
'taxPrice'?: Price;
|
|
456
456
|
/**
|
|
457
457
|
*
|
|
458
458
|
* @type {Price}
|
|
@@ -472,25 +472,6 @@ export interface OrderItem {
|
|
|
472
472
|
*/
|
|
473
473
|
'recipientCost'?: Price;
|
|
474
474
|
}
|
|
475
|
-
/**
|
|
476
|
-
* This is an estimate until the order has been confirmed
|
|
477
|
-
* @export
|
|
478
|
-
* @interface OrderItemTaxPrice
|
|
479
|
-
*/
|
|
480
|
-
export interface OrderItemTaxPrice {
|
|
481
|
-
/**
|
|
482
|
-
* Price including tax in the specified currency.
|
|
483
|
-
* @type {string}
|
|
484
|
-
* @memberof OrderItemTaxPrice
|
|
485
|
-
*/
|
|
486
|
-
'amount'?: string;
|
|
487
|
-
/**
|
|
488
|
-
* Currency code for the currency the price is valued in.
|
|
489
|
-
* @type {string}
|
|
490
|
-
* @memberof OrderItemTaxPrice
|
|
491
|
-
*/
|
|
492
|
-
'currencyCode'?: string;
|
|
493
|
-
}
|
|
494
475
|
/**
|
|
495
476
|
*
|
|
496
477
|
* @export
|
|
@@ -535,6 +516,19 @@ export interface OrdersResponse {
|
|
|
535
516
|
*/
|
|
536
517
|
'nextPageToken'?: number;
|
|
537
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
|
+
}
|
|
538
532
|
/**
|
|
539
533
|
*
|
|
540
534
|
* @export
|
|
@@ -639,6 +633,7 @@ export declare const Status: {
|
|
|
639
633
|
readonly Processing: "processing";
|
|
640
634
|
readonly Complete: "complete";
|
|
641
635
|
readonly Refunded: "refunded";
|
|
636
|
+
readonly Quote: "quote";
|
|
642
637
|
};
|
|
643
638
|
export type Status = typeof Status[keyof typeof Status];
|
|
644
639
|
/**
|
|
@@ -732,6 +727,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
732
727
|
* @throws {RequiredError}
|
|
733
728
|
*/
|
|
734
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>;
|
|
735
738
|
};
|
|
736
739
|
/**
|
|
737
740
|
* OrdersApi - functional programming interface
|
|
@@ -805,6 +808,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
805
808
|
* @throws {RequiredError}
|
|
806
809
|
*/
|
|
807
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>>;
|
|
808
819
|
};
|
|
809
820
|
/**
|
|
810
821
|
* OrdersApi - factory interface
|
|
@@ -859,6 +870,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
859
870
|
* @throws {RequiredError}
|
|
860
871
|
*/
|
|
861
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>;
|
|
862
881
|
};
|
|
863
882
|
/**
|
|
864
883
|
* Request parameters for cancelOrder operation in OrdersApi.
|
|
@@ -1052,6 +1071,19 @@ export interface OrdersApiGetOrdersRequest {
|
|
|
1052
1071
|
*/
|
|
1053
1072
|
readonly end?: string;
|
|
1054
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
|
+
}
|
|
1055
1087
|
/**
|
|
1056
1088
|
* OrdersApi - object-oriented interface
|
|
1057
1089
|
* @export
|
|
@@ -1113,4 +1145,13 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
1113
1145
|
* @memberof OrdersApi
|
|
1114
1146
|
*/
|
|
1115
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>>;
|
|
1116
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).
|