@digital8/lighting-illusions-ts-sdk 0.0.1953 → 0.0.1955

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.
Files changed (88) hide show
  1. package/.openapi-generator/FILES +4 -8
  2. package/README.md +4 -6
  3. package/dist/apis/TransactionsApi.d.ts +3 -3
  4. package/dist/apis/TransactionsApi.js +2 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +2 -8
  8. package/dist/models/AddressResource.js +2 -10
  9. package/dist/models/AdminOrderResource.d.ts +6 -0
  10. package/dist/models/AdminOrderResource.js +4 -0
  11. package/dist/models/CartListResource.d.ts +6 -0
  12. package/dist/models/CartListResource.js +4 -0
  13. package/dist/models/CartResource.d.ts +6 -0
  14. package/dist/models/CartResource.js +4 -0
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +1 -3
  17. package/dist/models/OrderListResource.d.ts +7 -0
  18. package/dist/models/OrderListResource.js +5 -0
  19. package/dist/models/StoreCartRequest.d.ts +6 -0
  20. package/dist/models/StoreCartRequest.js +2 -0
  21. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
  22. package/dist/models/StoreCartRequestShippingAddress.js +0 -2
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +3 -1
  25. package/dist/models/StoreResource.d.ts +1 -1
  26. package/dist/models/StoreResource.js +3 -1
  27. package/dist/models/TransactionLiteResource.d.ts +74 -0
  28. package/dist/models/TransactionLiteResource.js +77 -0
  29. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
  31. package/dist/models/TransactionResource.d.ts +0 -24
  32. package/dist/models/TransactionResource.js +0 -8
  33. package/dist/models/UpdateCartRequest.d.ts +6 -0
  34. package/dist/models/UpdateCartRequest.js +2 -0
  35. package/dist/models/UpdateOrderRequest.d.ts +9 -3
  36. package/dist/models/UpdateOrderRequest.js +5 -3
  37. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
  38. package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
  39. package/dist/models/index.d.ts +2 -4
  40. package/dist/models/index.js +2 -4
  41. package/docs/AddressResource.md +0 -2
  42. package/docs/AdminOrderResource.md +2 -0
  43. package/docs/CartListResource.md +2 -0
  44. package/docs/CartResource.md +2 -0
  45. package/docs/OrderListResource.md +2 -0
  46. package/docs/StoreCartRequest.md +2 -0
  47. package/docs/StoreCartRequestShippingAddress.md +0 -2
  48. package/docs/{TransactionListResource.md → TransactionLiteResource.md} +4 -30
  49. package/docs/{TransactionListResourceArrayResponse.md → TransactionLiteResourceArrayResponse.md} +5 -5
  50. package/docs/TransactionResource.md +0 -8
  51. package/docs/TransactionsApi.md +3 -3
  52. package/docs/UpdateCartRequest.md +2 -0
  53. package/docs/UpdateOrderRequest.md +3 -1
  54. package/docs/UpdateOrderRequestBillingAddress.md +0 -2
  55. package/package.json +1 -1
  56. package/src/apis/TransactionsApi.ts +7 -7
  57. package/src/models/AddressFrontendResource.ts +3 -2
  58. package/src/models/AddressResource.ts +4 -15
  59. package/src/models/AdminOrderResource.ts +9 -0
  60. package/src/models/CartListResource.ts +9 -0
  61. package/src/models/CartResource.ts +9 -0
  62. package/src/models/ExternalApiLogResource.ts +2 -3
  63. package/src/models/OrderListResource.ts +16 -0
  64. package/src/models/StoreCartRequest.ts +8 -0
  65. package/src/models/StoreCartRequestShippingAddress.ts +0 -8
  66. package/src/models/StoreFrontendResource.ts +3 -2
  67. package/src/models/StoreResource.ts +3 -2
  68. package/src/models/TransactionLiteResource.ts +128 -0
  69. package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
  70. package/src/models/TransactionResource.ts +0 -32
  71. package/src/models/UpdateCartRequest.ts +8 -0
  72. package/src/models/UpdateOrderRequest.ts +18 -10
  73. package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
  74. package/src/models/index.ts +2 -4
  75. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  76. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  77. package/dist/models/TransactionListResource.d.ts +0 -152
  78. package/dist/models/TransactionListResource.js +0 -109
  79. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  80. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  81. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  82. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  83. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  84. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  85. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  86. package/src/models/TransactionListResource.ts +0 -235
  87. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
  88. 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)
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
12
12
 
13
13
  ## indexTransaction
14
14
 
15
- > PaginatedTransactionListResourceResponse indexTransaction(indexTransactionRequest)
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
- [**PaginatedTransactionListResourceResponse**](PaginatedTransactionListResourceResponse.md)
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<\\TransactionListResource[]>> | - |
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` | [UpdateOrderRequestShippingAddress](UpdateOrderRequestShippingAddress.md)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1953",
3
+ "version": "0.0.1955",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,10 +24,10 @@ import {
24
24
  IndexTransactionRequestToJSON,
25
25
  } from '../models/IndexTransactionRequest';
26
26
  import {
27
- type PaginatedTransactionListResourceResponse,
28
- PaginatedTransactionListResourceResponseFromJSON,
29
- PaginatedTransactionListResourceResponseToJSON,
30
- } from '../models/PaginatedTransactionListResourceResponse';
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<PaginatedTransactionListResourceResponse>> {
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) => PaginatedTransactionListResourceResponseFromJSON(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<PaginatedTransactionListResourceResponse> {
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
  }
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company?: string | null;
27
+ company: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
+ if (!('company' in value) || value['company'] === undefined) return false;
76
77
  if (!('line1' in value) || value['line1'] === 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;
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
92
93
  }
93
94
  return {
94
95
 
95
- 'company': json['company'] == null ? undefined : json['company'],
96
+ 'company': json['company'],
96
97
  'line1': json['line1'],
97
98
  'line2': json['line2'] == null ? undefined : json['line2'],
98
99
  'postcode': json['postcode'],
@@ -36,19 +36,13 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addresseeName: string;
39
+ addresseeName?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
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}
@@ -60,7 +54,7 @@ export interface AddressResource {
60
54
  * @type {string}
61
55
  * @memberof AddressResource
62
56
  */
63
- line2: string;
57
+ line2?: string | null;
64
58
  /**
65
59
  *
66
60
  * @type {string}
@@ -97,11 +91,8 @@ export interface AddressResource {
97
91
  * Check if a given object implements the AddressResource interface.
98
92
  */
99
93
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
- if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
94
  if (!('company' in value) || value['company'] === undefined) return false;
102
- if (!('addressee' in value) || value['addressee'] === undefined) return false;
103
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
104
- if (!('line2' in value) || value['line2'] === undefined) return false;
105
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
106
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
107
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -122,11 +113,10 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
122
113
 
123
114
  'id': json['id'] == null ? undefined : json['id'],
124
115
  'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
125
- 'addresseeName': json['addressee_name'],
116
+ 'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
126
117
  'company': json['company'],
127
- 'addressee': json['addressee'],
128
118
  'line1': json['line_1'],
129
- 'line2': json['line_2'],
119
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
130
120
  'postcode': json['postcode'],
131
121
  'suburb': json['suburb'],
132
122
  'country': json['country'],
@@ -150,7 +140,6 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
150
140
  'source_address_id': value['sourceAddressId'],
151
141
  'addressee_name': value['addresseeName'],
152
142
  'company': value['company'],
153
- 'addressee': value['addressee'],
154
143
  'line_1': value['line1'],
155
144
  'line_2': value['line2'],
156
145
  '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: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  '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'],
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
116
  return true;
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
135
  'address': json['address'] == null ? undefined : json['address'],
135
136
  'latitude': json['latitude'],
136
137
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
138
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
140
  'specialDates': json['specialDates'],
140
141
  'suppliers': json['suppliers'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -137,6 +137,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
140
141
  if (!('email' in value) || value['email'] === undefined) return false;
141
142
  if (!('website' in value) || value['website'] === undefined) return false;
142
143
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -161,7 +162,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
161
162
  'phone': json['phone'],
162
163
  'longitude': json['longitude'],
163
164
  'latitude': json['latitude'],
164
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
165
+ 'tagLine': json['tag_line'],
165
166
  'email': json['email'],
166
167
  'website': json['website'],
167
168
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],