@digital8/lighting-illusions-ts-sdk 0.0.2028 → 0.0.2029

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 (76) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +7 -3
  3. package/dist/apis/ProductApi.d.ts +16 -0
  4. package/dist/apis/ProductApi.js +59 -0
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +6 -2
  9. package/dist/models/AddressResource.d.ts +7 -1
  10. package/dist/models/AddressResource.js +5 -1
  11. package/dist/models/AdminNoteResource.d.ts +0 -12
  12. package/dist/models/AdminNoteResource.js +0 -8
  13. package/dist/models/AdminOrderResource.d.ts +3 -3
  14. package/dist/models/AdminOrderResource.js +3 -3
  15. package/dist/models/CartResource.d.ts +3 -3
  16. package/dist/models/CartResource.js +3 -3
  17. package/dist/models/CustomerListResource.d.ts +0 -7
  18. package/dist/models/CustomerListResource.js +0 -5
  19. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +3 -1
  21. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  23. package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
  24. package/dist/models/SkuSearchProductChildRequest.js +55 -0
  25. package/dist/models/StoreFrontendResource.d.ts +1 -1
  26. package/dist/models/StoreFrontendResource.js +1 -3
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +1 -1
  30. package/dist/models/StoreResource.js +3 -1
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  33. package/dist/models/TransactionListResource.d.ts +80 -0
  34. package/dist/models/TransactionListResource.js +81 -0
  35. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  37. package/dist/models/TransactionLiteResource.d.ts +6 -0
  38. package/dist/models/TransactionLiteResource.js +2 -0
  39. package/dist/models/index.d.ts +4 -1
  40. package/dist/models/index.js +4 -1
  41. package/docs/AddressResource.md +2 -0
  42. package/docs/AdminNoteResource.md +0 -4
  43. package/docs/AdminOrderResource.md +1 -1
  44. package/docs/CartResource.md +1 -1
  45. package/docs/CustomerListResource.md +0 -2
  46. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  47. package/docs/ProductApi.md +66 -0
  48. package/docs/{OrderOmnisendEvent.md → SkuSearchProductChildRequest.md} +8 -4
  49. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  50. package/docs/TransactionListResource.md +50 -0
  51. package/docs/TransactionListResourceArrayResponse.md +34 -0
  52. package/docs/TransactionLiteResource.md +2 -0
  53. package/docs/TransactionsApi.md +3 -3
  54. package/package.json +1 -1
  55. package/src/apis/ProductApi.ts +49 -0
  56. package/src/apis/TransactionsApi.ts +7 -7
  57. package/src/models/AddressFrontendResource.ts +6 -4
  58. package/src/models/AddressResource.ts +11 -2
  59. package/src/models/AdminNoteResource.ts +0 -18
  60. package/src/models/AdminOrderResource.ts +11 -11
  61. package/src/models/CartResource.ts +11 -11
  62. package/src/models/CustomerListResource.ts +0 -16
  63. package/src/models/ExternalApiLogResource.ts +3 -2
  64. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  65. package/src/models/SkuSearchProductChildRequest.ts +75 -0
  66. package/src/models/StoreFrontendResource.ts +2 -3
  67. package/src/models/StoreListResource.ts +2 -3
  68. package/src/models/StoreResource.ts +3 -2
  69. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  70. package/src/models/TransactionListResource.ts +137 -0
  71. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  72. package/src/models/TransactionLiteResource.ts +8 -0
  73. package/src/models/index.ts +4 -1
  74. package/dist/models/OrderOmnisendEvent.d.ts +0 -25
  75. package/dist/models/OrderOmnisendEvent.js +0 -51
  76. package/src/models/OrderOmnisendEvent.ts +0 -53
@@ -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 | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -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
+
@@ -0,0 +1,75 @@
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 SkuSearchProductChildRequest
20
+ */
21
+ export interface SkuSearchProductChildRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SkuSearchProductChildRequest
26
+ */
27
+ sku: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SkuSearchProductChildRequest
32
+ */
33
+ siteId: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SkuSearchProductChildRequest interface.
38
+ */
39
+ export function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest {
40
+ if (!('sku' in value) || value['sku'] === undefined) return false;
41
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest {
46
+ return SkuSearchProductChildRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'sku': json['sku'],
56
+ 'siteId': json['site_id'],
57
+ };
58
+ }
59
+
60
+ export function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest {
61
+ return SkuSearchProductChildRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'sku': value['sku'],
72
+ 'site_id': value['siteId'],
73
+ };
74
+ }
75
+
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,7 +110,6 @@ 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;
114
113
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
114
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
115
  return true;
@@ -135,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],
137
136
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
137
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
138
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
139
  'specialDates': json['specialDates'],
141
140
  'suppliers': json['suppliers'],
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website: string;
83
+ website?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -112,7 +112,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
113
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
114
  if (!('email' in value) || value['email'] === undefined) return false;
115
- if (!('website' in value) || value['website'] === undefined) return false;
116
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
117
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
118
117
  return true;
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
136
135
  'latitude': json['latitude'],
137
136
  'tagLine': json['tagLine'],
138
137
  'email': json['email'],
139
- 'website': json['website'],
138
+ 'website': json['website'] == null ? undefined : json['website'],
140
139
  'netsuiteId': json['netsuiteId'],
141
140
  'displayNetsuiteId': json['displayNetsuiteId'],
142
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -0,0 +1,137 @@
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;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TransactionListResource
32
+ */
33
+ paymentSource: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof TransactionListResource
38
+ */
39
+ paymentMethod: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof TransactionListResource
44
+ */
45
+ type: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof TransactionListResource
50
+ */
51
+ status: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof TransactionListResource
56
+ */
57
+ totalAmount: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof TransactionListResource
62
+ */
63
+ refundedAmount: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof TransactionListResource
68
+ */
69
+ reference: string;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof TransactionListResource
74
+ */
75
+ createdAt?: Date | null;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the TransactionListResource interface.
80
+ */
81
+ export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
82
+ if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
84
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
85
+ if (!('type' in value) || value['type'] === undefined) return false;
86
+ if (!('status' in value) || value['status'] === undefined) return false;
87
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
88
+ if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
89
+ if (!('reference' in value) || value['reference'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function TransactionListResourceFromJSON(json: any): TransactionListResource {
94
+ return TransactionListResourceFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'paymentSource': json['paymentSource'],
105
+ 'paymentMethod': json['paymentMethod'],
106
+ 'type': json['type'],
107
+ 'status': json['status'],
108
+ 'totalAmount': json['totalAmount'],
109
+ 'refundedAmount': json['refundedAmount'],
110
+ 'reference': json['reference'],
111
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
112
+ };
113
+ }
114
+
115
+ export function TransactionListResourceToJSON(json: any): TransactionListResource {
116
+ return TransactionListResourceToJSONTyped(json, false);
117
+ }
118
+
119
+ export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'id': value['id'],
127
+ 'paymentSource': value['paymentSource'],
128
+ 'paymentMethod': value['paymentMethod'],
129
+ 'type': value['type'],
130
+ 'status': value['status'],
131
+ 'totalAmount': value['totalAmount'],
132
+ 'refundedAmount': value['refundedAmount'],
133
+ 'reference': value['reference'],
134
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
135
+ };
136
+ }
137
+
@@ -0,0 +1,73 @@
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 { TransactionListResource } from './TransactionListResource';
17
+ import {
18
+ TransactionListResourceFromJSON,
19
+ TransactionListResourceFromJSONTyped,
20
+ TransactionListResourceToJSON,
21
+ TransactionListResourceToJSONTyped,
22
+ } from './TransactionListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface TransactionListResourceArrayResponse
28
+ */
29
+ export interface TransactionListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<TransactionListResource>}
33
+ * @memberof TransactionListResourceArrayResponse
34
+ */
35
+ data?: Array<TransactionListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the TransactionListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
46
+ return TransactionListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
60
+ return TransactionListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface TransactionLiteResource
20
20
  */
21
21
  export interface TransactionLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TransactionLiteResource
26
+ */
27
+ id?: number | null;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -107,6 +113,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
107
113
  }
108
114
  return {
109
115
 
116
+ 'id': json['id'] == null ? undefined : json['id'],
110
117
  'paymentSource': json['paymentSource'],
111
118
  'paymentMethod': json['paymentMethod'],
112
119
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
@@ -131,6 +138,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
131
138
 
132
139
  return {
133
140
 
141
+ 'id': value['id'],
134
142
  'paymentSource': value['paymentSource'],
135
143
  'paymentMethod': value['paymentMethod'],
136
144
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],