@emilgroup/accounting-sdk 1.0.1-beta.0 → 1.0.1-beta.2

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 (65) hide show
  1. package/.openapi-generator/FILES +14 -4
  2. package/README.md +2 -2
  3. package/api/booking-processes-api.ts +353 -0
  4. package/api/financial-accounts-api.ts +16 -10
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api.ts +4 -4
  7. package/base.ts +21 -9
  8. package/dist/api/booking-processes-api.d.ts +207 -0
  9. package/dist/api/booking-processes-api.js +353 -0
  10. package/dist/api/financial-accounts-api.d.ts +16 -13
  11. package/dist/api/financial-accounts-api.js +4 -4
  12. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  13. package/dist/api/{default-api.js → health-api.js} +22 -22
  14. package/dist/api.d.ts +2 -2
  15. package/dist/api.js +2 -2
  16. package/dist/base.d.ts +5 -2
  17. package/dist/base.js +30 -21
  18. package/dist/models/booking-entry-class.d.ts +123 -0
  19. package/dist/models/booking-entry-class.js +34 -0
  20. package/dist/models/booking-process-class.d.ts +94 -0
  21. package/dist/models/booking-process-class.js +29 -0
  22. package/dist/models/create-booking-entry-request-dto.d.ts +99 -0
  23. package/dist/models/create-booking-entry-request-dto.js +34 -0
  24. package/dist/models/create-booking-process-request-dto.d.ts +64 -0
  25. package/dist/models/create-booking-process-request-dto.js +29 -0
  26. package/dist/models/{entry-data-dto.d.ts → create-booking-process-response-class.d.ts} +7 -18
  27. package/dist/models/create-financial-account-request-dto.d.ts +16 -10
  28. package/dist/models/create-financial-account-request-dto.js +5 -5
  29. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  30. package/dist/models/financial-account-class.d.ts +98 -0
  31. package/dist/models/financial-account-class.js +23 -0
  32. package/dist/models/financial-transaction-class.d.ts +108 -0
  33. package/dist/models/financial-transaction-class.js +15 -0
  34. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  35. package/dist/models/financial-transaction-data-dto.js +20 -0
  36. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  37. package/dist/models/get-financial-account-response-class.js +15 -0
  38. package/dist/models/index.d.ts +12 -2
  39. package/dist/models/index.js +12 -2
  40. package/dist/models/list-booking-process-response-class.d.ts +31 -0
  41. package/dist/models/list-booking-process-response-class.js +15 -0
  42. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  43. package/dist/models/list-financial-accounts-response-class.js +15 -0
  44. package/models/booking-entry-class.ts +133 -0
  45. package/models/booking-process-class.ts +104 -0
  46. package/models/create-booking-entry-request-dto.ts +109 -0
  47. package/models/create-booking-process-request-dto.ts +74 -0
  48. package/models/{entry-data-dto.ts → create-booking-process-response-class.ts} +7 -18
  49. package/models/create-financial-account-request-dto.ts +16 -10
  50. package/models/create-financial-account-response-class.ts +31 -0
  51. package/models/financial-account-class.ts +107 -0
  52. package/models/financial-transaction-class.ts +114 -0
  53. package/models/financial-transaction-data-dto.ts +80 -0
  54. package/models/get-financial-account-response-class.ts +31 -0
  55. package/models/index.ts +12 -2
  56. package/models/list-booking-process-response-class.ts +37 -0
  57. package/models/list-financial-accounts-response-class.ts +37 -0
  58. package/package.json +1 -1
  59. package/api/transactions-api.ts +0 -163
  60. package/dist/api/transactions-api.d.ts +0 -96
  61. package/dist/api/transactions-api.js +0 -224
  62. package/dist/models/create-transaction-request-dto.d.ts +0 -55
  63. package/models/create-transaction-request-dto.ts +0 -61
  64. /package/dist/models/{create-transaction-request-dto.js → create-booking-process-response-class.js} +0 -0
  65. /package/dist/models/{entry-data-dto.js → create-financial-account-response-class.js} +0 -0
@@ -3,19 +3,29 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/default-api.ts
6
+ api/booking-processes-api.ts
7
7
  api/financial-accounts-api.ts
8
- api/transactions-api.ts
8
+ api/health-api.ts
9
9
  base.ts
10
10
  common.ts
11
11
  configuration.ts
12
12
  git_push.sh
13
13
  index.ts
14
+ models/booking-entry-class.ts
15
+ models/booking-process-class.ts
16
+ models/create-booking-entry-request-dto.ts
17
+ models/create-booking-process-request-dto.ts
18
+ models/create-booking-process-response-class.ts
14
19
  models/create-financial-account-request-dto.ts
15
- models/create-transaction-request-dto.ts
16
- models/entry-data-dto.ts
20
+ models/create-financial-account-response-class.ts
21
+ models/financial-account-class.ts
22
+ models/financial-transaction-class.ts
23
+ models/financial-transaction-data-dto.ts
24
+ models/get-financial-account-response-class.ts
17
25
  models/index.ts
18
26
  models/inline-response200.ts
19
27
  models/inline-response503.ts
28
+ models/list-booking-process-response-class.ts
29
+ models/list-financial-accounts-response-class.ts
20
30
  package.json
21
31
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk@1.0.1-beta.0 --save
20
+ npm install @emilgroup/accounting-sdk@1.0.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.0.1-beta.0
24
+ yarn add @emilgroup/accounting-sdk@1.0.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -0,0 +1,353 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
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
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateBookingProcessRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBookingProcessResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListBookingProcessResponseClass } from '../models';
29
+ /**
30
+ * BookingProcessesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const BookingProcessesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * This endpoint creates a new booking process.
37
+ * @summary Create the booking process
38
+ * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ createBookingProcess: async (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'createBookingProcessRequestDto' is not null or undefined
45
+ assertParamExists('createBookingProcess', 'createBookingProcessRequestDto', createBookingProcessRequestDto)
46
+ const localVarPath = `/accountingservice/v1/booking-processes`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ let baseAccessToken;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ baseAccessToken = configuration.accessToken;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
65
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ }
67
+
68
+
69
+
70
+ localVarHeaderParameter['Content-Type'] = 'application/json';
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingProcessRequestDto, localVarRequestOptions, configuration)
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ /**
83
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
84
+ * @summary List Booking processes
85
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
87
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
88
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
89
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
90
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
91
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
92
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ listBookingProcesses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ const localVarPath = `/accountingservice/v1/booking-processes`;
98
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ let baseAccessToken;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ baseAccessToken = configuration.accessToken;
105
+ }
106
+
107
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
108
+ const localVarHeaderParameter = {} as any;
109
+ const localVarQueryParameter = {} as any;
110
+
111
+ // authentication bearer required
112
+ // http bearer authentication required
113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
114
+
115
+ if (pageSize !== undefined) {
116
+ localVarQueryParameter['pageSize'] = pageSize;
117
+ }
118
+
119
+ if (pageToken !== undefined) {
120
+ localVarQueryParameter['pageToken'] = pageToken;
121
+ }
122
+
123
+ if (filter !== undefined) {
124
+ localVarQueryParameter['filter'] = filter;
125
+ }
126
+
127
+ if (search !== undefined) {
128
+ localVarQueryParameter['search'] = search;
129
+ }
130
+
131
+ if (order !== undefined) {
132
+ localVarQueryParameter['order'] = order;
133
+ }
134
+
135
+ if (expand !== undefined) {
136
+ localVarQueryParameter['expand'] = expand;
137
+ }
138
+
139
+ if (filters !== undefined) {
140
+ localVarQueryParameter['filters'] = filters;
141
+ }
142
+
143
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
+ }
146
+
147
+
148
+
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152
+
153
+ return {
154
+ url: toPathString(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ };
157
+ },
158
+ }
159
+ };
160
+
161
+ /**
162
+ * BookingProcessesApi - functional programming interface
163
+ * @export
164
+ */
165
+ export const BookingProcessesApiFp = function(configuration?: Configuration) {
166
+ const localVarAxiosParamCreator = BookingProcessesApiAxiosParamCreator(configuration)
167
+ return {
168
+ /**
169
+ * This endpoint creates a new booking process.
170
+ * @summary Create the booking process
171
+ * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
172
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ async createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>> {
177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingProcess(createBookingProcessRequestDto, authorization, options);
178
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
179
+ },
180
+ /**
181
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
+ * @summary List Booking processes
183
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
186
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
187
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
188
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
189
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
190
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ async listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>> {
195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
+ },
198
+ }
199
+ };
200
+
201
+ /**
202
+ * BookingProcessesApi - factory interface
203
+ * @export
204
+ */
205
+ export const BookingProcessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
+ const localVarFp = BookingProcessesApiFp(configuration)
207
+ return {
208
+ /**
209
+ * This endpoint creates a new booking process.
210
+ * @summary Create the booking process
211
+ * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass> {
217
+ return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then((request) => request(axios, basePath));
218
+ },
219
+ /**
220
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
221
+ * @summary List Booking processes
222
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
223
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
224
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
225
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
226
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
227
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
228
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
229
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass> {
234
+ return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
235
+ },
236
+ };
237
+ };
238
+
239
+ /**
240
+ * Request parameters for createBookingProcess operation in BookingProcessesApi.
241
+ * @export
242
+ * @interface BookingProcessesApiCreateBookingProcessRequest
243
+ */
244
+ export interface BookingProcessesApiCreateBookingProcessRequest {
245
+ /**
246
+ *
247
+ * @type {CreateBookingProcessRequestDto}
248
+ * @memberof BookingProcessesApiCreateBookingProcess
249
+ */
250
+ readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto
251
+
252
+ /**
253
+ * Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @type {string}
255
+ * @memberof BookingProcessesApiCreateBookingProcess
256
+ */
257
+ readonly authorization?: string
258
+ }
259
+
260
+ /**
261
+ * Request parameters for listBookingProcesses operation in BookingProcessesApi.
262
+ * @export
263
+ * @interface BookingProcessesApiListBookingProcessesRequest
264
+ */
265
+ export interface BookingProcessesApiListBookingProcessesRequest {
266
+ /**
267
+ * Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @type {string}
269
+ * @memberof BookingProcessesApiListBookingProcesses
270
+ */
271
+ readonly authorization?: string
272
+
273
+ /**
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {any}
276
+ * @memberof BookingProcessesApiListBookingProcesses
277
+ */
278
+ readonly pageSize?: any
279
+
280
+ /**
281
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
282
+ * @type {any}
283
+ * @memberof BookingProcessesApiListBookingProcesses
284
+ */
285
+ readonly pageToken?: any
286
+
287
+ /**
288
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
289
+ * @type {string}
290
+ * @memberof BookingProcessesApiListBookingProcesses
291
+ */
292
+ readonly filter?: string
293
+
294
+ /**
295
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
+ * @type {any}
297
+ * @memberof BookingProcessesApiListBookingProcesses
298
+ */
299
+ readonly search?: any
300
+
301
+ /**
302
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
303
+ * @type {string}
304
+ * @memberof BookingProcessesApiListBookingProcesses
305
+ */
306
+ readonly order?: string
307
+
308
+ /**
309
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
310
+ * @type {any}
311
+ * @memberof BookingProcessesApiListBookingProcesses
312
+ */
313
+ readonly expand?: any
314
+
315
+ /**
316
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
317
+ * @type {string}
318
+ * @memberof BookingProcessesApiListBookingProcesses
319
+ */
320
+ readonly filters?: string
321
+ }
322
+
323
+ /**
324
+ * BookingProcessesApi - object-oriented interface
325
+ * @export
326
+ * @class BookingProcessesApi
327
+ * @extends {BaseAPI}
328
+ */
329
+ export class BookingProcessesApi extends BaseAPI {
330
+ /**
331
+ * This endpoint creates a new booking process.
332
+ * @summary Create the booking process
333
+ * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof BookingProcessesApi
337
+ */
338
+ public createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig) {
339
+ return BookingProcessesApiFp(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
340
+ }
341
+
342
+ /**
343
+ * Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
344
+ * @summary List Booking processes
345
+ * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof BookingProcessesApi
349
+ */
350
+ public listBookingProcesses(requestParameters: BookingProcessesApiListBookingProcessesRequest = {}, options?: AxiosRequestConfig) {
351
+ return BookingProcessesApiFp(this.configuration).listBookingProcesses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
352
+ }
353
+ }
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateFinancialAccountRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateFinancialAccountResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetFinancialAccountResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListFinancialAccountsResponseClass } from '../models';
25
31
  /**
26
32
  * FinancialAccountsApi - axios parameter creator
27
33
  * @export
@@ -121,7 +127,7 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
121
127
  };
122
128
  },
123
129
  /**
124
- * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
130
+ * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
125
131
  * @summary Retrieve the account
126
132
  * @param {string} code Unique identifier for the object.
127
133
  * @param {string} expand
@@ -266,7 +272,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
266
272
  * @param {*} [options] Override http request option.
267
273
  * @throws {RequiredError}
268
274
  */
269
- async createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
275
+ async createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinancialAccountResponseClass>> {
270
276
  const localVarAxiosArgs = await localVarAxiosParamCreator.createFinancialAccount(createFinancialAccountRequestDto, authorization, options);
271
277
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
272
278
  },
@@ -283,7 +289,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
283
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
290
  },
285
291
  /**
286
- * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
292
+ * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
287
293
  * @summary Retrieve the account
288
294
  * @param {string} code Unique identifier for the object.
289
295
  * @param {string} expand
@@ -291,7 +297,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
291
297
  * @param {*} [options] Override http request option.
292
298
  * @throws {RequiredError}
293
299
  */
294
- async getFinancialAccount(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
300
+ async getFinancialAccount(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFinancialAccountResponseClass>> {
295
301
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFinancialAccount(code, expand, authorization, options);
296
302
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
297
303
  },
@@ -309,7 +315,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
309
315
  * @param {*} [options] Override http request option.
310
316
  * @throws {RequiredError}
311
317
  */
312
- async listFinancialAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
318
+ async listFinancialAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialAccountsResponseClass>> {
313
319
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
314
320
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
321
  },
@@ -331,7 +337,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
331
337
  * @param {*} [options] Override http request option.
332
338
  * @throws {RequiredError}
333
339
  */
334
- createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
340
+ createFinancialAccount(createFinancialAccountRequestDto: CreateFinancialAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateFinancialAccountResponseClass> {
335
341
  return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
336
342
  },
337
343
  /**
@@ -346,7 +352,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
346
352
  return localVarFp.deleteFinancialAccount(code, authorization, options).then((request) => request(axios, basePath));
347
353
  },
348
354
  /**
349
- * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
355
+ * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
350
356
  * @summary Retrieve the account
351
357
  * @param {string} code Unique identifier for the object.
352
358
  * @param {string} expand
@@ -354,7 +360,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
354
360
  * @param {*} [options] Override http request option.
355
361
  * @throws {RequiredError}
356
362
  */
357
- getFinancialAccount(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
363
+ getFinancialAccount(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetFinancialAccountResponseClass> {
358
364
  return localVarFp.getFinancialAccount(code, expand, authorization, options).then((request) => request(axios, basePath));
359
365
  },
360
366
  /**
@@ -371,7 +377,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
371
377
  * @param {*} [options] Override http request option.
372
378
  * @throws {RequiredError}
373
379
  */
374
- listFinancialAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<void> {
380
+ listFinancialAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
375
381
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
376
382
  },
377
383
  };
@@ -542,7 +548,7 @@ export class FinancialAccountsApi extends BaseAPI {
542
548
  }
543
549
 
544
550
  /**
545
- * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
551
+ * Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
546
552
  * @summary Retrieve the account
547
553
  * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
548
554
  * @param {*} [options] Override http request option.
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
25
25
  // @ts-ignore
26
26
  import { InlineResponse503 } from '../models';
27
27
  /**
28
- * DefaultApi - axios parameter creator
28
+ * HealthApi - axios parameter creator
29
29
  * @export
30
30
  */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
34
  * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -66,11 +66,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
66
66
  };
67
67
 
68
68
  /**
69
- * DefaultApi - functional programming interface
69
+ * HealthApi - functional programming interface
70
70
  * @export
71
71
  */
72
- export const DefaultApiFp = function(configuration?: Configuration) {
73
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
72
+ export const HealthApiFp = function(configuration?: Configuration) {
73
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
74
74
  return {
75
75
  /**
76
76
  * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -86,11 +86,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
86
86
  };
87
87
 
88
88
  /**
89
- * DefaultApi - factory interface
89
+ * HealthApi - factory interface
90
90
  * @export
91
91
  */
92
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
- const localVarFp = DefaultApiFp(configuration)
92
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
+ const localVarFp = HealthApiFp(configuration)
94
94
  return {
95
95
  /**
96
96
  * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
@@ -105,20 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
105
105
  };
106
106
 
107
107
  /**
108
- * DefaultApi - object-oriented interface
108
+ * HealthApi - object-oriented interface
109
109
  * @export
110
- * @class DefaultApi
110
+ * @class HealthApi
111
111
  * @extends {BaseAPI}
112
112
  */
113
- export class DefaultApi extends BaseAPI {
113
+ export class HealthApi extends BaseAPI {
114
114
  /**
115
115
  * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
116
  * @summary Health Check
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
- * @memberof DefaultApi
119
+ * @memberof HealthApi
120
120
  */
121
121
  public check(options?: AxiosRequestConfig) {
122
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
122
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
123
  }
124
124
  }
package/api.ts CHANGED
@@ -20,12 +20,12 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
- import { DefaultApi } from './api';
23
+ import { BookingProcessesApi } from './api';
24
24
  import { FinancialAccountsApi } from './api';
25
- import { TransactionsApi } from './api';
25
+ import { HealthApi } from './api';
26
26
 
27
27
 
28
- export * from './api/default-api';
28
+ export * from './api/booking-processes-api';
29
29
  export * from './api/financial-accounts-api';
30
- export * from './api/transactions-api';
30
+ export * from './api/health-api';
31
31