@digital8/lighting-illusions-ts-sdk 0.0.1954 → 0.0.1956

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 (86) hide show
  1. package/.openapi-generator/FILES +8 -4
  2. package/README.md +6 -4
  3. package/dist/apis/TransactionsApi.d.ts +3 -3
  4. package/dist/apis/TransactionsApi.js +2 -2
  5. package/dist/models/AddressResource.d.ts +7 -1
  6. package/dist/models/AddressResource.js +7 -1
  7. package/dist/models/AdminOrderResource.d.ts +0 -6
  8. package/dist/models/AdminOrderResource.js +0 -4
  9. package/dist/models/CartListResource.d.ts +0 -6
  10. package/dist/models/CartListResource.js +0 -4
  11. package/dist/models/CartResource.d.ts +0 -6
  12. package/dist/models/CartResource.js +0 -4
  13. package/dist/models/OrderListResource.d.ts +0 -7
  14. package/dist/models/OrderListResource.js +0 -5
  15. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  17. package/dist/models/StoreCartRequest.d.ts +0 -6
  18. package/dist/models/StoreCartRequest.js +0 -2
  19. package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
  20. package/dist/models/StoreCartRequestShippingAddress.js +2 -0
  21. package/dist/models/StoreListResource.d.ts +2 -2
  22. package/dist/models/StoreListResource.js +6 -2
  23. package/dist/models/StoreResource.d.ts +1 -1
  24. package/dist/models/StoreResource.js +3 -1
  25. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  27. package/dist/models/TransactionListResource.d.ts +152 -0
  28. package/dist/models/TransactionListResource.js +109 -0
  29. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  31. package/dist/models/TransactionResource.d.ts +24 -0
  32. package/dist/models/TransactionResource.js +8 -0
  33. package/dist/models/UpdateCartRequest.d.ts +0 -6
  34. package/dist/models/UpdateCartRequest.js +0 -2
  35. package/dist/models/UpdateOrderRequest.d.ts +3 -9
  36. package/dist/models/UpdateOrderRequest.js +3 -5
  37. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
  38. package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
  39. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
  40. package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
  41. package/dist/models/index.d.ts +4 -2
  42. package/dist/models/index.js +4 -2
  43. package/docs/AddressResource.md +2 -0
  44. package/docs/AdminOrderResource.md +0 -2
  45. package/docs/CartListResource.md +0 -2
  46. package/docs/CartResource.md +0 -2
  47. package/docs/OrderListResource.md +0 -2
  48. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  49. package/docs/StoreCartRequest.md +0 -2
  50. package/docs/StoreCartRequestShippingAddress.md +2 -0
  51. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  52. package/docs/{TransactionLiteResource.md → TransactionListResource.md} +30 -4
  53. package/docs/{TransactionLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
  54. package/docs/TransactionResource.md +8 -0
  55. package/docs/TransactionsApi.md +3 -3
  56. package/docs/UpdateCartRequest.md +0 -2
  57. package/docs/UpdateOrderRequest.md +1 -3
  58. package/docs/UpdateOrderRequestBillingAddress.md +2 -0
  59. package/docs/UpdateOrderRequestShippingAddress.md +50 -0
  60. package/package.json +1 -1
  61. package/src/apis/TransactionsApi.ts +7 -7
  62. package/src/models/AddressResource.ts +12 -2
  63. package/src/models/AdminOrderResource.ts +0 -9
  64. package/src/models/CartListResource.ts +0 -9
  65. package/src/models/CartResource.ts +0 -9
  66. package/src/models/OrderListResource.ts +0 -16
  67. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  68. package/src/models/StoreCartRequest.ts +0 -8
  69. package/src/models/StoreCartRequestShippingAddress.ts +8 -0
  70. package/src/models/StoreListResource.ts +6 -4
  71. package/src/models/StoreResource.ts +3 -2
  72. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  73. package/src/models/TransactionListResource.ts +235 -0
  74. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  75. package/src/models/TransactionResource.ts +32 -0
  76. package/src/models/UpdateCartRequest.ts +0 -8
  77. package/src/models/UpdateOrderRequest.ts +10 -18
  78. package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
  79. package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
  80. package/src/models/index.ts +4 -2
  81. package/dist/models/TransactionLiteResource.d.ts +0 -74
  82. package/dist/models/TransactionLiteResource.js +0 -77
  83. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
  84. package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
  85. package/src/models/TransactionLiteResource.ts +0 -128
  86. package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
@@ -100,12 +100,6 @@ 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;
109
103
  /**
110
104
  *
111
105
  * @type {boolean}
@@ -291,7 +285,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
291
285
  if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
292
286
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
293
287
  if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
294
- if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
295
288
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
296
289
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
297
290
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
@@ -342,7 +335,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
342
335
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
343
336
  'overrideShipping': json['override_shipping'],
344
337
  'insuranceAmount': json['insurance_amount'],
345
- 'includeInsurance': json['include_insurance'],
346
338
  'overrideInsurance': json['override_insurance'],
347
339
  'useAsBillingAddress': json['use_as_billing_address'],
348
340
  'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
@@ -397,7 +389,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
397
389
  'shipping_subtotal': value['shippingSubtotal'],
398
390
  'override_shipping': value['overrideShipping'],
399
391
  'insurance_amount': value['insuranceAmount'],
400
- 'include_insurance': value['includeInsurance'],
401
392
  'override_insurance': value['overrideInsurance'],
402
393
  'use_as_billing_address': value['useAsBillingAddress'],
403
394
  'netsuite_id': value['netsuiteId'],
@@ -83,12 +83,6 @@ 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;
92
86
  /**
93
87
  *
94
88
  * @type {boolean}
@@ -157,7 +151,6 @@ export interface CartListResource {
157
151
  export function instanceOfCartListResource(value: object): value is CartListResource {
158
152
  if (!('source' in value) || value['source'] === undefined) return false;
159
153
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
160
- if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
161
154
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
162
155
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
163
156
  if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
@@ -186,7 +179,6 @@ export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
186
179
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
187
180
  'overrideShipping': json['override_shipping'],
188
181
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
189
- 'includeInsurance': json['include_insurance'],
190
182
  'overrideInsurance': json['override_insurance'],
191
183
  'useAsBillingAddress': json['use_as_billing_address'],
192
184
  'expiryDate': (new Date(json['expiry_date'])),
@@ -218,7 +210,6 @@ export function CartListResourceToJSONTyped(value?: CartListResource | null, ign
218
210
  'shipping_subtotal': value['shippingSubtotal'],
219
211
  'override_shipping': value['overrideShipping'],
220
212
  'insurance_amount': value['insuranceAmount'],
221
- 'include_insurance': value['includeInsurance'],
222
213
  'override_insurance': value['overrideInsurance'],
223
214
  'use_as_billing_address': value['useAsBillingAddress'],
224
215
  'expiry_date': value['expiryDate'].toISOString(),
@@ -133,12 +133,6 @@ 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;
142
136
  /**
143
137
  *
144
138
  * @type {boolean}
@@ -269,7 +263,6 @@ export function instanceOfCartResource(value: object): value is CartResource {
269
263
  if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
270
264
  if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
271
265
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
272
- if (!('includeInsurance' in value) || value['includeInsurance'] === undefined) return false;
273
266
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
274
267
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
275
268
  if (!('admin' in value) || value['admin'] === undefined) return false;
@@ -316,7 +309,6 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
316
309
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
317
310
  'overrideShipping': json['override_shipping'],
318
311
  'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
319
- 'includeInsurance': json['include_insurance'],
320
312
  'overrideInsurance': json['override_insurance'],
321
313
  'useAsBillingAddress': json['use_as_billing_address'],
322
314
  'admin': json['admin'],
@@ -364,7 +356,6 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
364
356
  'shipping_subtotal': value['shippingSubtotal'],
365
357
  'override_shipping': value['overrideShipping'],
366
358
  'insurance_subtotal': value['insuranceSubtotal'],
367
- 'include_insurance': value['includeInsurance'],
368
359
  'override_insurance': value['overrideInsurance'],
369
360
  'use_as_billing_address': value['useAsBillingAddress'],
370
361
  'admin': value['admin'],
@@ -27,13 +27,6 @@ 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';
37
30
  import type { CustomerListResource } from './CustomerListResource';
38
31
  import {
39
32
  CustomerListResourceFromJSON,
@@ -138,12 +131,6 @@ export interface OrderListResource {
138
131
  * @memberof OrderListResource
139
132
  */
140
133
  lineItems: Array<LineItemListResource> | null;
141
- /**
142
- *
143
- * @type {Array<TransactionLiteResource>}
144
- * @memberof OrderListResource
145
- */
146
- transactions: Array<TransactionLiteResource> | null;
147
134
  }
148
135
 
149
136
  /**
@@ -160,7 +147,6 @@ export function instanceOfOrderListResource(value: object): value is OrderListRe
160
147
  if (!('customer' in value) || value['customer'] === undefined) return false;
161
148
  if (!('status' in value) || value['status'] === undefined) return false;
162
149
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
163
- if (!('transactions' in value) || value['transactions'] === undefined) return false;
164
150
  return true;
165
151
  }
166
152
 
@@ -189,7 +175,6 @@ export function OrderListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
189
175
  'customer': CustomerListResourceFromJSON(json['customer']),
190
176
  'status': json['status'],
191
177
  '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)),
193
178
  };
194
179
  }
195
180
 
@@ -219,7 +204,6 @@ export function OrderListResourceToJSONTyped(value?: OrderListResource | null, i
219
204
  'customer': CustomerListResourceToJSON(value['customer']),
220
205
  'status': value['status'],
221
206
  '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)),
223
207
  };
224
208
  }
225
209
 
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { TransactionListResource } from './TransactionListResource';
24
+ import {
25
+ TransactionListResourceFromJSON,
26
+ TransactionListResourceFromJSONTyped,
27
+ TransactionListResourceToJSON,
28
+ TransactionListResourceToJSONTyped,
29
+ } from './TransactionListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTransactionListResourceResponse
35
+ */
36
+ export interface PaginatedTransactionListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TransactionListResource>}
40
+ * @memberof PaginatedTransactionListResourceResponse
41
+ */
42
+ data: Array<TransactionListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTransactionListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
61
+ return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
76
+ return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -113,12 +113,6 @@ 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;
122
116
  /**
123
117
  *
124
118
  * @type {boolean}
@@ -215,7 +209,6 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
215
209
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
216
210
  'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
217
211
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
218
- 'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
219
212
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
220
213
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
221
214
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
@@ -248,7 +241,6 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
248
241
  'shipping_subtotal': value['shippingSubtotal'],
249
242
  'override_shipping': value['overrideShipping'],
250
243
  'insurance_amount': value['insuranceAmount'],
251
- 'include_insurance': value['includeInsurance'],
252
244
  'override_insurance': value['overrideInsurance'],
253
245
  'use_as_billing_address': value['useAsBillingAddress'],
254
246
  'shipping_address_id': value['shippingAddressId'],
@@ -31,6 +31,12 @@ 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;
34
40
  /**
35
41
  *
36
42
  * @type {string}
@@ -88,6 +94,7 @@ export function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDi
88
94
 
89
95
  'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
90
96
  'company': json['company'] == null ? undefined : json['company'],
97
+ 'addressee': json['addressee'] == null ? undefined : json['addressee'],
91
98
  'line1': json['line_1'] == null ? undefined : json['line_1'],
92
99
  'line2': json['line_2'] == null ? undefined : json['line_2'],
93
100
  'suburb': json['suburb'] == null ? undefined : json['suburb'],
@@ -110,6 +117,7 @@ export function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequ
110
117
 
111
118
  'addressee_name': value['addresseeName'],
112
119
  'company': value['company'],
120
+ 'addressee': value['addressee'],
113
121
  'line_1': value['line1'],
114
122
  'line_2': value['line2'],
115
123
  'suburb': value['suburb'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -98,7 +98,9 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
98
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
101
102
  if (!('email' in value) || value['email'] === undefined) return false;
103
+ if (!('website' in value) || value['website'] === undefined) return false;
102
104
  return true;
103
105
  }
104
106
 
@@ -118,9 +120,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
118
120
  'phone': json['phone'],
119
121
  'longitude': json['longitude'],
120
122
  'latitude': json['latitude'],
121
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
+ 'tagLine': json['tag_line'],
122
124
  'email': json['email'],
123
- 'website': json['website'] == null ? undefined : json['website'],
125
+ 'website': json['website'],
124
126
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
125
127
  };
126
128
  }
@@ -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'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ 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;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],
@@ -0,0 +1,235 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TransactionListResource
20
+ */
21
+ export interface TransactionListResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TransactionListResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof TransactionListResource
32
+ */
33
+ orderId?: number | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof TransactionListResource
38
+ */
39
+ cartId?: number | null;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof TransactionListResource
44
+ */
45
+ adminId?: number | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof TransactionListResource
50
+ */
51
+ paymentSource: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof TransactionListResource
56
+ */
57
+ paymentMethod: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof TransactionListResource
62
+ */
63
+ type: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof TransactionListResource
68
+ */
69
+ status: string;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof TransactionListResource
74
+ */
75
+ amount: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof TransactionListResource
80
+ */
81
+ surcharge: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof TransactionListResource
86
+ */
87
+ totalAmount: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof TransactionListResource
92
+ */
93
+ refundedAmount: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof TransactionListResource
98
+ */
99
+ unrefundedAmount: number;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof TransactionListResource
104
+ */
105
+ reference: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof TransactionListResource
110
+ */
111
+ description?: string | null;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof TransactionListResource
116
+ */
117
+ extendedData?: string | null;
118
+ /**
119
+ *
120
+ * @type {string}
121
+ * @memberof TransactionListResource
122
+ */
123
+ riskScore?: string | null;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof TransactionListResource
128
+ */
129
+ fraudDecision?: string | null;
130
+ /**
131
+ *
132
+ * @type {number}
133
+ * @memberof TransactionListResource
134
+ */
135
+ refundedTransactionId?: number | null;
136
+ /**
137
+ *
138
+ * @type {Date}
139
+ * @memberof TransactionListResource
140
+ */
141
+ createdAt?: Date | null;
142
+ /**
143
+ *
144
+ * @type {Date}
145
+ * @memberof TransactionListResource
146
+ */
147
+ updatedAt?: Date | null;
148
+ }
149
+
150
+ /**
151
+ * Check if a given object implements the TransactionListResource interface.
152
+ */
153
+ export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
154
+ if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
155
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
156
+ if (!('type' in value) || value['type'] === undefined) return false;
157
+ if (!('status' in value) || value['status'] === undefined) return false;
158
+ if (!('amount' in value) || value['amount'] === undefined) return false;
159
+ if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
160
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
161
+ if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
162
+ if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
163
+ if (!('reference' in value) || value['reference'] === undefined) return false;
164
+ return true;
165
+ }
166
+
167
+ export function TransactionListResourceFromJSON(json: any): TransactionListResource {
168
+ return TransactionListResourceFromJSONTyped(json, false);
169
+ }
170
+
171
+ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
172
+ if (json == null) {
173
+ return json;
174
+ }
175
+ return {
176
+
177
+ 'id': json['id'] == null ? undefined : json['id'],
178
+ 'orderId': json['order_id'] == null ? undefined : json['order_id'],
179
+ 'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
180
+ 'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
181
+ 'paymentSource': json['payment_source'],
182
+ 'paymentMethod': json['payment_method'],
183
+ 'type': json['type'],
184
+ 'status': json['status'],
185
+ 'amount': json['amount'],
186
+ 'surcharge': json['surcharge'],
187
+ 'totalAmount': json['total_amount'],
188
+ 'refundedAmount': json['refunded_amount'],
189
+ 'unrefundedAmount': json['unrefunded_amount'],
190
+ 'reference': json['reference'],
191
+ 'description': json['description'] == null ? undefined : json['description'],
192
+ 'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
193
+ 'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
194
+ 'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
195
+ 'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
196
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
197
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
198
+ };
199
+ }
200
+
201
+ export function TransactionListResourceToJSON(json: any): TransactionListResource {
202
+ return TransactionListResourceToJSONTyped(json, false);
203
+ }
204
+
205
+ export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
206
+ if (value == null) {
207
+ return value;
208
+ }
209
+
210
+ return {
211
+
212
+ 'id': value['id'],
213
+ 'order_id': value['orderId'],
214
+ 'cart_id': value['cartId'],
215
+ 'admin_id': value['adminId'],
216
+ 'payment_source': value['paymentSource'],
217
+ 'payment_method': value['paymentMethod'],
218
+ 'type': value['type'],
219
+ 'status': value['status'],
220
+ 'amount': value['amount'],
221
+ 'surcharge': value['surcharge'],
222
+ 'total_amount': value['totalAmount'],
223
+ 'refunded_amount': value['refundedAmount'],
224
+ 'unrefunded_amount': value['unrefundedAmount'],
225
+ 'reference': value['reference'],
226
+ 'description': value['description'],
227
+ 'extended_data': value['extendedData'],
228
+ 'risk_score': value['riskScore'],
229
+ 'fraud_decision': value['fraudDecision'],
230
+ 'refunded_transaction_id': value['refundedTransactionId'],
231
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
232
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
233
+ };
234
+ }
235
+