@emilgroup/payment-sdk 1.22.1-beta.71 → 1.22.1-beta.73

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 (51) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-transaction-api.ts +130 -8
  4. package/common.ts +3 -2
  5. package/dist/api/bank-accounts-api.d.ts +6 -6
  6. package/dist/api/bank-orders-api.d.ts +5 -5
  7. package/dist/api/bank-transaction-api.d.ts +80 -14
  8. package/dist/api/bank-transaction-api.js +108 -6
  9. package/dist/api/billing-addresses-api.d.ts +5 -5
  10. package/dist/api/credit-allocation-api.d.ts +3 -3
  11. package/dist/api/exceeding-credits-api.d.ts +3 -3
  12. package/dist/api/health-check-api.d.ts +1 -1
  13. package/dist/api/ibanvalidator-api.d.ts +1 -1
  14. package/dist/api/payment-methods-api.d.ts +3 -3
  15. package/dist/api/payment-receipts-api.d.ts +5 -5
  16. package/dist/api/payment-reminders-api.d.ts +4 -4
  17. package/dist/api/payment-requests-api.d.ts +5 -5
  18. package/dist/api/payment-setup-api.d.ts +2 -2
  19. package/dist/api/payments-api.d.ts +4 -4
  20. package/dist/api/payout-methods-api.d.ts +6 -6
  21. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  22. package/dist/api/refunds-api.d.ts +3 -3
  23. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  24. package/dist/api/webhooks-api.d.ts +2 -2
  25. package/dist/common.d.ts +1 -1
  26. package/dist/common.js +1 -0
  27. package/dist/models/bank-transaction-class.d.ts +7 -0
  28. package/dist/models/bank-transaction-entity.d.ts +7 -0
  29. package/dist/models/index.d.ts +4 -0
  30. package/dist/models/index.js +4 -0
  31. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  32. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  33. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  34. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  35. package/dist/models/payment-receipt-class.d.ts +12 -0
  36. package/dist/models/payment-receipt-entity.d.ts +139 -0
  37. package/dist/models/payment-receipt-entity.js +20 -0
  38. package/dist/models/payment-request-class.d.ts +1 -0
  39. package/dist/models/payment-request-class.js +1 -0
  40. package/dist/models/payment-request-entity.d.ts +223 -0
  41. package/dist/models/payment-request-entity.js +39 -0
  42. package/models/bank-transaction-class.ts +7 -0
  43. package/models/bank-transaction-entity.ts +7 -0
  44. package/models/index.ts +4 -0
  45. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  46. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  47. package/models/payment-receipt-class.ts +12 -0
  48. package/models/payment-receipt-entity.ts +148 -0
  49. package/models/payment-request-class.ts +1 -0
  50. package/models/payment-request-entity.ts +233 -0
  51. package/package.json +2 -2
@@ -15,6 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
16
16
  import { GetBankTransactionsResponseClass } from '../models';
17
17
  import { ImportBankTransactionsResponseClass } from '../models';
18
+ import { LinkBankTransactionPaymentRequestsRequestDtoRest } from '../models';
19
+ import { LinkBankTransactionPaymentRequestsResponseClass } from '../models';
18
20
  import { LinkBankTransactionRequestDtoRest } from '../models';
19
21
  import { LinkBankTransactionsResponseClass } from '../models';
20
22
  import { ListBankTransactionsResponseClass } from '../models';
@@ -38,7 +40,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
38
40
  * @summary Retrieve the bank transaction
39
41
  * @param {string} code
40
42
  * @param {string} [authorization] Bearer Token
41
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
43
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
42
44
  * @param {*} [options] Override http request option.
43
45
  * @throws {RequiredError}
44
46
  */
@@ -62,6 +64,16 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
62
64
  * @throws {RequiredError}
63
65
  */
64
66
  linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
69
+ * @summary Link bank transaction to payment requests
70
+ * @param {string} code Code of the outgoing bank transaction to link
71
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
72
+ * @param {string} [authorization] Bearer Token
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ linkBankTransactionPaymentRequests: (code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
77
  /**
66
78
  * 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\"
67
79
  * @summary List bank transactions
@@ -71,7 +83,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
71
83
  * @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;
72
84
  * @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;
73
85
  * @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;
74
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
86
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
75
87
  * @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;
76
88
  * @param {*} [options] Override http request option.
77
89
  * @throws {RequiredError}
@@ -106,7 +118,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
106
118
  * @summary Retrieve the bank transaction
107
119
  * @param {string} code
108
120
  * @param {string} [authorization] Bearer Token
109
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
121
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
110
122
  * @param {*} [options] Override http request option.
111
123
  * @throws {RequiredError}
112
124
  */
@@ -130,6 +142,16 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
130
142
  * @throws {RequiredError}
131
143
  */
132
144
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>>;
145
+ /**
146
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
147
+ * @summary Link bank transaction to payment requests
148
+ * @param {string} code Code of the outgoing bank transaction to link
149
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>>;
133
155
  /**
134
156
  * 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\"
135
157
  * @summary List bank transactions
@@ -139,7 +161,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
139
161
  * @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;
140
162
  * @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;
141
163
  * @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;
142
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
164
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
143
165
  * @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;
144
166
  * @param {*} [options] Override http request option.
145
167
  * @throws {RequiredError}
@@ -174,7 +196,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
174
196
  * @summary Retrieve the bank transaction
175
197
  * @param {string} code
176
198
  * @param {string} [authorization] Bearer Token
177
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
199
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
178
200
  * @param {*} [options] Override http request option.
179
201
  * @throws {RequiredError}
180
202
  */
@@ -198,6 +220,16 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
198
220
  * @throws {RequiredError}
199
221
  */
200
222
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass>;
223
+ /**
224
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
225
+ * @summary Link bank transaction to payment requests
226
+ * @param {string} code Code of the outgoing bank transaction to link
227
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
228
+ * @param {string} [authorization] Bearer Token
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>;
201
233
  /**
202
234
  * 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
235
  * @summary List bank transactions
@@ -207,7 +239,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
207
239
  * @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;
208
240
  * @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;
209
241
  * @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;
210
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
242
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
211
243
  * @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;
212
244
  * @param {*} [options] Override http request option.
213
245
  * @throws {RequiredError}
@@ -261,7 +293,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
261
293
  */
262
294
  readonly authorization?: string;
263
295
  /**
264
- * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
296
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
265
297
  * @type {string}
266
298
  * @memberof BankTransactionApiGetBankTransaction
267
299
  */
@@ -311,6 +343,31 @@ export interface BankTransactionApiLinkBankTransactionRequest {
311
343
  */
312
344
  readonly authorization?: string;
313
345
  }
346
+ /**
347
+ * Request parameters for linkBankTransactionPaymentRequests operation in BankTransactionApi.
348
+ * @export
349
+ * @interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest
350
+ */
351
+ export interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest {
352
+ /**
353
+ * Code of the outgoing bank transaction to link
354
+ * @type {string}
355
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
356
+ */
357
+ readonly code: string;
358
+ /**
359
+ *
360
+ * @type {LinkBankTransactionPaymentRequestsRequestDtoRest}
361
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
362
+ */
363
+ readonly linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest;
364
+ /**
365
+ * Bearer Token
366
+ * @type {string}
367
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
368
+ */
369
+ readonly authorization?: string;
370
+ }
314
371
  /**
315
372
  * Request parameters for listBankTransactions operation in BankTransactionApi.
316
373
  * @export
@@ -354,7 +411,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
354
411
  */
355
412
  readonly order?: string;
356
413
  /**
357
- * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
414
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
358
415
  * @type {string}
359
416
  * @memberof BankTransactionApiListBankTransactions
360
417
  */
@@ -400,7 +457,7 @@ export declare class BankTransactionApi extends BaseAPI {
400
457
  * @throws {RequiredError}
401
458
  * @memberof BankTransactionApi
402
459
  */
403
- generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}>>;
460
+ generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}, any>>;
404
461
  /**
405
462
  * 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\"
406
463
  * @summary Retrieve the bank transaction
@@ -409,7 +466,7 @@ export declare class BankTransactionApi extends BaseAPI {
409
466
  * @throws {RequiredError}
410
467
  * @memberof BankTransactionApi
411
468
  */
412
- getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}>>;
469
+ getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}, any>>;
413
470
  /**
414
471
  * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
415
472
  * @summary Create the bank transactions
@@ -418,7 +475,7 @@ export declare class BankTransactionApi extends BaseAPI {
418
475
  * @throws {RequiredError}
419
476
  * @memberof BankTransactionApi
420
477
  */
421
- importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}>>;
478
+ importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}, any>>;
422
479
  /**
423
480
  * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
424
481
  * @summary Link bank transaction
@@ -427,7 +484,16 @@ export declare class BankTransactionApi extends BaseAPI {
427
484
  * @throws {RequiredError}
428
485
  * @memberof BankTransactionApi
429
486
  */
430
- linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}>>;
487
+ linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}, any>>;
488
+ /**
489
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
490
+ * @summary Link bank transaction to payment requests
491
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof BankTransactionApi
495
+ */
496
+ linkBankTransactionPaymentRequests(requestParameters: BankTransactionApiLinkBankTransactionPaymentRequestsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionPaymentRequestsResponseClass, any, {}, any>>;
431
497
  /**
432
498
  * 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\"
433
499
  * @summary List bank transactions
@@ -436,7 +502,7 @@ export declare class BankTransactionApi extends BaseAPI {
436
502
  * @throws {RequiredError}
437
503
  * @memberof BankTransactionApi
438
504
  */
439
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}>>;
505
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}, any>>;
440
506
  /**
441
507
  * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
442
508
  * @summary Unlink bank transaction
@@ -445,5 +511,5 @@ export declare class BankTransactionApi extends BaseAPI {
445
511
  * @throws {RequiredError}
446
512
  * @memberof BankTransactionApi
447
513
  */
448
- unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}>>;
514
+ unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}, any>>;
449
515
  }
@@ -148,7 +148,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
148
148
  * @summary Retrieve the bank transaction
149
149
  * @param {string} code
150
150
  * @param {string} [authorization] Bearer Token
151
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
151
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
@@ -307,6 +307,62 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
307
307
  });
308
308
  });
309
309
  },
310
+ /**
311
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
312
+ * @summary Link bank transaction to payment requests
313
+ * @param {string} code Code of the outgoing bank transaction to link
314
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
315
+ * @param {string} [authorization] Bearer Token
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
320
+ if (options === void 0) { options = {}; }
321
+ return __awaiter(_this, void 0, void 0, function () {
322
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
323
+ return __generator(this, function (_a) {
324
+ switch (_a.label) {
325
+ case 0:
326
+ // verify required parameter 'code' is not null or undefined
327
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'code', code);
328
+ // verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
329
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest);
330
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests"
331
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
333
+ if (configuration) {
334
+ baseOptions = configuration.baseOptions;
335
+ baseAccessToken = configuration.accessToken;
336
+ }
337
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
338
+ localVarHeaderParameter = {};
339
+ localVarQueryParameter = {};
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
343
+ // Only Authorization falls back to the configured token; an empty value is never sent.
344
+ ];
345
+ case 1:
346
+ // authentication bearer required
347
+ // http bearer authentication required
348
+ _a.sent();
349
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
350
+ if (authorizationValue) {
351
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ }
353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
354
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
355
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
357
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration);
358
+ return [2 /*return*/, {
359
+ url: (0, common_1.toPathString)(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ }];
362
+ }
363
+ });
364
+ });
365
+ },
310
366
  /**
311
367
  * 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\"
312
368
  * @summary List bank transactions
@@ -316,7 +372,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
316
372
  * @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;
317
373
  * @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;
318
374
  * @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;
319
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
375
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
320
376
  * @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;
321
377
  * @param {*} [options] Override http request option.
322
378
  * @throws {RequiredError}
@@ -467,7 +523,7 @@ var BankTransactionApiFp = function (configuration) {
467
523
  * @summary Retrieve the bank transaction
468
524
  * @param {string} code
469
525
  * @param {string} [authorization] Bearer Token
470
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
526
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
471
527
  * @param {*} [options] Override http request option.
472
528
  * @throws {RequiredError}
473
529
  */
@@ -527,6 +583,28 @@ var BankTransactionApiFp = function (configuration) {
527
583
  });
528
584
  });
529
585
  },
586
+ /**
587
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
588
+ * @summary Link bank transaction to payment requests
589
+ * @param {string} code Code of the outgoing bank transaction to link
590
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
591
+ * @param {string} [authorization] Bearer Token
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
596
+ return __awaiter(this, void 0, void 0, function () {
597
+ var localVarAxiosArgs;
598
+ return __generator(this, function (_a) {
599
+ switch (_a.label) {
600
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options)];
601
+ case 1:
602
+ localVarAxiosArgs = _a.sent();
603
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
604
+ }
605
+ });
606
+ });
607
+ },
530
608
  /**
531
609
  * 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\"
532
610
  * @summary List bank transactions
@@ -536,7 +614,7 @@ var BankTransactionApiFp = function (configuration) {
536
614
  * @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;
537
615
  * @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;
538
616
  * @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;
539
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
617
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
540
618
  * @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;
541
619
  * @param {*} [options] Override http request option.
542
620
  * @throws {RequiredError}
@@ -601,7 +679,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
601
679
  * @summary Retrieve the bank transaction
602
680
  * @param {string} code
603
681
  * @param {string} [authorization] Bearer Token
604
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
682
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
605
683
  * @param {*} [options] Override http request option.
606
684
  * @throws {RequiredError}
607
685
  */
@@ -631,6 +709,18 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
631
709
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
632
710
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
633
711
  },
712
+ /**
713
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
714
+ * @summary Link bank transaction to payment requests
715
+ * @param {string} code Code of the outgoing bank transaction to link
716
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
717
+ * @param {string} [authorization] Bearer Token
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
722
+ return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
723
+ },
634
724
  /**
635
725
  * 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\"
636
726
  * @summary List bank transactions
@@ -640,7 +730,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
640
730
  * @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;
641
731
  * @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;
642
732
  * @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;
643
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
733
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
644
734
  * @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;
645
735
  * @param {*} [options] Override http request option.
646
736
  * @throws {RequiredError}
@@ -721,6 +811,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
721
811
  var _this = this;
722
812
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
723
813
  };
814
+ /**
815
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
816
+ * @summary Link bank transaction to payment requests
817
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof BankTransactionApi
821
+ */
822
+ BankTransactionApi.prototype.linkBankTransactionPaymentRequests = function (requestParameters, options) {
823
+ var _this = this;
824
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
825
+ };
724
826
  /**
725
827
  * 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\"
726
828
  * @summary List bank transactions
@@ -344,7 +344,7 @@ export declare class BillingAddressesApi extends BaseAPI {
344
344
  * @throws {RequiredError}
345
345
  * @memberof BillingAddressesApi
346
346
  */
347
- createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
347
+ createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}, any>>;
348
348
  /**
349
349
  * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
350
350
  * @summary Delete the Billing Address
@@ -353,7 +353,7 @@ export declare class BillingAddressesApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BillingAddressesApi
355
355
  */
356
- deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
356
+ deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
357
357
  /**
358
358
  * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
359
359
  * @summary Retrieve the Billing Address
@@ -362,7 +362,7 @@ export declare class BillingAddressesApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BillingAddressesApi
364
364
  */
365
- getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
365
+ getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}, any>>;
366
366
  /**
367
367
  * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
368
368
  * @summary List Billing Addresses
@@ -371,7 +371,7 @@ export declare class BillingAddressesApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BillingAddressesApi
373
373
  */
374
- listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
374
+ listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}, any>>;
375
375
  /**
376
376
  * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
377
377
  * @summary Update the Billing Address
@@ -380,5 +380,5 @@ export declare class BillingAddressesApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BillingAddressesApi
382
382
  */
383
- updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
383
+ updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}, any>>;
384
384
  }
@@ -241,7 +241,7 @@ export declare class CreditAllocationApi extends BaseAPI {
241
241
  * @throws {RequiredError}
242
242
  * @memberof CreditAllocationApi
243
243
  */
244
- createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
244
+ createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}, any>>;
245
245
  /**
246
246
  * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
247
247
  * @summary Retrieve the credit allocation entry
@@ -250,7 +250,7 @@ export declare class CreditAllocationApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof CreditAllocationApi
252
252
  */
253
- getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
253
+ getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary List credit allocations
@@ -259,5 +259,5 @@ export declare class CreditAllocationApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof CreditAllocationApi
261
261
  */
262
- listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
262
+ listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}, any>>;
263
263
  }
@@ -241,7 +241,7 @@ export declare class ExceedingCreditsApi extends BaseAPI {
241
241
  * @throws {RequiredError}
242
242
  * @memberof ExceedingCreditsApi
243
243
  */
244
- createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}>>;
244
+ createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}, any>>;
245
245
  /**
246
246
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
247
247
  * @summary Retrieve the exceeding credit
@@ -250,7 +250,7 @@ export declare class ExceedingCreditsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof ExceedingCreditsApi
252
252
  */
253
- getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}>>;
253
+ getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary List exceeding credits
@@ -259,5 +259,5 @@ export declare class ExceedingCreditsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof ExceedingCreditsApi
261
261
  */
262
- listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}>>;
262
+ listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}, any>>;
263
263
  }
@@ -66,5 +66,5 @@ export declare class HealthCheckApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthCheckApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
70
70
  }
@@ -93,5 +93,5 @@ export declare class IBANValidatorApi extends BaseAPI {
93
93
  * @throws {RequiredError}
94
94
  * @memberof IBANValidatorApi
95
95
  */
96
- validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}>>;
96
+ validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}, any>>;
97
97
  }
@@ -241,7 +241,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
241
241
  * @throws {RequiredError}
242
242
  * @memberof PaymentMethodsApi
243
243
  */
244
- createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}>>;
244
+ createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}, any>>;
245
245
  /**
246
246
  * Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information. **Required Permissions** \"payment-management.payments.view\"
247
247
  * @summary Retrieve the payment method
@@ -250,7 +250,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof PaymentMethodsApi
252
252
  */
253
- getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}>>;
253
+ getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary List payment methods
@@ -259,5 +259,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof PaymentMethodsApi
261
261
  */
262
- listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}>>;
262
+ listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}, any>>;
263
263
  }