@digital8/lighting-illusions-ts-sdk 0.0.2024 → 0.0.2026

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 (89) hide show
  1. package/.openapi-generator/FILES +6 -14
  2. package/README.md +5 -9
  3. package/dist/apis/TransactionsApi.d.ts +3 -3
  4. package/dist/apis/TransactionsApi.js +2 -2
  5. package/dist/models/AddressResource.d.ts +8 -2
  6. package/dist/models/AddressResource.js +4 -6
  7. package/dist/models/AdminNoteResource.d.ts +0 -12
  8. package/dist/models/AdminNoteResource.js +0 -8
  9. package/dist/models/AdminOrderResource.d.ts +3 -3
  10. package/dist/models/AdminOrderResource.js +3 -3
  11. package/dist/models/CartResource.d.ts +3 -3
  12. package/dist/models/CartResource.js +3 -3
  13. package/dist/models/CustomerListResource.d.ts +0 -7
  14. package/dist/models/CustomerListResource.js +0 -5
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +1 -3
  17. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  19. package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -18
  20. package/dist/models/ProductChildLineItemLiteResource.js +0 -12
  21. package/dist/models/StoreFrontendResource.d.ts +1 -1
  22. package/dist/models/StoreFrontendResource.js +1 -3
  23. package/dist/models/StoreResource.d.ts +2 -2
  24. package/dist/models/StoreResource.js +2 -6
  25. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateResource.js +1 -3
  27. package/dist/models/TransactionListResource.d.ts +80 -0
  28. package/dist/models/TransactionListResource.js +81 -0
  29. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  31. package/dist/models/TransactionLiteResource.d.ts +6 -0
  32. package/dist/models/TransactionLiteResource.js +2 -0
  33. package/dist/models/index.d.ts +3 -7
  34. package/dist/models/index.js +3 -7
  35. package/docs/AddressResource.md +2 -0
  36. package/docs/AdminNoteResource.md +0 -4
  37. package/docs/AdminOrderResource.md +1 -1
  38. package/docs/CartResource.md +1 -1
  39. package/docs/CustomerListResource.md +0 -2
  40. package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionListResourceResponse.md} +7 -5
  41. package/docs/ProductChildLineItemLiteResource.md +0 -6
  42. package/docs/StoreSpecialDateResource.md +1 -1
  43. package/docs/TransactionListResource.md +50 -0
  44. package/docs/{CartCouponLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
  45. package/docs/TransactionLiteResource.md +2 -0
  46. package/docs/TransactionsApi.md +3 -3
  47. package/package.json +1 -1
  48. package/src/apis/TransactionsApi.ts +7 -7
  49. package/src/models/AddressResource.ts +12 -6
  50. package/src/models/AdminNoteResource.ts +0 -18
  51. package/src/models/AdminOrderResource.ts +11 -11
  52. package/src/models/CartResource.ts +11 -11
  53. package/src/models/CustomerListResource.ts +0 -16
  54. package/src/models/ExternalApiLogResource.ts +2 -3
  55. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  56. package/src/models/ProductChildLineItemLiteResource.ts +0 -27
  57. package/src/models/StoreFrontendResource.ts +2 -3
  58. package/src/models/StoreResource.ts +4 -6
  59. package/src/models/StoreSpecialDateResource.ts +3 -4
  60. package/src/models/TransactionListResource.ts +137 -0
  61. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  62. package/src/models/TransactionLiteResource.ts +8 -0
  63. package/src/models/index.ts +3 -7
  64. package/dist/models/CartCouponLiteResource.d.ts +0 -56
  65. package/dist/models/CartCouponLiteResource.js +0 -67
  66. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
  67. package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
  68. package/dist/models/FrontendCartResource.d.ts +0 -138
  69. package/dist/models/FrontendCartResource.js +0 -119
  70. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  71. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  72. package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
  73. package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
  74. package/dist/models/FrontendLineItemResource.d.ts +0 -81
  75. package/dist/models/FrontendLineItemResource.js +0 -82
  76. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
  77. package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
  78. package/docs/CartCouponLiteResource.md +0 -42
  79. package/docs/FrontendCartResource.md +0 -68
  80. package/docs/FrontendCartResourceArrayResponse.md +0 -34
  81. package/docs/FrontendCartResourceCouponsInner.md +0 -42
  82. package/docs/FrontendLineItemResource.md +0 -50
  83. package/src/models/CartCouponLiteResource.ts +0 -102
  84. package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
  85. package/src/models/FrontendCartResource.ts +0 -246
  86. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  87. package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
  88. package/src/models/FrontendLineItemResource.ts +0 -145
  89. package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
@@ -1,22 +1,22 @@
1
1
 
2
- # CartCouponLiteResourceArrayResponse
2
+ # TransactionListResourceArrayResponse
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
9
+ `data` | [Array<TransactionListResource>](TransactionListResource.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { TransactionListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "data": null,
19
- } satisfies CartCouponLiteResourceArrayResponse
19
+ } satisfies TransactionListResourceArrayResponse
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as CartCouponLiteResourceArrayResponse
28
+ const exampleParsed = JSON.parse(exampleJSON) as TransactionListResourceArrayResponse
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `id` | number
9
10
  `paymentSource` | string
10
11
  `paymentMethod` | string
11
12
  `paymentMethodThumbnail` | string
@@ -24,6 +25,7 @@ import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sd
24
25
 
25
26
  // TODO: Update the object below with actual values
26
27
  const example = {
28
+ "id": null,
27
29
  "paymentSource": null,
28
30
  "paymentMethod": null,
29
31
  "paymentMethodThumbnail": null,
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
12
12
 
13
13
  ## indexTransaction
14
14
 
15
- > PaginatedTransactionResourceResponse indexTransaction(searchTransactionsRequest)
15
+ > PaginatedTransactionListResourceResponse indexTransaction(searchTransactionsRequest)
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
- [**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
58
+ [**PaginatedTransactionListResourceResponse**](PaginatedTransactionListResourceResponse.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<\\TransactionResource[]>> | - |
73
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionListResource[]>> | - |
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2024",
3
+ "version": "0.0.2026",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,10 +19,10 @@ import {
19
19
  CreateTransactionRequestToJSON,
20
20
  } from '../models/CreateTransactionRequest';
21
21
  import {
22
- type PaginatedTransactionResourceResponse,
23
- PaginatedTransactionResourceResponseFromJSON,
24
- PaginatedTransactionResourceResponseToJSON,
25
- } from '../models/PaginatedTransactionResourceResponse';
22
+ type PaginatedTransactionListResourceResponse,
23
+ PaginatedTransactionListResourceResponseFromJSON,
24
+ PaginatedTransactionListResourceResponseToJSON,
25
+ } from '../models/PaginatedTransactionListResourceResponse';
26
26
  import {
27
27
  type RefundTransactionRequest,
28
28
  RefundTransactionRequestFromJSON,
@@ -87,17 +87,17 @@ export class TransactionsApi extends runtime.BaseAPI {
87
87
  /**
88
88
  * Auto-generated: indexTransaction
89
89
  */
90
- async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionResourceResponse>> {
90
+ async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionListResourceResponse>> {
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) => PaginatedTransactionResourceResponseFromJSON(jsonValue));
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTransactionListResourceResponseFromJSON(jsonValue));
95
95
  }
96
96
 
97
97
  /**
98
98
  * Auto-generated: indexTransaction
99
99
  */
100
- async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse> {
100
+ async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionListResourceResponse> {
101
101
  const response = await this.indexTransactionRaw(requestParameters, initOverrides);
102
102
  return await response.value();
103
103
  }
@@ -25,6 +25,12 @@ export interface AddressResource {
25
25
  * @memberof AddressResource
26
26
  */
27
27
  id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AddressResource
32
+ */
33
+ type?: string | null;
28
34
  /**
29
35
  *
30
36
  * @type {number}
@@ -36,7 +42,7 @@ export interface AddressResource {
36
42
  * @type {string}
37
43
  * @memberof AddressResource
38
44
  */
39
- addresseeName: string;
45
+ addresseeName?: string | null;
40
46
  /**
41
47
  *
42
48
  * @type {string}
@@ -54,7 +60,7 @@ export interface AddressResource {
54
60
  * @type {string}
55
61
  * @memberof AddressResource
56
62
  */
57
- line2: string;
63
+ line2?: string | null;
58
64
  /**
59
65
  *
60
66
  * @type {string}
@@ -91,9 +97,7 @@ export interface AddressResource {
91
97
  * Check if a given object implements the AddressResource interface.
92
98
  */
93
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
94
- if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
100
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
- if (!('line2' in value) || value['line2'] === undefined) return false;
97
101
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
102
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
103
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -113,11 +117,12 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
113
117
  return {
114
118
 
115
119
  'id': json['id'] == null ? undefined : json['id'],
120
+ 'type': json['type'] == null ? undefined : json['type'],
116
121
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
117
- 'addresseeName': json['addresseeName'],
122
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
118
123
  'company': json['company'] == null ? undefined : json['company'],
119
124
  'line1': json['line1'],
120
- 'line2': json['line2'],
125
+ 'line2': json['line2'] == null ? undefined : json['line2'],
121
126
  'postcode': json['postcode'],
122
127
  'suburb': json['suburb'],
123
128
  'country': json['country'],
@@ -138,6 +143,7 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
138
143
  return {
139
144
 
140
145
  'id': value['id'],
146
+ 'type': value['type'],
141
147
  'sourceAddressId': value['sourceAddressId'],
142
148
  'addresseeName': value['addresseeName'],
143
149
  'company': value['company'],
@@ -33,18 +33,6 @@ export interface AdminNoteResource {
33
33
  * @memberof AdminNoteResource
34
34
  */
35
35
  id: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof AdminNoteResource
40
- */
41
- orderId: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof AdminNoteResource
46
- */
47
- adminId: number;
48
36
  /**
49
37
  *
50
38
  * @type {string}
@@ -76,8 +64,6 @@ export interface AdminNoteResource {
76
64
  */
77
65
  export function instanceOfAdminNoteResource(value: object): value is AdminNoteResource {
78
66
  if (!('id' in value) || value['id'] === undefined) return false;
79
- if (!('orderId' in value) || value['orderId'] === undefined) return false;
80
- if (!('adminId' in value) || value['adminId'] === undefined) return false;
81
67
  if (!('note' in value) || value['note'] === undefined) return false;
82
68
  if (!('admin' in value) || value['admin'] === undefined) return false;
83
69
  return true;
@@ -94,8 +80,6 @@ export function AdminNoteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
94
80
  return {
95
81
 
96
82
  'id': json['id'],
97
- 'orderId': json['orderId'],
98
- 'adminId': json['adminId'],
99
83
  'note': json['note'],
100
84
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
101
85
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -115,8 +99,6 @@ export function AdminNoteResourceToJSONTyped(value?: AdminNoteResource | null, i
115
99
  return {
116
100
 
117
101
  'id': value['id'],
118
- 'orderId': value['orderId'],
119
- 'adminId': value['adminId'],
120
102
  'note': value['note'],
121
103
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
122
104
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
@@ -55,6 +55,13 @@ import {
55
55
  CartCouponResourceToJSON,
56
56
  CartCouponResourceToJSONTyped,
57
57
  } from './CartCouponResource';
58
+ import type { CustomerResource } from './CustomerResource';
59
+ import {
60
+ CustomerResourceFromJSON,
61
+ CustomerResourceFromJSONTyped,
62
+ CustomerResourceToJSON,
63
+ CustomerResourceToJSONTyped,
64
+ } from './CustomerResource';
58
65
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
59
66
  import {
60
67
  LiAdminUserLiteResourceFromJSON,
@@ -69,13 +76,6 @@ import {
69
76
  OmnisendSyncLiteResourceToJSON,
70
77
  OmnisendSyncLiteResourceToJSONTyped,
71
78
  } from './OmnisendSyncLiteResource';
72
- import type { CustomerListResource } from './CustomerListResource';
73
- import {
74
- CustomerListResourceFromJSON,
75
- CustomerListResourceFromJSONTyped,
76
- CustomerListResourceToJSON,
77
- CustomerListResourceToJSONTyped,
78
- } from './CustomerListResource';
79
79
  import type { AddressResource } from './AddressResource';
80
80
  import {
81
81
  AddressResourceFromJSON,
@@ -296,10 +296,10 @@ export interface AdminOrderResource {
296
296
  site: SiteLiteResource | null;
297
297
  /**
298
298
  *
299
- * @type {CustomerListResource}
299
+ * @type {CustomerResource}
300
300
  * @memberof AdminOrderResource
301
301
  */
302
- customer: CustomerListResource | null;
302
+ customer: CustomerResource | null;
303
303
  /**
304
304
  *
305
305
  * @type {LiAdminUserLiteResource}
@@ -446,7 +446,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
446
446
  'shippingEstimate': json['shippingEstimate'],
447
447
  'insuranceEstimate': json['insuranceEstimate'],
448
448
  'site': SiteLiteResourceFromJSON(json['site']),
449
- 'customer': CustomerListResourceFromJSON(json['customer']),
449
+ 'customer': CustomerResourceFromJSON(json['customer']),
450
450
  'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
451
451
  'status': OrderStatusLiteResourceFromJSON(json['status']),
452
452
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
@@ -504,7 +504,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
504
504
  'shippingEstimate': value['shippingEstimate'],
505
505
  'insuranceEstimate': value['insuranceEstimate'],
506
506
  'site': SiteLiteResourceToJSON(value['site']),
507
- 'customer': CustomerListResourceToJSON(value['customer']),
507
+ 'customer': CustomerResourceToJSON(value['customer']),
508
508
  'admin': LiAdminUserLiteResourceToJSON(value['admin']),
509
509
  'status': OrderStatusLiteResourceToJSON(value['status']),
510
510
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
@@ -27,6 +27,13 @@ import {
27
27
  LineItemListResourceToJSON,
28
28
  LineItemListResourceToJSONTyped,
29
29
  } from './LineItemListResource';
30
+ import type { CustomerResource } from './CustomerResource';
31
+ import {
32
+ CustomerResourceFromJSON,
33
+ CustomerResourceFromJSONTyped,
34
+ CustomerResourceToJSON,
35
+ CustomerResourceToJSONTyped,
36
+ } from './CustomerResource';
30
37
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
31
38
  import {
32
39
  LiAdminUserLiteResourceFromJSON,
@@ -34,13 +41,6 @@ import {
34
41
  LiAdminUserLiteResourceToJSON,
35
42
  LiAdminUserLiteResourceToJSONTyped,
36
43
  } from './LiAdminUserLiteResource';
37
- import type { CustomerListResource } from './CustomerListResource';
38
- import {
39
- CustomerListResourceFromJSON,
40
- CustomerListResourceFromJSONTyped,
41
- CustomerListResourceToJSON,
42
- CustomerListResourceToJSONTyped,
43
- } from './CustomerListResource';
44
44
  import type { AddressResource } from './AddressResource';
45
45
  import {
46
46
  AddressResourceFromJSON,
@@ -165,10 +165,10 @@ export interface CartResource {
165
165
  site: SiteLiteResource | null;
166
166
  /**
167
167
  *
168
- * @type {CustomerListResource}
168
+ * @type {CustomerResource}
169
169
  * @memberof CartResource
170
170
  */
171
- customer: CustomerListResource | null;
171
+ customer: CustomerResource | null;
172
172
  /**
173
173
  *
174
174
  * @type {Array<LineItemListResource>}
@@ -321,7 +321,7 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
321
321
  'useAsBillingAddress': json['useAsBillingAddress'],
322
322
  'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
323
323
  'site': SiteLiteResourceFromJSON(json['site']),
324
- 'customer': CustomerListResourceFromJSON(json['customer']),
324
+ 'customer': CustomerResourceFromJSON(json['customer']),
325
325
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
326
326
  'coupons': json['coupons'],
327
327
  'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
@@ -369,7 +369,7 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
369
369
  'useAsBillingAddress': value['useAsBillingAddress'],
370
370
  'admin': LiAdminUserLiteResourceToJSON(value['admin']),
371
371
  'site': SiteLiteResourceToJSON(value['site']),
372
- 'customer': CustomerListResourceToJSON(value['customer']),
372
+ 'customer': CustomerResourceToJSON(value['customer']),
373
373
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
374
374
  'coupons': value['coupons'],
375
375
  'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
@@ -20,13 +20,6 @@ import {
20
20
  SiteLiteResourceToJSON,
21
21
  SiteLiteResourceToJSONTyped,
22
22
  } from './SiteLiteResource';
23
- import type { LiAddressResource } from './LiAddressResource';
24
- import {
25
- LiAddressResourceFromJSON,
26
- LiAddressResourceFromJSONTyped,
27
- LiAddressResourceToJSON,
28
- LiAddressResourceToJSONTyped,
29
- } from './LiAddressResource';
30
23
 
31
24
  /**
32
25
  *
@@ -70,12 +63,6 @@ export interface CustomerListResource {
70
63
  * @memberof CustomerListResource
71
64
  */
72
65
  site: SiteLiteResource | null;
73
- /**
74
- *
75
- * @type {Array<LiAddressResource>}
76
- * @memberof CustomerListResource
77
- */
78
- addresses: Array<LiAddressResource> | null;
79
66
  }
80
67
 
81
68
  /**
@@ -87,7 +74,6 @@ export function instanceOfCustomerListResource(value: object): value is Customer
87
74
  if (!('email' in value) || value['email'] === undefined) return false;
88
75
  if (!('phone' in value) || value['phone'] === undefined) return false;
89
76
  if (!('site' in value) || value['site'] === undefined) return false;
90
- if (!('addresses' in value) || value['addresses'] === undefined) return false;
91
77
  return true;
92
78
  }
93
79
 
@@ -107,7 +93,6 @@ export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator
107
93
  'email': json['email'],
108
94
  'phone': json['phone'],
109
95
  'site': SiteLiteResourceFromJSON(json['site']),
110
- 'addresses': (json['addresses'] == null ? null : (json['addresses'] as Array<any>).map(LiAddressResourceFromJSON)),
111
96
  };
112
97
  }
113
98
 
@@ -128,7 +113,6 @@ export function CustomerListResourceToJSONTyped(value?: CustomerListResource | n
128
113
  'email': value['email'],
129
114
  'phone': value['phone'],
130
115
  'site': SiteLiteResourceToJSON(value['site']),
131
- 'addresses': (value['addresses'] == null ? null : (value['addresses'] as Array<any>).map(LiAddressResourceToJSON)),
132
116
  };
133
117
  }
134
118
 
@@ -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']),
@@ -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
+
@@ -70,24 +70,6 @@ export interface ProductChildLineItemLiteResource {
70
70
  * @memberof ProductChildLineItemLiteResource
71
71
  */
72
72
  name: string;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof ProductChildLineItemLiteResource
77
- */
78
- parentName: string;
79
- /**
80
- *
81
- * @type {string}
82
- * @memberof ProductChildLineItemLiteResource
83
- */
84
- variantName: string;
85
- /**
86
- *
87
- * @type {string}
88
- * @memberof ProductChildLineItemLiteResource
89
- */
90
- slug: string;
91
73
  /**
92
74
  *
93
75
  * @type {number}
@@ -124,9 +106,6 @@ export function instanceOfProductChildLineItemLiteResource(value: object): value
124
106
  if (!('model' in value) || value['model'] === undefined) return false;
125
107
  if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
126
108
  if (!('name' in value) || value['name'] === undefined) return false;
127
- if (!('parentName' in value) || value['parentName'] === undefined) return false;
128
- if (!('variantName' in value) || value['variantName'] === undefined) return false;
129
- if (!('slug' in value) || value['slug'] === undefined) return false;
130
109
  if (!('stock' in value) || value['stock'] === undefined) return false;
131
110
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
132
111
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
@@ -150,9 +129,6 @@ export function ProductChildLineItemLiteResourceFromJSONTyped(json: any, ignoreD
150
129
  'model': json['model'],
151
130
  'modelNumber': json['modelNumber'],
152
131
  'name': json['name'],
153
- 'parentName': json['parentName'],
154
- 'variantName': json['variantName'],
155
- 'slug': json['slug'],
156
132
  'stock': json['stock'],
157
133
  'salePrice': json['salePrice'],
158
134
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
@@ -177,9 +153,6 @@ export function ProductChildLineItemLiteResourceToJSONTyped(value?: ProductChild
177
153
  'model': value['model'],
178
154
  'modelNumber': value['modelNumber'],
179
155
  'name': value['name'],
180
- 'parentName': value['parentName'],
181
- 'variantName': value['variantName'],
182
- 'slug': value['slug'],
183
156
  'stock': value['stock'],
184
157
  'salePrice': value['salePrice'],
185
158
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
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'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -149,9 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
149
149
  if (!('phone' in value) || value['phone'] === undefined) return false;
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
152
  if (!('email' in value) || value['email'] === undefined) return false;
154
- if (!('website' in value) || value['website'] === undefined) return false;
155
153
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
156
154
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
157
155
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,9 +174,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
174
  'phone': json['phone'],
177
175
  'longitude': json['longitude'],
178
176
  'latitude': json['latitude'],
179
- 'tagLine': json['tagLine'],
177
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
180
178
  'email': json['email'],
181
- 'website': json['website'],
179
+ 'website': json['website'] == null ? undefined : json['website'],
182
180
  'netsuiteId': json['netsuiteId'],
183
181
  'displayNetsuiteId': json['displayNetsuiteId'],
184
182
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],