@digital8/lighting-illusions-ts-sdk 0.0.2348 → 0.0.2349
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 +34 -14
- package/README.md +24 -9
- package/dist/apis/CouponsApi.d.ts +116 -0
- package/dist/apis/CouponsApi.js +440 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/AdminOrderResource.d.ts +3 -2
- package/dist/models/AdminOrderResource.js +3 -2
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/{AppliedCouponResource.js → CartCouponResource.js} +13 -13
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CouponListResource.d.ts +99 -0
- package/dist/models/CouponListResource.js +90 -0
- package/dist/models/CouponListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponListResourceArrayResponse.js +50 -0
- package/dist/models/CouponLiteResource.d.ts +44 -0
- package/dist/models/CouponLiteResource.js +57 -0
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CouponResource.d.ts +163 -0
- package/dist/models/CouponResource.js +134 -0
- package/dist/models/CouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponResourceArrayResponse.js +50 -0
- package/dist/models/CouponType.d.ts +26 -0
- package/dist/models/CouponType.js +52 -0
- package/dist/models/CreateCouponRequest.d.ts +134 -0
- package/dist/models/CreateCouponRequest.js +114 -0
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
- package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/CreateSupplierRequest.d.ts +0 -6
- package/dist/models/CreateSupplierRequest.js +0 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -18
- package/dist/models/FrontendCartResource.js +0 -12
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -12
- package/dist/models/OrderStatusWithCountResource.js +0 -8
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponResourceResponse.js +57 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- package/dist/models/SearchAllOrdersRequest.d.ts +0 -6
- package/dist/models/SearchAllOrdersRequest.js +0 -2
- package/dist/models/SearchCartsRequest.d.ts +6 -0
- package/dist/models/SearchCartsRequest.js +2 -0
- package/dist/models/SearchCouponsRequest.d.ts +137 -0
- package/dist/models/SearchCouponsRequest.js +97 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -6
- package/dist/models/SearchOrdersRequest.js +2 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/SupplierFrontendResource.d.ts +0 -6
- package/dist/models/SupplierFrontendResource.js +0 -4
- package/dist/models/SupplierResource.d.ts +0 -6
- package/dist/models/SupplierResource.js +0 -4
- package/dist/models/UpdateCouponRequest.d.ts +128 -0
- package/dist/models/UpdateCouponRequest.js +110 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +0 -6
- package/dist/models/UpdateSupplierRequest.js +0 -2
- package/dist/models/index.d.ts +16 -6
- package/dist/models/index.js +16 -6
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{AppliedCouponResource.md → CartCouponResource.md} +4 -4
- package/docs/{AppliedCouponResourceArrayResponse.md → CartCouponResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +0 -2
- package/docs/CouponListResource.md +56 -0
- package/docs/{ProductClassLiteResourceArrayResponse.md → CouponListResourceArrayResponse.md} +5 -5
- package/docs/{ProductClassLiteResource.md → CouponLiteResource.md} +6 -6
- package/docs/CouponLiteResourceArrayResponse.md +34 -0
- package/docs/CouponResource.md +76 -0
- package/docs/CouponResourceArrayResponse.md +34 -0
- package/docs/CouponType.md +32 -0
- package/docs/CouponsApi.md +407 -0
- package/docs/CreateCouponRequest.md +62 -0
- package/docs/CreateCouponRequestCouponablesInner.md +36 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +0 -2
- package/docs/FrontendCartResource.md +0 -6
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/OrderStatusWithCountResource.md +0 -4
- package/docs/{PaginatedProductClassLiteResourceResponse.md → PaginatedCouponListResourceResponse.md} +5 -5
- package/docs/PaginatedCouponResourceResponse.md +36 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/{SearchAllProductClassesRequest.md → SearchAllCouponsRequest.md} +10 -4
- package/docs/SearchAllOrdersRequest.md +0 -2
- package/docs/SearchCartsRequest.md +2 -0
- package/docs/SearchCouponsRequest.md +62 -0
- package/docs/SearchOrdersRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/SupplierFrontendResource.md +0 -2
- package/docs/SupplierResource.md +0 -2
- package/docs/UpdateCouponRequest.md +60 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +345 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -6
- package/src/models/AdminOrderResource.ts +11 -4
- package/src/models/{AppliedCouponResource.ts → CartCouponResource.ts} +14 -14
- package/src/models/CartCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CouponListResource.ts +170 -0
- package/src/models/CouponListResourceArrayResponse.ts +73 -0
- package/src/models/CouponLiteResource.ts +83 -0
- package/src/models/CouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CouponResource.ts +288 -0
- package/src/models/CouponResourceArrayResponse.ts +73 -0
- package/src/models/CouponType.ts +54 -0
- package/src/models/CreateCouponRequest.ts +216 -0
- package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/CreateSupplierRequest.ts +0 -8
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/OrderStatusWithCountResource.ts +0 -18
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchAllOrdersRequest.ts +0 -8
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -8
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/SupplierFrontendResource.ts +0 -9
- package/src/models/SupplierResource.ts +0 -9
- package/src/models/UpdateCouponRequest.ts +207 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +0 -8
- package/src/models/index.ts +16 -6
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/AppliedCouponResource.d.ts +0 -50
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/AppliedCouponResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
- package/dist/models/SearchAllProductClassesRequest.js +0 -74
- package/docs/ProductClassApi.md +0 -74
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/AppliedCouponResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchAllProductClassesRequest.ts +0 -125
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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.CreateCouponRequestDiscountTypeEnum = exports.CreateCouponRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateCouponRequest = instanceOfCreateCouponRequest;
|
|
18
|
+
exports.CreateCouponRequestFromJSON = CreateCouponRequestFromJSON;
|
|
19
|
+
exports.CreateCouponRequestFromJSONTyped = CreateCouponRequestFromJSONTyped;
|
|
20
|
+
exports.CreateCouponRequestToJSON = CreateCouponRequestToJSON;
|
|
21
|
+
exports.CreateCouponRequestToJSONTyped = CreateCouponRequestToJSONTyped;
|
|
22
|
+
var CreateCouponRequestCouponablesInner_1 = require("./CreateCouponRequestCouponablesInner");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CreateCouponRequestTypeEnum = {
|
|
27
|
+
Subtotal: 'subtotal',
|
|
28
|
+
Product: 'product',
|
|
29
|
+
Shipping: 'shipping'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.CreateCouponRequestDiscountTypeEnum = {
|
|
35
|
+
Dollar: '$',
|
|
36
|
+
Percent: '%'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CreateCouponRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfCreateCouponRequest(value) {
|
|
42
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
function CreateCouponRequestFromJSON(json) {
|
|
65
|
+
return CreateCouponRequestFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function CreateCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'siteId': json['site_id'],
|
|
73
|
+
'name': json['name'],
|
|
74
|
+
'code': json['code'],
|
|
75
|
+
'type': json['type'],
|
|
76
|
+
'discountType': json['discount_type'],
|
|
77
|
+
'discountAmount': json['discount_amount'],
|
|
78
|
+
'minAmount': json['min_amount'],
|
|
79
|
+
'minProducts': json['min_products'],
|
|
80
|
+
'totalUseLimit': json['total_use_limit'],
|
|
81
|
+
'customerUseLimit': json['customer_use_limit'],
|
|
82
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
83
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
84
|
+
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
85
|
+
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
86
|
+
'couponables': json['couponables'] == null ? undefined : (json['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerFromJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function CreateCouponRequestToJSON(json) {
|
|
90
|
+
return CreateCouponRequestToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
function CreateCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
93
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'site_id': value['siteId'],
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'code': value['code'],
|
|
101
|
+
'type': value['type'],
|
|
102
|
+
'discount_type': value['discountType'],
|
|
103
|
+
'discount_amount': value['discountAmount'],
|
|
104
|
+
'min_amount': value['minAmount'],
|
|
105
|
+
'min_products': value['minProducts'],
|
|
106
|
+
'total_use_limit': value['totalUseLimit'],
|
|
107
|
+
'customer_use_limit': value['customerUseLimit'],
|
|
108
|
+
'start_date': value['startDate'],
|
|
109
|
+
'end_date': value['endDate'],
|
|
110
|
+
'is_for_all_products': value['isForAllProducts'],
|
|
111
|
+
'is_for_all_customers': value['isForAllCustomers'],
|
|
112
|
+
'couponables': value['couponables'] == null ? undefined : (value['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerToJSON)),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 CreateCouponRequestCouponablesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateCouponRequestCouponablesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {CreateCouponRequestCouponablesInnerTypeEnum}
|
|
21
|
+
* @memberof CreateCouponRequestCouponablesInner
|
|
22
|
+
*/
|
|
23
|
+
type?: CreateCouponRequestCouponablesInnerTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateCouponRequestCouponablesInner
|
|
28
|
+
*/
|
|
29
|
+
id?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreateCouponRequestCouponablesInnerTypeEnum: {
|
|
35
|
+
readonly ProductChild: "productChild";
|
|
36
|
+
readonly ProductCategory: "productCategory";
|
|
37
|
+
readonly Supplier: "supplier";
|
|
38
|
+
readonly Customer: "customer";
|
|
39
|
+
};
|
|
40
|
+
export type CreateCouponRequestCouponablesInnerTypeEnum = typeof CreateCouponRequestCouponablesInnerTypeEnum[keyof typeof CreateCouponRequestCouponablesInnerTypeEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the CreateCouponRequestCouponablesInner interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfCreateCouponRequestCouponablesInner(value: object): value is CreateCouponRequestCouponablesInner;
|
|
45
|
+
export declare function CreateCouponRequestCouponablesInnerFromJSON(json: any): CreateCouponRequestCouponablesInner;
|
|
46
|
+
export declare function CreateCouponRequestCouponablesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCouponRequestCouponablesInner;
|
|
47
|
+
export declare function CreateCouponRequestCouponablesInnerToJSON(json: any): CreateCouponRequestCouponablesInner;
|
|
48
|
+
export declare function CreateCouponRequestCouponablesInnerToJSONTyped(value?: CreateCouponRequestCouponablesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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.CreateCouponRequestCouponablesInnerTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateCouponRequestCouponablesInner = instanceOfCreateCouponRequestCouponablesInner;
|
|
18
|
+
exports.CreateCouponRequestCouponablesInnerFromJSON = CreateCouponRequestCouponablesInnerFromJSON;
|
|
19
|
+
exports.CreateCouponRequestCouponablesInnerFromJSONTyped = CreateCouponRequestCouponablesInnerFromJSONTyped;
|
|
20
|
+
exports.CreateCouponRequestCouponablesInnerToJSON = CreateCouponRequestCouponablesInnerToJSON;
|
|
21
|
+
exports.CreateCouponRequestCouponablesInnerToJSONTyped = CreateCouponRequestCouponablesInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateCouponRequestCouponablesInnerTypeEnum = {
|
|
26
|
+
ProductChild: 'productChild',
|
|
27
|
+
ProductCategory: 'productCategory',
|
|
28
|
+
Supplier: 'supplier',
|
|
29
|
+
Customer: 'customer'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateCouponRequestCouponablesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfCreateCouponRequestCouponablesInner(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CreateCouponRequestCouponablesInnerFromJSON(json) {
|
|
38
|
+
return CreateCouponRequestCouponablesInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CreateCouponRequestCouponablesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
46
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function CreateCouponRequestCouponablesInnerToJSON(json) {
|
|
50
|
+
return CreateCouponRequestCouponablesInnerToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function CreateCouponRequestCouponablesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -48,16 +48,16 @@ export interface CreatePageComponentRequest {
|
|
|
48
48
|
order?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {Date}
|
|
52
52
|
* @memberof CreatePageComponentRequest
|
|
53
53
|
*/
|
|
54
|
-
startDate?:
|
|
54
|
+
startDate?: Date | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {Date}
|
|
58
58
|
* @memberof CreatePageComponentRequest
|
|
59
59
|
*/
|
|
60
|
-
endDate?:
|
|
60
|
+
endDate?: Date | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {object}
|
|
@@ -44,8 +44,8 @@ function CreatePageComponentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'type': json['type'],
|
|
45
45
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
46
46
|
'order': json['order'] == null ? undefined : json['order'],
|
|
47
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
48
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
47
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
48
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
49
49
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
50
50
|
'relations': json['relations'] == null ? undefined : (json['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
51
51
|
};
|
|
@@ -64,8 +64,8 @@ function CreatePageComponentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
64
|
'type': value['type'],
|
|
65
65
|
'disabled': value['disabled'],
|
|
66
66
|
'order': value['order'],
|
|
67
|
-
'start_date': value['startDate'],
|
|
68
|
-
'end_date': value['endDate'],
|
|
67
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
68
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
69
69
|
'component_data': value['componentData'],
|
|
70
70
|
'relations': value['relations'] == null ? undefined : (value['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerToJSON)),
|
|
71
71
|
};
|
|
@@ -63,8 +63,6 @@ export declare const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEn
|
|
|
63
63
|
readonly Tag: "tag";
|
|
64
64
|
readonly Supplier: "supplier";
|
|
65
65
|
readonly Label: "label";
|
|
66
|
-
readonly ProductType: "product_type";
|
|
67
|
-
readonly ProductClass: "product_class";
|
|
68
66
|
};
|
|
69
67
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
70
68
|
/**
|
|
@@ -29,9 +29,7 @@ exports.CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
29
29
|
Attribute: 'attribute',
|
|
30
30
|
Tag: 'tag',
|
|
31
31
|
Supplier: 'supplier',
|
|
32
|
-
Label: 'label'
|
|
33
|
-
ProductType: 'product_type',
|
|
34
|
-
ProductClass: 'product_class'
|
|
32
|
+
Label: 'label'
|
|
35
33
|
};
|
|
36
34
|
/**
|
|
37
35
|
* @export
|
|
@@ -35,12 +35,6 @@ export interface CreateSupplierRequest {
|
|
|
35
35
|
* @memberof CreateSupplierRequest
|
|
36
36
|
*/
|
|
37
37
|
supplierEta: number;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {boolean}
|
|
41
|
-
* @memberof CreateSupplierRequest
|
|
42
|
-
*/
|
|
43
|
-
productEnquiriesOnly?: boolean;
|
|
44
38
|
/**
|
|
45
39
|
*
|
|
46
40
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -47,7 +47,6 @@ function CreateSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'name': json['name'],
|
|
48
48
|
'slug': json['slug'],
|
|
49
49
|
'supplierEta': json['supplier_eta'],
|
|
50
|
-
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
51
50
|
'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
52
51
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
53
52
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -69,7 +68,6 @@ function CreateSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
68
|
'name': value['name'],
|
|
70
69
|
'slug': value['slug'],
|
|
71
70
|
'supplier_eta': value['supplierEta'],
|
|
72
|
-
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
73
71
|
'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
74
72
|
'alt_text': value['altText'],
|
|
75
73
|
'mime_type': value['mimeType'],
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -91,12 +91,6 @@ export interface FrontendCartResource {
|
|
|
91
91
|
* @memberof FrontendCartResource
|
|
92
92
|
*/
|
|
93
93
|
subtotal: number;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof FrontendCartResource
|
|
98
|
-
*/
|
|
99
|
-
subtotalAfterDiscounts: number;
|
|
100
94
|
/**
|
|
101
95
|
*
|
|
102
96
|
* @type {number}
|
|
@@ -127,18 +121,6 @@ export interface FrontendCartResource {
|
|
|
127
121
|
* @memberof FrontendCartResource
|
|
128
122
|
*/
|
|
129
123
|
transitInsurance: number;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {number}
|
|
133
|
-
* @memberof FrontendCartResource
|
|
134
|
-
*/
|
|
135
|
-
deliveryShippingQuote: number;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof FrontendCartResource
|
|
140
|
-
*/
|
|
141
|
-
transitInsuranceQuote: number;
|
|
142
124
|
/**
|
|
143
125
|
*
|
|
144
126
|
* @type {number}
|
|
@@ -44,8 +44,6 @@ function instanceOfFrontendCartResource(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined)
|
|
48
|
-
return false;
|
|
49
47
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined)
|
|
50
48
|
return false;
|
|
51
49
|
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined)
|
|
@@ -56,10 +54,6 @@ function instanceOfFrontendCartResource(value) {
|
|
|
56
54
|
return false;
|
|
57
55
|
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined)
|
|
58
56
|
return false;
|
|
59
|
-
if (!('deliveryShippingQuote' in value) || value['deliveryShippingQuote'] === undefined)
|
|
60
|
-
return false;
|
|
61
|
-
if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined)
|
|
62
|
-
return false;
|
|
63
57
|
if (!('gst' in value) || value['gst'] === undefined)
|
|
64
58
|
return false;
|
|
65
59
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined)
|
|
@@ -86,14 +80,11 @@ function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
80
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
87
81
|
'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
|
|
88
82
|
'subtotal': json['subtotal'],
|
|
89
|
-
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
90
83
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
91
84
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
92
85
|
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
93
86
|
'shipping': json['shipping'],
|
|
94
87
|
'transitInsurance': json['transitInsurance'],
|
|
95
|
-
'deliveryShippingQuote': json['deliveryShippingQuote'],
|
|
96
|
-
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
97
88
|
'gst': json['gst'],
|
|
98
89
|
'grandTotal': json['grandTotal'],
|
|
99
90
|
};
|
|
@@ -119,14 +110,11 @@ function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
119
110
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
120
111
|
'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
|
|
121
112
|
'subtotal': value['subtotal'],
|
|
122
|
-
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
123
113
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
124
114
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
125
115
|
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
126
116
|
'shipping': value['shipping'],
|
|
127
117
|
'transitInsurance': value['transitInsurance'],
|
|
128
|
-
'deliveryShippingQuote': value['deliveryShippingQuote'],
|
|
129
|
-
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
130
118
|
'gst': value['gst'],
|
|
131
119
|
'grandTotal': value['grandTotal'],
|
|
132
120
|
};
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
13
|
+
import type { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
14
|
import type { CustomerListResource } from './CustomerListResource';
|
|
14
|
-
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
15
15
|
import type { AddressResource } from './AddressResource';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
@@ -99,10 +99,10 @@ export interface FrontendOrderResource {
|
|
|
99
99
|
lineItems: Array<FrontendLineItemResource> | null;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
|
-
* @type {Array<
|
|
102
|
+
* @type {Array<CartCouponLiteResource>}
|
|
103
103
|
* @memberof FrontendOrderResource
|
|
104
104
|
*/
|
|
105
|
-
coupons: Array<
|
|
105
|
+
coupons: Array<CartCouponLiteResource> | null;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @type {number}
|
|
@@ -19,8 +19,8 @@ exports.FrontendOrderResourceFromJSONTyped = FrontendOrderResourceFromJSONTyped;
|
|
|
19
19
|
exports.FrontendOrderResourceToJSON = FrontendOrderResourceToJSON;
|
|
20
20
|
exports.FrontendOrderResourceToJSONTyped = FrontendOrderResourceToJSONTyped;
|
|
21
21
|
var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
22
|
+
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
23
|
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
|
-
var FrontendCartResourceCouponsInner_1 = require("./FrontendCartResourceCouponsInner");
|
|
24
24
|
var AddressResource_1 = require("./AddressResource");
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the FrontendOrderResource interface.
|
|
@@ -91,7 +91,7 @@ function FrontendOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
91
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
92
92
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
93
93
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
94
|
-
'coupons': (json['coupons'].map(
|
|
94
|
+
'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
95
95
|
'subtotal': json['subtotal'],
|
|
96
96
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
97
97
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
@@ -126,7 +126,7 @@ function FrontendOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
126
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
127
127
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
128
128
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
129
|
-
'coupons': (value['coupons'].map(
|
|
129
|
+
'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
130
130
|
'subtotal': value['subtotal'],
|
|
131
131
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
132
132
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
@@ -39,19 +39,19 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,7 +29,9 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
37
|
return false;
|
|
@@ -50,9 +52,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'id': json['id'],
|
|
51
53
|
'orderId': json['orderId'],
|
|
52
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
|
-
'trackingNumber': json['trackingNumber']
|
|
54
|
-
'trackingUrl': json['trackingUrl'],
|
|
55
|
-
'trackingCompany': json['trackingCompany']
|
|
55
|
+
'trackingNumber': json['trackingNumber'],
|
|
56
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
57
|
+
'trackingCompany': json['trackingCompany'],
|
|
56
58
|
'docnum': json['docnum'],
|
|
57
59
|
'netsuiteId': json['netsuiteId'],
|
|
58
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -27,18 +27,6 @@ export interface OrderStatusWithCountResource {
|
|
|
27
27
|
* @memberof OrderStatusWithCountResource
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof OrderStatusWithCountResource
|
|
34
|
-
*/
|
|
35
|
-
shortName: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof OrderStatusWithCountResource
|
|
40
|
-
*/
|
|
41
|
-
displayOrder: number;
|
|
42
30
|
/**
|
|
43
31
|
*
|
|
44
32
|
* @type {boolean}
|
|
@@ -26,10 +26,6 @@ function instanceOfOrderStatusWithCountResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('shortName' in value) || value['shortName'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
if (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined)
|
|
34
30
|
return false;
|
|
35
31
|
if (!('ordersCount' in value) || value['ordersCount'] === undefined)
|
|
@@ -46,8 +42,6 @@ function OrderStatusWithCountResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
42
|
return {
|
|
47
43
|
'id': json['id'],
|
|
48
44
|
'name': json['name'],
|
|
49
|
-
'shortName': json['shortName'],
|
|
50
|
-
'displayOrder': json['displayOrder'],
|
|
51
45
|
'isOrderNetsuiteSyncable': json['isOrderNetsuiteSyncable'],
|
|
52
46
|
'ordersCount': json['ordersCount'],
|
|
53
47
|
};
|
|
@@ -63,8 +57,6 @@ function OrderStatusWithCountResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
57
|
return {
|
|
64
58
|
'id': value['id'],
|
|
65
59
|
'name': value['name'],
|
|
66
|
-
'shortName': value['shortName'],
|
|
67
|
-
'displayOrder': value['displayOrder'],
|
|
68
60
|
'isOrderNetsuiteSyncable': value['isOrderNetsuiteSyncable'],
|
|
69
61
|
'ordersCount': value['ordersCount'],
|
|
70
62
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { CouponListResource } from './CouponListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCouponListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCouponListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CouponListResource>}
|
|
23
|
+
* @memberof PaginatedCouponListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CouponListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCouponListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCouponListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCouponListResourceResponse(value: object): value is PaginatedCouponListResourceResponse;
|
|
37
|
+
export declare function PaginatedCouponListResourceResponseFromJSON(json: any): PaginatedCouponListResourceResponse;
|
|
38
|
+
export declare function PaginatedCouponListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCouponListResourceResponse;
|
|
39
|
+
export declare function PaginatedCouponListResourceResponseToJSON(json: any): PaginatedCouponListResourceResponse;
|
|
40
|
+
export declare function PaginatedCouponListResourceResponseToJSONTyped(value?: PaginatedCouponListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|