@teemill/orders 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/api.ts +16 -708
- package/base.ts +1 -25
- package/common.ts +1 -2
- package/configuration.ts +1 -18
- package/dist/api.d.ts +23 -716
- package/dist/api.js +1 -23
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +23 -716
- package/dist/esm/api.js +1 -23
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -18
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ConfirmOrderFulfillment.md +2 -2
- package/docs/ConfirmOrderFulfillmentWithShipment.md +22 -0
- package/docs/ConfirmOrderFulfillmentWithShipmentShipment.md +21 -0
- package/docs/ConfirmOrderFulfillmentWithShippingMethod.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,11 +49,6 @@ exports.PaymentAttemptStatusEnum = {
|
|
|
49
49
|
Pending: 'pending',
|
|
50
50
|
Cancelled: 'cancelled'
|
|
51
51
|
};
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @export
|
|
55
|
-
* @enum {string}
|
|
56
|
-
*/
|
|
57
52
|
exports.Status = {
|
|
58
53
|
New: 'new',
|
|
59
54
|
Paid: 'paid',
|
|
@@ -64,7 +59,6 @@ exports.Status = {
|
|
|
64
59
|
};
|
|
65
60
|
/**
|
|
66
61
|
* OrdersApi - axios parameter creator
|
|
67
|
-
* @export
|
|
68
62
|
*/
|
|
69
63
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
70
64
|
return {
|
|
@@ -469,7 +463,6 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
469
463
|
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
470
464
|
/**
|
|
471
465
|
* OrdersApi - functional programming interface
|
|
472
|
-
* @export
|
|
473
466
|
*/
|
|
474
467
|
const OrdersApiFp = function (configuration) {
|
|
475
468
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
@@ -631,7 +624,6 @@ const OrdersApiFp = function (configuration) {
|
|
|
631
624
|
exports.OrdersApiFp = OrdersApiFp;
|
|
632
625
|
/**
|
|
633
626
|
* OrdersApi - factory interface
|
|
634
|
-
* @export
|
|
635
627
|
*/
|
|
636
628
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
637
629
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
@@ -721,9 +713,6 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
721
713
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
722
714
|
/**
|
|
723
715
|
* OrdersApi - object-oriented interface
|
|
724
|
-
* @export
|
|
725
|
-
* @class OrdersApi
|
|
726
|
-
* @extends {BaseAPI}
|
|
727
716
|
*/
|
|
728
717
|
class OrdersApi extends base_1.BaseAPI {
|
|
729
718
|
/**
|
|
@@ -732,7 +721,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
732
721
|
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
733
722
|
* @param {*} [options] Override http request option.
|
|
734
723
|
* @throws {RequiredError}
|
|
735
|
-
* @memberof OrdersApi
|
|
736
724
|
*/
|
|
737
725
|
cancelOrder(requestParameters, options) {
|
|
738
726
|
return (0, exports.OrdersApiFp)(this.configuration).cancelOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -743,7 +731,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
743
731
|
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
744
732
|
* @param {*} [options] Override http request option.
|
|
745
733
|
* @throws {RequiredError}
|
|
746
|
-
* @memberof OrdersApi
|
|
747
734
|
*/
|
|
748
735
|
confirmOrder(requestParameters, options) {
|
|
749
736
|
return (0, exports.OrdersApiFp)(this.configuration).confirmOrder(requestParameters.project, requestParameters.orderId, requestParameters.confirmOrderRequest, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -754,7 +741,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
754
741
|
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
755
742
|
* @param {*} [options] Override http request option.
|
|
756
743
|
* @throws {RequiredError}
|
|
757
|
-
* @memberof OrdersApi
|
|
758
744
|
*/
|
|
759
745
|
createOrder(requestParameters, options) {
|
|
760
746
|
return (0, exports.OrdersApiFp)(this.configuration).createOrder(requestParameters.project, requestParameters.createOrder, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -765,7 +751,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
765
751
|
* @param {OrdersApiDownloadInvoiceRequest} requestParameters Request parameters.
|
|
766
752
|
* @param {*} [options] Override http request option.
|
|
767
753
|
* @throws {RequiredError}
|
|
768
|
-
* @memberof OrdersApi
|
|
769
754
|
*/
|
|
770
755
|
downloadInvoice(requestParameters, options) {
|
|
771
756
|
return (0, exports.OrdersApiFp)(this.configuration).downloadInvoice(requestParameters.project, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -776,7 +761,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
776
761
|
* @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
|
|
777
762
|
* @param {*} [options] Override http request option.
|
|
778
763
|
* @throws {RequiredError}
|
|
779
|
-
* @memberof OrdersApi
|
|
780
764
|
*/
|
|
781
765
|
exportOrders(requestParameters, options) {
|
|
782
766
|
return (0, exports.OrdersApiFp)(this.configuration).exportOrders(requestParameters.project, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -787,7 +771,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
787
771
|
* @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
788
772
|
* @param {*} [options] Override http request option.
|
|
789
773
|
* @throws {RequiredError}
|
|
790
|
-
* @memberof OrdersApi
|
|
791
774
|
*/
|
|
792
775
|
getOrder(requestParameters, options) {
|
|
793
776
|
return (0, exports.OrdersApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -798,7 +781,6 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
798
781
|
* @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
799
782
|
* @param {*} [options] Override http request option.
|
|
800
783
|
* @throws {RequiredError}
|
|
801
|
-
* @memberof OrdersApi
|
|
802
784
|
*/
|
|
803
785
|
getOrders(requestParameters, options) {
|
|
804
786
|
return (0, exports.OrdersApiFp)(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -809,16 +791,12 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
809
791
|
* @param {OrdersApiRetryPlatformPaymentRequest} requestParameters Request parameters.
|
|
810
792
|
* @param {*} [options] Override http request option.
|
|
811
793
|
* @throws {RequiredError}
|
|
812
|
-
* @memberof OrdersApi
|
|
813
794
|
*/
|
|
814
795
|
retryPlatformPayment(requestParameters, options) {
|
|
815
796
|
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
816
797
|
}
|
|
817
798
|
}
|
|
818
799
|
exports.OrdersApi = OrdersApi;
|
|
819
|
-
/**
|
|
820
|
-
* @export
|
|
821
|
-
*/
|
|
822
800
|
exports.GetOrdersDateFilterTypeEnum = {
|
|
823
801
|
CreatedAt: 'createdAt',
|
|
824
802
|
UpdatedAt: 'updatedAt',
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,21 +16,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
18
|
exports.BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
19
|
exports.COLLECTION_FORMATS = {
|
|
24
20
|
csv: ",",
|
|
25
21
|
ssv: " ",
|
|
26
22
|
tsv: "\t",
|
|
27
23
|
pipes: "|",
|
|
28
24
|
};
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @class BaseAPI
|
|
33
|
-
*/
|
|
34
25
|
class BaseAPI {
|
|
35
26
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
36
27
|
var _a;
|
|
@@ -44,12 +35,6 @@ class BaseAPI {
|
|
|
44
35
|
}
|
|
45
36
|
exports.BaseAPI = BaseAPI;
|
|
46
37
|
;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
* @class RequiredError
|
|
51
|
-
* @extends {Error}
|
|
52
|
-
*/
|
|
53
38
|
class RequiredError extends Error {
|
|
54
39
|
constructor(field, msg) {
|
|
55
40
|
super(msg);
|
|
@@ -58,8 +43,4 @@ class RequiredError extends Error {
|
|
|
58
43
|
}
|
|
59
44
|
}
|
|
60
45
|
exports.RequiredError = RequiredError;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
46
|
exports.operationServerMap = {};
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.22.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.22.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|