@digital8/lighting-illusions-ts-sdk 0.0.1956 → 0.0.1957
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 +4 -8
- package/README.md +4 -6
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -4
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderListResource.d.ts +7 -0
- package/dist/models/OrderListResource.js +5 -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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +74 -0
- package/dist/models/TransactionLiteResource.js +77 -0
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +0 -24
- package/dist/models/TransactionResource.js +0 -8
- 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 +2 -4
- package/dist/models/index.js +2 -4
- 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/OrderListResource.md +2 -0
- package/docs/StoreCartRequest.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/{TransactionListResource.md → TransactionLiteResource.md} +4 -30
- package/docs/{TransactionListResourceArrayResponse.md → TransactionLiteResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +0 -8
- package/docs/TransactionsApi.md +3 -3
- 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/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +0 -9
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderListResource.ts +16 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionLiteResource.ts +128 -0
- package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +0 -32
- 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 +2 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`orderId` | number
|
|
11
|
-
`cartId` | number
|
|
12
|
-
`adminId` | number
|
|
13
10
|
`paymentSource` | string
|
|
14
11
|
`paymentMethod` | string
|
|
15
12
|
`type` | string
|
|
@@ -26,7 +23,6 @@ Name | Type
|
|
|
26
23
|
`fraudDecision` | string
|
|
27
24
|
`refundedTransactionId` | number
|
|
28
25
|
`createdAt` | Date
|
|
29
|
-
`updatedAt` | Date
|
|
30
26
|
|
|
31
27
|
## Example
|
|
32
28
|
|
|
@@ -36,9 +32,6 @@ import type { TransactionResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
36
32
|
// TODO: Update the object below with actual values
|
|
37
33
|
const example = {
|
|
38
34
|
"id": null,
|
|
39
|
-
"orderId": null,
|
|
40
|
-
"cartId": null,
|
|
41
|
-
"adminId": null,
|
|
42
35
|
"paymentSource": null,
|
|
43
36
|
"paymentMethod": null,
|
|
44
37
|
"type": null,
|
|
@@ -55,7 +48,6 @@ const example = {
|
|
|
55
48
|
"fraudDecision": null,
|
|
56
49
|
"refundedTransactionId": null,
|
|
57
50
|
"createdAt": null,
|
|
58
|
-
"updatedAt": null,
|
|
59
51
|
} satisfies TransactionResource
|
|
60
52
|
|
|
61
53
|
console.log(example)
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
12
12
|
|
|
13
13
|
## indexTransaction
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> PaginatedTransactionResourceResponse indexTransaction(indexTransactionRequest)
|
|
16
16
|
|
|
17
17
|
Auto-generated: indexTransaction
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ example().catch(console.error);
|
|
|
55
55
|
|
|
56
56
|
### Return type
|
|
57
57
|
|
|
58
|
-
[**
|
|
58
|
+
[**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
@@ -70,7 +70,7 @@ No authorization required
|
|
|
70
70
|
### HTTP response details
|
|
71
71
|
| Status code | Description | Response headers |
|
|
72
72
|
|-------------|-------------|------------------|
|
|
73
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
73
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionResource[]>> | - |
|
|
74
74
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
76
|
|
|
@@ -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,
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
|
-
`addressee` | string
|
|
11
10
|
`company` | string
|
|
12
11
|
`line1` | string
|
|
13
12
|
`line2` | string
|
|
@@ -24,7 +23,6 @@ import type { UpdateOrderRequestBillingAddress } from '@digital8/lighting-illusi
|
|
|
24
23
|
// TODO: Update the object below with actual values
|
|
25
24
|
const example = {
|
|
26
25
|
"addresseeName": null,
|
|
27
|
-
"addressee": null,
|
|
28
26
|
"company": null,
|
|
29
27
|
"line1": null,
|
|
30
28
|
"line2": null,
|
package/package.json
CHANGED
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
IndexTransactionRequestToJSON,
|
|
25
25
|
} from '../models/IndexTransactionRequest';
|
|
26
26
|
import {
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from '../models/
|
|
27
|
+
type PaginatedTransactionResourceResponse,
|
|
28
|
+
PaginatedTransactionResourceResponseFromJSON,
|
|
29
|
+
PaginatedTransactionResourceResponseToJSON,
|
|
30
|
+
} from '../models/PaginatedTransactionResourceResponse';
|
|
31
31
|
import {
|
|
32
32
|
type RefundTransactionRequest,
|
|
33
33
|
RefundTransactionRequestFromJSON,
|
|
@@ -87,17 +87,17 @@ export class TransactionsApi extends runtime.BaseAPI {
|
|
|
87
87
|
/**
|
|
88
88
|
* Auto-generated: indexTransaction
|
|
89
89
|
*/
|
|
90
|
-
async indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
async indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionResourceResponse>> {
|
|
91
91
|
const requestOptions = await this.indexTransactionRequestOpts(requestParameters);
|
|
92
92
|
const response = await this.request(requestOptions, initOverrides);
|
|
93
93
|
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTransactionResourceResponseFromJSON(jsonValue));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Auto-generated: indexTransaction
|
|
99
99
|
*/
|
|
100
|
-
async indexTransaction(requestParameters: IndexTransactionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async indexTransaction(requestParameters: IndexTransactionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse> {
|
|
101
101
|
const response = await this.indexTransactionRaw(requestParameters, initOverrides);
|
|
102
102
|
return await response.value();
|
|
103
103
|
}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -74,6 +74,7 @@ export interface AddressFrontendResource {
|
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
79
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -94,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
94
95
|
|
|
95
96
|
'company': json['company'] == null ? undefined : json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
|
-
'line2': json['line2']
|
|
98
|
+
'line2': json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
99
100
|
'suburb': json['suburb'],
|
|
100
101
|
'country': json['country'],
|
|
@@ -43,12 +43,6 @@ export interface AddressResource {
|
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
45
|
company: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof AddressResource
|
|
50
|
-
*/
|
|
51
|
-
addressee: string;
|
|
52
46
|
/**
|
|
53
47
|
*
|
|
54
48
|
* @type {string}
|
|
@@ -99,7 +93,6 @@ export interface AddressResource {
|
|
|
99
93
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
94
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
95
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
|
-
if (!('addressee' in value) || value['addressee'] === undefined) return false;
|
|
103
96
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
104
97
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
105
98
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -123,7 +116,6 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
123
116
|
'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
|
|
124
117
|
'addresseeName': json['addressee_name'],
|
|
125
118
|
'company': json['company'],
|
|
126
|
-
'addressee': json['addressee'],
|
|
127
119
|
'line1': json['line_1'],
|
|
128
120
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
129
121
|
'postcode': json['postcode'],
|
|
@@ -149,7 +141,6 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
|
|
|
149
141
|
'source_address_id': value['sourceAddressId'],
|
|
150
142
|
'addressee_name': value['addresseeName'],
|
|
151
143
|
'company': value['company'],
|
|
152
|
-
'addressee': value['addressee'],
|
|
153
144
|
'line_1': value['line1'],
|
|
154
145
|
'line_2': value['line2'],
|
|
155
146
|
'postcode': value['postcode'],
|
|
@@ -100,6 +100,12 @@ export interface AdminOrderResource {
|
|
|
100
100
|
* @memberof AdminOrderResource
|
|
101
101
|
*/
|
|
102
102
|
insuranceAmount: number;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof AdminOrderResource
|
|
107
|
+
*/
|
|
108
|
+
includeInsurance: boolean;
|
|
103
109
|
/**
|
|
104
110
|
*
|
|
105
111
|
* @type {boolean}
|
|
@@ -285,6 +291,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
285
291
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
286
292
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
287
293
|
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
|
|
294
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
288
295
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
289
296
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
290
297
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
@@ -335,6 +342,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
335
342
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
336
343
|
'overrideShipping': json['override_shipping'],
|
|
337
344
|
'insuranceAmount': json['insurance_amount'],
|
|
345
|
+
'includeInsurance': json['include_insurance'],
|
|
338
346
|
'overrideInsurance': json['override_insurance'],
|
|
339
347
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
340
348
|
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
@@ -389,6 +397,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
389
397
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
390
398
|
'override_shipping': value['overrideShipping'],
|
|
391
399
|
'insurance_amount': value['insuranceAmount'],
|
|
400
|
+
'include_insurance': value['includeInsurance'],
|
|
392
401
|
'override_insurance': value['overrideInsurance'],
|
|
393
402
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
394
403
|
'netsuite_id': value['netsuiteId'],
|
|
@@ -83,6 +83,12 @@ export interface CartListResource {
|
|
|
83
83
|
* @memberof CartListResource
|
|
84
84
|
*/
|
|
85
85
|
insuranceAmount?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof CartListResource
|
|
90
|
+
*/
|
|
91
|
+
includeInsurance: boolean;
|
|
86
92
|
/**
|
|
87
93
|
*
|
|
88
94
|
* @type {boolean}
|
|
@@ -151,6 +157,7 @@ export interface CartListResource {
|
|
|
151
157
|
export function instanceOfCartListResource(value: object): value is CartListResource {
|
|
152
158
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
153
159
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
160
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
154
161
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
155
162
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
156
163
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
@@ -179,6 +186,7 @@ export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
179
186
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
180
187
|
'overrideShipping': json['override_shipping'],
|
|
181
188
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
189
|
+
'includeInsurance': json['include_insurance'],
|
|
182
190
|
'overrideInsurance': json['override_insurance'],
|
|
183
191
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
184
192
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
@@ -210,6 +218,7 @@ export function CartListResourceToJSONTyped(value?: CartListResource | null, ign
|
|
|
210
218
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
211
219
|
'override_shipping': value['overrideShipping'],
|
|
212
220
|
'insurance_amount': value['insuranceAmount'],
|
|
221
|
+
'include_insurance': value['includeInsurance'],
|
|
213
222
|
'override_insurance': value['overrideInsurance'],
|
|
214
223
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
215
224
|
'expiry_date': value['expiryDate'].toISOString(),
|
|
@@ -133,6 +133,12 @@ export interface CartResource {
|
|
|
133
133
|
* @memberof CartResource
|
|
134
134
|
*/
|
|
135
135
|
insuranceSubtotal?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {boolean}
|
|
139
|
+
* @memberof CartResource
|
|
140
|
+
*/
|
|
141
|
+
includeInsurance: boolean;
|
|
136
142
|
/**
|
|
137
143
|
*
|
|
138
144
|
* @type {boolean}
|
|
@@ -263,6 +269,7 @@ export function instanceOfCartResource(value: object): value is CartResource {
|
|
|
263
269
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
264
270
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
265
271
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
272
|
+
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
|
|
266
273
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
267
274
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
268
275
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
@@ -309,6 +316,7 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
309
316
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
310
317
|
'overrideShipping': json['override_shipping'],
|
|
311
318
|
'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
|
|
319
|
+
'includeInsurance': json['include_insurance'],
|
|
312
320
|
'overrideInsurance': json['override_insurance'],
|
|
313
321
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
314
322
|
'admin': json['admin'],
|
|
@@ -356,6 +364,7 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
356
364
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
357
365
|
'override_shipping': value['overrideShipping'],
|
|
358
366
|
'insurance_subtotal': value['insuranceSubtotal'],
|
|
367
|
+
'include_insurance': value['includeInsurance'],
|
|
359
368
|
'override_insurance': value['overrideInsurance'],
|
|
360
369
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
361
370
|
'admin': value['admin'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
LineItemListResourceToJSON,
|
|
28
28
|
LineItemListResourceToJSONTyped,
|
|
29
29
|
} from './LineItemListResource';
|
|
30
|
+
import type { TransactionLiteResource } from './TransactionLiteResource';
|
|
31
|
+
import {
|
|
32
|
+
TransactionLiteResourceFromJSON,
|
|
33
|
+
TransactionLiteResourceFromJSONTyped,
|
|
34
|
+
TransactionLiteResourceToJSON,
|
|
35
|
+
TransactionLiteResourceToJSONTyped,
|
|
36
|
+
} from './TransactionLiteResource';
|
|
30
37
|
import type { CustomerListResource } from './CustomerListResource';
|
|
31
38
|
import {
|
|
32
39
|
CustomerListResourceFromJSON,
|
|
@@ -131,6 +138,12 @@ export interface OrderListResource {
|
|
|
131
138
|
* @memberof OrderListResource
|
|
132
139
|
*/
|
|
133
140
|
lineItems: Array<LineItemListResource> | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Array<TransactionLiteResource>}
|
|
144
|
+
* @memberof OrderListResource
|
|
145
|
+
*/
|
|
146
|
+
transactions: Array<TransactionLiteResource> | null;
|
|
134
147
|
}
|
|
135
148
|
|
|
136
149
|
/**
|
|
@@ -147,6 +160,7 @@ export function instanceOfOrderListResource(value: object): value is OrderListRe
|
|
|
147
160
|
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
148
161
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
149
162
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
163
|
+
if (!('transactions' in value) || value['transactions'] === undefined) return false;
|
|
150
164
|
return true;
|
|
151
165
|
}
|
|
152
166
|
|
|
@@ -175,6 +189,7 @@ export function OrderListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
175
189
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
176
190
|
'status': json['status'],
|
|
177
191
|
'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
192
|
+
'transactions': (json['transactions'] == null ? null : (json['transactions'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
178
193
|
};
|
|
179
194
|
}
|
|
180
195
|
|
|
@@ -204,6 +219,7 @@ export function OrderListResourceToJSONTyped(value?: OrderListResource | null, i
|
|
|
204
219
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
205
220
|
'status': value['status'],
|
|
206
221
|
'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
222
|
+
'transactions': (value['transactions'] == null ? null : (value['transactions'] as Array<any>).map(TransactionLiteResourceToJSON)),
|
|
207
223
|
};
|
|
208
224
|
}
|
|
209
225
|
|
|
@@ -113,6 +113,12 @@ export interface StoreCartRequest {
|
|
|
113
113
|
* @memberof StoreCartRequest
|
|
114
114
|
*/
|
|
115
115
|
insuranceAmount?: number | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof StoreCartRequest
|
|
120
|
+
*/
|
|
121
|
+
includeInsurance?: boolean;
|
|
116
122
|
/**
|
|
117
123
|
*
|
|
118
124
|
* @type {boolean}
|
|
@@ -209,6 +215,7 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
209
215
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
210
216
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
211
217
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
218
|
+
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
212
219
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
213
220
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
214
221
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
@@ -241,6 +248,7 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
|
|
|
241
248
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
242
249
|
'override_shipping': value['overrideShipping'],
|
|
243
250
|
'insurance_amount': value['insuranceAmount'],
|
|
251
|
+
'include_insurance': value['includeInsurance'],
|
|
244
252
|
'override_insurance': value['overrideInsurance'],
|
|
245
253
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
246
254
|
'shipping_address_id': value['shippingAddressId'],
|
|
@@ -31,12 +31,6 @@ export interface StoreCartRequestShippingAddress {
|
|
|
31
31
|
* @memberof StoreCartRequestShippingAddress
|
|
32
32
|
*/
|
|
33
33
|
company?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof StoreCartRequestShippingAddress
|
|
38
|
-
*/
|
|
39
|
-
addressee?: string | null;
|
|
40
34
|
/**
|
|
41
35
|
*
|
|
42
36
|
* @type {string}
|
|
@@ -94,7 +88,6 @@ export function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDi
|
|
|
94
88
|
|
|
95
89
|
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
96
90
|
'company': json['company'] == null ? undefined : json['company'],
|
|
97
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
98
91
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
99
92
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
100
93
|
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
@@ -117,7 +110,6 @@ export function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequ
|
|
|
117
110
|
|
|
118
111
|
'addressee_name': value['addresseeName'],
|
|
119
112
|
'company': value['company'],
|
|
120
|
-
'addressee': value['addressee'],
|
|
121
113
|
'line_1': value['line1'],
|
|
122
114
|
'line_2': value['line2'],
|
|
123
115
|
'suburb': value['suburb'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,7 +100,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
104
103
|
return true;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -122,7 +121,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
122
121
|
'latitude': json['latitude'],
|
|
123
122
|
'tagLine': json['tag_line'],
|
|
124
123
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
124
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
126
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
127
126
|
};
|
|
128
127
|
}
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|