@emilgroup/payment-sdk 1.4.1-beta.4 → 1.4.1-beta.40

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 (129) hide show
  1. package/.openapi-generator/FILES +15 -7
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +501 -89
  4. package/api/bank-transaction-api.ts +303 -97
  5. package/api/{default-api.ts → health-check-api.ts} +23 -19
  6. package/api/payment-methods-api.ts +62 -243
  7. package/api/payment-reminders-api.ts +58 -100
  8. package/api/payment-setup-api.ts +18 -10
  9. package/api/payments-api.ts +73 -136
  10. package/api/refunds-api.ts +436 -0
  11. package/api/tenant-bank-account-api.ts +100 -102
  12. package/api/webhooks-api.ts +18 -14
  13. package/api.ts +6 -4
  14. package/base.ts +23 -11
  15. package/common.ts +4 -4
  16. package/configuration.ts +2 -2
  17. package/dist/api/bank-accounts-api.d.ts +293 -70
  18. package/dist/api/bank-accounts-api.js +433 -63
  19. package/dist/api/bank-transaction-api.d.ts +193 -83
  20. package/dist/api/bank-transaction-api.js +253 -66
  21. package/dist/api/health-check-api.d.ts +70 -0
  22. package/dist/api/{default-api.js → health-check-api.js} +32 -28
  23. package/dist/api/payment-methods-api.d.ts +52 -152
  24. package/dist/api/payment-methods-api.js +49 -179
  25. package/dist/api/payment-reminders-api.d.ts +53 -80
  26. package/dist/api/payment-reminders-api.js +45 -63
  27. package/dist/api/payment-setup-api.d.ts +18 -10
  28. package/dist/api/payment-setup-api.js +18 -10
  29. package/dist/api/payments-api.d.ts +63 -99
  30. package/dist/api/payments-api.js +56 -86
  31. package/dist/api/refunds-api.d.ts +251 -0
  32. package/dist/api/refunds-api.js +439 -0
  33. package/dist/api/tenant-bank-account-api.d.ts +94 -89
  34. package/dist/api/tenant-bank-account-api.js +72 -64
  35. package/dist/api/webhooks-api.d.ts +18 -14
  36. package/dist/api/webhooks-api.js +16 -12
  37. package/dist/api.d.ts +4 -3
  38. package/dist/api.js +4 -3
  39. package/dist/base.d.ts +7 -4
  40. package/dist/base.js +32 -23
  41. package/dist/common.d.ts +4 -4
  42. package/dist/common.js +2 -2
  43. package/dist/configuration.d.ts +2 -2
  44. package/dist/configuration.js +2 -2
  45. package/dist/index.d.ts +2 -2
  46. package/dist/index.js +2 -2
  47. package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +32 -34
  48. package/dist/models/{bank-transaction-response-class.js → bank-transaction-class-without-expand-properties.js} +2 -2
  49. package/dist/models/create-bank-account-request-dto.d.ts +42 -0
  50. package/dist/models/{get-request-dto.js → create-bank-account-request-dto.js} +2 -2
  51. package/dist/models/create-payment-reminder-request-dto.d.ts +2 -2
  52. package/dist/models/create-payment-reminder-request-dto.js +2 -2
  53. package/dist/models/create-payment-request-dto.d.ts +4 -4
  54. package/dist/models/create-payment-request-dto.js +2 -2
  55. package/dist/models/create-refund-request-dto.d.ts +24 -0
  56. package/dist/models/{get-bank-transactions-response-class.js → create-refund-request-dto.js} +2 -2
  57. package/dist/models/create-tenant-bank-account-request-dto.d.ts +2 -2
  58. package/dist/models/create-tenant-bank-account-request-dto.js +2 -2
  59. package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
  60. package/dist/models/{list-bank-transactions-response-class.js → create-tenant-bank-account-response-class.js} +2 -2
  61. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +2 -2
  62. package/dist/models/deactivate-payment-reminder-request-dto.js +2 -2
  63. package/dist/models/get-tenant-bank-account-response-class.d.ts +6 -6
  64. package/dist/models/get-tenant-bank-account-response-class.js +2 -2
  65. package/dist/models/index.d.ts +13 -6
  66. package/dist/models/index.js +13 -6
  67. package/dist/models/inline-response200.d.ts +2 -2
  68. package/dist/models/inline-response200.js +2 -2
  69. package/dist/models/inline-response503.d.ts +2 -2
  70. package/dist/models/inline-response503.js +2 -2
  71. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  72. package/dist/models/link-bank-transaction-request-dto-rest.js +15 -0
  73. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  74. package/dist/models/list-tenant-bank-account-response-class.js +15 -0
  75. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  76. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  77. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +78 -0
  78. package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
  79. package/dist/models/tenant-bank-account-class.d.ts +85 -0
  80. package/dist/models/tenant-bank-account-class.js +15 -0
  81. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  82. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  83. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  84. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  85. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  86. package/dist/models/update-bank-account-request-dto.js +15 -0
  87. package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
  88. package/dist/models/update-tenant-bank-account-response-class.js +15 -0
  89. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +2 -2
  90. package/dist/models/update-tenant-bank-account-rest-request-dto.js +2 -2
  91. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
  92. package/dist/models/validate-pspconfig-request-dto.js +2 -2
  93. package/index.ts +2 -2
  94. package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +32 -34
  95. package/models/create-bank-account-request-dto.ts +48 -0
  96. package/models/create-payment-reminder-request-dto.ts +2 -2
  97. package/models/create-payment-request-dto.ts +4 -4
  98. package/models/create-refund-request-dto.ts +30 -0
  99. package/models/create-tenant-bank-account-request-dto.ts +2 -2
  100. package/models/create-tenant-bank-account-response-class.ts +31 -0
  101. package/models/deactivate-payment-reminder-request-dto.ts +2 -2
  102. package/models/get-tenant-bank-account-response-class.ts +6 -6
  103. package/models/index.ts +13 -6
  104. package/models/inline-response200.ts +2 -2
  105. package/models/inline-response503.ts +2 -2
  106. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  107. package/models/list-tenant-bank-account-response-class.ts +37 -0
  108. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  109. package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +24 -12
  110. package/models/tenant-bank-account-class.ts +91 -0
  111. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  112. package/models/update-bank-account-request-dto-rest.ts +36 -0
  113. package/models/update-bank-account-request-dto.ts +42 -0
  114. package/models/update-tenant-bank-account-response-class.ts +31 -0
  115. package/models/update-tenant-bank-account-rest-request-dto.ts +2 -2
  116. package/models/validate-pspconfig-request-dto.ts +2 -2
  117. package/package.json +1 -1
  118. package/dist/api/default-api.d.ts +0 -66
  119. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  120. package/dist/models/get-request-dto.d.ts +0 -30
  121. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  122. package/dist/models/tenant-bank-account-response-class.d.ts +0 -66
  123. package/dist/models/tenant-bank-account-response-class.js +0 -15
  124. package/dist/models/transaction-class.d.ts +0 -54
  125. package/dist/models/transaction-class.js +0 -15
  126. package/models/get-bank-transactions-response-class.ts +0 -31
  127. package/models/get-request-dto.ts +0 -36
  128. package/models/list-bank-transactions-response-class.ts +0 -37
  129. package/models/transaction-class.ts +0 -60
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: z
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -21,9 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { GetBankTransactionsResponseClass } from '../models';
24
+ import { LinkBankTransactionRequestDtoRest } from '../models';
25
25
  // @ts-ignore
26
- import { ListBankTransactionsResponseClass } from '../models';
26
+ import { UnlinkBankTransactionRequestDtoRest } from '../models';
27
27
  /**
28
28
  * BankTransactionApi - axios parameter creator
29
29
  * @export
@@ -31,11 +31,11 @@ import { ListBankTransactionsResponseClass } from '../models';
31
31
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
35
- * @summary Retrieve the Bank Transaction
34
+ * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
35
+ * @summary Retrieve the bank transaction
36
36
  * @param {string} code
37
37
  * @param {string} [authorization] Bearer Token
38
- * @param {string} [expand] Expand the response with additional entities
38
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
@@ -81,14 +81,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
81
81
  };
82
82
  },
83
83
  /**
84
- * Import bank transactions from a swift MT940 file
84
+ * This will import bank transactions from a swift MT940 file
85
85
  * @summary Create the bank transactions
86
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
86
87
  * @param {string} [authorization] Bearer Token
87
- * @param {any} [file]
88
88
  * @param {*} [options] Override http request option.
89
89
  * @throws {RequiredError}
90
90
  */
91
- importBankTransactions: async (authorization?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
91
+ importBankTransactions: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ // verify required parameter 'file' is not null or undefined
93
+ assertParamExists('importBankTransactions', 'file', file)
92
94
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/import`;
93
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
96
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -131,21 +133,21 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
131
133
  };
132
134
  },
133
135
  /**
134
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
135
- * @summary List bank transactions
136
+ * Links a bank transaction with an invoice
137
+ * @summary Link bank transaction
138
+ * @param {string} code Code of the bank transaction to link
139
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
136
140
  * @param {string} [authorization] Bearer Token
137
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
138
- * @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.
139
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
140
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
141
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
142
- * @param {string} [expand] Expand the response with additional entities
143
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
144
141
  * @param {*} [options] Override http request option.
145
142
  * @throws {RequiredError}
146
143
  */
147
- listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
- const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
144
+ linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ // verify required parameter 'code' is not null or undefined
146
+ assertParamExists('linkBankTransaction', 'code', code)
147
+ // verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
148
+ assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
149
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
150
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
149
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
152
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
153
  let baseOptions;
@@ -155,7 +157,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
155
157
  baseAccessToken = configuration.accessToken;
156
158
  }
157
159
 
158
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
160
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
159
161
  const localVarHeaderParameter = {} as any;
160
162
  const localVarQueryParameter = {} as any;
161
163
 
@@ -163,18 +165,63 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
163
165
  // http bearer authentication required
164
166
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
167
 
166
- if (pageSize !== undefined) {
167
- localVarQueryParameter['pageSize'] = pageSize;
168
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
170
  }
169
171
 
170
- if (pageToken !== undefined) {
171
- localVarQueryParameter['pageToken'] = pageToken;
172
+
173
+
174
+ localVarHeaderParameter['Content-Type'] = 'application/json';
175
+
176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
179
+ localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
180
+
181
+ return {
182
+ url: toPathString(localVarUrlObj),
183
+ options: localVarRequestOptions,
184
+ };
185
+ },
186
+ /**
187
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
188
+ * @summary List bank transactions
189
+ * @param {string} [authorization] Bearer Token
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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
191
+ * @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
192
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
193
+ * @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, createdAt, amount, transactionDate, entryDate&lt;/i&gt;
194
+ * @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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ listBankTransactions: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
202
+ let baseOptions;
203
+ let baseAccessToken;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ baseAccessToken = configuration.accessToken;
172
207
  }
173
208
 
209
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
210
+ const localVarHeaderParameter = {} as any;
211
+ const localVarQueryParameter = {} as any;
212
+
213
+ // authentication bearer required
214
+ // http bearer authentication required
215
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
216
+
174
217
  if (filter !== undefined) {
175
218
  localVarQueryParameter['filter'] = filter;
176
219
  }
177
220
 
221
+ if (filters !== undefined) {
222
+ localVarQueryParameter['filters'] = filters;
223
+ }
224
+
178
225
  if (search !== undefined) {
179
226
  localVarQueryParameter['search'] = search;
180
227
  }
@@ -187,19 +234,66 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
187
234
  localVarQueryParameter['expand'] = expand;
188
235
  }
189
236
 
190
- if (filters !== undefined) {
191
- localVarQueryParameter['filters'] = filters;
237
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
+ }
240
+
241
+
242
+
243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
245
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
246
+
247
+ return {
248
+ url: toPathString(localVarUrlObj),
249
+ options: localVarRequestOptions,
250
+ };
251
+ },
252
+ /**
253
+ * Unlinks an already linked bank transaction
254
+ * @summary Unlink bank transaction
255
+ * @param {string} code Code of the bank transaction to unlink
256
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
257
+ * @param {string} [authorization] Bearer Token
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
262
+ // verify required parameter 'code' is not null or undefined
263
+ assertParamExists('unlinkBankTransaction', 'code', code)
264
+ // verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
265
+ assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
266
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
267
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
270
+ let baseOptions;
271
+ let baseAccessToken;
272
+ if (configuration) {
273
+ baseOptions = configuration.baseOptions;
274
+ baseAccessToken = configuration.accessToken;
192
275
  }
193
276
 
277
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
278
+ const localVarHeaderParameter = {} as any;
279
+ const localVarQueryParameter = {} as any;
280
+
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
284
+
194
285
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
195
286
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
196
287
  }
197
288
 
198
289
 
199
290
 
291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
292
+
200
293
  setSearchParams(localVarUrlObj, localVarQueryParameter);
201
294
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
295
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
296
+ localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
203
297
 
204
298
  return {
205
299
  url: toPathString(localVarUrlObj),
@@ -217,46 +311,70 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
217
311
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
218
312
  return {
219
313
  /**
220
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
221
- * @summary Retrieve the Bank Transaction
314
+ * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
315
+ * @summary Retrieve the bank transaction
222
316
  * @param {string} code
223
317
  * @param {string} [authorization] Bearer Token
224
- * @param {string} [expand] Expand the response with additional entities
318
+ * @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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
225
319
  * @param {*} [options] Override http request option.
226
320
  * @throws {RequiredError}
227
321
  */
228
- async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
322
+ async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
229
323
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
230
324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
231
325
  },
232
326
  /**
233
- * Import bank transactions from a swift MT940 file
327
+ * This will import bank transactions from a swift MT940 file
234
328
  * @summary Create the bank transactions
329
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
235
330
  * @param {string} [authorization] Bearer Token
236
- * @param {any} [file]
237
331
  * @param {*} [options] Override http request option.
238
332
  * @throws {RequiredError}
239
333
  */
240
- async importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
241
- const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(authorization, file, options);
334
+ async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
242
336
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
243
337
  },
244
338
  /**
245
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
339
+ * Links a bank transaction with an invoice
340
+ * @summary Link bank transaction
341
+ * @param {string} code Code of the bank transaction to link
342
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
343
+ * @param {string} [authorization] Bearer Token
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
349
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
+ },
351
+ /**
352
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
246
353
  * @summary List bank transactions
247
354
  * @param {string} [authorization] Bearer Token
248
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
- * @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.
250
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
251
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
252
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
253
- * @param {string} [expand] Expand the response with additional entities
254
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
355
+ * @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
356
+ * @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
357
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
358
+ * @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, createdAt, amount, transactionDate, entryDate&lt;/i&gt;
359
+ * @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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
365
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
366
+ },
367
+ /**
368
+ * Unlinks an already linked bank transaction
369
+ * @summary Unlink bank transaction
370
+ * @param {string} code Code of the bank transaction to unlink
371
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
372
+ * @param {string} [authorization] Bearer Token
255
373
  * @param {*} [options] Override http request option.
256
374
  * @throws {RequiredError}
257
375
  */
258
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
259
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
376
+ async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
377
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
260
378
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
261
379
  },
262
380
  }
@@ -270,44 +388,66 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
270
388
  const localVarFp = BankTransactionApiFp(configuration)
271
389
  return {
272
390
  /**
273
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
274
- * @summary Retrieve the Bank Transaction
391
+ * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
392
+ * @summary Retrieve the bank transaction
275
393
  * @param {string} code
276
394
  * @param {string} [authorization] Bearer Token
277
- * @param {string} [expand] Expand the response with additional entities
395
+ * @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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
278
396
  * @param {*} [options] Override http request option.
279
397
  * @throws {RequiredError}
280
398
  */
281
- getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
399
+ getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
282
400
  return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
283
401
  },
284
402
  /**
285
- * Import bank transactions from a swift MT940 file
403
+ * This will import bank transactions from a swift MT940 file
286
404
  * @summary Create the bank transactions
405
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
287
406
  * @param {string} [authorization] Bearer Token
288
- * @param {any} [file]
289
407
  * @param {*} [options] Override http request option.
290
408
  * @throws {RequiredError}
291
409
  */
292
- importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
293
- return localVarFp.importBankTransactions(authorization, file, options).then((request) => request(axios, basePath));
410
+ importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
411
+ return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
294
412
  },
295
413
  /**
296
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
414
+ * Links a bank transaction with an invoice
415
+ * @summary Link bank transaction
416
+ * @param {string} code Code of the bank transaction to link
417
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
418
+ * @param {string} [authorization] Bearer Token
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
423
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
424
+ },
425
+ /**
426
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
297
427
  * @summary List bank transactions
298
428
  * @param {string} [authorization] Bearer Token
299
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
300
- * @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.
301
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
302
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
303
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
304
- * @param {string} [expand] Expand the response with additional entities
305
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
429
+ * @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
430
+ * @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
431
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
432
+ * @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, createdAt, amount, transactionDate, entryDate&lt;/i&gt;
433
+ * @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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
438
+ return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
439
+ },
440
+ /**
441
+ * Unlinks an already linked bank transaction
442
+ * @summary Unlink bank transaction
443
+ * @param {string} code Code of the bank transaction to unlink
444
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
445
+ * @param {string} [authorization] Bearer Token
306
446
  * @param {*} [options] Override http request option.
307
447
  * @throws {RequiredError}
308
448
  */
309
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
310
- return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
449
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
450
+ return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
311
451
  },
312
452
  };
313
453
  };
@@ -333,7 +473,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
333
473
  readonly authorization?: string
334
474
 
335
475
  /**
336
- * Expand the response with additional entities
476
+ * 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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
337
477
  * @type {string}
338
478
  * @memberof BankTransactionApiGetBankTransaction
339
479
  */
@@ -346,19 +486,47 @@ export interface BankTransactionApiGetBankTransactionRequest {
346
486
  * @interface BankTransactionApiImportBankTransactionsRequest
347
487
  */
348
488
  export interface BankTransactionApiImportBankTransactionsRequest {
489
+ /**
490
+ * Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
491
+ * @type {any}
492
+ * @memberof BankTransactionApiImportBankTransactions
493
+ */
494
+ readonly file: any
495
+
349
496
  /**
350
497
  * Bearer Token
351
498
  * @type {string}
352
499
  * @memberof BankTransactionApiImportBankTransactions
353
500
  */
354
501
  readonly authorization?: string
502
+ }
503
+
504
+ /**
505
+ * Request parameters for linkBankTransaction operation in BankTransactionApi.
506
+ * @export
507
+ * @interface BankTransactionApiLinkBankTransactionRequest
508
+ */
509
+ export interface BankTransactionApiLinkBankTransactionRequest {
510
+ /**
511
+ * Code of the bank transaction to link
512
+ * @type {string}
513
+ * @memberof BankTransactionApiLinkBankTransaction
514
+ */
515
+ readonly code: string
355
516
 
356
517
  /**
357
518
  *
358
- * @type {any}
359
- * @memberof BankTransactionApiImportBankTransactions
519
+ * @type {LinkBankTransactionRequestDtoRest}
520
+ * @memberof BankTransactionApiLinkBankTransaction
360
521
  */
361
- readonly file?: any
522
+ readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
523
+
524
+ /**
525
+ * Bearer Token
526
+ * @type {string}
527
+ * @memberof BankTransactionApiLinkBankTransaction
528
+ */
529
+ readonly authorization?: string
362
530
  }
363
531
 
364
532
  /**
@@ -375,53 +543,67 @@ export interface BankTransactionApiListBankTransactionsRequest {
375
543
  readonly authorization?: string
376
544
 
377
545
  /**
378
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
379
- * @type {any}
546
+ * 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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
547
+ * @type {string}
380
548
  * @memberof BankTransactionApiListBankTransactions
381
549
  */
382
- readonly pageSize?: any
550
+ readonly filter?: string
383
551
 
384
552
  /**
385
- * 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.
386
- * @type {any}
553
+ * 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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
554
+ * @type {string}
387
555
  * @memberof BankTransactionApiListBankTransactions
388
556
  */
389
- readonly pageToken?: any
557
+ readonly filters?: string
390
558
 
391
559
  /**
392
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
393
- * @type {any}
560
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
561
+ * @type {string}
394
562
  * @memberof BankTransactionApiListBankTransactions
395
563
  */
396
- readonly filter?: any
564
+ readonly search?: string
397
565
 
398
566
  /**
399
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
400
- * @type {any}
567
+ * 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, createdAt, amount, transactionDate, entryDate&lt;/i&gt;
568
+ * @type {string}
401
569
  * @memberof BankTransactionApiListBankTransactions
402
570
  */
403
- readonly search?: any
571
+ readonly order?: string
404
572
 
405
573
  /**
406
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
407
- * @type {any}
574
+ * 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; &lt;i&gt;Allowed values: bankAccount, transaction&lt;i&gt;
575
+ * @type {string}
408
576
  * @memberof BankTransactionApiListBankTransactions
409
577
  */
410
- readonly order?: any
578
+ readonly expand?: string
579
+ }
411
580
 
581
+ /**
582
+ * Request parameters for unlinkBankTransaction operation in BankTransactionApi.
583
+ * @export
584
+ * @interface BankTransactionApiUnlinkBankTransactionRequest
585
+ */
586
+ export interface BankTransactionApiUnlinkBankTransactionRequest {
412
587
  /**
413
- * Expand the response with additional entities
588
+ * Code of the bank transaction to unlink
414
589
  * @type {string}
415
- * @memberof BankTransactionApiListBankTransactions
590
+ * @memberof BankTransactionApiUnlinkBankTransaction
416
591
  */
417
- readonly expand?: string
592
+ readonly code: string
418
593
 
419
594
  /**
420
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
421
- * @type {any}
422
- * @memberof BankTransactionApiListBankTransactions
595
+ *
596
+ * @type {UnlinkBankTransactionRequestDtoRest}
597
+ * @memberof BankTransactionApiUnlinkBankTransaction
598
+ */
599
+ readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
600
+
601
+ /**
602
+ * Bearer Token
603
+ * @type {string}
604
+ * @memberof BankTransactionApiUnlinkBankTransaction
423
605
  */
424
- readonly filters?: any
606
+ readonly authorization?: string
425
607
  }
426
608
 
427
609
  /**
@@ -432,8 +614,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
432
614
  */
433
615
  export class BankTransactionApi extends BaseAPI {
434
616
  /**
435
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
436
- * @summary Retrieve the Bank Transaction
617
+ * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
618
+ * @summary Retrieve the bank transaction
437
619
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
438
620
  * @param {*} [options] Override http request option.
439
621
  * @throws {RequiredError}
@@ -444,19 +626,31 @@ export class BankTransactionApi extends BaseAPI {
444
626
  }
445
627
 
446
628
  /**
447
- * Import bank transactions from a swift MT940 file
629
+ * This will import bank transactions from a swift MT940 file
448
630
  * @summary Create the bank transactions
449
631
  * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
450
632
  * @param {*} [options] Override http request option.
451
633
  * @throws {RequiredError}
452
634
  * @memberof BankTransactionApi
453
635
  */
454
- public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
455
- return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
636
+ public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig) {
637
+ return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
456
638
  }
457
639
 
458
640
  /**
459
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
641
+ * Links a bank transaction with an invoice
642
+ * @summary Link bank transaction
643
+ * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof BankTransactionApi
647
+ */
648
+ public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
649
+ return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
+ }
651
+
652
+ /**
653
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
460
654
  * @summary List bank transactions
461
655
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
462
656
  * @param {*} [options] Override http request option.
@@ -464,6 +658,18 @@ export class BankTransactionApi extends BaseAPI {
464
658
  * @memberof BankTransactionApi
465
659
  */
466
660
  public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
467
- return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
661
+ return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
662
+ }
663
+
664
+ /**
665
+ * Unlinks an already linked bank transaction
666
+ * @summary Unlink bank transaction
667
+ * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ * @memberof BankTransactionApi
671
+ */
672
+ public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
673
+ return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
468
674
  }
469
675
  }