@teemill/orders 1.0.0 → 1.0.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/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 +128 -0
- package/dist/models/Order.js +89 -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/index.d.ts +18 -0
- package/dist/models/index.js +36 -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 +230 -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/index.ts +20 -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,54 @@
|
|
|
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.2
|
|
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.OrderTrackingToJSON = exports.OrderTrackingFromJSONTyped = exports.OrderTrackingFromJSON = exports.instanceOfOrderTracking = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the OrderTracking interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfOrderTracking(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfOrderTracking = instanceOfOrderTracking;
|
|
26
|
+
function OrderTrackingFromJSON(json) {
|
|
27
|
+
return OrderTrackingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.OrderTrackingFromJSON = OrderTrackingFromJSON;
|
|
30
|
+
function OrderTrackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'courier': !(0, runtime_1.exists)(json, 'courier') ? undefined : json['courier'],
|
|
36
|
+
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
37
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.OrderTrackingFromJSONTyped = OrderTrackingFromJSONTyped;
|
|
41
|
+
function OrderTrackingToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'courier': value.courier,
|
|
50
|
+
'code': value.code,
|
|
51
|
+
'url': value.url,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.OrderTrackingToJSON = OrderTrackingToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.2
|
|
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 { Order } from './Order';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrdersResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface OrdersResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Order>}
|
|
22
|
+
* @memberof OrdersResponse
|
|
23
|
+
*/
|
|
24
|
+
orders?: Array<Order>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof OrdersResponse
|
|
29
|
+
*/
|
|
30
|
+
nextPageToken?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OrdersResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfOrdersResponse(value: object): boolean;
|
|
36
|
+
export declare function OrdersResponseFromJSON(json: any): OrdersResponse;
|
|
37
|
+
export declare function OrdersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrdersResponse;
|
|
38
|
+
export declare function OrdersResponseToJSON(value?: OrdersResponse | 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.2
|
|
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.OrdersResponseToJSON = exports.OrdersResponseFromJSONTyped = exports.OrdersResponseFromJSON = exports.instanceOfOrdersResponse = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var Order_1 = require("./Order");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the OrdersResponse interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfOrdersResponse(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfOrdersResponse = instanceOfOrdersResponse;
|
|
27
|
+
function OrdersResponseFromJSON(json) {
|
|
28
|
+
return OrdersResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.OrdersResponseFromJSON = OrdersResponseFromJSON;
|
|
31
|
+
function OrdersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
37
|
+
'nextPageToken': !(0, runtime_1.exists)(json, 'nextPageToken') ? undefined : json['nextPageToken'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.OrdersResponseFromJSONTyped = OrdersResponseFromJSONTyped;
|
|
41
|
+
function OrdersResponseToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
|
|
50
|
+
'nextPageToken': value.nextPageToken,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.OrdersResponseToJSON = OrdersResponseToJSON;
|
|
@@ -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.2
|
|
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 Origin
|
|
16
|
+
*/
|
|
17
|
+
export interface Origin {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Origin
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof Origin
|
|
28
|
+
*/
|
|
29
|
+
isPaid?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Origin interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOrigin(value: object): boolean;
|
|
35
|
+
export declare function OriginFromJSON(json: any): Origin;
|
|
36
|
+
export declare function OriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): Origin;
|
|
37
|
+
export declare function OriginToJSON(value?: Origin | 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.2
|
|
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.OriginToJSON = exports.OriginFromJSONTyped = exports.OriginFromJSON = exports.instanceOfOrigin = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Origin interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfOrigin(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfOrigin = instanceOfOrigin;
|
|
26
|
+
function OriginFromJSON(json) {
|
|
27
|
+
return OriginFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.OriginFromJSON = OriginFromJSON;
|
|
30
|
+
function OriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
36
|
+
'isPaid': !(0, runtime_1.exists)(json, 'isPaid') ? undefined : json['isPaid'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.OriginFromJSONTyped = OriginFromJSONTyped;
|
|
40
|
+
function OriginToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'code': value.code,
|
|
49
|
+
'isPaid': value.isPaid,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.OriginToJSON = OriginToJSON;
|
|
@@ -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.2
|
|
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
|
+
* Standard price definition that defines the amount and currency.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Price
|
|
16
|
+
*/
|
|
17
|
+
export interface Price {
|
|
18
|
+
/**
|
|
19
|
+
* Price including tax in the specified currency.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Price
|
|
22
|
+
*/
|
|
23
|
+
amount?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Currency code for the currency the price is valued in.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Price
|
|
28
|
+
*/
|
|
29
|
+
currencyCode?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Price interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPrice(value: object): boolean;
|
|
35
|
+
export declare function PriceFromJSON(json: any): Price;
|
|
36
|
+
export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price;
|
|
37
|
+
export declare function PriceToJSON(value?: Price | 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.2
|
|
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.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Price interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPrice(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPrice = instanceOfPrice;
|
|
26
|
+
function PriceFromJSON(json) {
|
|
27
|
+
return PriceFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PriceFromJSON = PriceFromJSON;
|
|
30
|
+
function PriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
|
|
36
|
+
'currencyCode': !(0, runtime_1.exists)(json, 'currencyCode') ? undefined : json['currencyCode'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.PriceFromJSONTyped = PriceFromJSONTyped;
|
|
40
|
+
function PriceToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'amount': value.amount,
|
|
49
|
+
'currencyCode': value.currencyCode,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.PriceToJSON = PriceToJSON;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.2
|
|
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 { DeliveryEstimates } from './DeliveryEstimates';
|
|
13
|
+
import type { Price } from './Price';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ShippingMethod
|
|
18
|
+
*/
|
|
19
|
+
export interface ShippingMethod {
|
|
20
|
+
/**
|
|
21
|
+
* Unique object identifier
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ShippingMethod
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ShippingMethod
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ShippingMethod
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {DeliveryEstimates}
|
|
41
|
+
* @memberof ShippingMethod
|
|
42
|
+
*/
|
|
43
|
+
deliveryEstimates?: DeliveryEstimates;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Price}
|
|
47
|
+
* @memberof ShippingMethod
|
|
48
|
+
*/
|
|
49
|
+
totalPrice?: Price;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Price}
|
|
53
|
+
* @memberof ShippingMethod
|
|
54
|
+
*/
|
|
55
|
+
taxPrice?: Price;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Price}
|
|
59
|
+
* @memberof ShippingMethod
|
|
60
|
+
*/
|
|
61
|
+
subtotalPrice?: Price;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Price}
|
|
65
|
+
* @memberof ShippingMethod
|
|
66
|
+
*/
|
|
67
|
+
discountPrice?: Price;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the ShippingMethod interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfShippingMethod(value: object): boolean;
|
|
73
|
+
export declare function ShippingMethodFromJSON(json: any): ShippingMethod;
|
|
74
|
+
export declare function ShippingMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingMethod;
|
|
75
|
+
export declare function ShippingMethodToJSON(value?: ShippingMethod | null): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.2
|
|
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.ShippingMethodToJSON = exports.ShippingMethodFromJSONTyped = exports.ShippingMethodFromJSON = exports.instanceOfShippingMethod = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var DeliveryEstimates_1 = require("./DeliveryEstimates");
|
|
19
|
+
var Price_1 = require("./Price");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ShippingMethod interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfShippingMethod(value) {
|
|
24
|
+
var isInstance = true;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfShippingMethod = instanceOfShippingMethod;
|
|
28
|
+
function ShippingMethodFromJSON(json) {
|
|
29
|
+
return ShippingMethodFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ShippingMethodFromJSON = ShippingMethodFromJSON;
|
|
32
|
+
function ShippingMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
38
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
39
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
40
|
+
'deliveryEstimates': !(0, runtime_1.exists)(json, 'deliveryEstimates') ? undefined : (0, DeliveryEstimates_1.DeliveryEstimatesFromJSON)(json['deliveryEstimates']),
|
|
41
|
+
'totalPrice': !(0, runtime_1.exists)(json, 'totalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['totalPrice']),
|
|
42
|
+
'taxPrice': !(0, runtime_1.exists)(json, 'taxPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['taxPrice']),
|
|
43
|
+
'subtotalPrice': !(0, runtime_1.exists)(json, 'subtotalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['subtotalPrice']),
|
|
44
|
+
'discountPrice': !(0, runtime_1.exists)(json, 'discountPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ShippingMethodFromJSONTyped = ShippingMethodFromJSONTyped;
|
|
48
|
+
function ShippingMethodToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value.id,
|
|
57
|
+
'name': value.name,
|
|
58
|
+
'description': value.description,
|
|
59
|
+
'deliveryEstimates': (0, DeliveryEstimates_1.DeliveryEstimatesToJSON)(value.deliveryEstimates),
|
|
60
|
+
'totalPrice': (0, Price_1.PriceToJSON)(value.totalPrice),
|
|
61
|
+
'taxPrice': (0, Price_1.PriceToJSON)(value.taxPrice),
|
|
62
|
+
'subtotalPrice': (0, Price_1.PriceToJSON)(value.subtotalPrice),
|
|
63
|
+
'discountPrice': (0, Price_1.PriceToJSON)(value.discountPrice),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.ShippingMethodToJSON = ShippingMethodToJSON;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.2
|
|
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
|
+
*/
|
|
16
|
+
export declare const Status: {
|
|
17
|
+
readonly New: "new";
|
|
18
|
+
readonly Paid: "paid";
|
|
19
|
+
readonly Processing: "processing";
|
|
20
|
+
readonly Complete: "complete";
|
|
21
|
+
readonly Refunded: "refunded";
|
|
22
|
+
};
|
|
23
|
+
export type Status = typeof Status[keyof typeof Status];
|
|
24
|
+
export declare function StatusFromJSON(json: any): Status;
|
|
25
|
+
export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
|
|
26
|
+
export declare function StatusToJSON(value?: Status | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.2
|
|
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.StatusToJSON = exports.StatusFromJSONTyped = exports.StatusFromJSON = exports.Status = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.Status = {
|
|
22
|
+
New: 'new',
|
|
23
|
+
Paid: 'paid',
|
|
24
|
+
Processing: 'processing',
|
|
25
|
+
Complete: 'complete',
|
|
26
|
+
Refunded: 'refunded'
|
|
27
|
+
};
|
|
28
|
+
function StatusFromJSON(json) {
|
|
29
|
+
return StatusFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.StatusFromJSON = StatusFromJSON;
|
|
32
|
+
function StatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.StatusFromJSONTyped = StatusFromJSONTyped;
|
|
36
|
+
function StatusToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.StatusToJSON = StatusToJSON;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './Address';
|
|
2
|
+
export * from './ApiError';
|
|
3
|
+
export * from './ConfirmOrderFulfillment';
|
|
4
|
+
export * from './ConfirmOrderRequest';
|
|
5
|
+
export * from './ConfirmOrderValidationError';
|
|
6
|
+
export * from './ContactInformation';
|
|
7
|
+
export * from './DeliveryEstimates';
|
|
8
|
+
export * from './Fulfillment';
|
|
9
|
+
export * from './FulfillmentItem';
|
|
10
|
+
export * from './Order';
|
|
11
|
+
export * from './OrderItem';
|
|
12
|
+
export * from './OrderItemTaxPrice';
|
|
13
|
+
export * from './OrderTracking';
|
|
14
|
+
export * from './OrdersResponse';
|
|
15
|
+
export * from './Origin';
|
|
16
|
+
export * from './Price';
|
|
17
|
+
export * from './ShippingMethod';
|
|
18
|
+
export * from './Status';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./Address"), exports);
|
|
20
|
+
__exportStar(require("./ApiError"), exports);
|
|
21
|
+
__exportStar(require("./ConfirmOrderFulfillment"), exports);
|
|
22
|
+
__exportStar(require("./ConfirmOrderRequest"), exports);
|
|
23
|
+
__exportStar(require("./ConfirmOrderValidationError"), exports);
|
|
24
|
+
__exportStar(require("./ContactInformation"), exports);
|
|
25
|
+
__exportStar(require("./DeliveryEstimates"), exports);
|
|
26
|
+
__exportStar(require("./Fulfillment"), exports);
|
|
27
|
+
__exportStar(require("./FulfillmentItem"), exports);
|
|
28
|
+
__exportStar(require("./Order"), exports);
|
|
29
|
+
__exportStar(require("./OrderItem"), exports);
|
|
30
|
+
__exportStar(require("./OrderItemTaxPrice"), exports);
|
|
31
|
+
__exportStar(require("./OrderTracking"), exports);
|
|
32
|
+
__exportStar(require("./OrdersResponse"), exports);
|
|
33
|
+
__exportStar(require("./Origin"), exports);
|
|
34
|
+
__exportStar(require("./Price"), exports);
|
|
35
|
+
__exportStar(require("./ShippingMethod"), exports);
|
|
36
|
+
__exportStar(require("./Status"), exports);
|