@digital8/lighting-illusions-ts-sdk 0.0.1952 → 0.0.1954
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 -2
- package/README.md +2 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -10
- 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/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +9 -3
- package/dist/models/UpdateOrderRequest.js +5 -3
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/AddressResource.md +0 -2
- 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/StoreCartRequestShippingAddress.md +0 -2
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +3 -1
- package/docs/UpdateOrderRequestBillingAddress.md +0 -2
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -15
- 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/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreResource.ts +5 -5
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +18 -10
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
- package/src/models/index.ts +0 -1
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
package/.openapi-generator/FILES
CHANGED
|
@@ -511,7 +511,6 @@ docs/UpdateMenuRequestMenuItemOrderInner.md
|
|
|
511
511
|
docs/UpdateModelAttributeRequest.md
|
|
512
512
|
docs/UpdateOrderRequest.md
|
|
513
513
|
docs/UpdateOrderRequestBillingAddress.md
|
|
514
|
-
docs/UpdateOrderRequestShippingAddress.md
|
|
515
514
|
docs/UpdateOverlayTemplateAssetRequest.md
|
|
516
515
|
docs/UpdateOverlayTemplateRequest.md
|
|
517
516
|
docs/UpdateProductCategoryRequest.md
|
|
@@ -1043,7 +1042,6 @@ src/models/UpdateMenuRequestMenuItemOrderInner.ts
|
|
|
1043
1042
|
src/models/UpdateModelAttributeRequest.ts
|
|
1044
1043
|
src/models/UpdateOrderRequest.ts
|
|
1045
1044
|
src/models/UpdateOrderRequestBillingAddress.ts
|
|
1046
|
-
src/models/UpdateOrderRequestShippingAddress.ts
|
|
1047
1045
|
src/models/UpdateOverlayTemplateAssetRequest.ts
|
|
1048
1046
|
src/models/UpdateOverlayTemplateRequest.ts
|
|
1049
1047
|
src/models/UpdateProductCategoryRequest.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.1954
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -746,7 +746,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
746
746
|
- [UpdateModelAttributeRequest](docs/UpdateModelAttributeRequest.md)
|
|
747
747
|
- [UpdateOrderRequest](docs/UpdateOrderRequest.md)
|
|
748
748
|
- [UpdateOrderRequestBillingAddress](docs/UpdateOrderRequestBillingAddress.md)
|
|
749
|
-
- [UpdateOrderRequestShippingAddress](docs/UpdateOrderRequestShippingAddress.md)
|
|
750
749
|
- [UpdateOverlayTemplateAssetRequest](docs/UpdateOverlayTemplateAssetRequest.md)
|
|
751
750
|
- [UpdateOverlayTemplateRequest](docs/UpdateOverlayTemplateRequest.md)
|
|
752
751
|
- [UpdateProductCategoryRequest](docs/UpdateProductCategoryRequest.md)
|
|
@@ -779,7 +778,7 @@ and is automatically generated by the
|
|
|
779
778
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
780
779
|
|
|
781
780
|
- API version: `1.0.0`
|
|
782
|
-
- Package version: `0.0.
|
|
781
|
+
- Package version: `0.0.1954`
|
|
783
782
|
- Generator version: `7.22.0`
|
|
784
783
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
785
784
|
|
|
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'company': json['company'],
|
|
47
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
50
48
|
'line1': json['line1'],
|
|
51
49
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
50
|
'postcode': json['postcode'],
|
|
@@ -38,13 +38,7 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof AddressResource
|
|
46
|
-
*/
|
|
47
|
-
addressee: string;
|
|
41
|
+
company?: string | null;
|
|
48
42
|
/**
|
|
49
43
|
*
|
|
50
44
|
* @type {string}
|
|
@@ -56,7 +50,7 @@ export interface AddressResource {
|
|
|
56
50
|
* @type {string}
|
|
57
51
|
* @memberof AddressResource
|
|
58
52
|
*/
|
|
59
|
-
line2
|
|
53
|
+
line2?: string | null;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {string}
|
|
@@ -24,14 +24,8 @@ 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
|
-
if (!('addressee' in value) || value['addressee'] === undefined)
|
|
30
|
-
return false;
|
|
31
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
32
28
|
return false;
|
|
33
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
34
|
-
return false;
|
|
35
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
36
30
|
return false;
|
|
37
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -55,10 +49,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
56
50
|
'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
|
|
57
51
|
'addresseeName': json['addressee_name'],
|
|
58
|
-
'company': json['company'],
|
|
59
|
-
'addressee': json['addressee'],
|
|
52
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
60
53
|
'line1': json['line_1'],
|
|
61
|
-
'line2': json['line_2'],
|
|
54
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
62
55
|
'postcode': json['postcode'],
|
|
63
56
|
'suburb': json['suburb'],
|
|
64
57
|
'country': json['country'],
|
|
@@ -79,7 +72,6 @@ function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
72
|
'source_address_id': value['sourceAddressId'],
|
|
80
73
|
'addressee_name': value['addresseeName'],
|
|
81
74
|
'company': value['company'],
|
|
82
|
-
'addressee': value['addressee'],
|
|
83
75
|
'line_1': value['line1'],
|
|
84
76
|
'line_2': value['line2'],
|
|
85
77
|
'postcode': value['postcode'],
|
|
@@ -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'],
|
|
@@ -27,12 +27,6 @@ export interface StoreCartRequestShippingAddress {
|
|
|
27
27
|
* @memberof StoreCartRequestShippingAddress
|
|
28
28
|
*/
|
|
29
29
|
company?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof StoreCartRequestShippingAddress
|
|
34
|
-
*/
|
|
35
|
-
addressee?: string | null;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {string}
|
|
@@ -34,7 +34,6 @@ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator)
|
|
|
34
34
|
return {
|
|
35
35
|
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
36
36
|
'company': json['company'] == null ? undefined : json['company'],
|
|
37
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
38
37
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
39
38
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
40
39
|
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
@@ -54,7 +53,6 @@ function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
54
53
|
return {
|
|
55
54
|
'addressee_name': value['addresseeName'],
|
|
56
55
|
'company': value['company'],
|
|
57
|
-
'addressee': value['addressee'],
|
|
58
56
|
'line_1': value['line1'],
|
|
59
57
|
'line_2': value['line2'],
|
|
60
58
|
'suburb': value['suburb'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
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,10 +36,10 @@ 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;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
43
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
44
44
|
return false;
|
|
45
45
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -62,9 +62,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'phone': json['phone'],
|
|
63
63
|
'longitude': json['longitude'],
|
|
64
64
|
'latitude': json['latitude'],
|
|
65
|
-
'tagLine': json['tag_line'],
|
|
65
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
66
66
|
'email': json['email'],
|
|
67
|
-
'website': json['website']
|
|
67
|
+
'website': json['website'],
|
|
68
68
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
69
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
70
70
|
'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'],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
|
|
13
13
|
import type { UpdateOrderRequestBillingAddress } from './UpdateOrderRequestBillingAddress';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -59,6 +59,12 @@ export interface UpdateOrderRequest {
|
|
|
59
59
|
* @memberof UpdateOrderRequest
|
|
60
60
|
*/
|
|
61
61
|
insuranceAmount?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof UpdateOrderRequest
|
|
66
|
+
*/
|
|
67
|
+
includeInsurance?: boolean;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {boolean}
|
|
@@ -67,10 +73,10 @@ export interface UpdateOrderRequest {
|
|
|
67
73
|
overrideInsurance?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
|
-
* @type {
|
|
76
|
+
* @type {StoreCartRequestShippingAddress}
|
|
71
77
|
* @memberof UpdateOrderRequest
|
|
72
78
|
*/
|
|
73
|
-
shippingAddress?:
|
|
79
|
+
shippingAddress?: StoreCartRequestShippingAddress;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {UpdateOrderRequestBillingAddress}
|
|
@@ -19,7 +19,7 @@ exports.UpdateOrderRequestFromJSON = UpdateOrderRequestFromJSON;
|
|
|
19
19
|
exports.UpdateOrderRequestFromJSONTyped = UpdateOrderRequestFromJSONTyped;
|
|
20
20
|
exports.UpdateOrderRequestToJSON = UpdateOrderRequestToJSON;
|
|
21
21
|
exports.UpdateOrderRequestToJSONTyped = UpdateOrderRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var StoreCartRequestShippingAddress_1 = require("./StoreCartRequestShippingAddress");
|
|
23
23
|
var UpdateOrderRequestBillingAddress_1 = require("./UpdateOrderRequestBillingAddress");
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
@@ -71,8 +71,9 @@ 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
|
-
'shippingAddress': json['shipping_address'] == null ? undefined : (0,
|
|
76
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
76
77
|
'billingAddress': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressFromJSON)(json['billing_address']),
|
|
77
78
|
};
|
|
78
79
|
}
|
|
@@ -92,8 +93,9 @@ 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
|
-
'shipping_address': (0,
|
|
98
|
+
'shipping_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
97
99
|
'billing_address': (0, UpdateOrderRequestBillingAddress_1.UpdateOrderRequestBillingAddressToJSON)(value['billingAddress']),
|
|
98
100
|
};
|
|
99
101
|
}
|
|
@@ -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'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -482,7 +482,6 @@ export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
|
482
482
|
export * from './UpdateModelAttributeRequest';
|
|
483
483
|
export * from './UpdateOrderRequest';
|
|
484
484
|
export * from './UpdateOrderRequestBillingAddress';
|
|
485
|
-
export * from './UpdateOrderRequestShippingAddress';
|
|
486
485
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
487
486
|
export * from './UpdateOverlayTemplateRequest';
|
|
488
487
|
export * from './UpdateProductCategoryRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -500,7 +500,6 @@ __exportStar(require("./UpdateMenuRequestMenuItemOrderInner"), exports);
|
|
|
500
500
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
501
501
|
__exportStar(require("./UpdateOrderRequest"), exports);
|
|
502
502
|
__exportStar(require("./UpdateOrderRequestBillingAddress"), exports);
|
|
503
|
-
__exportStar(require("./UpdateOrderRequestShippingAddress"), exports);
|
|
504
503
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
505
504
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
506
505
|
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`sourceAddressId` | number
|
|
11
11
|
`addresseeName` | string
|
|
12
12
|
`company` | string
|
|
13
|
-
`addressee` | string
|
|
14
13
|
`line1` | string
|
|
15
14
|
`line2` | string
|
|
16
15
|
`postcode` | string
|
|
@@ -30,7 +29,6 @@ const example = {
|
|
|
30
29
|
"sourceAddressId": null,
|
|
31
30
|
"addresseeName": null,
|
|
32
31
|
"company": null,
|
|
33
|
-
"addressee": null,
|
|
34
32
|
"line1": null,
|
|
35
33
|
"line2": null,
|
|
36
34
|
"postcode": null,
|
|
@@ -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,
|
|
@@ -8,7 +8,6 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
10
|
`company` | string
|
|
11
|
-
`addressee` | string
|
|
12
11
|
`line1` | string
|
|
13
12
|
`line2` | string
|
|
14
13
|
`suburb` | string
|
|
@@ -25,7 +24,6 @@ import type { StoreCartRequestShippingAddress } from '@digital8/lighting-illusio
|
|
|
25
24
|
const example = {
|
|
26
25
|
"addresseeName": null,
|
|
27
26
|
"company": null,
|
|
28
|
-
"addressee": null,
|
|
29
27
|
"line1": null,
|
|
30
28
|
"line2": null,
|
|
31
29
|
"suburb": 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,8 +13,9 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
+
`includeInsurance` | boolean
|
|
16
17
|
`overrideInsurance` | boolean
|
|
17
|
-
`shippingAddress` | [
|
|
18
|
+
`shippingAddress` | [StoreCartRequestShippingAddress](StoreCartRequestShippingAddress.md)
|
|
18
19
|
`billingAddress` | [UpdateOrderRequestBillingAddress](UpdateOrderRequestBillingAddress.md)
|
|
19
20
|
|
|
20
21
|
## Example
|
|
@@ -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,
|