@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
@@ -1,357 +0,0 @@
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
- // URLSearchParams not necessarily used
30
- // @ts-ignore
31
- import { URL, URLSearchParams } from 'url';
32
- const FormData = require('form-data');
33
- /**
34
- * BookingProcessesApi - axios parameter creator
35
- * @export
36
- */
37
- export const BookingProcessesApiAxiosParamCreator = function (configuration?: Configuration) {
38
- return {
39
- /**
40
- * This endpoint creates a new booking process.
41
- * @summary Create the booking process
42
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
43
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createBookingProcess: async (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'createBookingProcessRequestDto' is not null or undefined
49
- assertParamExists('createBookingProcess', 'createBookingProcessRequestDto', createBookingProcessRequestDto)
50
- const localVarPath = `/accountingservice/v1/booking-processes`;
51
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
- let baseOptions;
54
- let baseAccessToken;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- baseAccessToken = configuration.accessToken;
58
- }
59
-
60
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
- const localVarHeaderParameter = {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- // authentication bearer required
65
- // http bearer authentication required
66
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
-
68
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
- }
71
-
72
-
73
-
74
- localVarHeaderParameter['Content-Type'] = 'application/json';
75
-
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
- localVarRequestOptions.data = serializeDataIfNeeded(createBookingProcessRequestDto, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * 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.
88
- * @summary List Booking processes
89
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
91
- * @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.
92
- * @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;
93
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
94
- * @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;
95
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
96
- * @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;
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- listBookingProcesses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- const localVarPath = `/accountingservice/v1/booking-processes`;
102
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
- let baseOptions;
105
- let baseAccessToken;
106
- if (configuration) {
107
- baseOptions = configuration.baseOptions;
108
- baseAccessToken = configuration.accessToken;
109
- }
110
-
111
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
112
- const localVarHeaderParameter = {} as any;
113
- const localVarQueryParameter = {} as any;
114
-
115
- // authentication bearer required
116
- // http bearer authentication required
117
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
-
119
- if (pageSize !== undefined) {
120
- localVarQueryParameter['pageSize'] = pageSize;
121
- }
122
-
123
- if (pageToken !== undefined) {
124
- localVarQueryParameter['pageToken'] = pageToken;
125
- }
126
-
127
- if (filter !== undefined) {
128
- localVarQueryParameter['filter'] = filter;
129
- }
130
-
131
- if (search !== undefined) {
132
- localVarQueryParameter['search'] = search;
133
- }
134
-
135
- if (order !== undefined) {
136
- localVarQueryParameter['order'] = order;
137
- }
138
-
139
- if (expand !== undefined) {
140
- localVarQueryParameter['expand'] = expand;
141
- }
142
-
143
- if (filters !== undefined) {
144
- localVarQueryParameter['filters'] = filters;
145
- }
146
-
147
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
149
- }
150
-
151
-
152
-
153
- setSearchParams(localVarUrlObj, localVarQueryParameter);
154
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
156
-
157
- return {
158
- url: toPathString(localVarUrlObj),
159
- options: localVarRequestOptions,
160
- };
161
- },
162
- }
163
- };
164
-
165
- /**
166
- * BookingProcessesApi - functional programming interface
167
- * @export
168
- */
169
- export const BookingProcessesApiFp = function(configuration?: Configuration) {
170
- const localVarAxiosParamCreator = BookingProcessesApiAxiosParamCreator(configuration)
171
- return {
172
- /**
173
- * This endpoint creates a new booking process.
174
- * @summary Create the booking process
175
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
176
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
177
- * @param {*} [options] Override http request option.
178
- * @throws {RequiredError}
179
- */
180
- async createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>> {
181
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingProcess(createBookingProcessRequestDto, authorization, options);
182
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
183
- },
184
- /**
185
- * 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.
186
- * @summary List Booking processes
187
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
189
- * @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.
190
- * @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;
191
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
192
- * @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;
193
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
194
- * @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;
195
- * @param {*} [options] Override http request option.
196
- * @throws {RequiredError}
197
- */
198
- async listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>> {
199
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
200
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
201
- },
202
- }
203
- };
204
-
205
- /**
206
- * BookingProcessesApi - factory interface
207
- * @export
208
- */
209
- export const BookingProcessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
210
- const localVarFp = BookingProcessesApiFp(configuration)
211
- return {
212
- /**
213
- * This endpoint creates a new booking process.
214
- * @summary Create the booking process
215
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
216
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass> {
221
- return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then((request) => request(axios, basePath));
222
- },
223
- /**
224
- * 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.
225
- * @summary List Booking processes
226
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
- * @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.
229
- * @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;
230
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
- * @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;
232
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
233
- * @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;
234
- * @param {*} [options] Override http request option.
235
- * @throws {RequiredError}
236
- */
237
- listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass> {
238
- return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
239
- },
240
- };
241
- };
242
-
243
- /**
244
- * Request parameters for createBookingProcess operation in BookingProcessesApi.
245
- * @export
246
- * @interface BookingProcessesApiCreateBookingProcessRequest
247
- */
248
- export interface BookingProcessesApiCreateBookingProcessRequest {
249
- /**
250
- *
251
- * @type {CreateBookingProcessRequestDto}
252
- * @memberof BookingProcessesApiCreateBookingProcess
253
- */
254
- readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto
255
-
256
- /**
257
- * Bearer Token: provided by the login endpoint under the name accessToken.
258
- * @type {string}
259
- * @memberof BookingProcessesApiCreateBookingProcess
260
- */
261
- readonly authorization?: string
262
- }
263
-
264
- /**
265
- * Request parameters for listBookingProcesses operation in BookingProcessesApi.
266
- * @export
267
- * @interface BookingProcessesApiListBookingProcessesRequest
268
- */
269
- export interface BookingProcessesApiListBookingProcessesRequest {
270
- /**
271
- * Bearer Token: provided by the login endpoint under the name accessToken.
272
- * @type {string}
273
- * @memberof BookingProcessesApiListBookingProcesses
274
- */
275
- readonly authorization?: string
276
-
277
- /**
278
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
279
- * @type {any}
280
- * @memberof BookingProcessesApiListBookingProcesses
281
- */
282
- readonly pageSize?: any
283
-
284
- /**
285
- * 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.
286
- * @type {any}
287
- * @memberof BookingProcessesApiListBookingProcesses
288
- */
289
- readonly pageToken?: any
290
-
291
- /**
292
- * 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;
293
- * @type {string}
294
- * @memberof BookingProcessesApiListBookingProcesses
295
- */
296
- readonly filter?: string
297
-
298
- /**
299
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
300
- * @type {any}
301
- * @memberof BookingProcessesApiListBookingProcesses
302
- */
303
- readonly search?: any
304
-
305
- /**
306
- * 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;
307
- * @type {string}
308
- * @memberof BookingProcessesApiListBookingProcesses
309
- */
310
- readonly order?: string
311
-
312
- /**
313
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
314
- * @type {string}
315
- * @memberof BookingProcessesApiListBookingProcesses
316
- */
317
- readonly expand?: string
318
-
319
- /**
320
- * 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;
321
- * @type {string}
322
- * @memberof BookingProcessesApiListBookingProcesses
323
- */
324
- readonly filters?: string
325
- }
326
-
327
- /**
328
- * BookingProcessesApi - object-oriented interface
329
- * @export
330
- * @class BookingProcessesApi
331
- * @extends {BaseAPI}
332
- */
333
- export class BookingProcessesApi extends BaseAPI {
334
- /**
335
- * This endpoint creates a new booking process.
336
- * @summary Create the booking process
337
- * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- * @memberof BookingProcessesApi
341
- */
342
- public createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig) {
343
- return BookingProcessesApiFp(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
344
- }
345
-
346
- /**
347
- * 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.
348
- * @summary List Booking processes
349
- * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
350
- * @param {*} [options] Override http request option.
351
- * @throws {RequiredError}
352
- * @memberof BookingProcessesApi
353
- */
354
- public listBookingProcesses(requestParameters: BookingProcessesApiListBookingProcessesRequest = {}, options?: AxiosRequestConfig) {
355
- 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));
356
- }
357
- }
@@ -1,207 +0,0 @@
1
- /**
2
- * EMIL AccountingService
3
- * The EMIL AccountingService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateBookingProcessRequestDto } from '../models';
16
- import { CreateBookingProcessResponseClass } from '../models';
17
- import { ListBookingProcessResponseClass } from '../models';
18
- /**
19
- * BookingProcessesApi - axios parameter creator
20
- * @export
21
- */
22
- export declare const BookingProcessesApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- * This endpoint creates a new booking process.
25
- * @summary Create the booking process
26
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
27
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createBookingProcess: (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- /**
33
- * 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.
34
- * @summary List Booking processes
35
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
37
- * @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.
38
- * @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;
39
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
40
- * @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;
41
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
42
- * @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;
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- listBookingProcesses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
- };
48
- /**
49
- * BookingProcessesApi - functional programming interface
50
- * @export
51
- */
52
- export declare const BookingProcessesApiFp: (configuration?: Configuration) => {
53
- /**
54
- * This endpoint creates a new booking process.
55
- * @summary Create the booking process
56
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
57
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
- * @param {*} [options] Override http request option.
59
- * @throws {RequiredError}
60
- */
61
- createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>>;
62
- /**
63
- * 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.
64
- * @summary List Booking processes
65
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
66
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
67
- * @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.
68
- * @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;
69
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
70
- * @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;
71
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
72
- * @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;
73
- * @param {*} [options] Override http request option.
74
- * @throws {RequiredError}
75
- */
76
- listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>>;
77
- };
78
- /**
79
- * BookingProcessesApi - factory interface
80
- * @export
81
- */
82
- export declare const BookingProcessesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
- /**
84
- * This endpoint creates a new booking process.
85
- * @summary Create the booking process
86
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
87
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass>;
92
- /**
93
- * 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.
94
- * @summary List Booking processes
95
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
96
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
97
- * @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.
98
- * @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;
99
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
100
- * @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;
101
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
102
- * @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;
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass>;
107
- };
108
- /**
109
- * Request parameters for createBookingProcess operation in BookingProcessesApi.
110
- * @export
111
- * @interface BookingProcessesApiCreateBookingProcessRequest
112
- */
113
- export interface BookingProcessesApiCreateBookingProcessRequest {
114
- /**
115
- *
116
- * @type {CreateBookingProcessRequestDto}
117
- * @memberof BookingProcessesApiCreateBookingProcess
118
- */
119
- readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto;
120
- /**
121
- * Bearer Token: provided by the login endpoint under the name accessToken.
122
- * @type {string}
123
- * @memberof BookingProcessesApiCreateBookingProcess
124
- */
125
- readonly authorization?: string;
126
- }
127
- /**
128
- * Request parameters for listBookingProcesses operation in BookingProcessesApi.
129
- * @export
130
- * @interface BookingProcessesApiListBookingProcessesRequest
131
- */
132
- export interface BookingProcessesApiListBookingProcessesRequest {
133
- /**
134
- * Bearer Token: provided by the login endpoint under the name accessToken.
135
- * @type {string}
136
- * @memberof BookingProcessesApiListBookingProcesses
137
- */
138
- readonly authorization?: string;
139
- /**
140
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
141
- * @type {any}
142
- * @memberof BookingProcessesApiListBookingProcesses
143
- */
144
- readonly pageSize?: any;
145
- /**
146
- * 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.
147
- * @type {any}
148
- * @memberof BookingProcessesApiListBookingProcesses
149
- */
150
- readonly pageToken?: any;
151
- /**
152
- * 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;
153
- * @type {string}
154
- * @memberof BookingProcessesApiListBookingProcesses
155
- */
156
- readonly filter?: string;
157
- /**
158
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
- * @type {any}
160
- * @memberof BookingProcessesApiListBookingProcesses
161
- */
162
- readonly search?: any;
163
- /**
164
- * 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;
165
- * @type {string}
166
- * @memberof BookingProcessesApiListBookingProcesses
167
- */
168
- readonly order?: string;
169
- /**
170
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
171
- * @type {string}
172
- * @memberof BookingProcessesApiListBookingProcesses
173
- */
174
- readonly expand?: string;
175
- /**
176
- * 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;
177
- * @type {string}
178
- * @memberof BookingProcessesApiListBookingProcesses
179
- */
180
- readonly filters?: string;
181
- }
182
- /**
183
- * BookingProcessesApi - object-oriented interface
184
- * @export
185
- * @class BookingProcessesApi
186
- * @extends {BaseAPI}
187
- */
188
- export declare class BookingProcessesApi extends BaseAPI {
189
- /**
190
- * This endpoint creates a new booking process.
191
- * @summary Create the booking process
192
- * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- * @memberof BookingProcessesApi
196
- */
197
- createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingProcessResponseClass, any>>;
198
- /**
199
- * 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.
200
- * @summary List Booking processes
201
- * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- * @memberof BookingProcessesApi
205
- */
206
- listBookingProcesses(requestParameters?: BookingProcessesApiListBookingProcessesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingProcessResponseClass, any>>;
207
- }
@@ -1,94 +0,0 @@
1
- /**
2
- * EMIL AccountingService
3
- * The EMIL AccountingService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { BookingEntryClass } from './booking-entry-class';
13
- /**
14
- *
15
- * @export
16
- * @interface BookingProcessClass
17
- */
18
- export interface BookingProcessClass {
19
- /**
20
- * Internal unique identifier for the object. You should not have to use this, use code instead.
21
- * @type {number}
22
- * @memberof BookingProcessClass
23
- */
24
- 'id': number;
25
- /**
26
- * Unique identifier for the object.
27
- * @type {string}
28
- * @memberof BookingProcessClass
29
- */
30
- 'code': string;
31
- /**
32
- * A flexible JSON object that allows tenants to include any custom fields. The keys represent the names of the custom fields, and the values can be of any data type. This enables tenants to store additional metadata or custom attributes that are specific to their use case.
33
- * @type {object}
34
- * @memberof BookingProcessClass
35
- */
36
- 'customFields': object;
37
- /**
38
- * Represents the current stage of the booking process. It tracks whether the process is still open, invoiced, or paid.
39
- * @type {string}
40
- * @memberof BookingProcessClass
41
- */
42
- 'status': BookingProcessClassStatusEnum;
43
- /**
44
- * Defines the type of booking process, indicating the nature of the financial transaction or action such as an initial invoice, claims payment, or termination invoice.
45
- * @type {string}
46
- * @memberof BookingProcessClass
47
- */
48
- 'bookingProcessType': BookingProcessClassBookingProcessTypeEnum;
49
- /**
50
- * A list of booking entries associated with this booking process. Each entry represents a booking entry linked to the current booking process.
51
- * @type {Array<BookingEntryClass>}
52
- * @memberof BookingProcessClass
53
- */
54
- 'bookingEntries': Array<BookingEntryClass>;
55
- /**
56
- * Time at which the object was created.
57
- * @type {string}
58
- * @memberof BookingProcessClass
59
- */
60
- 'createdAt': string;
61
- /**
62
- * Time at which the object was updated.
63
- * @type {string}
64
- * @memberof BookingProcessClass
65
- */
66
- 'updatedAt': string;
67
- /**
68
- * Identifier of the user who created the record.
69
- * @type {string}
70
- * @memberof BookingProcessClass
71
- */
72
- 'createdBy': string;
73
- /**
74
- * Identifier of the user who last updated the record.
75
- * @type {string}
76
- * @memberof BookingProcessClass
77
- */
78
- 'updatedBy': string;
79
- }
80
- export declare const BookingProcessClassStatusEnum: {
81
- readonly Invoiced: "invoiced";
82
- readonly Paid: "paid";
83
- readonly Open: "open";
84
- };
85
- export type BookingProcessClassStatusEnum = typeof BookingProcessClassStatusEnum[keyof typeof BookingProcessClassStatusEnum];
86
- export declare const BookingProcessClassBookingProcessTypeEnum: {
87
- readonly TerminationInvoice: "terminationInvoice";
88
- readonly ClaimsPayment: "claimsPayment";
89
- readonly WithdrawnInvoice: "withdrawnInvoice";
90
- readonly CorrectionInvoice: "correctionInvoice";
91
- readonly RecurringInvoice: "recurringInvoice";
92
- readonly InitialInvoice: "initialInvoice";
93
- };
94
- export type BookingProcessClassBookingProcessTypeEnum = typeof BookingProcessClassBookingProcessTypeEnum[keyof typeof BookingProcessClassBookingProcessTypeEnum];