@digital8/lighting-illusions-ts-sdk 0.0.1931 → 0.0.1932
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 +0 -28
- package/README.md +2 -18
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +6 -0
- package/dist/models/StoreCartRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -7
- package/dist/models/UpdateOrderRequestShippingAddress.js +1 -5
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -13
- package/docs/AdminOrderResource.md +2 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CartResource.md +2 -0
- package/docs/StoreCartRequest.md +2 -0
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +2 -0
- package/docs/UpdateOrderRequestBillingAddress.md +0 -2
- package/docs/UpdateOrderRequestShippingAddress.md +0 -2
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +6 -4
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
- package/src/models/UpdateOrderRequestShippingAddress.ts +2 -11
- package/src/models/index.ts +0 -13
- package/dist/apis/TransactionsApi.d.ts +0 -69
- package/dist/apis/TransactionsApi.js +0 -262
- package/dist/models/IndexTransactionRequest.d.ts +0 -127
- package/dist/models/IndexTransactionRequest.js +0 -91
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
- package/dist/models/PaymentMethod.d.ts +0 -30
- package/dist/models/PaymentMethod.js +0 -56
- package/dist/models/PaymentSource.d.ts +0 -26
- package/dist/models/PaymentSource.js +0 -52
- package/dist/models/PaymentStatus.d.ts +0 -25
- package/dist/models/PaymentStatus.js +0 -51
- package/dist/models/RefundTransactionRequest.d.ts +0 -38
- package/dist/models/RefundTransactionRequest.js +0 -53
- package/dist/models/StoreTransactionRequest.d.ts +0 -81
- package/dist/models/StoreTransactionRequest.js +0 -78
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/TransactionResource.d.ts +0 -152
- package/dist/models/TransactionResource.js +0 -109
- package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionResourceArrayResponse.js +0 -50
- package/dist/models/TransactionType.d.ts +0 -25
- package/dist/models/TransactionType.js +0 -51
- package/docs/IndexTransactionRequest.md +0 -60
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/PaginatedTransactionResourceResponse.md +0 -36
- package/docs/PaymentMethod.md +0 -32
- package/docs/PaymentSource.md +0 -32
- package/docs/PaymentStatus.md +0 -32
- package/docs/RefundTransactionRequest.md +0 -36
- package/docs/StoreTransactionRequest.md +0 -46
- package/docs/TransactionListResource.md +0 -74
- package/docs/TransactionListResourceArrayResponse.md +0 -34
- package/docs/TransactionResource.md +0 -74
- package/docs/TransactionResourceArrayResponse.md +0 -34
- package/docs/TransactionType.md +0 -32
- package/docs/TransactionsApi.md +0 -209
- package/src/apis/TransactionsApi.ts +0 -193
- package/src/models/IndexTransactionRequest.ts +0 -190
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
- package/src/models/PaymentMethod.ts +0 -58
- package/src/models/PaymentSource.ts +0 -54
- package/src/models/PaymentStatus.ts +0 -53
- package/src/models/RefundTransactionRequest.ts +0 -74
- package/src/models/StoreTransactionRequest.ts +0 -131
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/TransactionResource.ts +0 -235
- package/src/models/TransactionResourceArrayResponse.ts +0 -73
- package/src/models/TransactionType.ts +0 -53
package/dist/models/index.d.ts
CHANGED
|
@@ -158,7 +158,6 @@ export * from './IndexSiteRequest';
|
|
|
158
158
|
export * from './IndexStoreRequest';
|
|
159
159
|
export * from './IndexSupplierRequest';
|
|
160
160
|
export * from './IndexTagRequest';
|
|
161
|
-
export * from './IndexTransactionRequest';
|
|
162
161
|
export * from './LabelListResource';
|
|
163
162
|
export * from './LabelListResourceArrayResponse';
|
|
164
163
|
export * from './LabelLiteResource';
|
|
@@ -266,12 +265,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
266
265
|
export * from './PaginatedTagListResourceResponse';
|
|
267
266
|
export * from './PaginatedTagLiteResourceResponse';
|
|
268
267
|
export * from './PaginatedTagResourceResponse';
|
|
269
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
270
|
-
export * from './PaginatedTransactionResourceResponse';
|
|
271
268
|
export * from './PagingMetadata';
|
|
272
|
-
export * from './PaymentMethod';
|
|
273
|
-
export * from './PaymentSource';
|
|
274
|
-
export * from './PaymentStatus';
|
|
275
269
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
276
270
|
export * from './PreviewAutomationRulesResource';
|
|
277
271
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -371,7 +365,6 @@ export * from './RedirectFrontendResource';
|
|
|
371
365
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
372
366
|
export * from './RedirectListResource';
|
|
373
367
|
export * from './RedirectListResourceArrayResponse';
|
|
374
|
-
export * from './RefundTransactionRequest';
|
|
375
368
|
export * from './SEOResource';
|
|
376
369
|
export * from './SEOResourceArrayResponse';
|
|
377
370
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -442,7 +435,6 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
442
435
|
export * from './StoreStoreSpecialDateRequest';
|
|
443
436
|
export * from './StoreSupplierRequest';
|
|
444
437
|
export * from './StoreTagRequest';
|
|
445
|
-
export * from './StoreTransactionRequest';
|
|
446
438
|
export * from './SupplierFrontendResource';
|
|
447
439
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
448
440
|
export * from './SupplierListResource';
|
|
@@ -460,11 +452,6 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
460
452
|
export * from './TagResource';
|
|
461
453
|
export * from './TagResourceArrayResponse';
|
|
462
454
|
export * from './TagType';
|
|
463
|
-
export * from './TransactionListResource';
|
|
464
|
-
export * from './TransactionListResourceArrayResponse';
|
|
465
|
-
export * from './TransactionResource';
|
|
466
|
-
export * from './TransactionResourceArrayResponse';
|
|
467
|
-
export * from './TransactionType';
|
|
468
455
|
export * from './UpdateAssetForAssetableRequest';
|
|
469
456
|
export * from './UpdateAttributeRequest';
|
|
470
457
|
export * from './UpdateAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -176,7 +176,6 @@ __exportStar(require("./IndexSiteRequest"), exports);
|
|
|
176
176
|
__exportStar(require("./IndexStoreRequest"), exports);
|
|
177
177
|
__exportStar(require("./IndexSupplierRequest"), exports);
|
|
178
178
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
179
|
-
__exportStar(require("./IndexTransactionRequest"), exports);
|
|
180
179
|
__exportStar(require("./LabelListResource"), exports);
|
|
181
180
|
__exportStar(require("./LabelListResourceArrayResponse"), exports);
|
|
182
181
|
__exportStar(require("./LabelLiteResource"), exports);
|
|
@@ -284,12 +283,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
284
283
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
285
284
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
286
285
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
287
|
-
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
288
|
-
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
289
286
|
__exportStar(require("./PagingMetadata"), exports);
|
|
290
|
-
__exportStar(require("./PaymentMethod"), exports);
|
|
291
|
-
__exportStar(require("./PaymentSource"), exports);
|
|
292
|
-
__exportStar(require("./PaymentStatus"), exports);
|
|
293
287
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
294
288
|
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
295
289
|
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
@@ -389,7 +383,6 @@ __exportStar(require("./RedirectFrontendResource"), exports);
|
|
|
389
383
|
__exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
390
384
|
__exportStar(require("./RedirectListResource"), exports);
|
|
391
385
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
392
|
-
__exportStar(require("./RefundTransactionRequest"), exports);
|
|
393
386
|
__exportStar(require("./SEOResource"), exports);
|
|
394
387
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
395
388
|
__exportStar(require("./SearchLinkablesMenuItemRequest"), exports);
|
|
@@ -460,7 +453,6 @@ __exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
|
460
453
|
__exportStar(require("./StoreStoreSpecialDateRequest"), exports);
|
|
461
454
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
462
455
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
463
|
-
__exportStar(require("./StoreTransactionRequest"), exports);
|
|
464
456
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
465
457
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
466
458
|
__exportStar(require("./SupplierListResource"), exports);
|
|
@@ -478,11 +470,6 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
478
470
|
__exportStar(require("./TagResource"), exports);
|
|
479
471
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
480
472
|
__exportStar(require("./TagType"), exports);
|
|
481
|
-
__exportStar(require("./TransactionListResource"), exports);
|
|
482
|
-
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
483
|
-
__exportStar(require("./TransactionResource"), exports);
|
|
484
|
-
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
485
|
-
__exportStar(require("./TransactionType"), exports);
|
|
486
473
|
__exportStar(require("./UpdateAssetForAssetableRequest"), exports);
|
|
487
474
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
488
475
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`shippingSubtotal` | number
|
|
18
18
|
`overrideShipping` | boolean
|
|
19
19
|
`insuranceAmount` | number
|
|
20
|
+
`includeInsurance` | boolean
|
|
20
21
|
`overrideInsurance` | boolean
|
|
21
22
|
`useAsBillingAddress` | boolean
|
|
22
23
|
`netsuiteId` | string
|
|
@@ -65,6 +66,7 @@ const example = {
|
|
|
65
66
|
"shippingSubtotal": null,
|
|
66
67
|
"overrideShipping": null,
|
|
67
68
|
"insuranceAmount": null,
|
|
69
|
+
"includeInsurance": null,
|
|
68
70
|
"overrideInsurance": null,
|
|
69
71
|
"useAsBillingAddress": null,
|
|
70
72
|
"netsuiteId": null,
|
package/docs/CartListResource.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
+
`includeInsurance` | boolean
|
|
16
17
|
`overrideInsurance` | boolean
|
|
17
18
|
`useAsBillingAddress` | boolean
|
|
18
19
|
`expiryDate` | Date
|
|
@@ -38,6 +39,7 @@ const example = {
|
|
|
38
39
|
"shippingSubtotal": null,
|
|
39
40
|
"overrideShipping": null,
|
|
40
41
|
"insuranceAmount": null,
|
|
42
|
+
"includeInsurance": null,
|
|
41
43
|
"overrideInsurance": null,
|
|
42
44
|
"useAsBillingAddress": null,
|
|
43
45
|
"expiryDate": null,
|
package/docs/CartResource.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type
|
|
|
19
19
|
`shippingSubtotal` | number
|
|
20
20
|
`overrideShipping` | boolean
|
|
21
21
|
`insuranceSubtotal` | string
|
|
22
|
+
`includeInsurance` | boolean
|
|
22
23
|
`overrideInsurance` | boolean
|
|
23
24
|
`useAsBillingAddress` | boolean
|
|
24
25
|
`admin` | object
|
|
@@ -60,6 +61,7 @@ const example = {
|
|
|
60
61
|
"shippingSubtotal": null,
|
|
61
62
|
"overrideShipping": null,
|
|
62
63
|
"insuranceSubtotal": null,
|
|
64
|
+
"includeInsurance": null,
|
|
63
65
|
"overrideInsurance": null,
|
|
64
66
|
"useAsBillingAddress": null,
|
|
65
67
|
"admin": null,
|
package/docs/StoreCartRequest.md
CHANGED
|
@@ -18,6 +18,7 @@ Name | Type
|
|
|
18
18
|
`shippingSubtotal` | number
|
|
19
19
|
`overrideShipping` | boolean
|
|
20
20
|
`insuranceAmount` | number
|
|
21
|
+
`includeInsurance` | boolean
|
|
21
22
|
`overrideInsurance` | boolean
|
|
22
23
|
`useAsBillingAddress` | boolean
|
|
23
24
|
`shippingAddressId` | number
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"shippingSubtotal": null,
|
|
45
46
|
"overrideShipping": null,
|
|
46
47
|
"insuranceAmount": null,
|
|
48
|
+
"includeInsurance": null,
|
|
47
49
|
"overrideInsurance": null,
|
|
48
50
|
"useAsBillingAddress": null,
|
|
49
51
|
"shippingAddressId": null,
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`shippingSubtotal` | number
|
|
15
15
|
`overrideShipping` | boolean
|
|
16
16
|
`insuranceAmount` | number
|
|
17
|
+
`includeInsurance` | boolean
|
|
17
18
|
`overrideInsurance` | boolean
|
|
18
19
|
`useAsBillingAddress` | boolean
|
|
19
20
|
`shippingAddressId` | number
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"shippingSubtotal": null,
|
|
37
38
|
"overrideShipping": null,
|
|
38
39
|
"insuranceAmount": null,
|
|
40
|
+
"includeInsurance": null,
|
|
39
41
|
"overrideInsurance": null,
|
|
40
42
|
"useAsBillingAddress": null,
|
|
41
43
|
"shippingAddressId": null,
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
+
`includeInsurance` | boolean
|
|
16
17
|
`overrideInsurance` | boolean
|
|
17
18
|
`shippingAddress` | [UpdateOrderRequestShippingAddress](UpdateOrderRequestShippingAddress.md)
|
|
18
19
|
`billingAddress` | [UpdateOrderRequestBillingAddress](UpdateOrderRequestBillingAddress.md)
|
|
@@ -31,6 +32,7 @@ const example = {
|
|
|
31
32
|
"shippingSubtotal": null,
|
|
32
33
|
"overrideShipping": null,
|
|
33
34
|
"insuranceAmount": null,
|
|
35
|
+
"includeInsurance": null,
|
|
34
36
|
"overrideInsurance": null,
|
|
35
37
|
"shippingAddress": null,
|
|
36
38
|
"billingAddress": null,
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
|
-
`addressee` | string
|
|
11
10
|
`company` | string
|
|
12
11
|
`line1` | string
|
|
13
12
|
`line2` | string
|
|
@@ -24,7 +23,6 @@ import type { UpdateOrderRequestBillingAddress } from '@digital8/lighting-illusi
|
|
|
24
23
|
// TODO: Update the object below with actual values
|
|
25
24
|
const example = {
|
|
26
25
|
"addresseeName": null,
|
|
27
|
-
"addressee": null,
|
|
28
26
|
"company": null,
|
|
29
27
|
"line1": null,
|
|
30
28
|
"line2": null,
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
|
-
`addressee` | string
|
|
11
10
|
`company` | string
|
|
12
11
|
`line1` | string
|
|
13
12
|
`line2` | string
|
|
@@ -24,7 +23,6 @@ import type { UpdateOrderRequestShippingAddress } from '@digital8/lighting-illus
|
|
|
24
23
|
// TODO: Update the object below with actual values
|
|
25
24
|
const example = {
|
|
26
25
|
"addresseeName": null,
|
|
27
|
-
"addressee": null,
|
|
28
26
|
"company": null,
|
|
29
27
|
"line1": null,
|
|
30
28
|
"line2": null,
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -75,6 +75,7 @@ export interface AddressFrontendResource {
|
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
79
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
80
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
81
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
95
96
|
|
|
96
97
|
'company': json['company'],
|
|
97
98
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2']
|
|
99
|
+
'line2': json['line2'],
|
|
99
100
|
'postcode': json['postcode'],
|
|
100
101
|
'suburb': json['suburb'],
|
|
101
102
|
'country': json['country'],
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -98,7 +98,6 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
101
|
if (!('addressee' in value) || value['addressee'] === undefined) return false;
|
|
103
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
104
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -122,7 +121,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
122
121
|
'id': json['id'] == null ? undefined : json['id'],
|
|
123
122
|
'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
|
|
124
123
|
'addresseeName': json['addressee_name'],
|
|
125
|
-
'company': json['company'],
|
|
124
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
126
125
|
'addressee': json['addressee'],
|
|
127
126
|
'line1': json['line_1'],
|
|
128
127
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -100,6 +100,12 @@ export interface AdminOrderResource {
|
|
|
100
100
|
* @memberof AdminOrderResource
|
|
101
101
|
*/
|
|
102
102
|
insuranceAmount: number;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof AdminOrderResource
|
|
107
|
+
*/
|
|
108
|
+
includeInsurance: boolean;
|
|
103
109
|
/**
|
|
104
110
|
*
|
|
105
111
|
* @type {boolean}
|
|
@@ -285,6 +291,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
285
291
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
286
292
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
287
293
|
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
|
|
294
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
288
295
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
289
296
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
290
297
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
@@ -335,6 +342,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
335
342
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
336
343
|
'overrideShipping': json['override_shipping'],
|
|
337
344
|
'insuranceAmount': json['insurance_amount'],
|
|
345
|
+
'includeInsurance': json['include_insurance'],
|
|
338
346
|
'overrideInsurance': json['override_insurance'],
|
|
339
347
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
340
348
|
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
@@ -389,6 +397,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
389
397
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
390
398
|
'override_shipping': value['overrideShipping'],
|
|
391
399
|
'insurance_amount': value['insuranceAmount'],
|
|
400
|
+
'include_insurance': value['includeInsurance'],
|
|
392
401
|
'override_insurance': value['overrideInsurance'],
|
|
393
402
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
394
403
|
'netsuite_id': value['netsuiteId'],
|
|
@@ -83,6 +83,12 @@ export interface CartListResource {
|
|
|
83
83
|
* @memberof CartListResource
|
|
84
84
|
*/
|
|
85
85
|
insuranceAmount?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof CartListResource
|
|
90
|
+
*/
|
|
91
|
+
includeInsurance: boolean;
|
|
86
92
|
/**
|
|
87
93
|
*
|
|
88
94
|
* @type {boolean}
|
|
@@ -151,6 +157,7 @@ export interface CartListResource {
|
|
|
151
157
|
export function instanceOfCartListResource(value: object): value is CartListResource {
|
|
152
158
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
153
159
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
160
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
154
161
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
155
162
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
156
163
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
@@ -179,6 +186,7 @@ export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
179
186
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
180
187
|
'overrideShipping': json['override_shipping'],
|
|
181
188
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
189
|
+
'includeInsurance': json['include_insurance'],
|
|
182
190
|
'overrideInsurance': json['override_insurance'],
|
|
183
191
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
184
192
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
@@ -210,6 +218,7 @@ export function CartListResourceToJSONTyped(value?: CartListResource | null, ign
|
|
|
210
218
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
211
219
|
'override_shipping': value['overrideShipping'],
|
|
212
220
|
'insurance_amount': value['insuranceAmount'],
|
|
221
|
+
'include_insurance': value['includeInsurance'],
|
|
213
222
|
'override_insurance': value['overrideInsurance'],
|
|
214
223
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
215
224
|
'expiry_date': value['expiryDate'].toISOString(),
|
|
@@ -133,6 +133,12 @@ export interface CartResource {
|
|
|
133
133
|
* @memberof CartResource
|
|
134
134
|
*/
|
|
135
135
|
insuranceSubtotal?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {boolean}
|
|
139
|
+
* @memberof CartResource
|
|
140
|
+
*/
|
|
141
|
+
includeInsurance: boolean;
|
|
136
142
|
/**
|
|
137
143
|
*
|
|
138
144
|
* @type {boolean}
|
|
@@ -263,6 +269,7 @@ export function instanceOfCartResource(value: object): value is CartResource {
|
|
|
263
269
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
264
270
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
265
271
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
272
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
266
273
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
267
274
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
268
275
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
@@ -309,6 +316,7 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
309
316
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
310
317
|
'overrideShipping': json['override_shipping'],
|
|
311
318
|
'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
|
|
319
|
+
'includeInsurance': json['include_insurance'],
|
|
312
320
|
'overrideInsurance': json['override_insurance'],
|
|
313
321
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
314
322
|
'admin': json['admin'],
|
|
@@ -356,6 +364,7 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
356
364
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
357
365
|
'override_shipping': value['overrideShipping'],
|
|
358
366
|
'insurance_subtotal': value['insuranceSubtotal'],
|
|
367
|
+
'include_insurance': value['includeInsurance'],
|
|
359
368
|
'override_insurance': value['overrideInsurance'],
|
|
360
369
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
361
370
|
'admin': value['admin'],
|
|
@@ -113,6 +113,12 @@ export interface StoreCartRequest {
|
|
|
113
113
|
* @memberof StoreCartRequest
|
|
114
114
|
*/
|
|
115
115
|
insuranceAmount?: number | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof StoreCartRequest
|
|
120
|
+
*/
|
|
121
|
+
includeInsurance?: boolean;
|
|
116
122
|
/**
|
|
117
123
|
*
|
|
118
124
|
* @type {boolean}
|
|
@@ -209,6 +215,7 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
209
215
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
210
216
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
211
217
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
218
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
212
219
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
213
220
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
214
221
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -241,6 +248,7 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
|
|
|
241
248
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
242
249
|
'override_shipping': value['overrideShipping'],
|
|
243
250
|
'insurance_amount': value['insuranceAmount'],
|
|
251
|
+
'include_insurance': value['includeInsurance'],
|
|
244
252
|
'override_insurance': value['overrideInsurance'],
|
|
245
253
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
246
254
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -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}
|
|
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
112
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
113
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
114
|
return true;
|
|
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
134
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
135
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
138
|
'specialDates': json['specialDates'],
|
|
140
139
|
'suppliers': json['suppliers'],
|
|
@@ -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 {string}
|
|
@@ -100,7 +100,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
104
103
|
return true;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -122,7 +121,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
122
121
|
'latitude': json['latitude'],
|
|
123
122
|
'tagLine': json['tag_line'],
|
|
124
123
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
124
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
126
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
127
126
|
};
|
|
128
127
|
}
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -137,7 +137,9 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
140
141
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
142
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
141
143
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
142
144
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
143
145
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -160,9 +162,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
160
162
|
'phone': json['phone'],
|
|
161
163
|
'longitude': json['longitude'],
|
|
162
164
|
'latitude': json['latitude'],
|
|
163
|
-
'tagLine': json['tag_line']
|
|
165
|
+
'tagLine': json['tag_line'],
|
|
164
166
|
'email': json['email'],
|
|
165
|
-
'website': json['website']
|
|
167
|
+
'website': json['website'],
|
|
166
168
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
167
169
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
168
170
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -82,6 +82,12 @@ export interface UpdateCartRequest {
|
|
|
82
82
|
* @memberof UpdateCartRequest
|
|
83
83
|
*/
|
|
84
84
|
insuranceAmount?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof UpdateCartRequest
|
|
89
|
+
*/
|
|
90
|
+
includeInsurance?: boolean;
|
|
85
91
|
/**
|
|
86
92
|
*
|
|
87
93
|
* @type {boolean}
|
|
@@ -172,6 +178,7 @@ export function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
172
178
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
173
179
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
174
180
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
181
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
175
182
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
176
183
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
177
184
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -200,6 +207,7 @@ export function UpdateCartRequestToJSONTyped(value?: UpdateCartRequest | null, i
|
|
|
200
207
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
201
208
|
'override_shipping': value['overrideShipping'],
|
|
202
209
|
'insurance_amount': value['insuranceAmount'],
|
|
210
|
+
'include_insurance': value['includeInsurance'],
|
|
203
211
|
'override_insurance': value['overrideInsurance'],
|
|
204
212
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
205
213
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -76,6 +76,12 @@ export interface UpdateOrderRequest {
|
|
|
76
76
|
* @memberof UpdateOrderRequest
|
|
77
77
|
*/
|
|
78
78
|
insuranceAmount?: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof UpdateOrderRequest
|
|
83
|
+
*/
|
|
84
|
+
includeInsurance?: boolean;
|
|
79
85
|
/**
|
|
80
86
|
*
|
|
81
87
|
* @type {boolean}
|
|
@@ -151,6 +157,7 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
151
157
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
152
158
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
153
159
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
160
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
154
161
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
155
162
|
'shippingAddress': json['shipping_address'] == null ? undefined : UpdateOrderRequestShippingAddressFromJSON(json['shipping_address']),
|
|
156
163
|
'billingAddress': UpdateOrderRequestBillingAddressFromJSON(json['billing_address']),
|
|
@@ -175,6 +182,7 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
|
|
|
175
182
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
176
183
|
'override_shipping': value['overrideShipping'],
|
|
177
184
|
'insurance_amount': value['insuranceAmount'],
|
|
185
|
+
'include_insurance': value['includeInsurance'],
|
|
178
186
|
'override_insurance': value['overrideInsurance'],
|
|
179
187
|
'shipping_address': UpdateOrderRequestShippingAddressToJSON(value['shippingAddress']),
|
|
180
188
|
'billing_address': UpdateOrderRequestBillingAddressToJSON(value['billingAddress']),
|
|
@@ -25,12 +25,6 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
25
25
|
* @memberof UpdateOrderRequestBillingAddress
|
|
26
26
|
*/
|
|
27
27
|
addresseeName: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateOrderRequestBillingAddress
|
|
32
|
-
*/
|
|
33
|
-
addressee?: string | null;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -94,7 +88,6 @@ export function UpdateOrderRequestBillingAddressFromJSONTyped(json: any, ignoreD
|
|
|
94
88
|
return {
|
|
95
89
|
|
|
96
90
|
'addresseeName': json['addressee_name'],
|
|
97
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
98
91
|
'company': json['company'] == null ? undefined : json['company'],
|
|
99
92
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
100
93
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -117,7 +110,6 @@ export function UpdateOrderRequestBillingAddressToJSONTyped(value?: UpdateOrderR
|
|
|
117
110
|
return {
|
|
118
111
|
|
|
119
112
|
'addressee_name': value['addresseeName'],
|
|
120
|
-
'addressee': value['addressee'],
|
|
121
113
|
'company': value['company'],
|
|
122
114
|
'line_1': value['line1'],
|
|
123
115
|
'line_2': value['line2'],
|