@emilgroup/accounting-sdk-node 1.15.0 → 1.16.1-beta.0

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 (41) hide show
  1. package/.openapi-generator/FILES +4 -5
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +476 -0
  4. package/api.ts +2 -2
  5. package/dist/api/booking-entries-api.d.ts +272 -0
  6. package/dist/api/{booking-processes-api.js → booking-entries-api.js} +173 -73
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +1 -1
  9. package/dist/models/booking-entry-class.d.ts +10 -22
  10. package/dist/models/booking-entry-class.js +1 -6
  11. package/dist/models/create-booking-entry-request-dto.d.ts +10 -48
  12. package/dist/models/create-booking-entry-request-dto.js +0 -19
  13. package/dist/models/{create-booking-process-response-class.d.ts → create-booking-entry-response-class.d.ts} +7 -7
  14. package/dist/models/create-financial-account-request-dto.d.ts +1 -1
  15. package/dist/models/financial-transaction-class.d.ts +2 -14
  16. package/dist/models/financial-transaction-data-dto.d.ts +9 -21
  17. package/dist/models/get-booking-entry-response-class.d.ts +25 -0
  18. package/dist/models/index.d.ts +3 -4
  19. package/dist/models/index.js +3 -4
  20. package/dist/models/{list-booking-process-response-class.d.ts → list-booking-entries-response-class.d.ts} +9 -9
  21. package/dist/models/list-booking-entries-response-class.js +15 -0
  22. package/models/booking-entry-class.ts +10 -23
  23. package/models/create-booking-entry-request-dto.ts +10 -52
  24. package/models/{create-booking-process-response-class.ts → create-booking-entry-response-class.ts} +7 -7
  25. package/models/create-financial-account-request-dto.ts +1 -1
  26. package/models/financial-transaction-class.ts +2 -14
  27. package/models/financial-transaction-data-dto.ts +9 -21
  28. package/models/get-booking-entry-response-class.ts +31 -0
  29. package/models/index.ts +3 -4
  30. package/models/{list-booking-process-response-class.ts → list-booking-entries-response-class.ts} +9 -9
  31. package/package.json +1 -1
  32. package/api/booking-processes-api.ts +0 -357
  33. package/dist/api/booking-processes-api.d.ts +0 -207
  34. package/dist/models/booking-process-class.d.ts +0 -94
  35. package/dist/models/booking-process-class.js +0 -29
  36. package/dist/models/create-booking-process-request-dto.d.ts +0 -64
  37. package/dist/models/create-booking-process-request-dto.js +0 -29
  38. package/models/booking-process-class.ts +0 -104
  39. package/models/create-booking-process-request-dto.ts +0 -74
  40. /package/dist/models/{create-booking-process-response-class.js → create-booking-entry-response-class.js} +0 -0
  41. /package/dist/models/{list-booking-process-response-class.js → get-booking-entry-response-class.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/booking-processes-api.ts
6
+ api/booking-entries-api.ts
7
7
  api/financial-accounts-api.ts
8
8
  api/health-api.ts
9
9
  base.ts
@@ -12,20 +12,19 @@ configuration.ts
12
12
  git_push.sh
13
13
  index.ts
14
14
  models/booking-entry-class.ts
15
- models/booking-process-class.ts
16
15
  models/create-booking-entry-request-dto.ts
17
- models/create-booking-process-request-dto.ts
18
- models/create-booking-process-response-class.ts
16
+ models/create-booking-entry-response-class.ts
19
17
  models/create-financial-account-request-dto.ts
20
18
  models/create-financial-account-response-class.ts
21
19
  models/financial-account-class.ts
22
20
  models/financial-transaction-class.ts
23
21
  models/financial-transaction-data-dto.ts
22
+ models/get-booking-entry-response-class.ts
24
23
  models/get-financial-account-response-class.ts
25
24
  models/index.ts
26
25
  models/inline-response200.ts
27
26
  models/inline-response503.ts
28
- models/list-booking-process-response-class.ts
27
+ models/list-booking-entries-response-class.ts
29
28
  models/list-financial-accounts-response-class.ts
30
29
  package.json
31
30
  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-node@1.15.0 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.16.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.15.0
24
+ yarn add @emilgroup/accounting-sdk-node@1.16.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -0,0 +1,476 @@
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 { CreateBookingEntryRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBookingEntryResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetBookingEntryResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListBookingEntriesResponseClass } from '../models';
31
+ // URLSearchParams not necessarily used
32
+ // @ts-ignore
33
+ import { URL, URLSearchParams } from 'url';
34
+ const FormData = require('form-data');
35
+ /**
36
+ * BookingEntriesApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This endpoint creates a new booking entry.
43
+ * @summary Create the booking entry
44
+ * @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createBookingEntry: async (createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createBookingEntryRequestDto' is not null or undefined
51
+ assertParamExists('createBookingEntry', 'createBookingEntryRequestDto', createBookingEntryRequestDto)
52
+ const localVarPath = `/accountingservice/v1/booking-entries`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingEntryRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This endpoint gets a booking entry.
90
+ * @summary Retrieve the booking entry
91
+ * @param {string} code
92
+ * @param {string} expand
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ getBookingEntry: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'code' is not null or undefined
99
+ assertParamExists('getBookingEntry', 'code', code)
100
+ // verify required parameter 'expand' is not null or undefined
101
+ assertParamExists('getBookingEntry', 'expand', expand)
102
+ const localVarPath = `/accountingservice/v1/booking-entries/{code}`
103
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
+ let baseOptions;
107
+ let baseAccessToken;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ baseAccessToken = configuration.accessToken;
111
+ }
112
+
113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
114
+ const localVarHeaderParameter = {} as any;
115
+ const localVarQueryParameter = {} as any;
116
+
117
+ // authentication bearer required
118
+ // http bearer authentication required
119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
+
121
+ if (expand !== undefined) {
122
+ localVarQueryParameter['expand'] = expand;
123
+ }
124
+
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
+ }
128
+
129
+
130
+
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
+
135
+ return {
136
+ url: toPathString(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ };
139
+ },
140
+ /**
141
+ * This endpoint gets booking entries.
142
+ * @summary List booking entries
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
145
+ * @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.
146
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
147
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
148
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
149
+ * @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.
150
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ listBookingEntries: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ const localVarPath = `/accountingservice/v1/booking-entries`;
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ let baseAccessToken;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ baseAccessToken = configuration.accessToken;
163
+ }
164
+
165
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
166
+ const localVarHeaderParameter = {} as any;
167
+ const localVarQueryParameter = {} as any;
168
+
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
+
173
+ if (pageSize !== undefined) {
174
+ localVarQueryParameter['pageSize'] = pageSize;
175
+ }
176
+
177
+ if (pageToken !== undefined) {
178
+ localVarQueryParameter['pageToken'] = pageToken;
179
+ }
180
+
181
+ if (filter !== undefined) {
182
+ localVarQueryParameter['filter'] = filter;
183
+ }
184
+
185
+ if (search !== undefined) {
186
+ localVarQueryParameter['search'] = search;
187
+ }
188
+
189
+ if (order !== undefined) {
190
+ localVarQueryParameter['order'] = order;
191
+ }
192
+
193
+ if (expand !== undefined) {
194
+ localVarQueryParameter['expand'] = expand;
195
+ }
196
+
197
+ if (filters !== undefined) {
198
+ localVarQueryParameter['filters'] = filters;
199
+ }
200
+
201
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
203
+ }
204
+
205
+
206
+
207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
210
+
211
+ return {
212
+ url: toPathString(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ },
216
+ }
217
+ };
218
+
219
+ /**
220
+ * BookingEntriesApi - functional programming interface
221
+ * @export
222
+ */
223
+ export const BookingEntriesApiFp = function(configuration?: Configuration) {
224
+ const localVarAxiosParamCreator = BookingEntriesApiAxiosParamCreator(configuration)
225
+ return {
226
+ /**
227
+ * This endpoint creates a new booking entry.
228
+ * @summary Create the booking entry
229
+ * @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
230
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ async createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingEntryResponseClass>> {
235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
236
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
237
+ },
238
+ /**
239
+ * This endpoint gets a booking entry.
240
+ * @summary Retrieve the booking entry
241
+ * @param {string} code
242
+ * @param {string} expand
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ async getBookingEntry(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingEntryResponseClass>> {
248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingEntry(code, expand, authorization, options);
249
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
250
+ },
251
+ /**
252
+ * This endpoint gets booking entries.
253
+ * @summary List booking entries
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
256
+ * @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.
257
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
258
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
259
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
260
+ * @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.
261
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ async listBookingEntries(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingEntriesResponseClass>> {
266
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
267
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
268
+ },
269
+ }
270
+ };
271
+
272
+ /**
273
+ * BookingEntriesApi - factory interface
274
+ * @export
275
+ */
276
+ export const BookingEntriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
277
+ const localVarFp = BookingEntriesApiFp(configuration)
278
+ return {
279
+ /**
280
+ * This endpoint creates a new booking entry.
281
+ * @summary Create the booking entry
282
+ * @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
283
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
288
+ return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
289
+ },
290
+ /**
291
+ * This endpoint gets a booking entry.
292
+ * @summary Retrieve the booking entry
293
+ * @param {string} code
294
+ * @param {string} expand
295
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ getBookingEntry(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetBookingEntryResponseClass> {
300
+ return localVarFp.getBookingEntry(code, expand, authorization, options).then((request) => request(axios, basePath));
301
+ },
302
+ /**
303
+ * This endpoint gets booking entries.
304
+ * @summary List booking entries
305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
307
+ * @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.
308
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
309
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
311
+ * @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.
312
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ listBookingEntries(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
317
+ return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
318
+ },
319
+ };
320
+ };
321
+
322
+ /**
323
+ * Request parameters for createBookingEntry operation in BookingEntriesApi.
324
+ * @export
325
+ * @interface BookingEntriesApiCreateBookingEntryRequest
326
+ */
327
+ export interface BookingEntriesApiCreateBookingEntryRequest {
328
+ /**
329
+ *
330
+ * @type {CreateBookingEntryRequestDto}
331
+ * @memberof BookingEntriesApiCreateBookingEntry
332
+ */
333
+ readonly createBookingEntryRequestDto: CreateBookingEntryRequestDto
334
+
335
+ /**
336
+ * Bearer Token: provided by the login endpoint under the name accessToken.
337
+ * @type {string}
338
+ * @memberof BookingEntriesApiCreateBookingEntry
339
+ */
340
+ readonly authorization?: string
341
+ }
342
+
343
+ /**
344
+ * Request parameters for getBookingEntry operation in BookingEntriesApi.
345
+ * @export
346
+ * @interface BookingEntriesApiGetBookingEntryRequest
347
+ */
348
+ export interface BookingEntriesApiGetBookingEntryRequest {
349
+ /**
350
+ *
351
+ * @type {string}
352
+ * @memberof BookingEntriesApiGetBookingEntry
353
+ */
354
+ readonly code: string
355
+
356
+ /**
357
+ *
358
+ * @type {string}
359
+ * @memberof BookingEntriesApiGetBookingEntry
360
+ */
361
+ readonly expand: string
362
+
363
+ /**
364
+ * Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @type {string}
366
+ * @memberof BookingEntriesApiGetBookingEntry
367
+ */
368
+ readonly authorization?: string
369
+ }
370
+
371
+ /**
372
+ * Request parameters for listBookingEntries operation in BookingEntriesApi.
373
+ * @export
374
+ * @interface BookingEntriesApiListBookingEntriesRequest
375
+ */
376
+ export interface BookingEntriesApiListBookingEntriesRequest {
377
+ /**
378
+ * Bearer Token: provided by the login endpoint under the name accessToken.
379
+ * @type {string}
380
+ * @memberof BookingEntriesApiListBookingEntries
381
+ */
382
+ readonly authorization?: string
383
+
384
+ /**
385
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
386
+ * @type {any}
387
+ * @memberof BookingEntriesApiListBookingEntries
388
+ */
389
+ readonly pageSize?: any
390
+
391
+ /**
392
+ * 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.
393
+ * @type {any}
394
+ * @memberof BookingEntriesApiListBookingEntries
395
+ */
396
+ readonly pageToken?: any
397
+
398
+ /**
399
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
400
+ * @type {any}
401
+ * @memberof BookingEntriesApiListBookingEntries
402
+ */
403
+ readonly filter?: any
404
+
405
+ /**
406
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
407
+ * @type {any}
408
+ * @memberof BookingEntriesApiListBookingEntries
409
+ */
410
+ readonly search?: any
411
+
412
+ /**
413
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
414
+ * @type {any}
415
+ * @memberof BookingEntriesApiListBookingEntries
416
+ */
417
+ readonly order?: any
418
+
419
+ /**
420
+ * 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.
421
+ * @type {any}
422
+ * @memberof BookingEntriesApiListBookingEntries
423
+ */
424
+ readonly expand?: any
425
+
426
+ /**
427
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
428
+ * @type {any}
429
+ * @memberof BookingEntriesApiListBookingEntries
430
+ */
431
+ readonly filters?: any
432
+ }
433
+
434
+ /**
435
+ * BookingEntriesApi - object-oriented interface
436
+ * @export
437
+ * @class BookingEntriesApi
438
+ * @extends {BaseAPI}
439
+ */
440
+ export class BookingEntriesApi extends BaseAPI {
441
+ /**
442
+ * This endpoint creates a new booking entry.
443
+ * @summary Create the booking entry
444
+ * @param {BookingEntriesApiCreateBookingEntryRequest} requestParameters Request parameters.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ * @memberof BookingEntriesApi
448
+ */
449
+ public createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig) {
450
+ return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
451
+ }
452
+
453
+ /**
454
+ * This endpoint gets a booking entry.
455
+ * @summary Retrieve the booking entry
456
+ * @param {BookingEntriesApiGetBookingEntryRequest} requestParameters Request parameters.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ * @memberof BookingEntriesApi
460
+ */
461
+ public getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig) {
462
+ return BookingEntriesApiFp(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
463
+ }
464
+
465
+ /**
466
+ * This endpoint gets booking entries.
467
+ * @summary List booking entries
468
+ * @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ * @memberof BookingEntriesApi
472
+ */
473
+ public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
474
+ return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
475
+ }
476
+ }
package/api.ts CHANGED
@@ -24,12 +24,12 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
- import { BookingProcessesApi } from './api';
27
+ import { BookingEntriesApi } from './api';
28
28
  import { FinancialAccountsApi } from './api';
29
29
  import { HealthApi } from './api';
30
30
 
31
31
 
32
- export * from './api/booking-processes-api';
32
+ export * from './api/booking-entries-api';
33
33
  export * from './api/financial-accounts-api';
34
34
  export * from './api/health-api';
35
35