@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/.openapi-generator/FILES
CHANGED
|
@@ -171,7 +171,6 @@ docs/IndexSiteRequest.md
|
|
|
171
171
|
docs/IndexStoreRequest.md
|
|
172
172
|
docs/IndexSupplierRequest.md
|
|
173
173
|
docs/IndexTagRequest.md
|
|
174
|
-
docs/IndexTransactionRequest.md
|
|
175
174
|
docs/LabelApi.md
|
|
176
175
|
docs/LabelListResource.md
|
|
177
176
|
docs/LabelListResourceArrayResponse.md
|
|
@@ -284,12 +283,7 @@ docs/PaginatedSupplierResourceResponse.md
|
|
|
284
283
|
docs/PaginatedTagListResourceResponse.md
|
|
285
284
|
docs/PaginatedTagLiteResourceResponse.md
|
|
286
285
|
docs/PaginatedTagResourceResponse.md
|
|
287
|
-
docs/PaginatedTransactionListResourceResponse.md
|
|
288
|
-
docs/PaginatedTransactionResourceResponse.md
|
|
289
286
|
docs/PagingMetadata.md
|
|
290
|
-
docs/PaymentMethod.md
|
|
291
|
-
docs/PaymentSource.md
|
|
292
|
-
docs/PaymentStatus.md
|
|
293
287
|
docs/PreviewAutomationRulesProductCategoryRequest.md
|
|
294
288
|
docs/PreviewAutomationRulesResource.md
|
|
295
289
|
docs/PreviewAutomationRulesResourceArrayResponse.md
|
|
@@ -395,7 +389,6 @@ docs/RedirectFrontendResource.md
|
|
|
395
389
|
docs/RedirectFrontendResourceArrayResponse.md
|
|
396
390
|
docs/RedirectListResource.md
|
|
397
391
|
docs/RedirectListResourceArrayResponse.md
|
|
398
|
-
docs/RefundTransactionRequest.md
|
|
399
392
|
docs/SEOResource.md
|
|
400
393
|
docs/SEOResourceArrayResponse.md
|
|
401
394
|
docs/SearchLinkablesMenuItemRequest.md
|
|
@@ -468,7 +461,6 @@ docs/StoreStoreRequestSpecialDatesInner.md
|
|
|
468
461
|
docs/StoreStoreSpecialDateRequest.md
|
|
469
462
|
docs/StoreSupplierRequest.md
|
|
470
463
|
docs/StoreTagRequest.md
|
|
471
|
-
docs/StoreTransactionRequest.md
|
|
472
464
|
docs/SupplierApi.md
|
|
473
465
|
docs/SupplierFrontendResource.md
|
|
474
466
|
docs/SupplierFrontendResourceArrayResponse.md
|
|
@@ -488,12 +480,6 @@ docs/TagLiteResourceArrayResponse.md
|
|
|
488
480
|
docs/TagResource.md
|
|
489
481
|
docs/TagResourceArrayResponse.md
|
|
490
482
|
docs/TagType.md
|
|
491
|
-
docs/TransactionListResource.md
|
|
492
|
-
docs/TransactionListResourceArrayResponse.md
|
|
493
|
-
docs/TransactionResource.md
|
|
494
|
-
docs/TransactionResourceArrayResponse.md
|
|
495
|
-
docs/TransactionType.md
|
|
496
|
-
docs/TransactionsApi.md
|
|
497
483
|
docs/UpdateAssetForAssetableRequest.md
|
|
498
484
|
docs/UpdateAttributeRequest.md
|
|
499
485
|
docs/UpdateAttributeValueRequest.md
|
|
@@ -557,7 +543,6 @@ src/apis/SiteApi.ts
|
|
|
557
543
|
src/apis/StoreApi.ts
|
|
558
544
|
src/apis/SupplierApi.ts
|
|
559
545
|
src/apis/TagApi.ts
|
|
560
|
-
src/apis/TransactionsApi.ts
|
|
561
546
|
src/apis/index.ts
|
|
562
547
|
src/index.ts
|
|
563
548
|
src/models/AddressFrontendResource.ts
|
|
@@ -720,7 +705,6 @@ src/models/IndexSiteRequest.ts
|
|
|
720
705
|
src/models/IndexStoreRequest.ts
|
|
721
706
|
src/models/IndexSupplierRequest.ts
|
|
722
707
|
src/models/IndexTagRequest.ts
|
|
723
|
-
src/models/IndexTransactionRequest.ts
|
|
724
708
|
src/models/LabelListResource.ts
|
|
725
709
|
src/models/LabelListResourceArrayResponse.ts
|
|
726
710
|
src/models/LabelLiteResource.ts
|
|
@@ -828,12 +812,7 @@ src/models/PaginatedSupplierResourceResponse.ts
|
|
|
828
812
|
src/models/PaginatedTagListResourceResponse.ts
|
|
829
813
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
830
814
|
src/models/PaginatedTagResourceResponse.ts
|
|
831
|
-
src/models/PaginatedTransactionListResourceResponse.ts
|
|
832
|
-
src/models/PaginatedTransactionResourceResponse.ts
|
|
833
815
|
src/models/PagingMetadata.ts
|
|
834
|
-
src/models/PaymentMethod.ts
|
|
835
|
-
src/models/PaymentSource.ts
|
|
836
|
-
src/models/PaymentStatus.ts
|
|
837
816
|
src/models/PreviewAutomationRulesProductCategoryRequest.ts
|
|
838
817
|
src/models/PreviewAutomationRulesResource.ts
|
|
839
818
|
src/models/PreviewAutomationRulesResourceArrayResponse.ts
|
|
@@ -933,7 +912,6 @@ src/models/RedirectFrontendResource.ts
|
|
|
933
912
|
src/models/RedirectFrontendResourceArrayResponse.ts
|
|
934
913
|
src/models/RedirectListResource.ts
|
|
935
914
|
src/models/RedirectListResourceArrayResponse.ts
|
|
936
|
-
src/models/RefundTransactionRequest.ts
|
|
937
915
|
src/models/SEOResource.ts
|
|
938
916
|
src/models/SEOResourceArrayResponse.ts
|
|
939
917
|
src/models/SearchLinkablesMenuItemRequest.ts
|
|
@@ -1004,7 +982,6 @@ src/models/StoreStoreRequestSpecialDatesInner.ts
|
|
|
1004
982
|
src/models/StoreStoreSpecialDateRequest.ts
|
|
1005
983
|
src/models/StoreSupplierRequest.ts
|
|
1006
984
|
src/models/StoreTagRequest.ts
|
|
1007
|
-
src/models/StoreTransactionRequest.ts
|
|
1008
985
|
src/models/SupplierFrontendResource.ts
|
|
1009
986
|
src/models/SupplierFrontendResourceArrayResponse.ts
|
|
1010
987
|
src/models/SupplierListResource.ts
|
|
@@ -1022,11 +999,6 @@ src/models/TagLiteResourceArrayResponse.ts
|
|
|
1022
999
|
src/models/TagResource.ts
|
|
1023
1000
|
src/models/TagResourceArrayResponse.ts
|
|
1024
1001
|
src/models/TagType.ts
|
|
1025
|
-
src/models/TransactionListResource.ts
|
|
1026
|
-
src/models/TransactionListResourceArrayResponse.ts
|
|
1027
|
-
src/models/TransactionResource.ts
|
|
1028
|
-
src/models/TransactionResourceArrayResponse.ts
|
|
1029
|
-
src/models/TransactionType.ts
|
|
1030
1002
|
src/models/UpdateAssetForAssetableRequest.ts
|
|
1031
1003
|
src/models/UpdateAttributeRequest.ts
|
|
1032
1004
|
src/models/UpdateAttributeValueRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1932
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -255,9 +255,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
255
255
|
*TagApi* | [**showTag**](docs/TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag
|
|
256
256
|
*TagApi* | [**storeTag**](docs/TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag
|
|
257
257
|
*TagApi* | [**updateTag**](docs/TagApi.md#updatetagoperation) | **PUT** /admin-api/tag/{tag}/update | Auto-generated: updateTag
|
|
258
|
-
*TransactionsApi* | [**indexTransaction**](docs/TransactionsApi.md#indextransactionoperation) | **POST** /admin-api/transactions/list | Auto-generated: indexTransaction
|
|
259
|
-
*TransactionsApi* | [**refundTransaction**](docs/TransactionsApi.md#refundtransactionoperation) | **POST** /admin-api/transactions/{transaction}/refund | Auto-generated: refundTransaction
|
|
260
|
-
*TransactionsApi* | [**storeTransaction**](docs/TransactionsApi.md#storetransactionoperation) | **POST** /admin-api/transactions/create | Auto-generated: storeTransaction
|
|
261
258
|
|
|
262
259
|
|
|
263
260
|
### Models
|
|
@@ -422,7 +419,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
422
419
|
- [IndexStoreRequest](docs/IndexStoreRequest.md)
|
|
423
420
|
- [IndexSupplierRequest](docs/IndexSupplierRequest.md)
|
|
424
421
|
- [IndexTagRequest](docs/IndexTagRequest.md)
|
|
425
|
-
- [IndexTransactionRequest](docs/IndexTransactionRequest.md)
|
|
426
422
|
- [LabelListResource](docs/LabelListResource.md)
|
|
427
423
|
- [LabelListResourceArrayResponse](docs/LabelListResourceArrayResponse.md)
|
|
428
424
|
- [LabelLiteResource](docs/LabelLiteResource.md)
|
|
@@ -530,12 +526,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
530
526
|
- [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
|
|
531
527
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
532
528
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
533
|
-
- [PaginatedTransactionListResourceResponse](docs/PaginatedTransactionListResourceResponse.md)
|
|
534
|
-
- [PaginatedTransactionResourceResponse](docs/PaginatedTransactionResourceResponse.md)
|
|
535
529
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
536
|
-
- [PaymentMethod](docs/PaymentMethod.md)
|
|
537
|
-
- [PaymentSource](docs/PaymentSource.md)
|
|
538
|
-
- [PaymentStatus](docs/PaymentStatus.md)
|
|
539
530
|
- [PreviewAutomationRulesProductCategoryRequest](docs/PreviewAutomationRulesProductCategoryRequest.md)
|
|
540
531
|
- [PreviewAutomationRulesResource](docs/PreviewAutomationRulesResource.md)
|
|
541
532
|
- [PreviewAutomationRulesResourceArrayResponse](docs/PreviewAutomationRulesResourceArrayResponse.md)
|
|
@@ -635,7 +626,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
635
626
|
- [RedirectFrontendResourceArrayResponse](docs/RedirectFrontendResourceArrayResponse.md)
|
|
636
627
|
- [RedirectListResource](docs/RedirectListResource.md)
|
|
637
628
|
- [RedirectListResourceArrayResponse](docs/RedirectListResourceArrayResponse.md)
|
|
638
|
-
- [RefundTransactionRequest](docs/RefundTransactionRequest.md)
|
|
639
629
|
- [SEOResource](docs/SEOResource.md)
|
|
640
630
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
641
631
|
- [SearchLinkablesMenuItemRequest](docs/SearchLinkablesMenuItemRequest.md)
|
|
@@ -706,7 +696,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
706
696
|
- [StoreStoreSpecialDateRequest](docs/StoreStoreSpecialDateRequest.md)
|
|
707
697
|
- [StoreSupplierRequest](docs/StoreSupplierRequest.md)
|
|
708
698
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
709
|
-
- [StoreTransactionRequest](docs/StoreTransactionRequest.md)
|
|
710
699
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
711
700
|
- [SupplierFrontendResourceArrayResponse](docs/SupplierFrontendResourceArrayResponse.md)
|
|
712
701
|
- [SupplierListResource](docs/SupplierListResource.md)
|
|
@@ -724,11 +713,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
724
713
|
- [TagResource](docs/TagResource.md)
|
|
725
714
|
- [TagResourceArrayResponse](docs/TagResourceArrayResponse.md)
|
|
726
715
|
- [TagType](docs/TagType.md)
|
|
727
|
-
- [TransactionListResource](docs/TransactionListResource.md)
|
|
728
|
-
- [TransactionListResourceArrayResponse](docs/TransactionListResourceArrayResponse.md)
|
|
729
|
-
- [TransactionResource](docs/TransactionResource.md)
|
|
730
|
-
- [TransactionResourceArrayResponse](docs/TransactionResourceArrayResponse.md)
|
|
731
|
-
- [TransactionType](docs/TransactionType.md)
|
|
732
716
|
- [UpdateAssetForAssetableRequest](docs/UpdateAssetForAssetableRequest.md)
|
|
733
717
|
- [UpdateAttributeRequest](docs/UpdateAttributeRequest.md)
|
|
734
718
|
- [UpdateAttributeValueRequest](docs/UpdateAttributeValueRequest.md)
|
|
@@ -780,7 +764,7 @@ and is automatically generated by the
|
|
|
780
764
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
781
765
|
|
|
782
766
|
- API version: `1.0.0`
|
|
783
|
-
- Package version: `0.0.
|
|
767
|
+
- Package version: `0.0.1932`
|
|
784
768
|
- Generator version: `7.22.0`
|
|
785
769
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
786
770
|
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -26,6 +26,8 @@ function instanceOfAddressFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'company': json['company'],
|
|
50
52
|
'line1': json['line1'],
|
|
51
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
52
54
|
'postcode': json['postcode'],
|
|
53
55
|
'suburb': json['suburb'],
|
|
54
56
|
'country': json['country'],
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('addressee' in value) || value['addressee'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
@@ -53,7 +51,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
54
52
|
'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
|
|
55
53
|
'addresseeName': json['addressee_name'],
|
|
56
|
-
'company': json['company'],
|
|
54
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
57
55
|
'addressee': json['addressee'],
|
|
58
56
|
'line1': json['line_1'],
|
|
59
57
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -34,6 +34,8 @@ function instanceOfAdminOrderResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -107,6 +109,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
109
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
108
110
|
'overrideShipping': json['override_shipping'],
|
|
109
111
|
'insuranceAmount': json['insurance_amount'],
|
|
112
|
+
'includeInsurance': json['include_insurance'],
|
|
110
113
|
'overrideInsurance': json['override_insurance'],
|
|
111
114
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
112
115
|
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
@@ -158,6 +161,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
158
161
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
159
162
|
'override_shipping': value['overrideShipping'],
|
|
160
163
|
'insurance_amount': value['insuranceAmount'],
|
|
164
|
+
'include_insurance': value['includeInsurance'],
|
|
161
165
|
'override_insurance': value['overrideInsurance'],
|
|
162
166
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
163
167
|
'netsuite_id': value['netsuiteId'],
|
|
@@ -29,6 +29,8 @@ function instanceOfCartListResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -62,6 +64,7 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
63
65
|
'overrideShipping': json['override_shipping'],
|
|
64
66
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
+
'includeInsurance': json['include_insurance'],
|
|
65
68
|
'overrideInsurance': json['override_insurance'],
|
|
66
69
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
67
70
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
@@ -90,6 +93,7 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
90
93
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
91
94
|
'override_shipping': value['overrideShipping'],
|
|
92
95
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
+
'include_insurance': value['includeInsurance'],
|
|
93
97
|
'override_insurance': value['overrideInsurance'],
|
|
94
98
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
95
99
|
'expiry_date': value['expiryDate'].toISOString(),
|
|
@@ -35,6 +35,8 @@ function instanceOfCartResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -98,6 +100,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
98
100
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
99
101
|
'overrideShipping': json['override_shipping'],
|
|
100
102
|
'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
|
|
103
|
+
'includeInsurance': json['include_insurance'],
|
|
101
104
|
'overrideInsurance': json['override_insurance'],
|
|
102
105
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
103
106
|
'admin': json['admin'],
|
|
@@ -142,6 +145,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
142
145
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
143
146
|
'override_shipping': value['overrideShipping'],
|
|
144
147
|
'insurance_subtotal': value['insuranceSubtotal'],
|
|
148
|
+
'include_insurance': value['includeInsurance'],
|
|
145
149
|
'override_insurance': value['overrideInsurance'],
|
|
146
150
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
147
151
|
'admin': value['admin'],
|
|
@@ -73,6 +73,7 @@ function StoreCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
73
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
74
74
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
75
75
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
76
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
76
77
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
77
78
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
78
79
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -102,6 +103,7 @@ function StoreCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
103
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
103
104
|
'override_shipping': value['overrideShipping'],
|
|
104
105
|
'insurance_amount': value['insuranceAmount'],
|
|
106
|
+
'include_insurance': value['includeInsurance'],
|
|
105
107
|
'override_insurance': value['overrideInsurance'],
|
|
106
108
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
107
109
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
58
|
'latitude': json['latitude'],
|
|
61
59
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
62
|
'specialDates': json['specialDates'],
|
|
65
63
|
'suppliers': json['suppliers'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
return true;
|
|
43
41
|
}
|
|
44
42
|
function StoreListResourceFromJSON(json) {
|
|
@@ -57,7 +55,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
55
|
'latitude': json['latitude'],
|
|
58
56
|
'tagLine': json['tag_line'],
|
|
59
57
|
'email': json['email'],
|
|
60
|
-
'website': json['website'],
|
|
58
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
61
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
62
60
|
};
|
|
63
61
|
}
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
@@ -36,8 +36,12 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
41
45
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
42
46
|
return false;
|
|
43
47
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -60,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
64
|
'phone': json['phone'],
|
|
61
65
|
'longitude': json['longitude'],
|
|
62
66
|
'latitude': json['latitude'],
|
|
63
|
-
'tagLine': json['tag_line']
|
|
67
|
+
'tagLine': json['tag_line'],
|
|
64
68
|
'email': json['email'],
|
|
65
|
-
'website': json['website']
|
|
69
|
+
'website': json['website'],
|
|
66
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
67
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
68
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -64,6 +64,7 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
65
65
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
66
66
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
67
68
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
68
69
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
69
70
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -89,6 +90,7 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
90
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
90
91
|
'override_shipping': value['overrideShipping'],
|
|
91
92
|
'insurance_amount': value['insuranceAmount'],
|
|
93
|
+
'include_insurance': value['includeInsurance'],
|
|
92
94
|
'override_insurance': value['overrideInsurance'],
|
|
93
95
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
94
96
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -71,6 +71,7 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
71
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
72
72
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
73
73
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
74
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
74
75
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
75
76
|
'shippingAddress': json['shipping_address'] == null ? undefined : (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
76
77
|
'billingAddress': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressFromJSON)(json['billing_address']),
|
|
@@ -92,6 +93,7 @@ function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
93
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
93
94
|
'override_shipping': value['overrideShipping'],
|
|
94
95
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
+
'include_insurance': value['includeInsurance'],
|
|
95
97
|
'override_insurance': value['overrideInsurance'],
|
|
96
98
|
'shipping_address': (0, UpdateOrderRequestShippingAddress_1.UpdateOrderRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
97
99
|
'billing_address': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressToJSON)(value['billingAddress']),
|
|
@@ -21,12 +21,6 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
21
21
|
* @memberof UpdateOrderRequestBillingAddress
|
|
22
22
|
*/
|
|
23
23
|
addresseeName: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestBillingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -35,7 +35,6 @@ function UpdateOrderRequestBillingAddressFromJSONTyped(json, ignoreDiscriminator
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'addresseeName': json['addressee_name'],
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
39
38
|
'company': json['company'] == null ? undefined : json['company'],
|
|
40
39
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
40
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -55,7 +54,6 @@ function UpdateOrderRequestBillingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
55
54
|
}
|
|
56
55
|
return {
|
|
57
56
|
'addressee_name': value['addresseeName'],
|
|
58
|
-
'addressee': value['addressee'],
|
|
59
57
|
'company': value['company'],
|
|
60
58
|
'line_1': value['line1'],
|
|
61
59
|
'line_2': value['line2'],
|
|
@@ -20,13 +20,7 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateOrderRequestShippingAddress
|
|
22
22
|
*/
|
|
23
|
-
addresseeName
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
23
|
+
addresseeName?: string | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -22,8 +22,6 @@ exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippin
|
|
|
22
22
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
@@ -34,8 +32,7 @@ function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminato
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'addresseeName': json['addressee_name'],
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
35
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
39
36
|
'company': json['company'] == null ? undefined : json['company'],
|
|
40
37
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
38
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -55,7 +52,6 @@ function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator
|
|
|
55
52
|
}
|
|
56
53
|
return {
|
|
57
54
|
'addressee_name': value['addresseeName'],
|
|
58
|
-
'addressee': value['addressee'],
|
|
59
55
|
'company': value['company'],
|
|
60
56
|
'line_1': value['line1'],
|
|
61
57
|
'line_2': value['line2'],
|