@emilgroup/payment-sdk 1.22.1-beta.78 → 1.22.1-beta.79

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 (137) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +48 -18
  4. package/api/bank-orders-api.ts +40 -15
  5. package/api/bank-transaction-api.ts +181 -26
  6. package/api/billing-addresses-api.ts +40 -15
  7. package/api/credit-allocation-api.ts +24 -9
  8. package/api/exceeding-credits-api.ts +128 -6
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +8 -3
  11. package/api/payment-methods-api.ts +24 -9
  12. package/api/payment-receipts-api.ts +40 -15
  13. package/api/payment-reminders-api.ts +32 -12
  14. package/api/payment-requests-api.ts +52 -27
  15. package/api/payment-setup-api.ts +16 -6
  16. package/api/payments-api.ts +46 -16
  17. package/api/payout-methods-api.ts +48 -18
  18. package/api/policy-payment-methods-api.ts +24 -9
  19. package/api/refunds-api.ts +24 -9
  20. package/api/tenant-bank-account-api.ts +40 -15
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +239 -43
  23. package/common.ts +3 -2
  24. package/configuration.ts +20 -0
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +82 -46
  27. package/dist/api/bank-orders-api.d.ts +5 -5
  28. package/dist/api/bank-orders-api.js +67 -38
  29. package/dist/api/bank-transaction-api.d.ts +80 -14
  30. package/dist/api/bank-transaction-api.js +194 -52
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +71 -39
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +41 -23
  35. package/dist/api/exceeding-credits-api.d.ts +59 -2
  36. package/dist/api/exceeding-credits-api.js +126 -15
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +15 -8
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +41 -23
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +67 -38
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +56 -31
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +76 -47
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +30 -16
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +62 -34
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +82 -46
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +41 -23
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +37 -22
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +67 -38
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +26 -0
  64. package/dist/base.js +243 -60
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +1 -0
  67. package/dist/configuration.d.ts +17 -0
  68. package/dist/configuration.js +2 -0
  69. package/dist/models/bank-transaction-class.d.ts +7 -0
  70. package/dist/models/bank-transaction-entity.d.ts +7 -0
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
  72. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  73. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  74. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  75. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  76. package/dist/models/create-payment-order-dto.d.ts +1 -1
  77. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  78. package/dist/models/create-payment-request-dto.d.ts +1 -1
  79. package/dist/models/create-payment-request-request-dto.d.ts +6 -0
  80. package/dist/models/credit-allocation-class.d.ts +6 -0
  81. package/dist/models/credit-allocation-entity.d.ts +6 -0
  82. package/dist/models/exceeding-credit-entity.d.ts +6 -0
  83. package/dist/models/index.d.ts +6 -0
  84. package/dist/models/index.js +6 -0
  85. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  86. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  87. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  88. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  89. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  90. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  91. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  92. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  93. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  94. package/dist/models/list-refunds-response-class.d.ts +6 -18
  95. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  96. package/dist/models/payment-class.d.ts +2 -2
  97. package/dist/models/payment-entity.d.ts +1 -1
  98. package/dist/models/payment-receipt-class.d.ts +13 -1
  99. package/dist/models/payment-receipt-entity.d.ts +139 -0
  100. package/dist/models/payment-receipt-entity.js +20 -0
  101. package/dist/models/payment-request-class.d.ts +13 -6
  102. package/dist/models/payment-request-class.js +1 -0
  103. package/dist/models/payment-request-entity.d.ts +223 -0
  104. package/dist/models/payment-request-entity.js +39 -0
  105. package/dist/models/shared-transaction-class.d.ts +6 -0
  106. package/dist/models/transaction-entity.d.ts +6 -0
  107. package/models/bank-transaction-class.ts +7 -0
  108. package/models/bank-transaction-entity.ts +7 -0
  109. package/models/bank-transaction-invoice-entity.ts +24 -0
  110. package/models/create-exceeding-credit-request-dto.ts +54 -0
  111. package/models/create-exceeding-credit-response-class.ts +31 -0
  112. package/models/create-payment-order-dto.ts +1 -1
  113. package/models/create-payment-receipt-request-dto.ts +1 -1
  114. package/models/create-payment-request-dto.ts +1 -1
  115. package/models/create-payment-request-request-dto.ts +6 -0
  116. package/models/credit-allocation-class.ts +6 -0
  117. package/models/credit-allocation-entity.ts +6 -0
  118. package/models/exceeding-credit-entity.ts +6 -0
  119. package/models/index.ts +6 -0
  120. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  121. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  122. package/models/list-billing-addresses-response-class.ts +9 -9
  123. package/models/list-exceeding-credits-response-class.ts +6 -18
  124. package/models/list-payment-receipts-response-class.ts +9 -9
  125. package/models/list-payment-requests-response-class.ts +6 -18
  126. package/models/list-payout-methods-response-class.ts +9 -9
  127. package/models/list-refunds-response-class.ts +6 -18
  128. package/models/payment-class-without-expand-properties.ts +2 -2
  129. package/models/payment-class.ts +2 -2
  130. package/models/payment-entity.ts +1 -1
  131. package/models/payment-receipt-class.ts +13 -1
  132. package/models/payment-receipt-entity.ts +148 -0
  133. package/models/payment-request-class.ts +13 -6
  134. package/models/payment-request-entity.ts +233 -0
  135. package/models/shared-transaction-class.ts +6 -0
  136. package/models/transaction-entity.ts +6 -0
  137. 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
  }