@emilgroup/payment-sdk 1.22.1-beta.75 → 1.22.1-beta.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +12 -24
  4. package/api/bank-orders-api.ts +10 -20
  5. package/api/bank-transaction-api.ts +20 -154
  6. package/api/billing-addresses-api.ts +10 -20
  7. package/api/credit-allocation-api.ts +6 -12
  8. package/api/exceeding-credits-api.ts +4 -117
  9. package/api/ibanvalidator-api.ts +2 -4
  10. package/api/payment-methods-api.ts +6 -12
  11. package/api/payment-receipts-api.ts +10 -20
  12. package/api/payment-reminders-api.ts +8 -16
  13. package/api/payment-requests-api.ts +22 -32
  14. package/api/payment-setup-api.ts +4 -8
  15. package/api/payments-api.ts +12 -24
  16. package/api/payout-methods-api.ts +12 -24
  17. package/api/policy-payment-methods-api.ts +6 -12
  18. package/api/refunds-api.ts +6 -12
  19. package/api/tenant-bank-account-api.ts +10 -20
  20. package/base.ts +41 -174
  21. package/common.ts +2 -3
  22. package/configuration.ts +0 -20
  23. package/dist/api/bank-accounts-api.d.ts +6 -6
  24. package/dist/api/bank-accounts-api.js +22 -36
  25. package/dist/api/bank-orders-api.d.ts +5 -5
  26. package/dist/api/bank-orders-api.js +18 -29
  27. package/dist/api/bank-transaction-api.d.ts +14 -80
  28. package/dist/api/bank-transaction-api.js +28 -144
  29. package/dist/api/billing-addresses-api.d.ts +5 -5
  30. package/dist/api/billing-addresses-api.js +19 -32
  31. package/dist/api/credit-allocation-api.d.ts +3 -3
  32. package/dist/api/credit-allocation-api.js +11 -18
  33. package/dist/api/exceeding-credits-api.d.ts +2 -59
  34. package/dist/api/exceeding-credits-api.js +7 -107
  35. package/dist/api/health-check-api.d.ts +1 -1
  36. package/dist/api/ibanvalidator-api.d.ts +1 -1
  37. package/dist/api/ibanvalidator-api.js +4 -7
  38. package/dist/api/payment-methods-api.d.ts +3 -3
  39. package/dist/api/payment-methods-api.js +11 -18
  40. package/dist/api/payment-receipts-api.d.ts +5 -5
  41. package/dist/api/payment-receipts-api.js +18 -29
  42. package/dist/api/payment-reminders-api.d.ts +4 -4
  43. package/dist/api/payment-reminders-api.js +15 -25
  44. package/dist/api/payment-requests-api.d.ts +17 -17
  45. package/dist/api/payment-requests-api.js +27 -38
  46. package/dist/api/payment-setup-api.d.ts +2 -2
  47. package/dist/api/payment-setup-api.js +8 -14
  48. package/dist/api/payments-api.d.ts +4 -4
  49. package/dist/api/payments-api.js +18 -28
  50. package/dist/api/payout-methods-api.d.ts +6 -6
  51. package/dist/api/payout-methods-api.js +22 -36
  52. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  53. package/dist/api/policy-payment-methods-api.js +11 -18
  54. package/dist/api/refunds-api.d.ts +3 -3
  55. package/dist/api/refunds-api.js +10 -15
  56. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  57. package/dist/api/tenant-bank-account-api.js +18 -29
  58. package/dist/api/webhooks-api.d.ts +2 -2
  59. package/dist/base.d.ts +0 -24
  60. package/dist/base.js +59 -178
  61. package/dist/common.d.ts +1 -1
  62. package/dist/common.js +0 -1
  63. package/dist/configuration.d.ts +0 -17
  64. package/dist/configuration.js +0 -2
  65. package/dist/models/bank-transaction-class.d.ts +0 -7
  66. package/dist/models/bank-transaction-entity.d.ts +0 -7
  67. package/dist/models/create-payment-order-dto.d.ts +1 -1
  68. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  69. package/dist/models/create-payment-request-dto.d.ts +1 -1
  70. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  71. package/dist/models/credit-allocation-class.d.ts +0 -6
  72. package/dist/models/credit-allocation-entity.d.ts +0 -6
  73. package/dist/models/index.d.ts +0 -6
  74. package/dist/models/index.js +0 -6
  75. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  76. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  77. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  78. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  79. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  80. package/dist/models/list-refunds-response-class.d.ts +18 -6
  81. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  82. package/dist/models/payment-class.d.ts +2 -2
  83. package/dist/models/payment-entity.d.ts +1 -1
  84. package/dist/models/payment-receipt-class.d.ts +1 -13
  85. package/dist/models/payment-request-class.d.ts +6 -13
  86. package/dist/models/payment-request-class.js +0 -1
  87. package/dist/models/shared-transaction-class.d.ts +0 -6
  88. package/dist/models/transaction-entity.d.ts +0 -6
  89. package/models/bank-transaction-class.ts +0 -7
  90. package/models/bank-transaction-entity.ts +0 -7
  91. package/models/create-payment-order-dto.ts +1 -1
  92. package/models/create-payment-receipt-request-dto.ts +1 -1
  93. package/models/create-payment-request-dto.ts +1 -1
  94. package/models/create-payment-request-request-dto.ts +0 -6
  95. package/models/credit-allocation-class.ts +0 -6
  96. package/models/credit-allocation-entity.ts +0 -6
  97. package/models/index.ts +0 -6
  98. package/models/list-billing-addresses-response-class.ts +9 -9
  99. package/models/list-exceeding-credits-response-class.ts +18 -6
  100. package/models/list-payment-receipts-response-class.ts +9 -9
  101. package/models/list-payment-requests-response-class.ts +18 -6
  102. package/models/list-payout-methods-response-class.ts +9 -9
  103. package/models/list-refunds-response-class.ts +18 -6
  104. package/models/payment-class-without-expand-properties.ts +2 -2
  105. package/models/payment-class.ts +2 -2
  106. package/models/payment-entity.ts +1 -1
  107. package/models/payment-receipt-class.ts +1 -13
  108. package/models/payment-request-class.ts +6 -13
  109. package/models/shared-transaction-class.ts +0 -6
  110. package/models/transaction-entity.ts +0 -6
  111. package/package.json +2 -2
  112. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  113. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  114. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  115. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  116. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  117. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  118. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  119. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  120. package/dist/models/payment-receipt-entity.d.ts +0 -139
  121. package/dist/models/payment-receipt-entity.js +0 -20
  122. package/dist/models/payment-request-entity.d.ts +0 -223
  123. package/dist/models/payment-request-entity.js +0 -39
  124. package/models/create-exceeding-credit-request-dto.ts +0 -54
  125. package/models/create-exceeding-credit-response-class.ts +0 -31
  126. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  127. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  128. package/models/payment-receipt-entity.ts +0 -148
  129. package/models/payment-request-entity.ts +0 -233
@@ -15,8 +15,6 @@ 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';
20
18
  import { LinkBankTransactionRequestDtoRest } from '../models';
21
19
  import { LinkBankTransactionsResponseClass } from '../models';
22
20
  import { ListBankTransactionsResponseClass } from '../models';
@@ -40,7 +38,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
40
38
  * @summary Retrieve the bank transaction
41
39
  * @param {string} code
42
40
  * @param {string} [authorization] Bearer Token
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>
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>
44
42
  * @param {*} [options] Override http request option.
45
43
  * @throws {RequiredError}
46
44
  */
@@ -64,16 +62,6 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
64
62
  * @throws {RequiredError}
65
63
  */
66
64
  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>;
77
65
  /**
78
66
  * 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\"
79
67
  * @summary List bank transactions
@@ -83,7 +71,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
83
71
  * @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;
84
72
  * @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;
85
73
  * @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;
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;
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;
87
75
  * @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;
88
76
  * @param {*} [options] Override http request option.
89
77
  * @throws {RequiredError}
@@ -118,7 +106,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
118
106
  * @summary Retrieve the bank transaction
119
107
  * @param {string} code
120
108
  * @param {string} [authorization] Bearer Token
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;
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;
122
110
  * @param {*} [options] Override http request option.
123
111
  * @throws {RequiredError}
124
112
  */
@@ -142,16 +130,6 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
142
130
  * @throws {RequiredError}
143
131
  */
144
132
  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>>;
155
133
  /**
156
134
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
157
135
  * @summary List bank transactions
@@ -161,7 +139,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
161
139
  * @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;
162
140
  * @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;
163
141
  * @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;
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;
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;
165
143
  * @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;
166
144
  * @param {*} [options] Override http request option.
167
145
  * @throws {RequiredError}
@@ -196,7 +174,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
196
174
  * @summary Retrieve the bank transaction
197
175
  * @param {string} code
198
176
  * @param {string} [authorization] Bearer Token
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;
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;
200
178
  * @param {*} [options] Override http request option.
201
179
  * @throws {RequiredError}
202
180
  */
@@ -220,16 +198,6 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
220
198
  * @throws {RequiredError}
221
199
  */
222
200
  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>;
233
201
  /**
234
202
  * 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\"
235
203
  * @summary List bank transactions
@@ -239,7 +207,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
239
207
  * @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;
240
208
  * @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;
241
209
  * @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;
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;
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;
243
211
  * @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;
244
212
  * @param {*} [options] Override http request option.
245
213
  * @throws {RequiredError}
@@ -293,7 +261,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
293
261
  */
294
262
  readonly authorization?: string;
295
263
  /**
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;
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;
297
265
  * @type {string}
298
266
  * @memberof BankTransactionApiGetBankTransaction
299
267
  */
@@ -343,31 +311,6 @@ export interface BankTransactionApiLinkBankTransactionRequest {
343
311
  */
344
312
  readonly authorization?: string;
345
313
  }
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
- }
371
314
  /**
372
315
  * Request parameters for listBankTransactions operation in BankTransactionApi.
373
316
  * @export
@@ -411,7 +354,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
411
354
  */
412
355
  readonly order?: string;
413
356
  /**
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;
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;
415
358
  * @type {string}
416
359
  * @memberof BankTransactionApiListBankTransactions
417
360
  */
@@ -457,7 +400,7 @@ export declare class BankTransactionApi extends BaseAPI {
457
400
  * @throws {RequiredError}
458
401
  * @memberof BankTransactionApi
459
402
  */
460
- generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}, any>>;
403
+ generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}>>;
461
404
  /**
462
405
  * 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\"
463
406
  * @summary Retrieve the bank transaction
@@ -466,7 +409,7 @@ export declare class BankTransactionApi extends BaseAPI {
466
409
  * @throws {RequiredError}
467
410
  * @memberof BankTransactionApi
468
411
  */
469
- getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}, any>>;
412
+ getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}>>;
470
413
  /**
471
414
  * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
472
415
  * @summary Create the bank transactions
@@ -475,7 +418,7 @@ export declare class BankTransactionApi extends BaseAPI {
475
418
  * @throws {RequiredError}
476
419
  * @memberof BankTransactionApi
477
420
  */
478
- importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}, any>>;
421
+ importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}>>;
479
422
  /**
480
423
  * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
481
424
  * @summary Link bank transaction
@@ -484,16 +427,7 @@ export declare class BankTransactionApi extends BaseAPI {
484
427
  * @throws {RequiredError}
485
428
  * @memberof BankTransactionApi
486
429
  */
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>>;
430
+ linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}>>;
497
431
  /**
498
432
  * 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\"
499
433
  * @summary List bank transactions
@@ -502,7 +436,7 @@ export declare class BankTransactionApi extends BaseAPI {
502
436
  * @throws {RequiredError}
503
437
  * @memberof BankTransactionApi
504
438
  */
505
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}, any>>;
439
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}>>;
506
440
  /**
507
441
  * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
508
442
  * @summary Unlink bank transaction
@@ -511,5 +445,5 @@ export declare class BankTransactionApi extends BaseAPI {
511
445
  * @throws {RequiredError}
512
446
  * @memberof BankTransactionApi
513
447
  */
514
- unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}, any>>;
448
+ unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}>>;
515
449
  }
@@ -103,7 +103,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
103
103
  generateInvoiceMatchSuggestion: function (code, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -121,16 +121,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token; an empty value is never sent.
126
- ];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
125
  case 1:
128
126
  // authentication bearer required
129
127
  // http bearer authentication required
130
128
  _a.sent();
131
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
- if (authorizationValue) {
133
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
131
  }
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -148,14 +145,14 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
148
145
  * @summary Retrieve the bank transaction
149
146
  * @param {string} code
150
147
  * @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, paymentReceipts&lt;i&gt;
148
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
152
149
  * @param {*} [options] Override http request option.
153
150
  * @throws {RequiredError}
154
151
  */
155
152
  getBankTransaction: function (code, authorization, expand, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -181,9 +178,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
181
178
  if (expand !== undefined) {
182
179
  localVarQueryParameter['expand'] = expand;
183
180
  }
184
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
185
- if (authorizationValue) {
186
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
183
  }
188
184
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
185
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +203,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
207
203
  importBankTransactions: function (file, authorization, options) {
208
204
  if (options === void 0) { options = {}; }
209
205
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
211
207
  return __generator(this, function (_a) {
212
208
  switch (_a.label) {
213
209
  case 0:
@@ -225,16 +221,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
225
221
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
226
222
  // authentication bearer required
227
223
  // http bearer authentication required
228
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
229
- // Only Authorization falls back to the configured token; an empty value is never sent.
230
- ];
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
225
  case 1:
232
226
  // authentication bearer required
233
227
  // http bearer authentication required
234
228
  _a.sent();
235
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
236
- if (authorizationValue) {
237
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
229
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
231
  }
239
232
  if (file !== undefined) {
240
233
  localVarFormParams.append('file', file);
@@ -263,7 +256,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
263
256
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
264
257
  if (options === void 0) { options = {}; }
265
258
  return __awaiter(_this, void 0, void 0, function () {
266
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
259
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
260
  return __generator(this, function (_a) {
268
261
  switch (_a.label) {
269
262
  case 0:
@@ -283,16 +276,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
283
276
  localVarQueryParameter = {};
284
277
  // authentication bearer required
285
278
  // http bearer authentication required
286
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
287
- // Only Authorization falls back to the configured token; an empty value is never sent.
288
- ];
279
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
289
280
  case 1:
290
281
  // authentication bearer required
291
282
  // http bearer authentication required
292
283
  _a.sent();
293
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
294
- if (authorizationValue) {
295
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
286
  }
297
287
  localVarHeaderParameter['Content-Type'] = 'application/json';
298
288
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -307,62 +297,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
307
297
  });
308
298
  });
309
299
  },
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
- },
366
300
  /**
367
301
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
368
302
  * @summary List bank transactions
@@ -372,7 +306,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
372
306
  * @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;
373
307
  * @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;
374
308
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, transactionDate, entryDate&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;
309
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
376
310
  * @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;
377
311
  * @param {*} [options] Override http request option.
378
312
  * @throws {RequiredError}
@@ -380,7 +314,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
380
314
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
381
315
  if (options === void 0) { options = {}; }
382
316
  return __awaiter(_this, void 0, void 0, function () {
383
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
384
318
  return __generator(this, function (_a) {
385
319
  switch (_a.label) {
386
320
  case 0:
@@ -421,9 +355,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
421
355
  if (filters !== undefined) {
422
356
  localVarQueryParameter['filters'] = filters;
423
357
  }
424
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
425
- if (authorizationValue) {
426
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
358
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
427
360
  }
428
361
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
362
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -447,7 +380,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
447
380
  unlinkBankTransaction: function (code, authorization, options) {
448
381
  if (options === void 0) { options = {}; }
449
382
  return __awaiter(_this, void 0, void 0, function () {
450
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
383
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
451
384
  return __generator(this, function (_a) {
452
385
  switch (_a.label) {
453
386
  case 0:
@@ -465,16 +398,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
465
398
  localVarQueryParameter = {};
466
399
  // authentication bearer required
467
400
  // http bearer authentication required
468
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
469
- // Only Authorization falls back to the configured token; an empty value is never sent.
470
- ];
401
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
471
402
  case 1:
472
403
  // authentication bearer required
473
404
  // http bearer authentication required
474
405
  _a.sent();
475
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
476
- if (authorizationValue) {
477
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
478
408
  }
479
409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
480
410
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -523,7 +453,7 @@ var BankTransactionApiFp = function (configuration) {
523
453
  * @summary Retrieve the bank transaction
524
454
  * @param {string} code
525
455
  * @param {string} [authorization] Bearer Token
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;
456
+ * @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;
527
457
  * @param {*} [options] Override http request option.
528
458
  * @throws {RequiredError}
529
459
  */
@@ -583,28 +513,6 @@ var BankTransactionApiFp = function (configuration) {
583
513
  });
584
514
  });
585
515
  },
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
- },
608
516
  /**
609
517
  * 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\"
610
518
  * @summary List bank transactions
@@ -614,7 +522,7 @@ var BankTransactionApiFp = function (configuration) {
614
522
  * @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;
615
523
  * @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;
616
524
  * @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;
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;
525
+ * @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;
618
526
  * @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;
619
527
  * @param {*} [options] Override http request option.
620
528
  * @throws {RequiredError}
@@ -679,7 +587,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
679
587
  * @summary Retrieve the bank transaction
680
588
  * @param {string} code
681
589
  * @param {string} [authorization] Bearer Token
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;
590
+ * @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;
683
591
  * @param {*} [options] Override http request option.
684
592
  * @throws {RequiredError}
685
593
  */
@@ -709,18 +617,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
709
617
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
710
618
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
711
619
  },
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
- },
724
620
  /**
725
621
  * 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
622
  * @summary List bank transactions
@@ -730,7 +626,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
730
626
  * @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;
731
627
  * @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;
732
628
  * @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;
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;
629
+ * @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;
734
630
  * @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;
735
631
  * @param {*} [options] Override http request option.
736
632
  * @throws {RequiredError}
@@ -811,18 +707,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
811
707
  var _this = this;
812
708
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
813
709
  };
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
- };
826
710
  /**
827
711
  * 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\"
828
712
  * @summary List bank transactions