@digital8/lighting-illusions-ts-sdk 0.0.2007 → 0.0.2009
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 -2
- package/dist/models/AddressResource.js +15 -11
- package/dist/models/AdminOrderResource.js +68 -68
- package/dist/models/CartCouponResource.js +2 -2
- package/dist/models/CartListResource.js +24 -24
- package/dist/models/CartOrderSource.d.ts +0 -4
- package/dist/models/CartOrderSource.js +1 -5
- package/dist/models/CartResource.js +50 -50
- package/dist/models/CreateCartRequest.d.ts +0 -4
- package/dist/models/CreateCartRequest.js +1 -5
- package/dist/models/CustomerListResource.js +4 -4
- package/dist/models/CustomerResource.js +4 -4
- package/dist/models/DiscountResource.js +10 -10
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/LiAddressResource.js +6 -6
- package/dist/models/LiAdminUserLiteResource.js +4 -4
- package/dist/models/LineItemDiscountResource.js +4 -4
- package/dist/models/LineItemListResource.js +12 -12
- package/dist/models/OmnisendSyncLiteResource.js +4 -4
- package/dist/models/OrderListResource.d.ts +0 -24
- package/dist/models/OrderListResource.js +10 -22
- package/dist/models/OrderLiteResource.js +10 -10
- package/dist/models/OrderStatusLiteResource.js +2 -2
- package/dist/models/OrderStatusWithCountResource.js +4 -4
- package/dist/models/ProductChildCartLiteResource.js +6 -6
- package/dist/models/SearchTransactionsRequest.d.ts +10 -2
- package/dist/models/SearchTransactionsRequest.js +8 -1
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreTransactionResource.js +2 -2
- package/dist/models/TransactionLiteResource.js +10 -10
- package/dist/models/TransactionResource.js +20 -20
- package/dist/models/UpdateCartRequest.d.ts +0 -4
- package/dist/models/UpdateCartRequest.js +1 -5
- package/dist/models/UpdateOrderRequest.d.ts +0 -4
- package/dist/models/UpdateOrderRequest.js +1 -5
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/OrderListResource.md +0 -8
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +15 -13
- package/src/models/AdminOrderResource.ts +68 -68
- package/src/models/CartCouponResource.ts +2 -2
- package/src/models/CartListResource.ts +24 -24
- package/src/models/CartOrderSource.ts +1 -5
- package/src/models/CartResource.ts +50 -50
- package/src/models/CreateCartRequest.ts +1 -5
- package/src/models/CustomerListResource.ts +4 -4
- package/src/models/CustomerResource.ts +4 -4
- package/src/models/DiscountResource.ts +10 -10
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/LiAddressResource.ts +6 -6
- package/src/models/LiAdminUserLiteResource.ts +4 -4
- package/src/models/LineItemDiscountResource.ts +4 -4
- package/src/models/LineItemListResource.ts +12 -12
- package/src/models/OmnisendSyncLiteResource.ts +4 -4
- package/src/models/OrderListResource.ts +10 -44
- package/src/models/OrderLiteResource.ts +10 -10
- package/src/models/OrderStatusLiteResource.ts +2 -2
- package/src/models/OrderStatusWithCountResource.ts +4 -4
- package/src/models/ProductChildCartLiteResource.ts +6 -6
- package/src/models/SearchTransactionsRequest.ts +11 -2
- package/src/models/StoreFrontendResource.ts +4 -6
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreTransactionResource.ts +2 -2
- package/src/models/TransactionLiteResource.ts +10 -10
- package/src/models/TransactionResource.ts +20 -20
- package/src/models/UpdateCartRequest.ts +1 -5
- package/src/models/UpdateOrderRequest.ts +1 -5
- package/src/models/index.ts +0 -1
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/docs/OrderOmnisendEvent.md +0 -32
- package/src/models/OrderOmnisendEvent.ts +0 -53
package/.openapi-generator/FILES
CHANGED
|
@@ -243,7 +243,6 @@ docs/OrderListResource.md
|
|
|
243
243
|
docs/OrderListResourceArrayResponse.md
|
|
244
244
|
docs/OrderLiteResource.md
|
|
245
245
|
docs/OrderLiteResourceArrayResponse.md
|
|
246
|
-
docs/OrderOmnisendEvent.md
|
|
247
246
|
docs/OrderStatusLiteResource.md
|
|
248
247
|
docs/OrderStatusLiteResourceArrayResponse.md
|
|
249
248
|
docs/OrderStatusWithCountResource.md
|
|
@@ -907,7 +906,6 @@ src/models/OrderListResource.ts
|
|
|
907
906
|
src/models/OrderListResourceArrayResponse.ts
|
|
908
907
|
src/models/OrderLiteResource.ts
|
|
909
908
|
src/models/OrderLiteResourceArrayResponse.ts
|
|
910
|
-
src/models/OrderOmnisendEvent.ts
|
|
911
909
|
src/models/OrderStatusLiteResource.ts
|
|
912
910
|
src/models/OrderStatusLiteResourceArrayResponse.ts
|
|
913
911
|
src/models/OrderStatusWithCountResource.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.2009
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -518,7 +518,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
518
518
|
- [OrderListResourceArrayResponse](docs/OrderListResourceArrayResponse.md)
|
|
519
519
|
- [OrderLiteResource](docs/OrderLiteResource.md)
|
|
520
520
|
- [OrderLiteResourceArrayResponse](docs/OrderLiteResourceArrayResponse.md)
|
|
521
|
-
- [OrderOmnisendEvent](docs/OrderOmnisendEvent.md)
|
|
522
521
|
- [OrderStatusLiteResource](docs/OrderStatusLiteResource.md)
|
|
523
522
|
- [OrderStatusLiteResourceArrayResponse](docs/OrderStatusLiteResourceArrayResponse.md)
|
|
524
523
|
- [OrderStatusWithCountResource](docs/OrderStatusWithCountResource.md)
|
|
@@ -919,7 +918,7 @@ and is automatically generated by the
|
|
|
919
918
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
920
919
|
|
|
921
920
|
- API version: `1.0.0`
|
|
922
|
-
- Package version: `0.0.
|
|
921
|
+
- Package version: `0.0.2009`
|
|
923
922
|
- Generator version: `7.22.0`
|
|
924
923
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
925
924
|
|
|
@@ -26,8 +26,6 @@ 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;
|
|
31
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'company': json['company'],
|
|
52
50
|
'line1': json['line1'],
|
|
53
|
-
'line2': json['line2'],
|
|
51
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
54
52
|
'postcode': json['postcode'],
|
|
55
53
|
'suburb': json['suburb'],
|
|
56
54
|
'country': json['country'],
|
|
@@ -38,7 +38,7 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -50,7 +50,7 @@ export interface AddressResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AddressResource
|
|
52
52
|
*/
|
|
53
|
-
line2
|
|
53
|
+
line2: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -24,8 +24,12 @@ 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;
|
|
27
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
30
|
return false;
|
|
31
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
34
|
return false;
|
|
31
35
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -47,16 +51,16 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
51
|
}
|
|
48
52
|
return {
|
|
49
53
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'sourceAddressId': json['
|
|
51
|
-
'addresseeName': json['
|
|
52
|
-
'company': json['company']
|
|
53
|
-
'line1': json['
|
|
54
|
-
'line2': json['
|
|
54
|
+
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
55
|
+
'addresseeName': json['addresseeName'],
|
|
56
|
+
'company': json['company'],
|
|
57
|
+
'line1': json['line1'],
|
|
58
|
+
'line2': json['line2'],
|
|
55
59
|
'postcode': json['postcode'],
|
|
56
60
|
'suburb': json['suburb'],
|
|
57
61
|
'country': json['country'],
|
|
58
62
|
'state': json['state'],
|
|
59
|
-
'fullAddress': json['
|
|
63
|
+
'fullAddress': json['fullAddress'],
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
function AddressResourceToJSON(json) {
|
|
@@ -69,15 +73,15 @@ function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
}
|
|
70
74
|
return {
|
|
71
75
|
'id': value['id'],
|
|
72
|
-
'
|
|
73
|
-
'
|
|
76
|
+
'sourceAddressId': value['sourceAddressId'],
|
|
77
|
+
'addresseeName': value['addresseeName'],
|
|
74
78
|
'company': value['company'],
|
|
75
|
-
'
|
|
76
|
-
'
|
|
79
|
+
'line1': value['line1'],
|
|
80
|
+
'line2': value['line2'],
|
|
77
81
|
'postcode': value['postcode'],
|
|
78
82
|
'suburb': value['suburb'],
|
|
79
83
|
'country': value['country'],
|
|
80
84
|
'state': value['state'],
|
|
81
|
-
'
|
|
85
|
+
'fullAddress': value['fullAddress'],
|
|
82
86
|
};
|
|
83
87
|
}
|
|
@@ -123,50 +123,50 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
123
123
|
}
|
|
124
124
|
return {
|
|
125
125
|
'id': json['id'],
|
|
126
|
-
'cartId': json['
|
|
127
|
-
'placedAt': (new Date(json['
|
|
128
|
-
'createdAt': json['
|
|
129
|
-
'updatedAt': json['
|
|
126
|
+
'cartId': json['cartId'] == null ? undefined : json['cartId'],
|
|
127
|
+
'placedAt': (new Date(json['placedAt'])),
|
|
128
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
129
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
130
130
|
'source': json['source'],
|
|
131
|
-
'paymentToken': json['
|
|
132
|
-
'shippingType': json['
|
|
133
|
-
'shippingSubtotal': json['
|
|
134
|
-
'overrideShipping': json['
|
|
135
|
-
'insuranceAmount': json['
|
|
136
|
-
'includeInsurance': json['
|
|
137
|
-
'overrideInsurance': json['
|
|
138
|
-
'useAsBillingAddress': json['
|
|
139
|
-
'netsuiteId': json['
|
|
140
|
-
'isNetsuiteLocked': json['
|
|
141
|
-
'isDisabled': json['
|
|
142
|
-
'omnisendId': json['
|
|
131
|
+
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
132
|
+
'shippingType': json['shippingType'],
|
|
133
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
134
|
+
'overrideShipping': json['overrideShipping'],
|
|
135
|
+
'insuranceAmount': json['insuranceAmount'],
|
|
136
|
+
'includeInsurance': json['includeInsurance'],
|
|
137
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
138
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
139
|
+
'netsuiteId': json['netsuiteId'],
|
|
140
|
+
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
141
|
+
'isDisabled': json['isDisabled'],
|
|
142
|
+
'omnisendId': json['omnisendId'],
|
|
143
143
|
'subtotal': json['subtotal'],
|
|
144
|
-
'productDiscountAmount': json['
|
|
145
|
-
'subtotalDiscountAmount': json['
|
|
146
|
-
'shippingDiscountAmount': json['
|
|
147
|
-
'shippingAmount': json['
|
|
144
|
+
'productDiscountAmount': json['productDiscountAmount'],
|
|
145
|
+
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
146
|
+
'shippingDiscountAmount': json['shippingDiscountAmount'],
|
|
147
|
+
'shippingAmount': json['shippingAmount'],
|
|
148
148
|
'total': json['total'],
|
|
149
|
-
'discountAmount': json['
|
|
150
|
-
'finalTotalAmount': json['
|
|
151
|
-
'totalAmount': json['
|
|
152
|
-
'totalShipping': json['
|
|
153
|
-
'grandTotal': json['
|
|
154
|
-
'totalPaid': json['
|
|
155
|
-
'totalOutstanding': json['
|
|
156
|
-
'discountPreview': json['
|
|
157
|
-
'shippingEstimate': json['
|
|
158
|
-
'insuranceEstimate': json['
|
|
149
|
+
'discountAmount': json['discountAmount'],
|
|
150
|
+
'finalTotalAmount': json['finalTotalAmount'],
|
|
151
|
+
'totalAmount': json['totalAmount'],
|
|
152
|
+
'totalShipping': json['totalShipping'],
|
|
153
|
+
'grandTotal': json['grandTotal'],
|
|
154
|
+
'totalPaid': json['totalPaid'],
|
|
155
|
+
'totalOutstanding': json['totalOutstanding'],
|
|
156
|
+
'discountPreview': json['discountPreview'],
|
|
157
|
+
'shippingEstimate': json['shippingEstimate'],
|
|
158
|
+
'insuranceEstimate': json['insuranceEstimate'],
|
|
159
159
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
160
160
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
161
161
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
162
162
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
163
|
-
'lineItems': (json['
|
|
163
|
+
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
164
164
|
'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
|
|
165
165
|
'discounts': (json['discounts'] == null ? null : json['discounts'].map(DiscountResource_1.DiscountResourceFromJSON)),
|
|
166
166
|
'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
|
|
167
|
-
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['
|
|
168
|
-
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['
|
|
169
|
-
'omnisendSync': (0, OmnisendSyncLiteResource_1.OmnisendSyncLiteResourceFromJSON)(json['
|
|
167
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
168
|
+
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
169
|
+
'omnisendSync': (0, OmnisendSyncLiteResource_1.OmnisendSyncLiteResourceFromJSON)(json['omnisendSync']),
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
function AdminOrderResourceToJSON(json) {
|
|
@@ -179,49 +179,49 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
179
179
|
}
|
|
180
180
|
return {
|
|
181
181
|
'id': value['id'],
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
182
|
+
'cartId': value['cartId'],
|
|
183
|
+
'placedAt': value['placedAt'].toISOString(),
|
|
184
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
185
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
186
186
|
'source': value['source'],
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
187
|
+
'paymentToken': value['paymentToken'],
|
|
188
|
+
'shippingType': value['shippingType'],
|
|
189
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
190
|
+
'overrideShipping': value['overrideShipping'],
|
|
191
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
192
|
+
'includeInsurance': value['includeInsurance'],
|
|
193
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
194
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
195
|
+
'netsuiteId': value['netsuiteId'],
|
|
196
|
+
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
197
|
+
'isDisabled': value['isDisabled'],
|
|
198
|
+
'omnisendId': value['omnisendId'],
|
|
199
199
|
'subtotal': value['subtotal'],
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
200
|
+
'productDiscountAmount': value['productDiscountAmount'],
|
|
201
|
+
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
202
|
+
'shippingDiscountAmount': value['shippingDiscountAmount'],
|
|
203
|
+
'shippingAmount': value['shippingAmount'],
|
|
204
204
|
'total': value['total'],
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
205
|
+
'discountAmount': value['discountAmount'],
|
|
206
|
+
'finalTotalAmount': value['finalTotalAmount'],
|
|
207
|
+
'totalAmount': value['totalAmount'],
|
|
208
|
+
'totalShipping': value['totalShipping'],
|
|
209
|
+
'grandTotal': value['grandTotal'],
|
|
210
|
+
'totalPaid': value['totalPaid'],
|
|
211
|
+
'totalOutstanding': value['totalOutstanding'],
|
|
212
|
+
'discountPreview': value['discountPreview'],
|
|
213
|
+
'shippingEstimate': value['shippingEstimate'],
|
|
214
|
+
'insuranceEstimate': value['insuranceEstimate'],
|
|
215
215
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
216
216
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
217
217
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
218
218
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
219
|
-
'
|
|
219
|
+
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
220
220
|
'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponResource_1.CartCouponResourceToJSON)),
|
|
221
221
|
'discounts': (value['discounts'] == null ? null : value['discounts'].map(DiscountResource_1.DiscountResourceToJSON)),
|
|
222
222
|
'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
223
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
224
|
+
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
225
|
+
'omnisendSync': (0, OmnisendSyncLiteResource_1.OmnisendSyncLiteResourceToJSON)(value['omnisendSync']),
|
|
226
226
|
};
|
|
227
227
|
}
|
|
@@ -43,7 +43,7 @@ function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'id': json['id'],
|
|
44
44
|
'code': json['code'],
|
|
45
45
|
'name': json['name'],
|
|
46
|
-
'discountTotal': json['
|
|
46
|
+
'discountTotal': json['discountTotal'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
function CartCouponResourceToJSON(json) {
|
|
@@ -58,6 +58,6 @@ function CartCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
58
|
'id': value['id'],
|
|
59
59
|
'code': value['code'],
|
|
60
60
|
'name': value['name'],
|
|
61
|
-
'
|
|
61
|
+
'discountTotal': value['discountTotal'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -58,21 +58,21 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
|
-
'guestEmail': json['
|
|
61
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
62
62
|
'source': json['source'],
|
|
63
|
-
'shippingType': json['
|
|
64
|
-
'shippingSubtotal': json['
|
|
65
|
-
'overrideShipping': json['
|
|
66
|
-
'insuranceAmount': json['
|
|
67
|
-
'includeInsurance': json['
|
|
68
|
-
'overrideInsurance': json['
|
|
69
|
-
'useAsBillingAddress': json['
|
|
70
|
-
'expiryDate': (new Date(json['
|
|
71
|
-
'checkoutCompletedAt': json['
|
|
72
|
-
'createdAt': json['
|
|
63
|
+
'shippingType': json['shippingType'] == null ? undefined : json['shippingType'],
|
|
64
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
65
|
+
'overrideShipping': json['overrideShipping'],
|
|
66
|
+
'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
|
|
67
|
+
'includeInsurance': json['includeInsurance'],
|
|
68
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
69
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
70
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
71
|
+
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
72
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
73
73
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
74
74
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
75
|
-
'lineItems': (json['
|
|
75
|
+
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
76
76
|
'subtotal': json['subtotal'],
|
|
77
77
|
'status': json['status'],
|
|
78
78
|
};
|
|
@@ -87,21 +87,21 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
87
|
}
|
|
88
88
|
return {
|
|
89
89
|
'id': value['id'],
|
|
90
|
-
'
|
|
90
|
+
'guestEmail': value['guestEmail'],
|
|
91
91
|
'source': value['source'],
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
92
|
+
'shippingType': value['shippingType'],
|
|
93
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
94
|
+
'overrideShipping': value['overrideShipping'],
|
|
95
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
96
|
+
'includeInsurance': value['includeInsurance'],
|
|
97
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
98
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
99
|
+
'expiryDate': value['expiryDate'].toISOString(),
|
|
100
|
+
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
101
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
102
102
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
103
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
104
|
-
'
|
|
104
|
+
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
105
105
|
'subtotal': value['subtotal'],
|
|
106
106
|
'status': value['status'],
|
|
107
107
|
};
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
export declare const CartOrderSource: {
|
|
17
17
|
readonly Checkout: "checkout";
|
|
18
18
|
readonly Admin: "admin";
|
|
19
|
-
readonly Phone: "phone";
|
|
20
|
-
readonly Email: "email";
|
|
21
|
-
readonly Ebay: "ebay";
|
|
22
|
-
readonly InStore: "in_store";
|
|
23
19
|
};
|
|
24
20
|
export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
|
|
25
21
|
export declare function instanceOfCartOrderSource(value: any): boolean;
|
|
@@ -25,11 +25,7 @@ exports.CartOrderSourceToJSONTyped = CartOrderSourceToJSONTyped;
|
|
|
25
25
|
*/
|
|
26
26
|
exports.CartOrderSource = {
|
|
27
27
|
Checkout: 'checkout',
|
|
28
|
-
Admin: 'admin'
|
|
29
|
-
Phone: 'phone',
|
|
30
|
-
Email: 'email',
|
|
31
|
-
Ebay: 'ebay',
|
|
32
|
-
InStore: 'in_store'
|
|
28
|
+
Admin: 'admin'
|
|
33
29
|
};
|
|
34
30
|
function instanceOfCartOrderSource(value) {
|
|
35
31
|
for (var key in exports.CartOrderSource) {
|
|
@@ -88,38 +88,38 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
88
|
}
|
|
89
89
|
return {
|
|
90
90
|
'id': json['id'] == null ? undefined : json['id'],
|
|
91
|
-
'guestEmail': json['
|
|
91
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
92
92
|
'source': json['source'],
|
|
93
|
-
'sessionToken': json['
|
|
94
|
-
'paymentToken': json['
|
|
95
|
-
'expiryDate': (new Date(json['
|
|
96
|
-
'checkoutCompletedAt': json['
|
|
97
|
-
'createdAt': json['
|
|
98
|
-
'updatedAt': json['
|
|
99
|
-
'shippingType': json['
|
|
100
|
-
'shippingSubtotal': json['
|
|
101
|
-
'overrideShipping': json['
|
|
102
|
-
'insuranceSubtotal': json['
|
|
103
|
-
'includeInsurance': json['
|
|
104
|
-
'overrideInsurance': json['
|
|
105
|
-
'useAsBillingAddress': json['
|
|
93
|
+
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
94
|
+
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
95
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
96
|
+
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
97
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
98
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
99
|
+
'shippingType': json['shippingType'],
|
|
100
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
101
|
+
'overrideShipping': json['overrideShipping'],
|
|
102
|
+
'insuranceSubtotal': json['insuranceSubtotal'] == null ? undefined : json['insuranceSubtotal'],
|
|
103
|
+
'includeInsurance': json['includeInsurance'],
|
|
104
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
105
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
106
|
'admin': json['admin'],
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
108
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
|
-
'lineItems': (json['
|
|
109
|
+
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
110
|
'coupons': (json['coupons'] == null ? null : json['coupons'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
|
|
111
|
-
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['
|
|
112
|
-
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['
|
|
113
|
-
'discountPreview': json['
|
|
111
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
112
|
+
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
113
|
+
'discountPreview': json['discountPreview'],
|
|
114
114
|
'subtotal': json['subtotal'],
|
|
115
|
-
'shippingAmount': json['
|
|
116
|
-
'insuranceAmount': json['
|
|
115
|
+
'shippingAmount': json['shippingAmount'],
|
|
116
|
+
'insuranceAmount': json['insuranceAmount'],
|
|
117
117
|
'total': json['total'],
|
|
118
|
-
'discountAmount': json['
|
|
119
|
-
'productDiscountAmount': json['
|
|
120
|
-
'shippingDiscountAmount': json['
|
|
121
|
-
'subtotalDiscountAmount': json['
|
|
122
|
-
'finalTotalAmount': json['
|
|
118
|
+
'discountAmount': json['discountAmount'],
|
|
119
|
+
'productDiscountAmount': json['productDiscountAmount'],
|
|
120
|
+
'shippingDiscountAmount': json['shippingDiscountAmount'],
|
|
121
|
+
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
122
|
+
'finalTotalAmount': json['finalTotalAmount'],
|
|
123
123
|
'status': json['status'],
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -133,38 +133,38 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
133
133
|
}
|
|
134
134
|
return {
|
|
135
135
|
'id': value['id'],
|
|
136
|
-
'
|
|
136
|
+
'guestEmail': value['guestEmail'],
|
|
137
137
|
'source': value['source'],
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
138
|
+
'sessionToken': value['sessionToken'],
|
|
139
|
+
'paymentToken': value['paymentToken'],
|
|
140
|
+
'expiryDate': value['expiryDate'].toISOString(),
|
|
141
|
+
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
142
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
143
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
144
|
+
'shippingType': value['shippingType'],
|
|
145
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
146
|
+
'overrideShipping': value['overrideShipping'],
|
|
147
|
+
'insuranceSubtotal': value['insuranceSubtotal'],
|
|
148
|
+
'includeInsurance': value['includeInsurance'],
|
|
149
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
150
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
151
|
'admin': value['admin'],
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
153
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
|
-
'
|
|
154
|
+
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
155
|
'coupons': (value['coupons'] == null ? null : value['coupons'].map(CartCouponResource_1.CartCouponResourceToJSON)),
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
156
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
157
|
+
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
158
|
+
'discountPreview': value['discountPreview'],
|
|
159
159
|
'subtotal': value['subtotal'],
|
|
160
|
-
'
|
|
161
|
-
'
|
|
160
|
+
'shippingAmount': value['shippingAmount'],
|
|
161
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
162
162
|
'total': value['total'],
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
163
|
+
'discountAmount': value['discountAmount'],
|
|
164
|
+
'productDiscountAmount': value['productDiscountAmount'],
|
|
165
|
+
'shippingDiscountAmount': value['shippingDiscountAmount'],
|
|
166
|
+
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
167
|
+
'finalTotalAmount': value['finalTotalAmount'],
|
|
168
168
|
'status': value['status'],
|
|
169
169
|
};
|
|
170
170
|
}
|
|
@@ -139,10 +139,6 @@ export interface CreateCartRequest {
|
|
|
139
139
|
export declare const CreateCartRequestSourceEnum: {
|
|
140
140
|
readonly Checkout: "checkout";
|
|
141
141
|
readonly Admin: "admin";
|
|
142
|
-
readonly Phone: "phone";
|
|
143
|
-
readonly Email: "email";
|
|
144
|
-
readonly Ebay: "ebay";
|
|
145
|
-
readonly InStore: "in_store";
|
|
146
142
|
};
|
|
147
143
|
export type CreateCartRequestSourceEnum = typeof CreateCartRequestSourceEnum[keyof typeof CreateCartRequestSourceEnum];
|
|
148
144
|
/**
|
|
@@ -27,11 +27,7 @@ var CreateCartRequestCustomer_1 = require("./CreateCartRequestCustomer");
|
|
|
27
27
|
*/
|
|
28
28
|
exports.CreateCartRequestSourceEnum = {
|
|
29
29
|
Checkout: 'checkout',
|
|
30
|
-
Admin: 'admin'
|
|
31
|
-
Phone: 'phone',
|
|
32
|
-
Email: 'email',
|
|
33
|
-
Ebay: 'ebay',
|
|
34
|
-
InStore: 'in_store'
|
|
30
|
+
Admin: 'admin'
|
|
35
31
|
};
|
|
36
32
|
/**
|
|
37
33
|
* @export
|
|
@@ -47,8 +47,8 @@ function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'firstName': json['
|
|
51
|
-
'lastName': json['
|
|
50
|
+
'firstName': json['firstName'],
|
|
51
|
+
'lastName': json['lastName'],
|
|
52
52
|
'email': json['email'],
|
|
53
53
|
'phone': json['phone'],
|
|
54
54
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -65,8 +65,8 @@ function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
'id': value['id'],
|
|
68
|
-
'
|
|
69
|
-
'
|
|
68
|
+
'firstName': value['firstName'],
|
|
69
|
+
'lastName': value['lastName'],
|
|
70
70
|
'email': value['email'],
|
|
71
71
|
'phone': value['phone'],
|
|
72
72
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|