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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ models/index.ts
22
22
  models/inline-response200.ts
23
23
  models/inline-response503.ts
24
24
  models/list-financial-accounts-response-class.ts
25
+ models/list-transactions-response-class.ts
25
26
  models/transaction-class.ts
26
27
  package.json
27
28
  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.0.1-beta.1 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.0.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.1
24
+ yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { CreateTransactionRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateTransactionResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListTransactionsResponseClass } from '../models';
27
29
  // URLSearchParams not necessarily used
28
30
  // @ts-ignore
29
31
  import { URL, URLSearchParams } from 'url';
@@ -76,6 +78,82 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config
76
78
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
79
  localVarRequestOptions.data = serializeDataIfNeeded(createTransactionRequestDto, localVarRequestOptions, configuration)
78
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, date, reference, policyNumber, accountNumber</i>
93
+ * @param {any} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, date, reference, policyNumber, accountNumber, updatedAt, createdAt</i>
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.<br/> <br/> <i>Allowed values: code, date, reference, policyNumber, accountNumber</i>
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
+
79
157
  return {
80
158
  url: toPathString(localVarUrlObj),
81
159
  options: localVarRequestOptions,
@@ -103,6 +181,24 @@ export const TransactionsApiFp = function(configuration?: Configuration) {
103
181
  const localVarAxiosArgs = await localVarAxiosParamCreator.createTransaction(createTransactionRequestDto, authorization, options);
104
182
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
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
+ },
106
202
  }
107
203
  };
108
204
 
@@ -124,6 +220,23 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b
124
220
  createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTransactionResponseClass> {
125
221
  return localVarFp.createTransaction(createTransactionRequestDto, authorization, options).then((request) => request(axios, basePath));
126
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
+ },
127
240
  };
128
241
  };
129
242
 
@@ -148,6 +261,69 @@ export interface TransactionsApiCreateTransactionRequest {
148
261
  readonly authorization?: string
149
262
  }
150
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
+
151
327
  /**
152
328
  * TransactionsApi - object-oriented interface
153
329
  * @export
@@ -166,4 +342,16 @@ export class TransactionsApi extends BaseAPI {
166
342
  public createTransaction(requestParameters: TransactionsApiCreateTransactionRequest, options?: AxiosRequestConfig) {
167
343
  return TransactionsApiFp(this.configuration).createTransaction(requestParameters.createTransactionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
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
+ }
169
357
  }
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateTransactionRequestDto } from '../models';
16
16
  import { CreateTransactionResponseClass } from '../models';
17
+ import { ListTransactionsResponseClass } from '../models';
17
18
  /**
18
19
  * TransactionsApi - axios parameter creator
19
20
  * @export
@@ -28,6 +29,21 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
28
29
  * @throws {RequiredError}
29
30
  */
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>;
31
47
  };
32
48
  /**
33
49
  * TransactionsApi - functional programming interface
@@ -43,6 +59,21 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => {
43
59
  * @throws {RequiredError}
44
60
  */
45
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>>;
46
77
  };
47
78
  /**
48
79
  * TransactionsApi - factory interface
@@ -58,6 +89,21 @@ export declare const TransactionsApiFactory: (configuration?: Configuration, bas
58
89
  * @throws {RequiredError}
59
90
  */
60
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>;
61
107
  };
62
108
  /**
63
109
  * Request parameters for createTransaction operation in TransactionsApi.
@@ -78,6 +124,61 @@ export interface TransactionsApiCreateTransactionRequest {
78
124
  */
79
125
  readonly authorization?: string;
80
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
+ }
81
182
  /**
82
183
  * TransactionsApi - object-oriented interface
83
184
  * @export
@@ -94,4 +195,13 @@ export declare class TransactionsApi extends BaseAPI {
94
195
  * @memberof TransactionsApi
95
196
  */
96
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>>;
97
207
  }
@@ -145,6 +145,78 @@ var TransactionsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
+ /**
149
+ * 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.
150
+ * @summary List Transactions
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
153
+ * @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.
154
+ * @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;
155
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
156
+ * @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;
157
+ * @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.
158
+ * @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;
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ listTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
163
+ if (options === void 0) { options = {}; }
164
+ return __awaiter(_this, void 0, void 0, function () {
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ return __generator(this, function (_a) {
167
+ switch (_a.label) {
168
+ case 0:
169
+ localVarPath = "/accountingservice/v1/transactions";
170
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (pageSize !== undefined) {
186
+ localVarQueryParameter['pageSize'] = pageSize;
187
+ }
188
+ if (pageToken !== undefined) {
189
+ localVarQueryParameter['pageToken'] = pageToken;
190
+ }
191
+ if (filter !== undefined) {
192
+ localVarQueryParameter['filter'] = filter;
193
+ }
194
+ if (search !== undefined) {
195
+ localVarQueryParameter['search'] = search;
196
+ }
197
+ if (order !== undefined) {
198
+ localVarQueryParameter['order'] = order;
199
+ }
200
+ if (expand !== undefined) {
201
+ localVarQueryParameter['expand'] = expand;
202
+ }
203
+ if (filters !== undefined) {
204
+ localVarQueryParameter['filters'] = filters;
205
+ }
206
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
207
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
208
+ }
209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
+ return [2 /*return*/, {
213
+ url: (0, common_1.toPathString)(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ }];
216
+ }
217
+ });
218
+ });
219
+ },
148
220
  };
149
221
  };
150
222
  exports.TransactionsApiAxiosParamCreator = TransactionsApiAxiosParamCreator;
@@ -176,6 +248,33 @@ var TransactionsApiFp = function (configuration) {
176
248
  });
177
249
  });
178
250
  },
251
+ /**
252
+ * 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.
253
+ * @summary List Transactions
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 {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;
258
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
259
+ * @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;
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 {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;
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ listTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var localVarAxiosArgs;
268
+ return __generator(this, function (_a) {
269
+ switch (_a.label) {
270
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
271
+ case 1:
272
+ localVarAxiosArgs = _a.sent();
273
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
274
+ }
275
+ });
276
+ });
277
+ },
179
278
  };
180
279
  };
181
280
  exports.TransactionsApiFp = TransactionsApiFp;
@@ -197,6 +296,23 @@ var TransactionsApiFactory = function (configuration, basePath, axios) {
197
296
  createTransaction: function (createTransactionRequestDto, authorization, options) {
198
297
  return localVarFp.createTransaction(createTransactionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
199
298
  },
299
+ /**
300
+ * 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.
301
+ * @summary List Transactions
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
+ * @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.
305
+ * @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;
306
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
+ * @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;
308
+ * @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.
309
+ * @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;
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ listTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
314
+ return localVarFp.listTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
315
+ },
200
316
  };
201
317
  };
202
318
  exports.TransactionsApiFactory = TransactionsApiFactory;
@@ -223,6 +339,19 @@ var TransactionsApi = /** @class */ (function (_super) {
223
339
  var _this = this;
224
340
  return (0, exports.TransactionsApiFp)(this.configuration).createTransaction(requestParameters.createTransactionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
225
341
  };
342
+ /**
343
+ * 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.
344
+ * @summary List Transactions
345
+ * @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof TransactionsApi
349
+ */
350
+ TransactionsApi.prototype.listTransactions = function (requestParameters, options) {
351
+ var _this = this;
352
+ if (requestParameters === void 0) { requestParameters = {}; }
353
+ return (0, exports.TransactionsApiFp)(this.configuration).listTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
354
+ };
226
355
  return TransactionsApi;
227
356
  }(base_1.BaseAPI));
228
357
  exports.TransactionsApi = TransactionsApi;
@@ -8,4 +8,5 @@ export * from './get-financial-account-response-class';
8
8
  export * from './inline-response200';
9
9
  export * from './inline-response503';
10
10
  export * from './list-financial-accounts-response-class';
11
+ export * from './list-transactions-response-class';
11
12
  export * from './transaction-class';
@@ -24,4 +24,5 @@ __exportStar(require("./get-financial-account-response-class"), exports);
24
24
  __exportStar(require("./inline-response200"), exports);
25
25
  __exportStar(require("./inline-response503"), exports);
26
26
  __exportStar(require("./list-financial-accounts-response-class"), exports);
27
+ __exportStar(require("./list-transactions-response-class"), exports);
27
28
  __exportStar(require("./transaction-class"), exports);
@@ -0,0 +1,31 @@
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 { TransactionClass } from './transaction-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListTransactionsResponseClass
17
+ */
18
+ export interface ListTransactionsResponseClass {
19
+ /**
20
+ * The list of transactionss.
21
+ * @type {Array<TransactionClass>}
22
+ * @memberof ListTransactionsResponseClass
23
+ */
24
+ 'items': Array<TransactionClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListTransactionsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -63,4 +63,16 @@ export interface TransactionClass {
63
63
  * @memberof TransactionClass
64
64
  */
65
65
  'entries': Array<string>;
66
+ /**
67
+ * Time at which the object was created.
68
+ * @type {string}
69
+ * @memberof TransactionClass
70
+ */
71
+ 'createdAt': string;
72
+ /**
73
+ * Time at which the object was updated.
74
+ * @type {string}
75
+ * @memberof TransactionClass
76
+ */
77
+ 'updatedAt': string;
66
78
  }
package/models/index.ts CHANGED
@@ -8,4 +8,5 @@ export * from './get-financial-account-response-class';
8
8
  export * from './inline-response200';
9
9
  export * from './inline-response503';
10
10
  export * from './list-financial-accounts-response-class';
11
+ export * from './list-transactions-response-class';
11
12
  export * from './transaction-class';
@@ -0,0 +1,37 @@
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 { TransactionClass } from './transaction-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListTransactionsResponseClass
22
+ */
23
+ export interface ListTransactionsResponseClass {
24
+ /**
25
+ * The list of transactionss.
26
+ * @type {Array<TransactionClass>}
27
+ * @memberof ListTransactionsResponseClass
28
+ */
29
+ 'items': Array<TransactionClass>;
30
+ /**
31
+ * Next page token
32
+ * @type {string}
33
+ * @memberof ListTransactionsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -68,5 +68,17 @@ export interface TransactionClass {
68
68
  * @memberof TransactionClass
69
69
  */
70
70
  'entries': Array<string>;
71
+ /**
72
+ * Time at which the object was created.
73
+ * @type {string}
74
+ * @memberof TransactionClass
75
+ */
76
+ 'createdAt': string;
77
+ /**
78
+ * Time at which the object was updated.
79
+ * @type {string}
80
+ * @memberof TransactionClass
81
+ */
82
+ 'updatedAt': string;
71
83
  }
72
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.0.1-beta.1",
3
+ "version": "1.0.1-beta.2",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [