@emilgroup/accounting-sdk-node 1.0.1-beta.2 → 1.0.1-beta.4

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 (60) hide show
  1. package/.openapi-generator/FILES +9 -7
  2. package/README.md +18 -2
  3. package/api/booking-processes-api.ts +169 -0
  4. package/api/financial-accounts-api.ts +4 -4
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api.ts +4 -4
  7. package/base.ts +15 -7
  8. package/dist/api/booking-processes-api.d.ts +97 -0
  9. package/dist/api/booking-processes-api.js +228 -0
  10. package/dist/api/financial-accounts-api.d.ts +4 -4
  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 +3 -1
  17. package/dist/base.js +27 -20
  18. package/dist/models/booking-entry-class.d.ts +123 -0
  19. package/dist/models/{entry-data-dto.js → booking-entry-class.js} +19 -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/{create-transaction-response-class.d.ts → create-booking-process-response-class.d.ts} +7 -7
  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/financial-account-class.d.ts +18 -6
  30. package/dist/models/financial-account-class.js +5 -5
  31. package/dist/models/financial-transaction-class.d.ts +108 -0
  32. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  33. package/dist/models/{list-transactions-response-class.js → financial-transaction-data-dto.js} +5 -0
  34. package/dist/models/index.d.ts +7 -5
  35. package/dist/models/index.js +7 -5
  36. package/models/booking-entry-class.ts +133 -0
  37. package/models/booking-process-class.ts +104 -0
  38. package/models/create-booking-entry-request-dto.ts +109 -0
  39. package/models/create-booking-process-request-dto.ts +74 -0
  40. package/models/{create-transaction-response-class.ts → create-booking-process-response-class.ts} +7 -7
  41. package/models/create-financial-account-request-dto.ts +16 -10
  42. package/models/financial-account-class.ts +18 -6
  43. package/models/financial-transaction-class.ts +114 -0
  44. package/models/financial-transaction-data-dto.ts +80 -0
  45. package/models/index.ts +7 -5
  46. package/package.json +1 -1
  47. package/api/transactions-api.ts +0 -357
  48. package/dist/api/transactions-api.d.ts +0 -207
  49. package/dist/api/transactions-api.js +0 -357
  50. package/dist/models/create-transaction-request-dto.d.ts +0 -55
  51. package/dist/models/entry-data-dto.d.ts +0 -36
  52. package/dist/models/list-transactions-response-class.d.ts +0 -31
  53. package/dist/models/transaction-class.d.ts +0 -78
  54. package/dist/models/transaction-class.js +0 -15
  55. package/models/create-transaction-request-dto.ts +0 -61
  56. package/models/entry-data-dto.ts +0 -42
  57. package/models/list-transactions-response-class.ts +0 -37
  58. package/models/transaction-class.ts +0 -84
  59. /package/dist/models/{create-transaction-request-dto.js → create-booking-process-response-class.js} +0 -0
  60. /package/dist/models/{create-transaction-response-class.js → financial-transaction-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 { CreateTransactionRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateTransactionResponseClass } from '../models';
27
- // @ts-ignore
28
- import { ListTransactionsResponseClass } from '../models';
29
- // URLSearchParams not necessarily used
30
- // @ts-ignore
31
- import { URL, URLSearchParams } from 'url';
32
- const FormData = require('form-data');
33
- /**
34
- * TransactionsApi - axios parameter creator
35
- * @export
36
- */
37
- export const TransactionsApiAxiosParamCreator = function (configuration?: Configuration) {
38
- return {
39
- /**
40
- * Create a new transaction.
41
- * @summary Create the Transaction
42
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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
- createTransaction: async (createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'createTransactionRequestDto' is not null or undefined
49
- assertParamExists('createTransaction', 'createTransactionRequestDto', createTransactionRequestDto)
50
- const localVarPath = `/accountingservice/v1/transactions`;
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(createTransactionRequestDto, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
88
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
95
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- listTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- const localVarPath = `/accountingservice/v1/transactions`;
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
- * TransactionsApi - functional programming interface
167
- * @export
168
- */
169
- export const TransactionsApiFp = function(configuration?: Configuration) {
170
- const localVarAxiosParamCreator = TransactionsApiAxiosParamCreator(configuration)
171
- return {
172
- /**
173
- * Create a new transaction.
174
- * @summary Create the Transaction
175
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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 createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTransactionResponseClass>> {
181
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTransaction(createTransactionRequestDto, authorization, options);
182
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
183
- },
184
- /**
185
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
186
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
193
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
195
- * @param {*} [options] Override http request option.
196
- * @throws {RequiredError}
197
- */
198
- async listTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactionsResponseClass>> {
199
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
200
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
201
- },
202
- }
203
- };
204
-
205
- /**
206
- * TransactionsApi - factory interface
207
- * @export
208
- */
209
- export const TransactionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
210
- const localVarFp = TransactionsApiFp(configuration)
211
- return {
212
- /**
213
- * Create a new transaction.
214
- * @summary Create the Transaction
215
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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
- createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTransactionResponseClass> {
221
- return localVarFp.createTransaction(createTransactionRequestDto, authorization, options).then((request) => request(axios, basePath));
222
- },
223
- /**
224
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
225
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
232
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
234
- * @param {*} [options] Override http request option.
235
- * @throws {RequiredError}
236
- */
237
- listTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListTransactionsResponseClass> {
238
- return localVarFp.listTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
239
- },
240
- };
241
- };
242
-
243
- /**
244
- * Request parameters for createTransaction operation in TransactionsApi.
245
- * @export
246
- * @interface TransactionsApiCreateTransactionRequest
247
- */
248
- export interface TransactionsApiCreateTransactionRequest {
249
- /**
250
- *
251
- * @type {CreateTransactionRequestDto}
252
- * @memberof TransactionsApiCreateTransaction
253
- */
254
- readonly createTransactionRequestDto: CreateTransactionRequestDto
255
-
256
- /**
257
- * Bearer Token: provided by the login endpoint under the name accessToken.
258
- * @type {string}
259
- * @memberof TransactionsApiCreateTransaction
260
- */
261
- readonly authorization?: string
262
- }
263
-
264
- /**
265
- * Request parameters for listTransactions operation in TransactionsApi.
266
- * @export
267
- * @interface TransactionsApiListTransactionsRequest
268
- */
269
- export interface TransactionsApiListTransactionsRequest {
270
- /**
271
- * Bearer Token: provided by the login endpoint under the name accessToken.
272
- * @type {string}
273
- * @memberof TransactionsApiListTransactions
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 TransactionsApiListTransactions
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 TransactionsApiListTransactions
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
293
- * @type {string}
294
- * @memberof TransactionsApiListTransactions
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 TransactionsApiListTransactions
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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
307
- * @type {string}
308
- * @memberof TransactionsApiListTransactions
309
- */
310
- readonly order?: string
311
-
312
- /**
313
- * 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.
314
- * @type {any}
315
- * @memberof TransactionsApiListTransactions
316
- */
317
- readonly expand?: any
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
321
- * @type {string}
322
- * @memberof TransactionsApiListTransactions
323
- */
324
- readonly filters?: string
325
- }
326
-
327
- /**
328
- * TransactionsApi - object-oriented interface
329
- * @export
330
- * @class TransactionsApi
331
- * @extends {BaseAPI}
332
- */
333
- export class TransactionsApi extends BaseAPI {
334
- /**
335
- * Create a new transaction.
336
- * @summary Create the Transaction
337
- * @param {TransactionsApiCreateTransactionRequest} requestParameters Request parameters.
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- * @memberof TransactionsApi
341
- */
342
- public createTransaction(requestParameters: TransactionsApiCreateTransactionRequest, options?: AxiosRequestConfig) {
343
- return TransactionsApiFp(this.configuration).createTransaction(requestParameters.createTransactionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
344
- }
345
-
346
- /**
347
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
348
- * @summary List Transactions
349
- * @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
350
- * @param {*} [options] Override http request option.
351
- * @throws {RequiredError}
352
- * @memberof TransactionsApi
353
- */
354
- public listTransactions(requestParameters: TransactionsApiListTransactionsRequest = {}, options?: AxiosRequestConfig) {
355
- return TransactionsApiFp(this.configuration).listTransactions(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 { CreateTransactionRequestDto } from '../models';
16
- import { CreateTransactionResponseClass } from '../models';
17
- import { ListTransactionsResponseClass } from '../models';
18
- /**
19
- * TransactionsApi - axios parameter creator
20
- * @export
21
- */
22
- export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- * Create a new transaction.
25
- * @summary Create the Transaction
26
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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
- createTransaction: (createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- /**
33
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
34
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
41
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- listTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
- };
48
- /**
49
- * TransactionsApi - functional programming interface
50
- * @export
51
- */
52
- export declare const TransactionsApiFp: (configuration?: Configuration) => {
53
- /**
54
- * Create a new transaction.
55
- * @summary Create the Transaction
56
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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
- createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTransactionResponseClass>>;
62
- /**
63
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
64
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
71
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
73
- * @param {*} [options] Override http request option.
74
- * @throws {RequiredError}
75
- */
76
- listTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactionsResponseClass>>;
77
- };
78
- /**
79
- * TransactionsApi - factory interface
80
- * @export
81
- */
82
- export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
- /**
84
- * Create a new transaction.
85
- * @summary Create the Transaction
86
- * @param {CreateTransactionRequestDto} createTransactionRequestDto
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
- createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTransactionResponseClass>;
92
- /**
93
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
94
- * @summary List Transactions
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, date, reference, policyNumber, accountNumber&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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
101
- * @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.
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- listTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListTransactionsResponseClass>;
107
- };
108
- /**
109
- * Request parameters for createTransaction operation in TransactionsApi.
110
- * @export
111
- * @interface TransactionsApiCreateTransactionRequest
112
- */
113
- export interface TransactionsApiCreateTransactionRequest {
114
- /**
115
- *
116
- * @type {CreateTransactionRequestDto}
117
- * @memberof TransactionsApiCreateTransaction
118
- */
119
- readonly createTransactionRequestDto: CreateTransactionRequestDto;
120
- /**
121
- * Bearer Token: provided by the login endpoint under the name accessToken.
122
- * @type {string}
123
- * @memberof TransactionsApiCreateTransaction
124
- */
125
- readonly authorization?: string;
126
- }
127
- /**
128
- * Request parameters for listTransactions operation in TransactionsApi.
129
- * @export
130
- * @interface TransactionsApiListTransactionsRequest
131
- */
132
- export interface TransactionsApiListTransactionsRequest {
133
- /**
134
- * Bearer Token: provided by the login endpoint under the name accessToken.
135
- * @type {string}
136
- * @memberof TransactionsApiListTransactions
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 TransactionsApiListTransactions
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 TransactionsApiListTransactions
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
153
- * @type {string}
154
- * @memberof TransactionsApiListTransactions
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 TransactionsApiListTransactions
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, date, reference, policyNumber, accountNumber, updatedAt, createdAt&lt;/i&gt;
165
- * @type {string}
166
- * @memberof TransactionsApiListTransactions
167
- */
168
- readonly order?: string;
169
- /**
170
- * 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.
171
- * @type {any}
172
- * @memberof TransactionsApiListTransactions
173
- */
174
- readonly expand?: any;
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, date, reference, policyNumber, accountNumber&lt;/i&gt;
177
- * @type {string}
178
- * @memberof TransactionsApiListTransactions
179
- */
180
- readonly filters?: string;
181
- }
182
- /**
183
- * TransactionsApi - object-oriented interface
184
- * @export
185
- * @class TransactionsApi
186
- * @extends {BaseAPI}
187
- */
188
- export declare class TransactionsApi extends BaseAPI {
189
- /**
190
- * Create a new transaction.
191
- * @summary Create the Transaction
192
- * @param {TransactionsApiCreateTransactionRequest} requestParameters Request parameters.
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- * @memberof TransactionsApi
196
- */
197
- createTransaction(requestParameters: TransactionsApiCreateTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTransactionResponseClass, any>>;
198
- /**
199
- * Returns a list of Transactions you have previously created. The Transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
200
- * @summary List Transactions
201
- * @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
202
- * @param {*} [options] Override http request option.
203
- * @throws {RequiredError}
204
- * @memberof TransactionsApi
205
- */
206
- listTransactions(requestParameters?: TransactionsApiListTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTransactionsResponseClass, any>>;
207
- }