@emilgroup/payment-sdk 1.13.1-beta.2 → 1.13.1-beta.21

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 (102) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +79 -37
  4. package/api/bank-orders-api.ts +691 -0
  5. package/api/bank-transaction-api.ts +187 -56
  6. package/api/payment-methods-api.ts +67 -25
  7. package/api/payment-reminders-api.ts +85 -43
  8. package/api/payment-setup-api.ts +8 -8
  9. package/api/payments-api.ts +67 -25
  10. package/api/refunds-api.ts +57 -29
  11. package/api/tenant-bank-account-api.ts +45 -17
  12. package/api/webhooks-api.ts +4 -4
  13. package/api.ts +2 -0
  14. package/base.ts +1 -1
  15. package/dist/api/bank-accounts-api.d.ts +59 -32
  16. package/dist/api/bank-accounts-api.js +53 -35
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +642 -0
  19. package/dist/api/bank-transaction-api.d.ts +123 -49
  20. package/dist/api/bank-transaction-api.js +151 -47
  21. package/dist/api/payment-methods-api.d.ts +47 -20
  22. package/dist/api/payment-methods-api.js +41 -23
  23. package/dist/api/payment-reminders-api.d.ts +61 -34
  24. package/dist/api/payment-reminders-api.js +54 -36
  25. package/dist/api/payment-setup-api.d.ts +8 -8
  26. package/dist/api/payment-setup-api.js +8 -8
  27. package/dist/api/payments-api.d.ts +47 -20
  28. package/dist/api/payments-api.js +41 -23
  29. package/dist/api/refunds-api.d.ts +40 -22
  30. package/dist/api/refunds-api.js +36 -24
  31. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  32. package/dist/api/tenant-bank-account-api.js +24 -12
  33. package/dist/api/webhooks-api.d.ts +4 -4
  34. package/dist/api/webhooks-api.js +4 -4
  35. package/dist/api.d.ts +1 -0
  36. package/dist/api.js +1 -0
  37. package/dist/models/bank-order-class.d.ts +115 -0
  38. package/dist/models/bank-order-class.js +15 -0
  39. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
  40. package/dist/models/bank-transaction-class.d.ts +22 -2
  41. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  42. package/dist/models/create-bank-order-request-dto.js +28 -0
  43. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  44. package/dist/models/create-bank-order-response-class.js +15 -0
  45. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  46. package/dist/models/create-payment-request-dto.d.ts +7 -1
  47. package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
  48. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  49. package/dist/models/financial-account-class.d.ts +111 -0
  50. package/dist/models/financial-account-class.js +24 -0
  51. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  52. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  53. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  54. package/dist/models/get-bank-order-response-class.js +15 -0
  55. package/dist/models/index.d.ts +11 -0
  56. package/dist/models/index.js +11 -0
  57. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  58. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  59. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  60. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  61. package/dist/models/invoice-match-suggestion-class.js +15 -0
  62. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  63. package/dist/models/list-bank-orders-response-class.js +15 -0
  64. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  65. package/dist/models/payment-class.d.ts +7 -1
  66. package/dist/models/payment-reminder-class.d.ts +7 -1
  67. package/dist/models/refund-class.d.ts +7 -1
  68. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  69. package/dist/models/suggestion-generation-progress-class.js +22 -0
  70. package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
  71. package/dist/models/update-bank-order-request-dto.d.ts +56 -0
  72. package/dist/models/update-bank-order-request-dto.js +23 -0
  73. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  74. package/dist/models/update-bank-order-response-class.js +15 -0
  75. package/models/bank-order-class.ts +121 -0
  76. package/models/bank-transaction-class-without-expand-properties.ts +8 -2
  77. package/models/bank-transaction-class.ts +22 -2
  78. package/models/create-bank-order-request-dto.ts +84 -0
  79. package/models/create-bank-order-response-class.ts +31 -0
  80. package/models/create-payment-reminder-request-dto.ts +7 -1
  81. package/models/create-payment-request-dto.ts +7 -1
  82. package/models/create-psp-payment-method-request-dto.ts +7 -1
  83. package/models/deactivated-payment-reminder-class.ts +7 -1
  84. package/models/financial-account-class.ts +120 -0
  85. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  86. package/models/get-bank-order-response-class.ts +31 -0
  87. package/models/index.ts +11 -0
  88. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  89. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  90. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  91. package/models/invoice-match-suggestion-class.ts +66 -0
  92. package/models/list-bank-orders-response-class.ts +37 -0
  93. package/models/payment-class-without-expand-properties.ts +7 -1
  94. package/models/payment-class.ts +7 -1
  95. package/models/payment-reminder-class.ts +7 -1
  96. package/models/refund-class.ts +7 -1
  97. package/models/suggestion-generation-progress-class.ts +52 -0
  98. package/models/unlinked-bank-transaction-response-class.ts +8 -2
  99. package/models/update-bank-order-request-dto.ts +65 -0
  100. package/models/update-bank-order-response-class.ts +31 -0
  101. package/package.json +1 -1
  102. package/tsconfig.json +1 -0
@@ -93,11 +93,59 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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.
96
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
97
+ * @summary Invoice Match Suggestion
98
+ * @param {string} code Code of the bank transaction to generate match suggestions for
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ generateInvoiceMatchSuggestion: function (code, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'code' is not null or undefined
111
+ (0, common_1.assertParamExists)('generateInvoiceMatchSuggestion', 'code', code);
112
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion"
113
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
120
+ localVarHeaderParameter = {};
121
+ localVarQueryParameter = {};
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _a.sent();
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ /**
144
+ * 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\"
97
145
  * @summary Retrieve the bank transaction
98
146
  * @param {string} code
99
147
  * @param {string} [authorization] Bearer Token
100
- * @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>
148
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
101
149
  * @param {*} [options] Override http request option.
102
150
  * @throws {RequiredError}
103
151
  */
@@ -145,9 +193,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
145
193
  });
146
194
  },
147
195
  /**
148
- * This will import bank transactions from a swift MT940 file
196
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
149
197
  * @summary Create the bank transactions
150
- * @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
198
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
151
199
  * @param {string} [authorization] Bearer Token
152
200
  * @param {*} [options] Override http request option.
153
201
  * @throws {RequiredError}
@@ -197,7 +245,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
197
245
  });
198
246
  },
199
247
  /**
200
- * Links a bank transaction with an invoice
248
+ * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
201
249
  * @summary Link bank transaction
202
250
  * @param {string} code Code of the bank transaction to link
203
251
  * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
@@ -250,18 +298,20 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
250
298
  });
251
299
  },
252
300
  /**
253
- * 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.
301
+ * 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\"
254
302
  * @summary List bank transactions
255
303
  * @param {string} [authorization] Bearer Token
256
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
257
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
304
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
305
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
306
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
258
307
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
259
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
260
- * @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>
308
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
309
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
310
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
261
311
  * @param {*} [options] Override http request option.
262
312
  * @throws {RequiredError}
263
313
  */
264
- listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
314
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
315
  if (options === void 0) { options = {}; }
266
316
  return __awaiter(_this, void 0, void 0, function () {
267
317
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -284,12 +334,15 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
284
334
  // authentication bearer required
285
335
  // http bearer authentication required
286
336
  _a.sent();
337
+ if (pageSize !== undefined) {
338
+ localVarQueryParameter['pageSize'] = pageSize;
339
+ }
340
+ if (pageToken !== undefined) {
341
+ localVarQueryParameter['pageToken'] = pageToken;
342
+ }
287
343
  if (filter !== undefined) {
288
344
  localVarQueryParameter['filter'] = filter;
289
345
  }
290
- if (filters !== undefined) {
291
- localVarQueryParameter['filters'] = filters;
292
- }
293
346
  if (search !== undefined) {
294
347
  localVarQueryParameter['search'] = search;
295
348
  }
@@ -299,6 +352,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
299
352
  if (expand !== undefined) {
300
353
  localVarQueryParameter['expand'] = expand;
301
354
  }
355
+ if (filters !== undefined) {
356
+ localVarQueryParameter['filters'] = filters;
357
+ }
302
358
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
359
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
304
360
  }
@@ -314,7 +370,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
314
370
  });
315
371
  },
316
372
  /**
317
- * Unlinks an already linked bank transaction
373
+ * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
318
374
  * @summary Unlink bank transaction
319
375
  * @param {string} code Code of the bank transaction to unlink
320
376
  * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
@@ -377,11 +433,32 @@ var BankTransactionApiFp = function (configuration) {
377
433
  var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
378
434
  return {
379
435
  /**
380
- * 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
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
437
+ * @summary Invoice Match Suggestion
438
+ * @param {string} code Code of the bank transaction to generate match suggestions for
439
+ * @param {string} [authorization] Bearer Token
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ generateInvoiceMatchSuggestion: function (code, authorization, options) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ var localVarAxiosArgs;
446
+ return __generator(this, function (_a) {
447
+ switch (_a.label) {
448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options)];
449
+ case 1:
450
+ localVarAxiosArgs = _a.sent();
451
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
452
+ }
453
+ });
454
+ });
455
+ },
456
+ /**
457
+ * 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\"
381
458
  * @summary Retrieve the bank transaction
382
459
  * @param {string} code
383
460
  * @param {string} [authorization] Bearer Token
384
- * @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>
461
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
385
462
  * @param {*} [options] Override http request option.
386
463
  * @throws {RequiredError}
387
464
  */
@@ -399,9 +476,9 @@ var BankTransactionApiFp = function (configuration) {
399
476
  });
400
477
  },
401
478
  /**
402
- * This will import bank transactions from a swift MT940 file
479
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
403
480
  * @summary Create the bank transactions
404
- * @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
481
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
405
482
  * @param {string} [authorization] Bearer Token
406
483
  * @param {*} [options] Override http request option.
407
484
  * @throws {RequiredError}
@@ -420,7 +497,7 @@ var BankTransactionApiFp = function (configuration) {
420
497
  });
421
498
  },
422
499
  /**
423
- * Links a bank transaction with an invoice
500
+ * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
424
501
  * @summary Link bank transaction
425
502
  * @param {string} code Code of the bank transaction to link
426
503
  * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
@@ -442,23 +519,25 @@ var BankTransactionApiFp = function (configuration) {
442
519
  });
443
520
  },
444
521
  /**
445
- * 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.
522
+ * 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\"
446
523
  * @summary List bank transactions
447
524
  * @param {string} [authorization] Bearer Token
448
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
449
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
525
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
526
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
527
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
450
528
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
451
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
452
- * @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>
529
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
530
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
531
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
453
532
  * @param {*} [options] Override http request option.
454
533
  * @throws {RequiredError}
455
534
  */
456
- listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
535
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
457
536
  return __awaiter(this, void 0, void 0, function () {
458
537
  var localVarAxiosArgs;
459
538
  return __generator(this, function (_a) {
460
539
  switch (_a.label) {
461
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options)];
540
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
462
541
  case 1:
463
542
  localVarAxiosArgs = _a.sent();
464
543
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -467,7 +546,7 @@ var BankTransactionApiFp = function (configuration) {
467
546
  });
468
547
  },
469
548
  /**
470
- * Unlinks an already linked bank transaction
549
+ * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
471
550
  * @summary Unlink bank transaction
472
551
  * @param {string} code Code of the bank transaction to unlink
473
552
  * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
@@ -499,11 +578,22 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
499
578
  var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
500
579
  return {
501
580
  /**
502
- * 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.
581
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
582
+ * @summary Invoice Match Suggestion
583
+ * @param {string} code Code of the bank transaction to generate match suggestions for
584
+ * @param {string} [authorization] Bearer Token
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ generateInvoiceMatchSuggestion: function (code, authorization, options) {
589
+ return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then(function (request) { return request(axios, basePath); });
590
+ },
591
+ /**
592
+ * 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\"
503
593
  * @summary Retrieve the bank transaction
504
594
  * @param {string} code
505
595
  * @param {string} [authorization] Bearer Token
506
- * @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>
596
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
507
597
  * @param {*} [options] Override http request option.
508
598
  * @throws {RequiredError}
509
599
  */
@@ -511,9 +601,9 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
511
601
  return localVarFp.getBankTransaction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
512
602
  },
513
603
  /**
514
- * This will import bank transactions from a swift MT940 file
604
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
515
605
  * @summary Create the bank transactions
516
- * @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
606
+ * @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
517
607
  * @param {string} [authorization] Bearer Token
518
608
  * @param {*} [options] Override http request option.
519
609
  * @throws {RequiredError}
@@ -522,7 +612,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
522
612
  return localVarFp.importBankTransactions(file, authorization, options).then(function (request) { return request(axios, basePath); });
523
613
  },
524
614
  /**
525
- * Links a bank transaction with an invoice
615
+ * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
526
616
  * @summary Link bank transaction
527
617
  * @param {string} code Code of the bank transaction to link
528
618
  * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
@@ -534,22 +624,24 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
534
624
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
535
625
  },
536
626
  /**
537
- * 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.
627
+ * 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\"
538
628
  * @summary List bank transactions
539
629
  * @param {string} [authorization] Bearer Token
540
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
541
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
630
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
631
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
632
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
542
633
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
543
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
544
- * @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>
634
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
635
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
636
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
545
637
  * @param {*} [options] Override http request option.
546
638
  * @throws {RequiredError}
547
639
  */
548
- listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
549
- return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
640
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
641
+ return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
550
642
  },
551
643
  /**
552
- * Unlinks an already linked bank transaction
644
+ * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
553
645
  * @summary Unlink bank transaction
554
646
  * @param {string} code Code of the bank transaction to unlink
555
647
  * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
@@ -575,7 +667,19 @@ var BankTransactionApi = /** @class */ (function (_super) {
575
667
  return _super !== null && _super.apply(this, arguments) || this;
576
668
  }
577
669
  /**
578
- * 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.
670
+ * Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
671
+ * @summary Invoice Match Suggestion
672
+ * @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof BankTransactionApi
676
+ */
677
+ BankTransactionApi.prototype.generateInvoiceMatchSuggestion = function (requestParameters, options) {
678
+ var _this = this;
679
+ return (0, exports.BankTransactionApiFp)(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
680
+ };
681
+ /**
682
+ * 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\"
579
683
  * @summary Retrieve the bank transaction
580
684
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
581
685
  * @param {*} [options] Override http request option.
@@ -587,7 +691,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
587
691
  return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
588
692
  };
589
693
  /**
590
- * This will import bank transactions from a swift MT940 file
694
+ * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
591
695
  * @summary Create the bank transactions
592
696
  * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
593
697
  * @param {*} [options] Override http request option.
@@ -599,7 +703,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
599
703
  return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
704
  };
601
705
  /**
602
- * Links a bank transaction with an invoice
706
+ * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
603
707
  * @summary Link bank transaction
604
708
  * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
605
709
  * @param {*} [options] Override http request option.
@@ -611,7 +715,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
611
715
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
612
716
  };
613
717
  /**
614
- * 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.
718
+ * 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\"
615
719
  * @summary List bank transactions
616
720
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
617
721
  * @param {*} [options] Override http request option.
@@ -621,10 +725,10 @@ var BankTransactionApi = /** @class */ (function (_super) {
621
725
  BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
622
726
  var _this = this;
623
727
  if (requestParameters === void 0) { requestParameters = {}; }
624
- return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
728
+ return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
625
729
  };
626
730
  /**
627
- * Unlinks an already linked bank transaction
731
+ * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
628
732
  * @summary Unlink bank transaction
629
733
  * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
630
734
  * @param {*} [options] Override http request option.