@emilgroup/payment-sdk-node 1.21.1-beta.1 → 1.21.1-beta.11

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 (34) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/bank-transaction-api.ts +131 -28
  4. package/base.ts +1 -1
  5. package/dist/api/bank-accounts-api.js +53 -20
  6. package/dist/api/bank-transaction-api.d.ts +84 -28
  7. package/dist/api/bank-transaction-api.js +164 -39
  8. package/dist/api/health-check-api.js +18 -5
  9. package/dist/api/payment-methods-api.js +32 -11
  10. package/dist/api/payment-reminders-api.js +39 -14
  11. package/dist/api/payment-setup-api.js +25 -8
  12. package/dist/api/payments-api.js +32 -11
  13. package/dist/api/refunds-api.js +32 -11
  14. package/dist/api/tenant-bank-account-api.js +46 -17
  15. package/dist/api/webhooks-api.js +18 -5
  16. package/dist/base.js +25 -15
  17. package/dist/common.d.ts +1 -1
  18. package/dist/common.js +2 -2
  19. package/dist/models/bank-transaction-class.d.ts +14 -0
  20. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  21. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  22. package/dist/models/index.d.ts +3 -0
  23. package/dist/models/index.js +3 -0
  24. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  25. package/dist/models/invoice-match-suggestion-class.js +15 -0
  26. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  27. package/dist/models/suggestion-generation-progress-class.js +22 -0
  28. package/models/bank-transaction-class.ts +14 -0
  29. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  30. package/models/index.ts +3 -0
  31. package/models/invoice-match-suggestion-class.ts +66 -0
  32. package/models/suggestion-generation-progress-class.ts +52 -0
  33. package/package.json +4 -4
  34. package/tsconfig.json +1 -0
@@ -45,6 +45,7 @@ models/create-tenant-bank-account-response-class.ts
45
45
  models/deactivate-payment-reminder-request-dto.ts
46
46
  models/deactivate-payment-reminder-response-class.ts
47
47
  models/deactivated-payment-reminder-class.ts
48
+ models/generate-invoice-match-suggestions-response-class.ts
48
49
  models/get-bank-account-response-class.ts
49
50
  models/get-bank-transactions-response-class.ts
50
51
  models/get-payment-method-response-class.ts
@@ -64,6 +65,7 @@ models/initiate-stripe-payment-setup-request-dto.ts
64
65
  models/initiate-stripe-payment-setup-response-class.ts
65
66
  models/inline-response200.ts
66
67
  models/inline-response503.ts
68
+ models/invoice-match-suggestion-class.ts
67
69
  models/link-bank-transaction-request-dto-rest.ts
68
70
  models/link-bank-transactions-response-class.ts
69
71
  models/list-bank-accounts-response-class.ts
@@ -83,6 +85,7 @@ models/refund-item-class.ts
83
85
  models/sepa-direct-dto.ts
84
86
  models/set-primary-bank-account-request-dto-rest.ts
85
87
  models/shared-transaction-class.ts
88
+ models/suggestion-generation-progress-class.ts
86
89
  models/symphony-profile-limited-response-dto.ts
87
90
  models/tenant-bank-account-class-without-expand-properties.ts
88
91
  models/tenant-bank-account-class.ts
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/payment-sdk-node@1.21.1-beta.1 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.11 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.1
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.11
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -21,6 +21,8 @@ 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 { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { GetBankTransactionsResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { ImportBankTransactionsResponseClass } from '../models';
@@ -44,12 +46,57 @@ const FormData = require('form-data');
44
46
  */
45
47
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
46
48
  return {
49
+ /**
50
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
51
+ * @summary Invoice Match Suggestion
52
+ * @param {string} code Code of the bank transaction to generate match suggestions for
53
+ * @param {string} [authorization] Bearer Token
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ generateInvoiceMatchSuggestion: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'code' is not null or undefined
59
+ assertParamExists('generateInvoiceMatchSuggestion', 'code', code)
60
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion`
61
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ let baseAccessToken;
66
+ if (configuration) {
67
+ baseOptions = configuration.baseOptions;
68
+ baseAccessToken = configuration.accessToken;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication bearer required
76
+ // http bearer authentication required
77
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
+
79
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
81
+ }
82
+
83
+
84
+
85
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
47
94
  /**
48
95
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
49
96
  * @summary Retrieve the bank transaction
50
97
  * @param {string} code
51
98
  * @param {string} [authorization] Bearer Token
52
- * @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;
99
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
53
100
  * @param {*} [options] Override http request option.
54
101
  * @throws {RequiredError}
55
102
  */
@@ -95,9 +142,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
95
142
  };
96
143
  },
97
144
  /**
98
- * This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
145
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
99
146
  * @summary Create the bank transactions
100
- * @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
147
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
101
148
  * @param {string} [authorization] Bearer Token
102
149
  * @param {*} [options] Override http request option.
103
150
  * @throws {RequiredError}
@@ -202,11 +249,11 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
202
249
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
203
250
  * @summary List bank transactions
204
251
  * @param {string} [authorization] Bearer Token
205
- * @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;
206
- * @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;
252
+ * @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
253
+ * @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
207
254
  * @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;
208
- * @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;
209
- * @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;
255
+ * @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, transactionDate, entryDate&lt;/i&gt;
256
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
210
257
  * @param {*} [options] Override http request option.
211
258
  * @throws {RequiredError}
212
259
  */
@@ -325,12 +372,24 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
325
372
  export const BankTransactionApiFp = function(configuration?: Configuration) {
326
373
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
327
374
  return {
375
+ /**
376
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
377
+ * @summary Invoice Match Suggestion
378
+ * @param {string} code Code of the bank transaction to generate match suggestions for
379
+ * @param {string} [authorization] Bearer Token
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ async generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass>> {
384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options);
385
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
+ },
328
387
  /**
329
388
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
330
389
  * @summary Retrieve the bank transaction
331
390
  * @param {string} code
332
391
  * @param {string} [authorization] Bearer Token
333
- * @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;
392
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
334
393
  * @param {*} [options] Override http request option.
335
394
  * @throws {RequiredError}
336
395
  */
@@ -339,9 +398,9 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
339
398
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
399
  },
341
400
  /**
342
- * This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
401
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
343
402
  * @summary Create the bank transactions
344
- * @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
403
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
345
404
  * @param {string} [authorization] Bearer Token
346
405
  * @param {*} [options] Override http request option.
347
406
  * @throws {RequiredError}
@@ -367,11 +426,11 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
367
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. **Required Permissions** \"payment-management.bank-accounts.view\"
368
427
  * @summary List bank transactions
369
428
  * @param {string} [authorization] Bearer Token
370
- * @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;
371
- * @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;
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, messageReference, 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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
372
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;
373
- * @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;
374
- * @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;
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, 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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
375
434
  * @param {*} [options] Override http request option.
376
435
  * @throws {RequiredError}
377
436
  */
@@ -402,12 +461,23 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
402
461
  export const BankTransactionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
403
462
  const localVarFp = BankTransactionApiFp(configuration)
404
463
  return {
464
+ /**
465
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
466
+ * @summary Invoice Match Suggestion
467
+ * @param {string} code Code of the bank transaction to generate match suggestions for
468
+ * @param {string} [authorization] Bearer Token
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: any): AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass> {
473
+ return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then((request) => request(axios, basePath));
474
+ },
405
475
  /**
406
476
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
407
477
  * @summary Retrieve the bank transaction
408
478
  * @param {string} code
409
479
  * @param {string} [authorization] Bearer Token
410
- * @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;
480
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
411
481
  * @param {*} [options] Override http request option.
412
482
  * @throws {RequiredError}
413
483
  */
@@ -415,9 +485,9 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
415
485
  return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
416
486
  },
417
487
  /**
418
- * This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
488
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
419
489
  * @summary Create the bank transactions
420
- * @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
490
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
421
491
  * @param {string} [authorization] Bearer Token
422
492
  * @param {*} [options] Override http request option.
423
493
  * @throws {RequiredError}
@@ -441,11 +511,11 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
441
511
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
442
512
  * @summary List bank transactions
443
513
  * @param {string} [authorization] Bearer Token
444
- * @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;
445
- * @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;
514
+ * @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
515
+ * @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
446
516
  * @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;
447
- * @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;
448
- * @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;
517
+ * @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, transactionDate, entryDate&lt;/i&gt;
518
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
449
519
  * @param {*} [options] Override http request option.
450
520
  * @throws {RequiredError}
451
521
  */
@@ -467,6 +537,27 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
467
537
  };
468
538
  };
469
539
 
540
+ /**
541
+ * Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
542
+ * @export
543
+ * @interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest
544
+ */
545
+ export interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest {
546
+ /**
547
+ * Code of the bank transaction to generate match suggestions for
548
+ * @type {string}
549
+ * @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
550
+ */
551
+ readonly code: string
552
+
553
+ /**
554
+ * Bearer Token
555
+ * @type {string}
556
+ * @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
557
+ */
558
+ readonly authorization?: string
559
+ }
560
+
470
561
  /**
471
562
  * Request parameters for getBankTransaction operation in BankTransactionApi.
472
563
  * @export
@@ -488,7 +579,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
488
579
  readonly authorization?: string
489
580
 
490
581
  /**
491
- * 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;
582
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
492
583
  * @type {string}
493
584
  * @memberof BankTransactionApiGetBankTransaction
494
585
  */
@@ -502,7 +593,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
502
593
  */
503
594
  export interface BankTransactionApiImportBankTransactionsRequest {
504
595
  /**
505
- * 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
596
+ * MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
506
597
  * @type {any}
507
598
  * @memberof BankTransactionApiImportBankTransactions
508
599
  */
@@ -558,14 +649,14 @@ export interface BankTransactionApiListBankTransactionsRequest {
558
649
  readonly authorization?: string
559
650
 
560
651
  /**
561
- * 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;
652
+ * 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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
562
653
  * @type {string}
563
654
  * @memberof BankTransactionApiListBankTransactions
564
655
  */
565
656
  readonly filter?: string
566
657
 
567
658
  /**
568
- * 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;
659
+ * 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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
569
660
  * @type {string}
570
661
  * @memberof BankTransactionApiListBankTransactions
571
662
  */
@@ -579,14 +670,14 @@ export interface BankTransactionApiListBankTransactionsRequest {
579
670
  readonly search?: string
580
671
 
581
672
  /**
582
- * 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;
673
+ * 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, transactionDate, entryDate&lt;/i&gt;
583
674
  * @type {string}
584
675
  * @memberof BankTransactionApiListBankTransactions
585
676
  */
586
677
  readonly order?: string
587
678
 
588
679
  /**
589
- * 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;
680
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress&lt;i&gt;
590
681
  * @type {string}
591
682
  * @memberof BankTransactionApiListBankTransactions
592
683
  */
@@ -628,6 +719,18 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
628
719
  * @extends {BaseAPI}
629
720
  */
630
721
  export class BankTransactionApi extends BaseAPI {
722
+ /**
723
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
724
+ * @summary Invoice Match Suggestion
725
+ * @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ * @memberof BankTransactionApi
729
+ */
730
+ public generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig) {
731
+ return BankTransactionApiFp(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
732
+ }
733
+
631
734
  /**
632
735
  * 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. **Required Permissions** \"payment-management.bank-accounts.view\"
633
736
  * @summary Retrieve the bank transaction
@@ -641,7 +744,7 @@ export class BankTransactionApi extends BaseAPI {
641
744
  }
642
745
 
643
746
  /**
644
- * This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
747
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
645
748
  * @summary Create the bank transactions
646
749
  * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
647
750
  * @param {*} [options] Override http request option.
package/base.ts CHANGED
@@ -278,7 +278,7 @@ export class BaseAPI {
278
278
  * @extends {Error}
279
279
  */
280
280
  export class RequiredError extends Error {
281
- name: "RequiredError" = "RequiredError";
281
+ override name: "RequiredError" = "RequiredError";
282
282
  constructor(public field: string, msg?: string) {
283
283
  super(msg);
284
284
  }
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -104,10 +113,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
104
113
  * @param {*} [options] Override http request option.
105
114
  * @throws {RequiredError}
106
115
  */
107
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
108
- if (options === void 0) { options = {}; }
109
- return __awaiter(_this, void 0, void 0, function () {
116
+ createBankAccount: function (createBankAccountRequestDto_1, authorization_1) {
117
+ var args_1 = [];
118
+ for (var _i = 2; _i < arguments.length; _i++) {
119
+ args_1[_i - 2] = arguments[_i];
120
+ }
121
+ return __awaiter(_this, __spreadArray([createBankAccountRequestDto_1, authorization_1], args_1, true), void 0, function (createBankAccountRequestDto, authorization, options) {
110
122
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
+ if (options === void 0) { options = {}; }
111
124
  return __generator(this, function (_a) {
112
125
  switch (_a.label) {
113
126
  case 0:
@@ -153,10 +166,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
153
166
  * @param {*} [options] Override http request option.
154
167
  * @throws {RequiredError}
155
168
  */
156
- deleteBankAccount: function (code, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
169
+ deleteBankAccount: function (code_1, authorization_1) {
170
+ var args_1 = [];
171
+ for (var _i = 2; _i < arguments.length; _i++) {
172
+ args_1[_i - 2] = arguments[_i];
173
+ }
174
+ return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
159
175
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
176
+ if (options === void 0) { options = {}; }
160
177
  return __generator(this, function (_a) {
161
178
  switch (_a.label) {
162
179
  case 0:
@@ -202,10 +219,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
202
219
  * @param {*} [options] Override http request option.
203
220
  * @throws {RequiredError}
204
221
  */
205
- getBankAccount: function (code, authorization, expand, options) {
206
- if (options === void 0) { options = {}; }
207
- return __awaiter(_this, void 0, void 0, function () {
222
+ getBankAccount: function (code_1, authorization_1, expand_1) {
223
+ var args_1 = [];
224
+ for (var _i = 3; _i < arguments.length; _i++) {
225
+ args_1[_i - 3] = arguments[_i];
226
+ }
227
+ return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
208
228
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
229
+ if (options === void 0) { options = {}; }
209
230
  return __generator(this, function (_a) {
210
231
  switch (_a.label) {
211
232
  case 0:
@@ -256,10 +277,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
256
277
  * @param {*} [options] Override http request option.
257
278
  * @throws {RequiredError}
258
279
  */
259
- listBankAccounts: function (authorization, filter, filters, order, expand, options) {
260
- if (options === void 0) { options = {}; }
261
- return __awaiter(_this, void 0, void 0, function () {
280
+ listBankAccounts: function (authorization_1, filter_1, filters_1, order_1, expand_1) {
281
+ var args_1 = [];
282
+ for (var _i = 5; _i < arguments.length; _i++) {
283
+ args_1[_i - 5] = arguments[_i];
284
+ }
285
+ return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, order, expand, options) {
262
286
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
287
+ if (options === void 0) { options = {}; }
263
288
  return __generator(this, function (_a) {
264
289
  switch (_a.label) {
265
290
  case 0:
@@ -314,10 +339,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
314
339
  * @param {*} [options] Override http request option.
315
340
  * @throws {RequiredError}
316
341
  */
317
- setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
318
- if (options === void 0) { options = {}; }
319
- return __awaiter(_this, void 0, void 0, function () {
342
+ setPrimaryBankAccount: function (code_1, setPrimaryBankAccountRequestDtoRest_1, authorization_1) {
343
+ var args_1 = [];
344
+ for (var _i = 3; _i < arguments.length; _i++) {
345
+ args_1[_i - 3] = arguments[_i];
346
+ }
347
+ return __awaiter(_this, __spreadArray([code_1, setPrimaryBankAccountRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
320
348
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
349
+ if (options === void 0) { options = {}; }
321
350
  return __generator(this, function (_a) {
322
351
  switch (_a.label) {
323
352
  case 0:
@@ -367,10 +396,14 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
367
396
  * @param {*} [options] Override http request option.
368
397
  * @throws {RequiredError}
369
398
  */
370
- updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
371
- if (options === void 0) { options = {}; }
372
- return __awaiter(_this, void 0, void 0, function () {
399
+ updateBankAccount: function (code_1, updateBankAccountRequestDtoRest_1, authorization_1) {
400
+ var args_1 = [];
401
+ for (var _i = 3; _i < arguments.length; _i++) {
402
+ args_1[_i - 3] = arguments[_i];
403
+ }
404
+ return __awaiter(_this, __spreadArray([code_1, updateBankAccountRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, updateBankAccountRequestDtoRest, authorization, options) {
373
405
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
406
+ if (options === void 0) { options = {}; }
374
407
  return __generator(this, function (_a) {
375
408
  switch (_a.label) {
376
409
  case 0: