@teemill/orders 1.0.0 → 1.0.3
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/FILES +24 -6
- package/README.md +3 -3
- package/dist/apis/OrdersApi.d.ts +79 -0
- package/dist/apis/OrdersApi.js +319 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -13
- package/dist/index.js +5 -15
- package/dist/models/Address.d.ts +73 -0
- package/dist/models/Address.js +68 -0
- package/dist/models/ApiError.d.ts +37 -0
- package/dist/models/ApiError.js +53 -0
- package/dist/models/ConfirmOrderFulfillment.d.ts +37 -0
- package/dist/models/ConfirmOrderFulfillment.js +53 -0
- package/dist/models/ConfirmOrderRequest.d.ts +32 -0
- package/dist/models/ConfirmOrderRequest.js +51 -0
- package/dist/models/ConfirmOrderValidationError.d.ts +47 -0
- package/dist/models/ConfirmOrderValidationError.js +62 -0
- package/dist/models/ContactInformation.d.ts +37 -0
- package/dist/models/ContactInformation.js +53 -0
- package/dist/models/DeliveryEstimates.d.ts +37 -0
- package/dist/models/DeliveryEstimates.js +52 -0
- package/dist/models/Fulfillment.d.ts +71 -0
- package/dist/models/Fulfillment.js +66 -0
- package/dist/models/FulfillmentItem.d.ts +43 -0
- package/dist/models/FulfillmentItem.js +54 -0
- package/dist/models/Order.d.ts +135 -0
- package/dist/models/Order.js +92 -0
- package/dist/models/OrderItem.d.ts +75 -0
- package/dist/models/OrderItem.js +64 -0
- package/dist/models/OrderItemTaxPrice.d.ts +37 -0
- package/dist/models/OrderItemTaxPrice.js +52 -0
- package/dist/models/OrderTracking.d.ts +43 -0
- package/dist/models/OrderTracking.js +54 -0
- package/dist/models/OrdersResponse.d.ts +38 -0
- package/dist/models/OrdersResponse.js +53 -0
- package/dist/models/Origin.d.ts +37 -0
- package/dist/models/Origin.js +52 -0
- package/dist/models/Price.d.ts +37 -0
- package/dist/models/Price.js +52 -0
- package/dist/models/ShippingMethod.d.ts +75 -0
- package/dist/models/ShippingMethod.js +66 -0
- package/dist/models/Status.d.ts +26 -0
- package/dist/models/Status.js +39 -0
- package/dist/models/StatusHistoryItem.d.ts +38 -0
- package/dist/models/StatusHistoryItem.js +53 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +37 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +3 -15
- package/src/apis/OrdersApi.ts +269 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/Address.ts +125 -0
- package/src/models/ApiError.ts +74 -0
- package/src/models/ConfirmOrderFulfillment.ts +75 -0
- package/src/models/ConfirmOrderRequest.ts +73 -0
- package/src/models/ConfirmOrderValidationError.ts +88 -0
- package/src/models/ContactInformation.ts +74 -0
- package/src/models/DeliveryEstimates.ts +73 -0
- package/src/models/Fulfillment.ts +138 -0
- package/src/models/FulfillmentItem.ts +81 -0
- package/src/models/Order.ts +244 -0
- package/src/models/OrderItem.ts +132 -0
- package/src/models/OrderItemTaxPrice.ts +73 -0
- package/src/models/OrderTracking.ts +81 -0
- package/src/models/OrdersResponse.ts +80 -0
- package/src/models/Origin.ts +73 -0
- package/src/models/Price.ts +73 -0
- package/src/models/ShippingMethod.ts +134 -0
- package/src/models/Status.ts +41 -0
- package/src/models/StatusHistoryItem.ts +80 -0
- package/src/models/index.ts +21 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +2 -3
- package/api.ts +0 -988
- package/base.ts +0 -72
- package/common.ts +0 -150
- package/configuration.ts +0 -101
- package/dist/api.d.ts +0 -750
- package/dist/api.js +0 -560
- package/dist/base.d.ts +0 -54
- package/dist/base.js +0 -80
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -252
- package/dist/configuration.d.ts +0 -83
- package/dist/configuration.js +0 -44
- package/git_push.sh +0 -57
- package/index.ts +0 -18
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiError
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiError
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiError
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiError interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiError(value: object): boolean;
|
|
35
|
+
export declare function ApiErrorFromJSON(json: any): ApiError;
|
|
36
|
+
export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
|
|
37
|
+
export declare function ApiErrorToJSON(value?: ApiError | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ApiError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfApiError(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfApiError = instanceOfApiError;
|
|
27
|
+
function ApiErrorFromJSON(json) {
|
|
28
|
+
return ApiErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
31
|
+
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
41
|
+
function ApiErrorToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'code': value.code,
|
|
50
|
+
'message': value.message,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ApiErrorToJSON = ApiErrorToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConfirmOrderFulfillment
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmOrderFulfillment {
|
|
18
|
+
/**
|
|
19
|
+
* Unique object identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmOrderFulfillment
|
|
22
|
+
*/
|
|
23
|
+
fulfillmentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique object identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmOrderFulfillment
|
|
28
|
+
*/
|
|
29
|
+
shippingMethodId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfirmOrderFulfillment interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfirmOrderFulfillment(value: object): boolean;
|
|
35
|
+
export declare function ConfirmOrderFulfillmentFromJSON(json: any): ConfirmOrderFulfillment;
|
|
36
|
+
export declare function ConfirmOrderFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderFulfillment;
|
|
37
|
+
export declare function ConfirmOrderFulfillmentToJSON(value?: ConfirmOrderFulfillment | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ConfirmOrderFulfillmentToJSON = exports.ConfirmOrderFulfillmentFromJSONTyped = exports.ConfirmOrderFulfillmentFromJSON = exports.instanceOfConfirmOrderFulfillment = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ConfirmOrderFulfillment interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfConfirmOrderFulfillment(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "fulfillmentId" in value;
|
|
23
|
+
isInstance = isInstance && "shippingMethodId" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfConfirmOrderFulfillment = instanceOfConfirmOrderFulfillment;
|
|
27
|
+
function ConfirmOrderFulfillmentFromJSON(json) {
|
|
28
|
+
return ConfirmOrderFulfillmentFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ConfirmOrderFulfillmentFromJSON = ConfirmOrderFulfillmentFromJSON;
|
|
31
|
+
function ConfirmOrderFulfillmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'fulfillmentId': json['fulfillmentId'],
|
|
37
|
+
'shippingMethodId': json['shippingMethodId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ConfirmOrderFulfillmentFromJSONTyped = ConfirmOrderFulfillmentFromJSONTyped;
|
|
41
|
+
function ConfirmOrderFulfillmentToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'fulfillmentId': value.fulfillmentId,
|
|
50
|
+
'shippingMethodId': value.shippingMethodId,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ConfirmOrderFulfillmentToJSON = ConfirmOrderFulfillmentToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConfirmOrderFulfillment } from './ConfirmOrderFulfillment';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConfirmOrderRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ConfirmOrderRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ConfirmOrderFulfillment>}
|
|
22
|
+
* @memberof ConfirmOrderRequest
|
|
23
|
+
*/
|
|
24
|
+
fulfillments: Array<ConfirmOrderFulfillment>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ConfirmOrderRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfConfirmOrderRequest(value: object): boolean;
|
|
30
|
+
export declare function ConfirmOrderRequestFromJSON(json: any): ConfirmOrderRequest;
|
|
31
|
+
export declare function ConfirmOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderRequest;
|
|
32
|
+
export declare function ConfirmOrderRequestToJSON(value?: ConfirmOrderRequest | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ConfirmOrderRequestToJSON = exports.ConfirmOrderRequestFromJSONTyped = exports.ConfirmOrderRequestFromJSON = exports.instanceOfConfirmOrderRequest = void 0;
|
|
17
|
+
var ConfirmOrderFulfillment_1 = require("./ConfirmOrderFulfillment");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ConfirmOrderRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConfirmOrderRequest(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "fulfillments" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfConfirmOrderRequest = instanceOfConfirmOrderRequest;
|
|
27
|
+
function ConfirmOrderRequestFromJSON(json) {
|
|
28
|
+
return ConfirmOrderRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ConfirmOrderRequestFromJSON = ConfirmOrderRequestFromJSON;
|
|
31
|
+
function ConfirmOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'fulfillments': (json['fulfillments'].map(ConfirmOrderFulfillment_1.ConfirmOrderFulfillmentFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ConfirmOrderRequestFromJSONTyped = ConfirmOrderRequestFromJSONTyped;
|
|
40
|
+
function ConfirmOrderRequestToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'fulfillments': (value.fulfillments.map(ConfirmOrderFulfillment_1.ConfirmOrderFulfillmentToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ConfirmOrderRequestToJSON = ConfirmOrderRequestToJSON;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConfirmOrderValidationError
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmOrderValidationError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmOrderValidationError
|
|
22
|
+
*/
|
|
23
|
+
code: ConfirmOrderValidationErrorCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmOrderValidationError
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ConfirmOrderValidationErrorCodeEnum: {
|
|
35
|
+
readonly BadRequest: "BAD_REQUEST";
|
|
36
|
+
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
37
|
+
readonly Conflict: "CONFLICT";
|
|
38
|
+
readonly ActionRequired: "ACTION_REQUIRED";
|
|
39
|
+
};
|
|
40
|
+
export type ConfirmOrderValidationErrorCodeEnum = typeof ConfirmOrderValidationErrorCodeEnum[keyof typeof ConfirmOrderValidationErrorCodeEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the ConfirmOrderValidationError interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfConfirmOrderValidationError(value: object): boolean;
|
|
45
|
+
export declare function ConfirmOrderValidationErrorFromJSON(json: any): ConfirmOrderValidationError;
|
|
46
|
+
export declare function ConfirmOrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderValidationError;
|
|
47
|
+
export declare function ConfirmOrderValidationErrorToJSON(value?: ConfirmOrderValidationError | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ConfirmOrderValidationErrorToJSON = exports.ConfirmOrderValidationErrorFromJSONTyped = exports.ConfirmOrderValidationErrorFromJSON = exports.instanceOfConfirmOrderValidationError = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.ConfirmOrderValidationErrorCodeEnum = {
|
|
21
|
+
BadRequest: 'BAD_REQUEST',
|
|
22
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
23
|
+
Conflict: 'CONFLICT',
|
|
24
|
+
ActionRequired: 'ACTION_REQUIRED'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ConfirmOrderValidationError interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfConfirmOrderValidationError(value) {
|
|
30
|
+
var isInstance = true;
|
|
31
|
+
isInstance = isInstance && "code" in value;
|
|
32
|
+
isInstance = isInstance && "message" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfConfirmOrderValidationError = instanceOfConfirmOrderValidationError;
|
|
36
|
+
function ConfirmOrderValidationErrorFromJSON(json) {
|
|
37
|
+
return ConfirmOrderValidationErrorFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.ConfirmOrderValidationErrorFromJSON = ConfirmOrderValidationErrorFromJSON;
|
|
40
|
+
function ConfirmOrderValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'code': json['code'],
|
|
46
|
+
'message': json['message'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.ConfirmOrderValidationErrorFromJSONTyped = ConfirmOrderValidationErrorFromJSONTyped;
|
|
50
|
+
function ConfirmOrderValidationErrorToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'code': value.code,
|
|
59
|
+
'message': value.message,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.ConfirmOrderValidationErrorToJSON = ConfirmOrderValidationErrorToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Order recipient contact information, used only for courier tracking/updates.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContactInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface ContactInformation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContactInformation
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContactInformation
|
|
28
|
+
*/
|
|
29
|
+
phone?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ContactInformation interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfContactInformation(value: object): boolean;
|
|
35
|
+
export declare function ContactInformationFromJSON(json: any): ContactInformation;
|
|
36
|
+
export declare function ContactInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInformation;
|
|
37
|
+
export declare function ContactInformationToJSON(value?: ContactInformation | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContactInformationToJSON = exports.ContactInformationFromJSONTyped = exports.ContactInformationFromJSON = exports.instanceOfContactInformation = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ContactInformation interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfContactInformation(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "email" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfContactInformation = instanceOfContactInformation;
|
|
27
|
+
function ContactInformationFromJSON(json) {
|
|
28
|
+
return ContactInformationFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ContactInformationFromJSON = ContactInformationFromJSON;
|
|
31
|
+
function ContactInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'email': json['email'],
|
|
37
|
+
'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ContactInformationFromJSONTyped = ContactInformationFromJSONTyped;
|
|
41
|
+
function ContactInformationToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'email': value.email,
|
|
50
|
+
'phone': value.phone,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ContactInformationToJSON = ContactInformationToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeliveryEstimates
|
|
16
|
+
*/
|
|
17
|
+
export interface DeliveryEstimates {
|
|
18
|
+
/**
|
|
19
|
+
* ISO 8601 Timestamp
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof DeliveryEstimates
|
|
22
|
+
*/
|
|
23
|
+
min?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* ISO 8601 Timestamp
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof DeliveryEstimates
|
|
28
|
+
*/
|
|
29
|
+
max?: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeliveryEstimates interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeliveryEstimates(value: object): boolean;
|
|
35
|
+
export declare function DeliveryEstimatesFromJSON(json: any): DeliveryEstimates;
|
|
36
|
+
export declare function DeliveryEstimatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryEstimates;
|
|
37
|
+
export declare function DeliveryEstimatesToJSON(value?: DeliveryEstimates | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.3
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DeliveryEstimatesToJSON = exports.DeliveryEstimatesFromJSONTyped = exports.DeliveryEstimatesFromJSON = exports.instanceOfDeliveryEstimates = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the DeliveryEstimates interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDeliveryEstimates(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfDeliveryEstimates = instanceOfDeliveryEstimates;
|
|
26
|
+
function DeliveryEstimatesFromJSON(json) {
|
|
27
|
+
return DeliveryEstimatesFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.DeliveryEstimatesFromJSON = DeliveryEstimatesFromJSON;
|
|
30
|
+
function DeliveryEstimatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'min': !(0, runtime_1.exists)(json, 'min') ? undefined : (new Date(json['min'])),
|
|
36
|
+
'max': !(0, runtime_1.exists)(json, 'max') ? undefined : (new Date(json['max'])),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.DeliveryEstimatesFromJSONTyped = DeliveryEstimatesFromJSONTyped;
|
|
40
|
+
function DeliveryEstimatesToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'min': value.min === undefined ? undefined : (value.min.toISOString()),
|
|
49
|
+
'max': value.max === undefined ? undefined : (value.max.toISOString()),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.DeliveryEstimatesToJSON = DeliveryEstimatesToJSON;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.3
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { FulfillmentItem } from './FulfillmentItem';
|
|
13
|
+
import type { OrderTracking } from './OrderTracking';
|
|
14
|
+
import type { ShippingMethod } from './ShippingMethod';
|
|
15
|
+
import type { Status } from './Status';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Fulfillment
|
|
20
|
+
*/
|
|
21
|
+
export interface Fulfillment {
|
|
22
|
+
/**
|
|
23
|
+
* Unique object identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Fulfillment
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Status}
|
|
31
|
+
* @memberof Fulfillment
|
|
32
|
+
*/
|
|
33
|
+
status?: Status;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<FulfillmentItem>}
|
|
37
|
+
* @memberof Fulfillment
|
|
38
|
+
*/
|
|
39
|
+
items?: Array<FulfillmentItem>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {OrderTracking}
|
|
43
|
+
* @memberof Fulfillment
|
|
44
|
+
*/
|
|
45
|
+
tracking?: OrderTracking | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {ShippingMethod}
|
|
49
|
+
* @memberof Fulfillment
|
|
50
|
+
*/
|
|
51
|
+
shippingMethod?: ShippingMethod;
|
|
52
|
+
/**
|
|
53
|
+
* Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment.
|
|
54
|
+
* @type {Array<ShippingMethod>}
|
|
55
|
+
* @memberof Fulfillment
|
|
56
|
+
*/
|
|
57
|
+
availableShippingMethods?: Array<ShippingMethod>;
|
|
58
|
+
/**
|
|
59
|
+
* Weight of the package being shipped in grams
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Fulfillment
|
|
62
|
+
*/
|
|
63
|
+
packageWeight?: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the Fulfillment interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfFulfillment(value: object): boolean;
|
|
69
|
+
export declare function FulfillmentFromJSON(json: any): Fulfillment;
|
|
70
|
+
export declare function FulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fulfillment;
|
|
71
|
+
export declare function FulfillmentToJSON(value?: Fulfillment | null): any;
|