@digital8/lighting-illusions-ts-sdk 0.0.2340 → 0.0.2342
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 +36 -14
- package/README.md +25 -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 +1 -1
- package/dist/models/AddressResource.js +1 -3
- 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 +169 -0
- package/dist/models/CouponResource.js +138 -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 +3 -1
- 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 +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- 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/PaginatedCouponLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponLiteResourceResponse.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/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.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 +17 -6
- package/dist/models/index.js +17 -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 +78 -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/PaginatedCouponLiteResourceResponse.md +36 -0
- 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/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 +2 -3
- 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 +297 -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 +3 -2
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/OrderStatusWithCountResource.ts +0 -18
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponLiteResourceResponse.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/StoreListResource.ts +2 -3
- 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 +17 -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,216 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
17
|
+
import {
|
|
18
|
+
CreateCouponRequestCouponablesInnerFromJSON,
|
|
19
|
+
CreateCouponRequestCouponablesInnerFromJSONTyped,
|
|
20
|
+
CreateCouponRequestCouponablesInnerToJSON,
|
|
21
|
+
CreateCouponRequestCouponablesInnerToJSONTyped,
|
|
22
|
+
} from './CreateCouponRequestCouponablesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateCouponRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateCouponRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateCouponRequest
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateCouponRequest
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateCouponRequest
|
|
46
|
+
*/
|
|
47
|
+
code: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CreateCouponRequestTypeEnum}
|
|
51
|
+
* @memberof CreateCouponRequest
|
|
52
|
+
*/
|
|
53
|
+
type: CreateCouponRequestTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {CreateCouponRequestDiscountTypeEnum}
|
|
57
|
+
* @memberof CreateCouponRequest
|
|
58
|
+
*/
|
|
59
|
+
discountType: CreateCouponRequestDiscountTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateCouponRequest
|
|
64
|
+
*/
|
|
65
|
+
discountAmount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CreateCouponRequest
|
|
70
|
+
*/
|
|
71
|
+
minAmount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CreateCouponRequest
|
|
76
|
+
*/
|
|
77
|
+
minProducts: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof CreateCouponRequest
|
|
82
|
+
*/
|
|
83
|
+
totalUseLimit: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof CreateCouponRequest
|
|
88
|
+
*/
|
|
89
|
+
customerUseLimit: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CreateCouponRequest
|
|
94
|
+
*/
|
|
95
|
+
startDate?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CreateCouponRequest
|
|
100
|
+
*/
|
|
101
|
+
endDate?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof CreateCouponRequest
|
|
106
|
+
*/
|
|
107
|
+
isForAllProducts?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof CreateCouponRequest
|
|
112
|
+
*/
|
|
113
|
+
isForAllCustomers?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
117
|
+
* @memberof CreateCouponRequest
|
|
118
|
+
*/
|
|
119
|
+
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const CreateCouponRequestTypeEnum = {
|
|
127
|
+
Subtotal: 'subtotal',
|
|
128
|
+
Product: 'product',
|
|
129
|
+
Shipping: 'shipping'
|
|
130
|
+
} as const;
|
|
131
|
+
export type CreateCouponRequestTypeEnum = typeof CreateCouponRequestTypeEnum[keyof typeof CreateCouponRequestTypeEnum];
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
export const CreateCouponRequestDiscountTypeEnum = {
|
|
137
|
+
Dollar: '$',
|
|
138
|
+
Percent: '%'
|
|
139
|
+
} as const;
|
|
140
|
+
export type CreateCouponRequestDiscountTypeEnum = typeof CreateCouponRequestDiscountTypeEnum[keyof typeof CreateCouponRequestDiscountTypeEnum];
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Check if a given object implements the CreateCouponRequest interface.
|
|
145
|
+
*/
|
|
146
|
+
export function instanceOfCreateCouponRequest(value: object): value is CreateCouponRequest {
|
|
147
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
148
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
149
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
150
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
151
|
+
if (!('discountType' in value) || value['discountType'] === undefined) return false;
|
|
152
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
|
|
153
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
154
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
|
|
155
|
+
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined) return false;
|
|
156
|
+
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined) return false;
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function CreateCouponRequestFromJSON(json: any): CreateCouponRequest {
|
|
161
|
+
return CreateCouponRequestFromJSONTyped(json, false);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function CreateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCouponRequest {
|
|
165
|
+
if (json == null) {
|
|
166
|
+
return json;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'siteId': json['site_id'],
|
|
171
|
+
'name': json['name'],
|
|
172
|
+
'code': json['code'],
|
|
173
|
+
'type': json['type'],
|
|
174
|
+
'discountType': json['discount_type'],
|
|
175
|
+
'discountAmount': json['discount_amount'],
|
|
176
|
+
'minAmount': json['min_amount'],
|
|
177
|
+
'minProducts': json['min_products'],
|
|
178
|
+
'totalUseLimit': json['total_use_limit'],
|
|
179
|
+
'customerUseLimit': json['customer_use_limit'],
|
|
180
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
181
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
182
|
+
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
183
|
+
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
184
|
+
'couponables': json['couponables'] == null ? undefined : ((json['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerFromJSON)),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function CreateCouponRequestToJSON(json: any): CreateCouponRequest {
|
|
189
|
+
return CreateCouponRequestToJSONTyped(json, false);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function CreateCouponRequestToJSONTyped(value?: CreateCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
193
|
+
if (value == null) {
|
|
194
|
+
return value;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
|
|
199
|
+
'site_id': value['siteId'],
|
|
200
|
+
'name': value['name'],
|
|
201
|
+
'code': value['code'],
|
|
202
|
+
'type': value['type'],
|
|
203
|
+
'discount_type': value['discountType'],
|
|
204
|
+
'discount_amount': value['discountAmount'],
|
|
205
|
+
'min_amount': value['minAmount'],
|
|
206
|
+
'min_products': value['minProducts'],
|
|
207
|
+
'total_use_limit': value['totalUseLimit'],
|
|
208
|
+
'customer_use_limit': value['customerUseLimit'],
|
|
209
|
+
'start_date': value['startDate'],
|
|
210
|
+
'end_date': value['endDate'],
|
|
211
|
+
'is_for_all_products': value['isForAllProducts'],
|
|
212
|
+
'is_for_all_customers': value['isForAllCustomers'],
|
|
213
|
+
'couponables': value['couponables'] == null ? undefined : ((value['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerToJSON)),
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateCouponRequestCouponablesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateCouponRequestCouponablesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {CreateCouponRequestCouponablesInnerTypeEnum}
|
|
25
|
+
* @memberof CreateCouponRequestCouponablesInner
|
|
26
|
+
*/
|
|
27
|
+
type?: CreateCouponRequestCouponablesInnerTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CreateCouponRequestCouponablesInner
|
|
32
|
+
*/
|
|
33
|
+
id?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const CreateCouponRequestCouponablesInnerTypeEnum = {
|
|
41
|
+
ProductChild: 'productChild',
|
|
42
|
+
ProductCategory: 'productCategory',
|
|
43
|
+
Supplier: 'supplier',
|
|
44
|
+
Customer: 'customer'
|
|
45
|
+
} as const;
|
|
46
|
+
export type CreateCouponRequestCouponablesInnerTypeEnum = typeof CreateCouponRequestCouponablesInnerTypeEnum[keyof typeof CreateCouponRequestCouponablesInnerTypeEnum];
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CreateCouponRequestCouponablesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCreateCouponRequestCouponablesInner(value: object): value is CreateCouponRequestCouponablesInner {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreateCouponRequestCouponablesInnerFromJSON(json: any): CreateCouponRequestCouponablesInner {
|
|
57
|
+
return CreateCouponRequestCouponablesInnerFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateCouponRequestCouponablesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCouponRequestCouponablesInner {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
67
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CreateCouponRequestCouponablesInnerToJSON(json: any): CreateCouponRequestCouponablesInner {
|
|
72
|
+
return CreateCouponRequestCouponablesInnerToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CreateCouponRequestCouponablesInnerToJSONTyped(value?: CreateCouponRequestCouponablesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'type': value['type'],
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -59,16 +59,16 @@ export interface CreatePageComponentRequest {
|
|
|
59
59
|
order?: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {Date}
|
|
63
63
|
* @memberof CreatePageComponentRequest
|
|
64
64
|
*/
|
|
65
|
-
startDate?:
|
|
65
|
+
startDate?: Date | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {Date}
|
|
69
69
|
* @memberof CreatePageComponentRequest
|
|
70
70
|
*/
|
|
71
|
-
endDate?:
|
|
71
|
+
endDate?: Date | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {object}
|
|
@@ -108,8 +108,8 @@ export function CreatePageComponentRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
108
108
|
'type': json['type'],
|
|
109
109
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
110
110
|
'order': json['order'] == null ? undefined : json['order'],
|
|
111
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
112
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
112
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
113
113
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
114
114
|
'relations': json['relations'] == null ? undefined : ((json['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
115
115
|
};
|
|
@@ -131,8 +131,8 @@ export function CreatePageComponentRequestToJSONTyped(value?: CreatePageComponen
|
|
|
131
131
|
'type': value['type'],
|
|
132
132
|
'disabled': value['disabled'],
|
|
133
133
|
'order': value['order'],
|
|
134
|
-
'start_date': value['startDate'],
|
|
135
|
-
'end_date': value['endDate'],
|
|
134
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
135
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
136
136
|
'component_data': value['componentData'],
|
|
137
137
|
'relations': value['relations'] == null ? undefined : ((value['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerToJSON)),
|
|
138
138
|
};
|
|
@@ -68,9 +68,7 @@ export const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
68
68
|
Attribute: 'attribute',
|
|
69
69
|
Tag: 'tag',
|
|
70
70
|
Supplier: 'supplier',
|
|
71
|
-
Label: 'label'
|
|
72
|
-
ProductType: 'product_type',
|
|
73
|
-
ProductClass: 'product_class'
|
|
71
|
+
Label: 'label'
|
|
74
72
|
} as const;
|
|
75
73
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
76
74
|
|
|
@@ -52,12 +52,6 @@ export interface CreateSupplierRequest {
|
|
|
52
52
|
* @memberof CreateSupplierRequest
|
|
53
53
|
*/
|
|
54
54
|
supplierEta: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof CreateSupplierRequest
|
|
59
|
-
*/
|
|
60
|
-
productEnquiriesOnly?: boolean;
|
|
61
55
|
/**
|
|
62
56
|
*
|
|
63
57
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -127,7 +121,6 @@ export function CreateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
127
121
|
'name': json['name'],
|
|
128
122
|
'slug': json['slug'],
|
|
129
123
|
'supplierEta': json['supplier_eta'],
|
|
130
|
-
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
131
124
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
132
125
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
133
126
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -152,7 +145,6 @@ export function CreateSupplierRequestToJSONTyped(value?: CreateSupplierRequest |
|
|
|
152
145
|
'name': value['name'],
|
|
153
146
|
'slug': value['slug'],
|
|
154
147
|
'supplier_eta': value['supplierEta'],
|
|
155
|
-
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
156
148
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
157
149
|
'alt_text': value['altText'],
|
|
158
150
|
'mime_type': value['mimeType'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -120,12 +120,6 @@ export interface FrontendCartResource {
|
|
|
120
120
|
* @memberof FrontendCartResource
|
|
121
121
|
*/
|
|
122
122
|
subtotal: number;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {number}
|
|
126
|
-
* @memberof FrontendCartResource
|
|
127
|
-
*/
|
|
128
|
-
subtotalAfterDiscounts: number;
|
|
129
123
|
/**
|
|
130
124
|
*
|
|
131
125
|
* @type {number}
|
|
@@ -156,18 +150,6 @@ export interface FrontendCartResource {
|
|
|
156
150
|
* @memberof FrontendCartResource
|
|
157
151
|
*/
|
|
158
152
|
transitInsurance: number;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {number}
|
|
162
|
-
* @memberof FrontendCartResource
|
|
163
|
-
*/
|
|
164
|
-
deliveryShippingQuote: number;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @type {number}
|
|
168
|
-
* @memberof FrontendCartResource
|
|
169
|
-
*/
|
|
170
|
-
transitInsuranceQuote: number;
|
|
171
153
|
/**
|
|
172
154
|
*
|
|
173
155
|
* @type {number}
|
|
@@ -195,14 +177,11 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
195
177
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
196
178
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
197
179
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
198
|
-
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
|
|
199
180
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
200
181
|
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined) return false;
|
|
201
182
|
if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined) return false;
|
|
202
183
|
if (!('shipping' in value) || value['shipping'] === undefined) return false;
|
|
203
184
|
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined) return false;
|
|
204
|
-
if (!('deliveryShippingQuote' in value) || value['deliveryShippingQuote'] === undefined) return false;
|
|
205
|
-
if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined) return false;
|
|
206
185
|
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
207
186
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
208
187
|
return true;
|
|
@@ -230,14 +209,11 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
209
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
231
210
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
232
211
|
'subtotal': json['subtotal'],
|
|
233
|
-
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
234
212
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
235
213
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
236
214
|
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
237
215
|
'shipping': json['shipping'],
|
|
238
216
|
'transitInsurance': json['transitInsurance'],
|
|
239
|
-
'deliveryShippingQuote': json['deliveryShippingQuote'],
|
|
240
|
-
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
241
217
|
'gst': json['gst'],
|
|
242
218
|
'grandTotal': json['grandTotal'],
|
|
243
219
|
};
|
|
@@ -266,14 +242,11 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
266
242
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
267
243
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
268
244
|
'subtotal': value['subtotal'],
|
|
269
|
-
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
270
245
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
271
246
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
272
247
|
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
273
248
|
'shipping': value['shipping'],
|
|
274
249
|
'transitInsurance': value['transitInsurance'],
|
|
275
|
-
'deliveryShippingQuote': value['deliveryShippingQuote'],
|
|
276
|
-
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
277
250
|
'gst': value['gst'],
|
|
278
251
|
'grandTotal': value['grandTotal'],
|
|
279
252
|
};
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
FrontendLineItemResourceToJSON,
|
|
21
21
|
FrontendLineItemResourceToJSONTyped,
|
|
22
22
|
} from './FrontendLineItemResource';
|
|
23
|
+
import type { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
CartCouponLiteResourceFromJSON,
|
|
26
|
+
CartCouponLiteResourceFromJSONTyped,
|
|
27
|
+
CartCouponLiteResourceToJSON,
|
|
28
|
+
CartCouponLiteResourceToJSONTyped,
|
|
29
|
+
} from './CartCouponLiteResource';
|
|
23
30
|
import type { CustomerListResource } from './CustomerListResource';
|
|
24
31
|
import {
|
|
25
32
|
CustomerListResourceFromJSON,
|
|
@@ -27,13 +34,6 @@ import {
|
|
|
27
34
|
CustomerListResourceToJSON,
|
|
28
35
|
CustomerListResourceToJSONTyped,
|
|
29
36
|
} from './CustomerListResource';
|
|
30
|
-
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
31
|
-
import {
|
|
32
|
-
FrontendCartResourceCouponsInnerFromJSON,
|
|
33
|
-
FrontendCartResourceCouponsInnerFromJSONTyped,
|
|
34
|
-
FrontendCartResourceCouponsInnerToJSON,
|
|
35
|
-
FrontendCartResourceCouponsInnerToJSONTyped,
|
|
36
|
-
} from './FrontendCartResourceCouponsInner';
|
|
37
37
|
import type { AddressResource } from './AddressResource';
|
|
38
38
|
import {
|
|
39
39
|
AddressResourceFromJSON,
|
|
@@ -128,10 +128,10 @@ export interface FrontendOrderResource {
|
|
|
128
128
|
lineItems: Array<FrontendLineItemResource> | null;
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
|
-
* @type {Array<
|
|
131
|
+
* @type {Array<CartCouponLiteResource>}
|
|
132
132
|
* @memberof FrontendOrderResource
|
|
133
133
|
*/
|
|
134
|
-
coupons: Array<
|
|
134
|
+
coupons: Array<CartCouponLiteResource> | null;
|
|
135
135
|
/**
|
|
136
136
|
*
|
|
137
137
|
* @type {number}
|
|
@@ -245,7 +245,7 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
245
245
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
246
246
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
247
247
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
248
|
-
'coupons': ((json['coupons'] as Array<any>).map(
|
|
248
|
+
'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponLiteResourceFromJSON)),
|
|
249
249
|
'subtotal': json['subtotal'],
|
|
250
250
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
251
251
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
@@ -283,7 +283,7 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
283
283
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
284
284
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
285
285
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
286
|
-
'coupons': ((value['coupons'] as Array<any>).map(
|
|
286
|
+
'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponLiteResourceToJSON)),
|
|
287
287
|
'subtotal': value['subtotal'],
|
|
288
288
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
289
289
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,7 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('
|
|
105
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
106
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -123,8 +123,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
123
|
'id': json['id'],
|
|
124
124
|
'orderId': json['orderId'],
|
|
125
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber']
|
|
127
|
-
'trackingUrl': json['trackingUrl'],
|
|
126
|
+
'trackingNumber': json['trackingNumber'],
|
|
127
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
128
128
|
'trackingCompany': json['trackingCompany'],
|
|
129
129
|
'docnum': json['docnum'],
|
|
130
130
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -31,18 +31,6 @@ export interface OrderStatusWithCountResource {
|
|
|
31
31
|
* @memberof OrderStatusWithCountResource
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof OrderStatusWithCountResource
|
|
38
|
-
*/
|
|
39
|
-
shortName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof OrderStatusWithCountResource
|
|
44
|
-
*/
|
|
45
|
-
displayOrder: number;
|
|
46
34
|
/**
|
|
47
35
|
*
|
|
48
36
|
* @type {boolean}
|
|
@@ -63,8 +51,6 @@ export interface OrderStatusWithCountResource {
|
|
|
63
51
|
export function instanceOfOrderStatusWithCountResource(value: object): value is OrderStatusWithCountResource {
|
|
64
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
53
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
-
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
67
|
-
if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
|
|
68
54
|
if (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined) return false;
|
|
69
55
|
if (!('ordersCount' in value) || value['ordersCount'] === undefined) return false;
|
|
70
56
|
return true;
|
|
@@ -82,8 +68,6 @@ export function OrderStatusWithCountResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
82
68
|
|
|
83
69
|
'id': json['id'],
|
|
84
70
|
'name': json['name'],
|
|
85
|
-
'shortName': json['shortName'],
|
|
86
|
-
'displayOrder': json['displayOrder'],
|
|
87
71
|
'isOrderNetsuiteSyncable': json['isOrderNetsuiteSyncable'],
|
|
88
72
|
'ordersCount': json['ordersCount'],
|
|
89
73
|
};
|
|
@@ -102,8 +86,6 @@ export function OrderStatusWithCountResourceToJSONTyped(value?: OrderStatusWithC
|
|
|
102
86
|
|
|
103
87
|
'id': value['id'],
|
|
104
88
|
'name': value['name'],
|
|
105
|
-
'shortName': value['shortName'],
|
|
106
|
-
'displayOrder': value['displayOrder'],
|
|
107
89
|
'isOrderNetsuiteSyncable': value['isOrderNetsuiteSyncable'],
|
|
108
90
|
'ordersCount': value['ordersCount'],
|
|
109
91
|
};
|