@digital8/lighting-illusions-ts-sdk 0.0.2347 → 0.0.2348
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 +14 -34
- package/README.md +9 -24
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +2 -3
- package/dist/models/AdminOrderResource.js +2 -3
- package/dist/models/AppliedCouponResource.d.ts +50 -0
- package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/CreateSupplierRequest.d.ts +6 -0
- package/dist/models/CreateSupplierRequest.js +2 -0
- package/dist/models/FrontendCartResource.d.ts +18 -0
- package/dist/models/FrontendCartResource.js +12 -0
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
- package/dist/models/OrderStatusWithCountResource.js +8 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
- package/dist/models/SearchAllOrdersRequest.js +2 -0
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +6 -6
- package/dist/models/SearchOrdersRequest.js +2 -2
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/SupplierFrontendResource.d.ts +6 -0
- package/dist/models/SupplierFrontendResource.js +4 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +6 -0
- package/dist/models/UpdateSupplierRequest.js +2 -0
- package/dist/models/index.d.ts +6 -16
- package/dist/models/index.js +6 -16
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
- package/docs/{CouponLiteResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +2 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +2 -0
- package/docs/FrontendCartResource.md +6 -0
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/OrderStatusWithCountResource.md +4 -0
- package/docs/{PaginatedCouponListResourceResponse.md → PaginatedProductClassLiteResourceResponse.md} +5 -5
- package/docs/ProductClassApi.md +74 -0
- package/docs/{CouponLiteResource.md → ProductClassLiteResource.md} +6 -6
- package/docs/{CartCouponResourceArrayResponse.md → ProductClassLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllOrdersRequest.md +2 -0
- package/docs/{SearchAllCouponsRequest.md → SearchAllProductClassesRequest.md} +4 -10
- package/docs/SearchCartsRequest.md +0 -2
- package/docs/SearchOrdersRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
- package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/CreateSupplierRequest.ts +8 -0
- package/src/models/FrontendCartResource.ts +27 -0
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderStatusWithCountResource.ts +18 -0
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllOrdersRequest.ts +8 -0
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +8 -8
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/SupplierFrontendResource.ts +9 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +8 -0
- package/src/models/index.ts +6 -16
- package/dist/apis/CouponsApi.d.ts +0 -116
- package/dist/apis/CouponsApi.js +0 -440
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -90
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -134
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -134
- package/dist/models/CreateCouponRequest.js +0 -114
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -128
- package/dist/models/UpdateCouponRequest.js +0 -110
- package/docs/CouponListResource.md +0 -56
- package/docs/CouponListResourceArrayResponse.md +0 -34
- package/docs/CouponResource.md +0 -76
- package/docs/CouponResourceArrayResponse.md +0 -34
- package/docs/CouponType.md +0 -32
- package/docs/CouponsApi.md +0 -407
- package/docs/CreateCouponRequest.md +0 -62
- package/docs/CreateCouponRequestCouponablesInner.md +0 -36
- package/docs/PaginatedCouponResourceResponse.md +0 -36
- package/docs/SearchCouponsRequest.md +0 -62
- package/docs/UpdateCouponRequest.md +0 -60
- package/src/apis/CouponsApi.ts +0 -345
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -216
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -207
|
@@ -59,16 +59,16 @@ export interface CreatePageComponentRequest {
|
|
|
59
59
|
order?: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {string}
|
|
63
63
|
* @memberof CreatePageComponentRequest
|
|
64
64
|
*/
|
|
65
|
-
startDate?:
|
|
65
|
+
startDate?: string | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {string}
|
|
69
69
|
* @memberof CreatePageComponentRequest
|
|
70
70
|
*/
|
|
71
|
-
endDate?:
|
|
71
|
+
endDate?: string | 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 :
|
|
112
|
-
'endDate': json['end_date'] == null ? undefined :
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
112
|
+
'endDate': json['end_date'] == null ? undefined : 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'],
|
|
135
|
+
'end_date': value['endDate'],
|
|
136
136
|
'component_data': value['componentData'],
|
|
137
137
|
'relations': value['relations'] == null ? undefined : ((value['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerToJSON)),
|
|
138
138
|
};
|
|
@@ -68,7 +68,9 @@ export const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
68
68
|
Attribute: 'attribute',
|
|
69
69
|
Tag: 'tag',
|
|
70
70
|
Supplier: 'supplier',
|
|
71
|
-
Label: 'label'
|
|
71
|
+
Label: 'label',
|
|
72
|
+
ProductType: 'product_type',
|
|
73
|
+
ProductClass: 'product_class'
|
|
72
74
|
} as const;
|
|
73
75
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
74
76
|
|
|
@@ -52,6 +52,12 @@ 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;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -121,6 +127,7 @@ export function CreateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
121
127
|
'name': json['name'],
|
|
122
128
|
'slug': json['slug'],
|
|
123
129
|
'supplierEta': json['supplier_eta'],
|
|
130
|
+
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
124
131
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
125
132
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
126
133
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -145,6 +152,7 @@ export function CreateSupplierRequestToJSONTyped(value?: CreateSupplierRequest |
|
|
|
145
152
|
'name': value['name'],
|
|
146
153
|
'slug': value['slug'],
|
|
147
154
|
'supplier_eta': value['supplierEta'],
|
|
155
|
+
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
148
156
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
149
157
|
'alt_text': value['altText'],
|
|
150
158
|
'mime_type': value['mimeType'],
|
|
@@ -120,6 +120,12 @@ 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;
|
|
123
129
|
/**
|
|
124
130
|
*
|
|
125
131
|
* @type {number}
|
|
@@ -150,6 +156,18 @@ export interface FrontendCartResource {
|
|
|
150
156
|
* @memberof FrontendCartResource
|
|
151
157
|
*/
|
|
152
158
|
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;
|
|
153
171
|
/**
|
|
154
172
|
*
|
|
155
173
|
* @type {number}
|
|
@@ -177,11 +195,14 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
177
195
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
178
196
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
179
197
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
198
|
+
if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
|
|
180
199
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
181
200
|
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined) return false;
|
|
182
201
|
if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined) return false;
|
|
183
202
|
if (!('shipping' in value) || value['shipping'] === undefined) return false;
|
|
184
203
|
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;
|
|
185
206
|
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
186
207
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
187
208
|
return true;
|
|
@@ -209,11 +230,14 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
209
230
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
210
231
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
211
232
|
'subtotal': json['subtotal'],
|
|
233
|
+
'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
|
|
212
234
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
213
235
|
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
214
236
|
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
215
237
|
'shipping': json['shipping'],
|
|
216
238
|
'transitInsurance': json['transitInsurance'],
|
|
239
|
+
'deliveryShippingQuote': json['deliveryShippingQuote'],
|
|
240
|
+
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
217
241
|
'gst': json['gst'],
|
|
218
242
|
'grandTotal': json['grandTotal'],
|
|
219
243
|
};
|
|
@@ -242,11 +266,14 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
242
266
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
243
267
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
244
268
|
'subtotal': value['subtotal'],
|
|
269
|
+
'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
|
|
245
270
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
246
271
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
247
272
|
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
248
273
|
'shipping': value['shipping'],
|
|
249
274
|
'transitInsurance': value['transitInsurance'],
|
|
275
|
+
'deliveryShippingQuote': value['deliveryShippingQuote'],
|
|
276
|
+
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
250
277
|
'gst': value['gst'],
|
|
251
278
|
'grandTotal': value['grandTotal'],
|
|
252
279
|
};
|
|
@@ -20,13 +20,6 @@ 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';
|
|
30
23
|
import type { CustomerListResource } from './CustomerListResource';
|
|
31
24
|
import {
|
|
32
25
|
CustomerListResourceFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
CustomerListResourceToJSON,
|
|
35
28
|
CustomerListResourceToJSONTyped,
|
|
36
29
|
} 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<FrontendCartResourceCouponsInner>}
|
|
132
132
|
* @memberof FrontendOrderResource
|
|
133
133
|
*/
|
|
134
|
-
coupons: Array<
|
|
134
|
+
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
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': (
|
|
248
|
+
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
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': (
|
|
286
|
+
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
287
287
|
'subtotal': value['subtotal'],
|
|
288
288
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
289
289
|
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
@@ -56,7 +56,7 @@ export interface OrderFulfillmentResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,6 +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 (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
105
106
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
106
107
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
107
108
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -122,7 +123,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
122
123
|
'orderId': json['orderId'],
|
|
123
124
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
124
125
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
125
|
-
'trackingUrl': json['trackingUrl']
|
|
126
|
+
'trackingUrl': json['trackingUrl'],
|
|
126
127
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
127
128
|
'docnum': json['docnum'],
|
|
128
129
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -31,6 +31,18 @@ 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;
|
|
34
46
|
/**
|
|
35
47
|
*
|
|
36
48
|
* @type {boolean}
|
|
@@ -51,6 +63,8 @@ export interface OrderStatusWithCountResource {
|
|
|
51
63
|
export function instanceOfOrderStatusWithCountResource(value: object): value is OrderStatusWithCountResource {
|
|
52
64
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
65
|
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;
|
|
54
68
|
if (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined) return false;
|
|
55
69
|
if (!('ordersCount' in value) || value['ordersCount'] === undefined) return false;
|
|
56
70
|
return true;
|
|
@@ -68,6 +82,8 @@ export function OrderStatusWithCountResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
68
82
|
|
|
69
83
|
'id': json['id'],
|
|
70
84
|
'name': json['name'],
|
|
85
|
+
'shortName': json['shortName'],
|
|
86
|
+
'displayOrder': json['displayOrder'],
|
|
71
87
|
'isOrderNetsuiteSyncable': json['isOrderNetsuiteSyncable'],
|
|
72
88
|
'ordersCount': json['ordersCount'],
|
|
73
89
|
};
|
|
@@ -86,6 +102,8 @@ export function OrderStatusWithCountResourceToJSONTyped(value?: OrderStatusWithC
|
|
|
86
102
|
|
|
87
103
|
'id': value['id'],
|
|
88
104
|
'name': value['name'],
|
|
105
|
+
'shortName': value['shortName'],
|
|
106
|
+
'displayOrder': value['displayOrder'],
|
|
89
107
|
'isOrderNetsuiteSyncable': value['isOrderNetsuiteSyncable'],
|
|
90
108
|
'ordersCount': value['ordersCount'],
|
|
91
109
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductClassLiteResourceFromJSON,
|
|
26
|
+
ProductClassLiteResourceFromJSONTyped,
|
|
27
|
+
ProductClassLiteResourceToJSON,
|
|
28
|
+
ProductClassLiteResourceToJSONTyped,
|
|
29
|
+
} from './ProductClassLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductClassLiteResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductClassLiteResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductClassLiteResource>}
|
|
40
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductClassLiteResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductClassLiteResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductClassLiteResourceResponse(value: object): value is PaginatedProductClassLiteResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductClassLiteResourceResponseFromJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
61
|
+
return PaginatedProductClassLiteResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductClassLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductClassLiteResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductClassLiteResourceResponseToJSON(json: any): PaginatedProductClassLiteResourceResponse {
|
|
76
|
+
return PaginatedProductClassLiteResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductClassLiteResourceResponseToJSONTyped(value?: PaginatedProductClassLiteResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductClassLiteResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 ProductClassLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductClassLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductClassLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductClassLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductClassLiteResource
|
|
38
|
+
*/
|
|
39
|
+
pathString: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProductClassLiteResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('pathString' in value) || value['pathString'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource {
|
|
52
|
+
return ProductClassLiteResourceFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'pathString': json['pathString'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource {
|
|
68
|
+
return ProductClassLiteResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'pathString': value['pathString'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductClassLiteResourceFromJSON,
|
|
19
|
+
ProductClassLiteResourceFromJSONTyped,
|
|
20
|
+
ProductClassLiteResourceToJSON,
|
|
21
|
+
ProductClassLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductClassLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductClassLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductClassLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductClassLiteResource>}
|
|
33
|
+
* @memberof ProductClassLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductClassLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductClassLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductClassLiteResourceArrayResponse(value: object): value is ProductClassLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductClassLiteResourceArrayResponseFromJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
46
|
+
return ProductClassLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductClassLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductClassLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductClassLiteResourceArrayResponseToJSON(json: any): ProductClassLiteResourceArrayResponse {
|
|
60
|
+
return ProductClassLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductClassLiteResourceArrayResponseToJSONTyped(value?: ProductClassLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductClassLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -79,6 +79,12 @@ export interface SearchAllOrdersRequest {
|
|
|
79
79
|
* @memberof SearchAllOrdersRequest
|
|
80
80
|
*/
|
|
81
81
|
customerId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof SearchAllOrdersRequest
|
|
86
|
+
*/
|
|
87
|
+
lineItemsLabelId?: Array<string>;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
|
|
@@ -131,6 +137,7 @@ export function SearchAllOrdersRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
131
137
|
'source': json['source'] == null ? undefined : json['source'],
|
|
132
138
|
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
133
139
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
140
|
+
'lineItemsLabelId': json['lineItems-label_id'] == null ? undefined : json['lineItems-label_id'],
|
|
134
141
|
};
|
|
135
142
|
}
|
|
136
143
|
|
|
@@ -155,6 +162,7 @@ export function SearchAllOrdersRequestToJSONTyped(value?: SearchAllOrdersRequest
|
|
|
155
162
|
'source': value['source'],
|
|
156
163
|
'status_id': value['statusId'],
|
|
157
164
|
'customer_id': value['customerId'],
|
|
165
|
+
'lineItems-label_id': value['lineItemsLabelId'],
|
|
158
166
|
};
|
|
159
167
|
}
|
|
160
168
|
|