@digital8/lighting-illusions-ts-sdk 0.0.2525 → 0.0.2526
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 +10 -15
- package/README.md +2 -2
- package/dist/apis/AuspostApi.d.ts +29 -0
- package/dist/apis/AuspostApi.js +125 -0
- package/dist/apis/CartsApi.d.ts +11 -0
- package/dist/apis/CartsApi.js +46 -0
- package/dist/apis/OrdersApi.d.ts +11 -0
- package/dist/apis/OrdersApi.js +46 -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 +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/CustomerOrderTab.d.ts +26 -0
- package/dist/models/CustomerOrderTab.js +52 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- package/dist/models/FrontendOrderFulfillmentResource.d.ts +62 -0
- package/dist/models/FrontendOrderFulfillmentResource.js +71 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderListResource.d.ts +70 -0
- package/dist/models/FrontendOrderListResource.js +77 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +13 -0
- package/dist/models/FrontendOrderResource.js +9 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -6
- package/dist/models/PaginatedFrontendOrderListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFrontendOrderListResourceResponse.js +57 -0
- package/dist/models/PaymentTotalsResource.d.ts +6 -0
- package/dist/models/PaymentTotalsResource.js +4 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
- package/dist/models/ProductCategoryLiteResource.js +0 -4
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/SuburbValidationResource.d.ts +32 -0
- package/dist/models/SuburbValidationResource.js +51 -0
- package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
- package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
- package/dist/models/ValidateSuburbRequest.d.ts +50 -0
- package/dist/models/ValidateSuburbRequest.js +63 -0
- package/dist/models/index.d.ts +9 -14
- package/dist/models/index.js +9 -14
- package/package.json +1 -1
- package/src/apis/AuspostApi.ts +69 -0
- package/src/apis/CartsApi.ts +41 -0
- package/src/apis/OrdersApi.ts +41 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/CartResource.ts +9 -0
- package/src/models/CustomerOrderTab.ts +54 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -9
- package/src/models/FrontendOrderFulfillmentResource.ts +111 -0
- package/src/models/FrontendOrderFulfillmentResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderListResource.ts +135 -0
- package/src/models/FrontendOrderListResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +25 -0
- package/src/models/OrderFulfillmentResource.ts +4 -6
- package/src/models/PaginatedFrontendOrderListResourceResponse.ts +90 -0
- package/src/models/PaymentTotalsResource.ts +9 -0
- package/src/models/ProductCategoryLiteResource.ts +0 -9
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +4 -6
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/SuburbValidationResource.ts +66 -0
- package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
- package/src/models/ValidateSuburbRequest.ts +93 -0
- package/src/models/index.ts +9 -14
- package/dist/apis/CouponsApi.d.ts +0 -85
- package/dist/apis/CouponsApi.js +0 -355
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -91
- 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 -135
- 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 -126
- package/dist/models/CreateCouponRequest.js +0 -107
- 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 -120
- package/dist/models/UpdateCouponRequest.js +0 -103
- package/src/apis/CouponsApi.ts +0 -286
- 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 -207
- 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 -198
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
AddressResourceToJSON,
|
|
42
42
|
AddressResourceToJSONTyped,
|
|
43
43
|
} from './AddressResource';
|
|
44
|
+
import type { FrontendOrderFulfillmentResource } from './FrontendOrderFulfillmentResource';
|
|
45
|
+
import {
|
|
46
|
+
FrontendOrderFulfillmentResourceFromJSON,
|
|
47
|
+
FrontendOrderFulfillmentResourceFromJSONTyped,
|
|
48
|
+
FrontendOrderFulfillmentResourceToJSON,
|
|
49
|
+
FrontendOrderFulfillmentResourceToJSONTyped,
|
|
50
|
+
} from './FrontendOrderFulfillmentResource';
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
@@ -126,6 +133,12 @@ export interface FrontendOrderResource {
|
|
|
126
133
|
* @memberof FrontendOrderResource
|
|
127
134
|
*/
|
|
128
135
|
lineItems: Array<FrontendLineItemResource> | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {Array<FrontendOrderFulfillmentResource>}
|
|
139
|
+
* @memberof FrontendOrderResource
|
|
140
|
+
*/
|
|
141
|
+
fulfillments: Array<FrontendOrderFulfillmentResource> | null;
|
|
129
142
|
/**
|
|
130
143
|
*
|
|
131
144
|
* @type {Array<FrontendCartResourceCouponsInner>}
|
|
@@ -186,6 +199,12 @@ export interface FrontendOrderResource {
|
|
|
186
199
|
* @memberof FrontendOrderResource
|
|
187
200
|
*/
|
|
188
201
|
amountPaid: number;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {number}
|
|
205
|
+
* @memberof FrontendOrderResource
|
|
206
|
+
*/
|
|
207
|
+
surchargePaid: number;
|
|
189
208
|
/**
|
|
190
209
|
*
|
|
191
210
|
* @type {number}
|
|
@@ -208,6 +227,7 @@ export function instanceOfFrontendOrderResource(value: object): value is Fronten
|
|
|
208
227
|
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
209
228
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
210
229
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
230
|
+
if (!('fulfillments' in value) || value['fulfillments'] === undefined) return false;
|
|
211
231
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
212
232
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
213
233
|
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
|
|
@@ -218,6 +238,7 @@ export function instanceOfFrontendOrderResource(value: object): value is Fronten
|
|
|
218
238
|
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
219
239
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
220
240
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
241
|
+
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
221
242
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
222
243
|
return true;
|
|
223
244
|
}
|
|
@@ -245,6 +266,7 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
245
266
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
246
267
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
247
268
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
269
|
+
'fulfillments': (json['fulfillments'] == null ? null : (json['fulfillments'] as Array<any>).map(FrontendOrderFulfillmentResourceFromJSON)),
|
|
248
270
|
'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
|
|
249
271
|
'subtotal': json['subtotal'],
|
|
250
272
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -255,6 +277,7 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
255
277
|
'gst': json['gst'],
|
|
256
278
|
'grandTotal': json['grandTotal'],
|
|
257
279
|
'amountPaid': json['amountPaid'],
|
|
280
|
+
'surchargePaid': json['surchargePaid'],
|
|
258
281
|
'amountDue': json['amountDue'],
|
|
259
282
|
};
|
|
260
283
|
}
|
|
@@ -283,6 +306,7 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
283
306
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
284
307
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
285
308
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
|
|
309
|
+
'fulfillments': (value['fulfillments'] == null ? null : (value['fulfillments'] as Array<any>).map(FrontendOrderFulfillmentResourceToJSON)),
|
|
286
310
|
'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
|
|
287
311
|
'subtotal': value['subtotal'],
|
|
288
312
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -293,6 +317,7 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
293
317
|
'gst': value['gst'],
|
|
294
318
|
'grandTotal': value['grandTotal'],
|
|
295
319
|
'amountPaid': value['amountPaid'],
|
|
320
|
+
'surchargePaid': value['surchargePaid'],
|
|
296
321
|
'amountDue': value['amountDue'],
|
|
297
322
|
};
|
|
298
323
|
}
|
|
@@ -56,13 +56,13 @@ export interface OrderFulfillmentResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany?: string | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,8 +102,6 @@ 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;
|
|
106
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
105
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
106
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
107
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -124,8 +122,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
124
122
|
'orderId': json['orderId'],
|
|
125
123
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
124
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl'],
|
|
128
|
-
'trackingCompany': json['trackingCompany'],
|
|
125
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
126
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
129
127
|
'docnum': json['docnum'],
|
|
130
128
|
'netsuiteId': json['netsuiteId'],
|
|
131
129
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -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 { FrontendOrderListResource } from './FrontendOrderListResource';
|
|
17
|
+
import {
|
|
18
|
+
FrontendOrderListResourceFromJSON,
|
|
19
|
+
FrontendOrderListResourceFromJSONTyped,
|
|
20
|
+
FrontendOrderListResourceToJSON,
|
|
21
|
+
FrontendOrderListResourceToJSONTyped,
|
|
22
|
+
} from './FrontendOrderListResource';
|
|
23
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
+
import {
|
|
25
|
+
PagingMetadataFromJSON,
|
|
26
|
+
PagingMetadataFromJSONTyped,
|
|
27
|
+
PagingMetadataToJSON,
|
|
28
|
+
PagingMetadataToJSONTyped,
|
|
29
|
+
} from './PagingMetadata';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedFrontendOrderListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedFrontendOrderListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<FrontendOrderListResource>}
|
|
40
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<FrontendOrderListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedFrontendOrderListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedFrontendOrderListResourceResponse(value: object): value is PaginatedFrontendOrderListResourceResponse {
|
|
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 PaginatedFrontendOrderListResourceResponseFromJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
61
|
+
return PaginatedFrontendOrderListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedFrontendOrderListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFrontendOrderListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(FrontendOrderListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedFrontendOrderListResourceResponseToJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
76
|
+
return PaginatedFrontendOrderListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedFrontendOrderListResourceResponseToJSONTyped(value?: PaginatedFrontendOrderListResourceResponse | 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(FrontendOrderListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -67,6 +67,12 @@ export interface PaymentTotalsResource {
|
|
|
67
67
|
* @memberof PaymentTotalsResource
|
|
68
68
|
*/
|
|
69
69
|
amountPaid: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof PaymentTotalsResource
|
|
74
|
+
*/
|
|
75
|
+
surchargePaid: number;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {number}
|
|
@@ -135,6 +141,7 @@ export function instanceOfPaymentTotalsResource(value: object): value is Payment
|
|
|
135
141
|
if (!('gstAmount' in value) || value['gstAmount'] === undefined) return false;
|
|
136
142
|
if (!('finalTotal' in value) || value['finalTotal'] === undefined) return false;
|
|
137
143
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
144
|
+
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
138
145
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
139
146
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined) return false;
|
|
140
147
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined) return false;
|
|
@@ -164,6 +171,7 @@ export function PaymentTotalsResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
164
171
|
'gstAmount': json['gstAmount'],
|
|
165
172
|
'finalTotal': json['finalTotal'],
|
|
166
173
|
'amountPaid': json['amountPaid'],
|
|
174
|
+
'surchargePaid': json['surchargePaid'],
|
|
167
175
|
'amountDue': json['amountDue'],
|
|
168
176
|
'appliedCoupons': json['appliedCoupons'],
|
|
169
177
|
'noOfItems': json['noOfItems'],
|
|
@@ -195,6 +203,7 @@ export function PaymentTotalsResourceToJSONTyped(value?: PaymentTotalsResource |
|
|
|
195
203
|
'gstAmount': value['gstAmount'],
|
|
196
204
|
'finalTotal': value['finalTotal'],
|
|
197
205
|
'amountPaid': value['amountPaid'],
|
|
206
|
+
'surchargePaid': value['surchargePaid'],
|
|
198
207
|
'amountDue': value['amountDue'],
|
|
199
208
|
'appliedCoupons': value['appliedCoupons'],
|
|
200
209
|
'noOfItems': value['noOfItems'],
|
|
@@ -43,12 +43,6 @@ export interface ProductCategoryLiteResource {
|
|
|
43
43
|
* @memberof ProductCategoryLiteResource
|
|
44
44
|
*/
|
|
45
45
|
isAutomated: boolean;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof ProductCategoryLiteResource
|
|
50
|
-
*/
|
|
51
|
-
isParent: boolean;
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
/**
|
|
@@ -58,7 +52,6 @@ export function instanceOfProductCategoryLiteResource(value: object): value is P
|
|
|
58
52
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
53
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
60
54
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
61
|
-
if (!('isParent' in value) || value['isParent'] === undefined) return false;
|
|
62
55
|
return true;
|
|
63
56
|
}
|
|
64
57
|
|
|
@@ -76,7 +69,6 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
76
69
|
'name': json['name'],
|
|
77
70
|
'siteId': json['siteId'],
|
|
78
71
|
'isAutomated': json['isAutomated'],
|
|
79
|
-
'isParent': json['isParent'],
|
|
80
72
|
};
|
|
81
73
|
}
|
|
82
74
|
|
|
@@ -95,7 +87,6 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
|
|
|
95
87
|
'name': value['name'],
|
|
96
88
|
'siteId': value['siteId'],
|
|
97
89
|
'isAutomated': value['isAutomated'],
|
|
98
|
-
'isParent': value['isParent'],
|
|
99
90
|
};
|
|
100
91
|
}
|
|
101
92
|
|
|
@@ -58,12 +58,6 @@ export interface ProductChildListResource {
|
|
|
58
58
|
* @memberof ProductChildListResource
|
|
59
59
|
*/
|
|
60
60
|
name: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof ProductChildListResource
|
|
65
|
-
*/
|
|
66
|
-
fullName: string;
|
|
67
61
|
/**
|
|
68
62
|
*
|
|
69
63
|
* @type {string}
|
|
@@ -121,7 +115,6 @@ export function instanceOfProductChildListResource(value: object): value is Prod
|
|
|
121
115
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
122
116
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
123
117
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
124
|
-
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
125
118
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
126
119
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
127
120
|
if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined) return false;
|
|
@@ -145,7 +138,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
145
138
|
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
146
139
|
'sku': json['sku'],
|
|
147
140
|
'name': json['name'],
|
|
148
|
-
'fullName': json['fullName'],
|
|
149
141
|
'model': json['model'],
|
|
150
142
|
'stock': json['stock'],
|
|
151
143
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
@@ -172,7 +164,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
172
164
|
'parentId': value['parentId'],
|
|
173
165
|
'sku': value['sku'],
|
|
174
166
|
'name': value['name'],
|
|
175
|
-
'fullName': value['fullName'],
|
|
176
167
|
'model': value['model'],
|
|
177
168
|
'stock': value['stock'],
|
|
178
169
|
'isDisabled': value['isDisabled'],
|
|
@@ -121,12 +121,6 @@ export interface SearchCartsRequest {
|
|
|
121
121
|
* @memberof SearchCartsRequest
|
|
122
122
|
*/
|
|
123
123
|
includesRelations?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {number}
|
|
127
|
-
* @memberof SearchCartsRequest
|
|
128
|
-
*/
|
|
129
|
-
couponId?: number | null;
|
|
130
124
|
}
|
|
131
125
|
|
|
132
126
|
|
|
@@ -185,7 +179,6 @@ export function SearchCartsRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
185
179
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
186
180
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
187
181
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
188
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
189
182
|
};
|
|
190
183
|
}
|
|
191
184
|
|
|
@@ -217,7 +210,6 @@ export function SearchCartsRequestToJSONTyped(value?: SearchCartsRequest | null,
|
|
|
217
210
|
'related_id': value['relatedId'],
|
|
218
211
|
'related_type': value['relatedType'],
|
|
219
212
|
'includes_relations': value['includesRelations'],
|
|
220
|
-
'coupon_id': value['couponId'],
|
|
221
213
|
};
|
|
222
214
|
}
|
|
223
215
|
|
|
@@ -133,12 +133,6 @@ export interface SearchOrdersRequest {
|
|
|
133
133
|
* @memberof SearchOrdersRequest
|
|
134
134
|
*/
|
|
135
135
|
includesRelations?: boolean;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof SearchOrdersRequest
|
|
140
|
-
*/
|
|
141
|
-
couponId?: number | null;
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
|
|
@@ -200,7 +194,6 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
200
194
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
201
195
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
202
196
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
203
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
204
197
|
};
|
|
205
198
|
}
|
|
206
199
|
|
|
@@ -234,7 +227,6 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
|
|
|
234
227
|
'related_id': value['relatedId'],
|
|
235
228
|
'related_type': value['relatedType'],
|
|
236
229
|
'includes_relations': value['includesRelations'],
|
|
237
|
-
'coupon_id': value['couponId'],
|
|
238
230
|
};
|
|
239
231
|
}
|
|
240
232
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine?: string | null;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,11 +106,9 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
112
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
115
113
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
116
114
|
return true;
|
|
@@ -130,12 +128,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
128
|
'siteId': json['siteId'],
|
|
131
129
|
'name': json['name'],
|
|
132
130
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
131
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
132
|
'phone': json['phone'],
|
|
135
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
134
|
'latitude': json['latitude'],
|
|
137
135
|
'longitude': json['longitude'],
|
|
138
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
139
137
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
140
138
|
'specialDates': json['specialDates'],
|
|
141
139
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -110,9 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
114
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
116
|
return true;
|
|
@@ -134,9 +132,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
132
|
'phone': json['phone'],
|
|
135
133
|
'longitude': json['longitude'],
|
|
136
134
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
135
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
136
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
137
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
138
|
'netsuiteId': json['netsuiteId'],
|
|
141
139
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
140
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,66 @@
|
|
|
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 SuburbValidationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface SuburbValidationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SuburbValidationResource
|
|
26
|
+
*/
|
|
27
|
+
found: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource {
|
|
34
|
+
if (!('found' in value) || value['found'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource {
|
|
39
|
+
return SuburbValidationResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'found': json['found'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SuburbValidationResourceToJSON(json: any): SuburbValidationResource {
|
|
53
|
+
return SuburbValidationResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'found': value['found'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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 { SuburbValidationResource } from './SuburbValidationResource';
|
|
17
|
+
import {
|
|
18
|
+
SuburbValidationResourceFromJSON,
|
|
19
|
+
SuburbValidationResourceFromJSONTyped,
|
|
20
|
+
SuburbValidationResourceToJSON,
|
|
21
|
+
SuburbValidationResourceToJSONTyped,
|
|
22
|
+
} from './SuburbValidationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SuburbValidationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SuburbValidationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SuburbValidationResource>}
|
|
33
|
+
* @memberof SuburbValidationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<SuburbValidationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
46
|
+
return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
60
|
+
return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | 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(SuburbValidationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|