@digital8/lighting-illusions-ts-sdk 0.0.1896 → 0.0.1897
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 -48
- package/README.md +3 -37
- package/dist/apis/CartsApi.d.ts +6 -21
- package/dist/apis/CartsApi.js +5 -62
- 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 +1 -3
- package/dist/models/AddressResource.d.ts +3 -3
- package/dist/models/AddressResource.js +7 -7
- package/dist/models/CartResource.d.ts +6 -37
- package/dist/models/CartResource.js +12 -35
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/LineItemListResource.d.ts +4 -35
- package/dist/models/LineItemListResource.js +4 -25
- package/dist/models/StoreCartRequestShippingAddress.d.ts +2 -2
- package/dist/models/StoreCartRequestShippingAddress.js +2 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- 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 +4 -4
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -23
- package/docs/AddressResource.md +2 -2
- package/docs/CartResource.md +7 -17
- package/docs/CartsApi.md +8 -74
- package/docs/LineItemListResource.md +1 -11
- package/docs/StoreCartRequestShippingAddress.md +2 -2
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -64
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +9 -9
- package/src/models/CartResource.ts +18 -71
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/LineItemListResource.ts +12 -64
- package/src/models/StoreCartRequestShippingAddress.ts +4 -4
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/index.ts +0 -23
- package/dist/apis/OrdersApi.d.ts +0 -170
- package/dist/apis/OrdersApi.js +0 -678
- package/dist/models/AdminOrderResource.d.ts +0 -262
- package/dist/models/AdminOrderResource.js +0 -187
- package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
- package/dist/models/AttachItemOrderRequest.d.ts +0 -44
- package/dist/models/AttachItemOrderRequest.js +0 -57
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResource.js +0 -63
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/GetAllOrderRequest.d.ts +0 -104
- package/dist/models/GetAllOrderRequest.js +0 -84
- package/dist/models/IndexOrderRequest.d.ts +0 -140
- package/dist/models/IndexOrderRequest.js +0 -96
- package/dist/models/LineItemDiscountResource.d.ts +0 -50
- package/dist/models/LineItemDiscountResource.js +0 -63
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/OrderListResource.d.ts +0 -101
- package/dist/models/OrderListResource.js +0 -90
- package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderListResourceArrayResponse.js +0 -50
- package/dist/models/OrderLiteResource.d.ts +0 -62
- package/dist/models/OrderLiteResource.js +0 -67
- package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResource.js +0 -89
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
- package/dist/models/UpdateItemOrderRequest.js +0 -53
- package/dist/models/UpdateOrderRequest.d.ts +0 -111
- package/dist/models/UpdateOrderRequest.js +0 -99
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/AdminOrderResource.md +0 -110
- package/docs/AdminOrderResourceArrayResponse.md +0 -34
- package/docs/AttachItemOrderRequest.md +0 -38
- package/docs/CartCouponResource.md +0 -40
- package/docs/CartCouponResourceArrayResponse.md +0 -34
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/GetAllOrderRequest.md +0 -52
- package/docs/IndexOrderRequest.md +0 -64
- package/docs/LineItemDiscountResource.md +0 -40
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/OrderListResource.md +0 -56
- package/docs/OrderListResourceArrayResponse.md +0 -34
- package/docs/OrderLiteResource.md +0 -44
- package/docs/OrderLiteResourceArrayResponse.md +0 -34
- package/docs/OrdersApi.md +0 -675
- package/docs/PaginatedOrderListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -52
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/UpdateItemOrderRequest.md +0 -36
- package/docs/UpdateOrderRequest.md +0 -52
- package/docs/UpdateOrderRequestBillingAddress.md +0 -50
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/apis/OrdersApi.ts +0 -552
- package/src/models/AdminOrderResource.ts +0 -414
- package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
- package/src/models/AttachItemOrderRequest.ts +0 -83
- package/src/models/CartCouponResource.ts +0 -93
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/GetAllOrderRequest.ts +0 -159
- package/src/models/IndexOrderRequest.ts +0 -207
- package/src/models/LineItemDiscountResource.ts +0 -93
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/OrderListResource.ts +0 -183
- package/src/models/OrderListResourceArrayResponse.ts +0 -73
- package/src/models/OrderLiteResource.ts +0 -109
- package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -162
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/UpdateItemOrderRequest.ts +0 -74
- package/src/models/UpdateOrderRequest.ts +0 -183
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type { CartCouponResource } from './CartCouponResource';
|
|
15
14
|
import type { CustomerListResource } from './CustomerListResource';
|
|
16
15
|
import type { AddressResource } from './AddressResource';
|
|
17
16
|
/**
|
|
@@ -97,7 +96,7 @@ export interface CartResource {
|
|
|
97
96
|
* @type {number}
|
|
98
97
|
* @memberof CartResource
|
|
99
98
|
*/
|
|
100
|
-
insuranceAmount
|
|
99
|
+
insuranceAmount?: number | null;
|
|
101
100
|
/**
|
|
102
101
|
*
|
|
103
102
|
* @type {boolean}
|
|
@@ -136,10 +135,10 @@ export interface CartResource {
|
|
|
136
135
|
lineItems: Array<LineItemListResource> | null;
|
|
137
136
|
/**
|
|
138
137
|
*
|
|
139
|
-
* @type {
|
|
138
|
+
* @type {object}
|
|
140
139
|
* @memberof CartResource
|
|
141
140
|
*/
|
|
142
|
-
coupons:
|
|
141
|
+
coupons: object;
|
|
143
142
|
/**
|
|
144
143
|
*
|
|
145
144
|
* @type {AddressResource}
|
|
@@ -152,12 +151,6 @@ export interface CartResource {
|
|
|
152
151
|
* @memberof CartResource
|
|
153
152
|
*/
|
|
154
153
|
billingAddress: AddressResource | null;
|
|
155
|
-
/**
|
|
156
|
-
*
|
|
157
|
-
* @type {number}
|
|
158
|
-
* @memberof CartResource
|
|
159
|
-
*/
|
|
160
|
-
discountPreview: number;
|
|
161
154
|
/**
|
|
162
155
|
*
|
|
163
156
|
* @type {number}
|
|
@@ -169,43 +162,19 @@ export interface CartResource {
|
|
|
169
162
|
* @type {number}
|
|
170
163
|
* @memberof CartResource
|
|
171
164
|
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
*
|
|
175
|
-
* @type {number}
|
|
176
|
-
* @memberof CartResource
|
|
177
|
-
*/
|
|
178
|
-
total: number;
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @type {number}
|
|
182
|
-
* @memberof CartResource
|
|
183
|
-
*/
|
|
184
|
-
discountAmount: number;
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
* @type {number}
|
|
188
|
-
* @memberof CartResource
|
|
189
|
-
*/
|
|
190
|
-
productDiscountAmount: number;
|
|
191
|
-
/**
|
|
192
|
-
*
|
|
193
|
-
* @type {number}
|
|
194
|
-
* @memberof CartResource
|
|
195
|
-
*/
|
|
196
|
-
shippingDiscountAmount: number;
|
|
165
|
+
discountPreview: number;
|
|
197
166
|
/**
|
|
198
167
|
*
|
|
199
168
|
* @type {number}
|
|
200
169
|
* @memberof CartResource
|
|
201
170
|
*/
|
|
202
|
-
|
|
171
|
+
shippingEstimate: number;
|
|
203
172
|
/**
|
|
204
173
|
*
|
|
205
174
|
* @type {number}
|
|
206
175
|
* @memberof CartResource
|
|
207
176
|
*/
|
|
208
|
-
|
|
177
|
+
insuranceEstimate: number;
|
|
209
178
|
/**
|
|
210
179
|
*
|
|
211
180
|
* @type {string}
|
|
@@ -20,7 +20,6 @@ exports.CartResourceToJSON = CartResourceToJSON;
|
|
|
20
20
|
exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var CartCouponResource_1 = require("./CartCouponResource");
|
|
24
23
|
var CustomerListResource_1 = require("./CustomerListResource");
|
|
25
24
|
var AddressResource_1 = require("./AddressResource");
|
|
26
25
|
/**
|
|
@@ -35,8 +34,6 @@ function instanceOfCartResource(value) {
|
|
|
35
34
|
return false;
|
|
36
35
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
|
|
37
36
|
return false;
|
|
38
|
-
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
39
|
-
return false;
|
|
40
37
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
41
38
|
return false;
|
|
42
39
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -55,23 +52,13 @@ function instanceOfCartResource(value) {
|
|
|
55
52
|
return false;
|
|
56
53
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
57
54
|
return false;
|
|
58
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined)
|
|
59
|
-
return false;
|
|
60
55
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
61
56
|
return false;
|
|
62
|
-
if (!('
|
|
63
|
-
return false;
|
|
64
|
-
if (!('total' in value) || value['total'] === undefined)
|
|
65
|
-
return false;
|
|
66
|
-
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
67
|
-
return false;
|
|
68
|
-
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
|
|
69
|
-
return false;
|
|
70
|
-
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined)
|
|
57
|
+
if (!('discountPreview' in value) || value['discountPreview'] === undefined)
|
|
71
58
|
return false;
|
|
72
|
-
if (!('
|
|
59
|
+
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
|
|
73
60
|
return false;
|
|
74
|
-
if (!('
|
|
61
|
+
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
|
|
75
62
|
return false;
|
|
76
63
|
if (!('status' in value) || value['status'] === undefined)
|
|
77
64
|
return false;
|
|
@@ -97,25 +84,20 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
84
|
'shippingType': json['shipping_type'],
|
|
98
85
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
99
86
|
'overrideShipping': json['override_shipping'],
|
|
100
|
-
'insuranceAmount': json['insurance_amount'],
|
|
87
|
+
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
101
88
|
'overrideInsurance': json['override_insurance'],
|
|
102
89
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
103
90
|
'admin': json['admin'],
|
|
104
91
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
105
92
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
106
93
|
'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
107
|
-
'coupons':
|
|
94
|
+
'coupons': json['coupons'],
|
|
108
95
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shipping_address']),
|
|
109
96
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billing_address']),
|
|
110
|
-
'discountPreview': json['discount_preview'],
|
|
111
97
|
'subtotal': json['subtotal'],
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'productDiscountAmount': json['product_discount_amount'],
|
|
116
|
-
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
117
|
-
'cartDiscountAmount': json['cart_discount_amount'],
|
|
118
|
-
'finalTotalAmount': json['final_total_amount'],
|
|
98
|
+
'discountPreview': json['discount_preview'],
|
|
99
|
+
'shippingEstimate': json['shipping_estimate'],
|
|
100
|
+
'insuranceEstimate': json['insurance_estimate'],
|
|
119
101
|
'status': json['status'],
|
|
120
102
|
};
|
|
121
103
|
}
|
|
@@ -147,18 +129,13 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
147
129
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
148
130
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
149
131
|
'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
150
|
-
'coupons':
|
|
132
|
+
'coupons': value['coupons'],
|
|
151
133
|
'shipping_address': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
152
134
|
'billing_address': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
153
|
-
'discount_preview': value['discountPreview'],
|
|
154
135
|
'subtotal': value['subtotal'],
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'product_discount_amount': value['productDiscountAmount'],
|
|
159
|
-
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
160
|
-
'cart_discount_amount': value['cartDiscountAmount'],
|
|
161
|
-
'final_total_amount': value['finalTotalAmount'],
|
|
136
|
+
'discount_preview': value['discountPreview'],
|
|
137
|
+
'shipping_estimate': value['shippingEstimate'],
|
|
138
|
+
'insurance_estimate': value['insuranceEstimate'],
|
|
162
139
|
'status': value['status'],
|
|
163
140
|
};
|
|
164
141
|
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
12
|
+
import type { ProductChildListResource } from './ProductChildListResource';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -22,7 +21,7 @@ export interface LineItemListResource {
|
|
|
22
21
|
* @type {number}
|
|
23
22
|
* @memberof LineItemListResource
|
|
24
23
|
*/
|
|
25
|
-
id
|
|
24
|
+
id?: number | null;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
28
27
|
* @type {number}
|
|
@@ -37,40 +36,10 @@ export interface LineItemListResource {
|
|
|
37
36
|
productPrice: number;
|
|
38
37
|
/**
|
|
39
38
|
*
|
|
40
|
-
* @type {
|
|
41
|
-
* @memberof LineItemListResource
|
|
42
|
-
*/
|
|
43
|
-
labelId?: number | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof LineItemListResource
|
|
48
|
-
*/
|
|
49
|
-
productDiscount: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof LineItemListResource
|
|
54
|
-
*/
|
|
55
|
-
totalDiscount: number;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @memberof LineItemListResource
|
|
60
|
-
*/
|
|
61
|
-
lineSubtotal: number;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Array<LineItemDiscountResource>}
|
|
65
|
-
* @memberof LineItemListResource
|
|
66
|
-
*/
|
|
67
|
-
discounts: Array<LineItemDiscountResource> | null;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {ProductChildCartLiteResource}
|
|
39
|
+
* @type {ProductChildListResource}
|
|
71
40
|
* @memberof LineItemListResource
|
|
72
41
|
*/
|
|
73
|
-
productChild:
|
|
42
|
+
productChild: ProductChildListResource | null;
|
|
74
43
|
}
|
|
75
44
|
/**
|
|
76
45
|
* Check if a given object implements the LineItemListResource interface.
|
|
@@ -18,26 +18,15 @@ exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
|
|
|
18
18
|
exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
|
|
19
19
|
exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
|
|
20
20
|
exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
|
|
21
|
-
var
|
|
22
|
-
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
21
|
+
var ProductChildListResource_1 = require("./ProductChildListResource");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the LineItemListResource interface.
|
|
25
24
|
*/
|
|
26
25
|
function instanceOfLineItemListResource(value) {
|
|
27
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
-
return false;
|
|
29
26
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
30
27
|
return false;
|
|
31
28
|
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
32
29
|
return false;
|
|
33
|
-
if (!('productDiscount' in value) || value['productDiscount'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('discounts' in value) || value['discounts'] === undefined)
|
|
40
|
-
return false;
|
|
41
30
|
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
42
31
|
return false;
|
|
43
32
|
return true;
|
|
@@ -50,15 +39,10 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
39
|
return json;
|
|
51
40
|
}
|
|
52
41
|
return {
|
|
53
|
-
'id': json['id'],
|
|
42
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
54
43
|
'quantity': json['quantity'],
|
|
55
44
|
'productPrice': json['product_price'],
|
|
56
|
-
'
|
|
57
|
-
'productDiscount': json['product_discount'],
|
|
58
|
-
'totalDiscount': json['total_discount'],
|
|
59
|
-
'lineSubtotal': json['line_subtotal'],
|
|
60
|
-
'discounts': (json['discounts'] == null ? null : json['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
|
|
61
|
-
'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
|
|
45
|
+
'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
|
|
62
46
|
};
|
|
63
47
|
}
|
|
64
48
|
function LineItemListResourceToJSON(json) {
|
|
@@ -73,11 +57,6 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
57
|
'id': value['id'],
|
|
74
58
|
'quantity': value['quantity'],
|
|
75
59
|
'product_price': value['productPrice'],
|
|
76
|
-
'
|
|
77
|
-
'product_discount': value['productDiscount'],
|
|
78
|
-
'total_discount': value['totalDiscount'],
|
|
79
|
-
'line_subtotal': value['lineSubtotal'],
|
|
80
|
-
'discounts': (value['discounts'] == null ? null : value['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
|
|
81
|
-
'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
|
|
60
|
+
'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
|
|
82
61
|
};
|
|
83
62
|
}
|
|
@@ -20,13 +20,13 @@ export interface StoreCartRequestShippingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof StoreCartRequestShippingAddress
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
addresseeName?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StoreCartRequestShippingAddress
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
company?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -32,8 +32,8 @@ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator)
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
35
36
|
'company': json['company'] == null ? undefined : json['company'],
|
|
36
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
37
37
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
38
38
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
39
39
|
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
@@ -51,8 +51,8 @@ function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
+
'addressee_name': value['addresseeName'],
|
|
54
55
|
'company': value['company'],
|
|
55
|
-
'addressee': value['addressee'],
|
|
56
56
|
'line_1': value['line1'],
|
|
57
57
|
'line_2': value['line2'],
|
|
58
58
|
'suburb': value['suburb'],
|
|
@@ -34,6 +34,8 @@ 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;
|
|
37
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
58
60
|
'latitude': json['latitude'],
|
|
59
61
|
'longitude': json['longitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
62
64
|
'specialDates': json['specialDates'],
|
|
63
65
|
'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 | 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']),
|
|
@@ -44,6 +44,7 @@ function StoreStoreRequestAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
47
48
|
'company': json['company'],
|
|
48
49
|
'line1': json['line_1'],
|
|
49
50
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -62,6 +63,7 @@ function StoreStoreRequestAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
63
|
return value;
|
|
63
64
|
}
|
|
64
65
|
return {
|
|
66
|
+
'addressee_name': value['addresseeName'],
|
|
65
67
|
'company': value['company'],
|
|
66
68
|
'line_1': value['line1'],
|
|
67
69
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ export * from './AddressFrontendResourceArrayResponse';
|
|
|
3
3
|
export * from './AddressResource';
|
|
4
4
|
export * from './AddressResourceArrayResponse';
|
|
5
5
|
export * from './AddressType';
|
|
6
|
-
export * from './AdminOrderResource';
|
|
7
|
-
export * from './AdminOrderResourceArrayResponse';
|
|
8
6
|
export * from './AssetFileForUploadResource';
|
|
9
7
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
10
8
|
export * from './AssetFrontendResource';
|
|
@@ -28,7 +26,6 @@ export * from './AttachDocumentsProductChildRequest';
|
|
|
28
26
|
export * from './AttachDocumentsProductChildRequestDocumentsInner';
|
|
29
27
|
export * from './AttachDocumentsProductRangeRequest';
|
|
30
28
|
export * from './AttachItemCartRequest';
|
|
31
|
-
export * from './AttachItemOrderRequest';
|
|
32
29
|
export * from './AttachProductTypeAttributeRequest';
|
|
33
30
|
export * from './AttachProductsProductCategoryRequest';
|
|
34
31
|
export * from './AttachStoresSupplierRequest';
|
|
@@ -45,8 +42,6 @@ export * from './AttributeResourceArrayResponse';
|
|
|
45
42
|
export * from './AttributeType';
|
|
46
43
|
export * from './AttributeValueResource';
|
|
47
44
|
export * from './AttributeValueResourceArrayResponse';
|
|
48
|
-
export * from './CartCouponResource';
|
|
49
|
-
export * from './CartCouponResourceArrayResponse';
|
|
50
45
|
export * from './CartListResource';
|
|
51
46
|
export * from './CartListResourceArrayResponse';
|
|
52
47
|
export * from './CartOrderSource';
|
|
@@ -77,7 +72,6 @@ export * from './DestroyAttributeValueRequest';
|
|
|
77
72
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
78
73
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
79
74
|
export * from './DetachAttributesProductRangeRequest';
|
|
80
|
-
export * from './DetachCouponCartRequest';
|
|
81
75
|
export * from './DetachDocumentablesDocumentRequest';
|
|
82
76
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
83
77
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -85,8 +79,6 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
85
79
|
export * from './DetachProductsProductCategoryRequest';
|
|
86
80
|
export * from './DetachStoresSupplierRequest';
|
|
87
81
|
export * from './DetachSuppliersStoreRequest';
|
|
88
|
-
export * from './DiscountType';
|
|
89
|
-
export * from './DiscountValueType';
|
|
90
82
|
export * from './DocumentFileForUploadResource';
|
|
91
83
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
92
84
|
export * from './DocumentFrontendResource';
|
|
@@ -109,7 +101,6 @@ export * from './GetAllDocumentRequest';
|
|
|
109
101
|
export * from './GetAllGoogleCategoryRequest';
|
|
110
102
|
export * from './GetAllMenuItemRequest';
|
|
111
103
|
export * from './GetAllMenuRequest';
|
|
112
|
-
export * from './GetAllOrderRequest';
|
|
113
104
|
export * from './GetAllOverlayTemplateRequest';
|
|
114
105
|
export * from './GetAllProductCategoryRequest';
|
|
115
106
|
export * from './GetAllProductChildRequest';
|
|
@@ -142,7 +133,6 @@ export * from './IndexExternalApiLogRequest';
|
|
|
142
133
|
export * from './IndexLabelRequest';
|
|
143
134
|
export * from './IndexMenuRequest';
|
|
144
135
|
export * from './IndexModelAttributeRequest';
|
|
145
|
-
export * from './IndexOrderRequest';
|
|
146
136
|
export * from './IndexOverlayTemplateRequest';
|
|
147
137
|
export * from './IndexProductCategoryRequest';
|
|
148
138
|
export * from './IndexProductChildRequest';
|
|
@@ -164,8 +154,6 @@ export * from './LabelResource';
|
|
|
164
154
|
export * from './LabelResourceArrayResponse';
|
|
165
155
|
export * from './LiAddressResource';
|
|
166
156
|
export * from './LiAddressResourceArrayResponse';
|
|
167
|
-
export * from './LineItemDiscountResource';
|
|
168
|
-
export * from './LineItemDiscountResourceArrayResponse';
|
|
169
157
|
export * from './LineItemListResource';
|
|
170
158
|
export * from './LineItemListResourceArrayResponse';
|
|
171
159
|
export * from './ListAssetsProductRegistrationRequest';
|
|
@@ -189,10 +177,6 @@ export * from './ModelAttributeListResource';
|
|
|
189
177
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
190
178
|
export * from './ModelAttributeResource';
|
|
191
179
|
export * from './ModelAttributeResourceArrayResponse';
|
|
192
|
-
export * from './OrderListResource';
|
|
193
|
-
export * from './OrderListResourceArrayResponse';
|
|
194
|
-
export * from './OrderLiteResource';
|
|
195
|
-
export * from './OrderLiteResourceArrayResponse';
|
|
196
180
|
export * from './OverlayTemplateAssetFrontendResource';
|
|
197
181
|
export * from './OverlayTemplateAssetFrontendResourceArrayResponse';
|
|
198
182
|
export * from './OverlayTemplateAssetPosition';
|
|
@@ -221,7 +205,6 @@ export * from './PaginatedGoogleCategoryResourceResponse';
|
|
|
221
205
|
export * from './PaginatedLabelListResourceResponse';
|
|
222
206
|
export * from './PaginatedMenuListResourceResponse';
|
|
223
207
|
export * from './PaginatedModelAttributeListResourceResponse';
|
|
224
|
-
export * from './PaginatedOrderListResourceResponse';
|
|
225
208
|
export * from './PaginatedOverlayTemplateListResourceResponse';
|
|
226
209
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
227
210
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
@@ -280,8 +263,6 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
280
263
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
281
264
|
export * from './ProductChildAttributeResource';
|
|
282
265
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
283
|
-
export * from './ProductChildCartLiteResource';
|
|
284
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
285
266
|
export * from './ProductChildListResource';
|
|
286
267
|
export * from './ProductChildListResourceArrayResponse';
|
|
287
268
|
export * from './ProductChildLiteResource';
|
|
@@ -458,15 +439,11 @@ export * from './UpdateDocumentRequest';
|
|
|
458
439
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
459
440
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
460
441
|
export * from './UpdateItemCartRequest';
|
|
461
|
-
export * from './UpdateItemOrderRequest';
|
|
462
442
|
export * from './UpdateLabelRequest';
|
|
463
443
|
export * from './UpdateMenuItemRequest';
|
|
464
444
|
export * from './UpdateMenuRequest';
|
|
465
445
|
export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
466
446
|
export * from './UpdateModelAttributeRequest';
|
|
467
|
-
export * from './UpdateOrderRequest';
|
|
468
|
-
export * from './UpdateOrderRequestBillingAddress';
|
|
469
|
-
export * from './UpdateOrderRequestShippingAddress';
|
|
470
447
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
471
448
|
export * from './UpdateOverlayTemplateRequest';
|
|
472
449
|
export * from './UpdateProductCategoryRequest';
|