@emilgroup/payment-sdk-node 1.21.1-beta.9 → 1.21.1-beta.90

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 (154) hide show
  1. package/.openapi-generator/FILES +25 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +695 -0
  5. package/api/bank-transaction-api.ts +63 -52
  6. package/api/exceeding-credits-api.ts +353 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +188 -21
  10. package/api/policy-payment-methods-api.ts +169 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +6 -0
  14. package/base.ts +45 -3
  15. package/dist/api/bank-accounts-api.d.ts +35 -8
  16. package/dist/api/bank-accounts-api.js +29 -11
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +646 -0
  19. package/dist/api/bank-transaction-api.d.ts +43 -35
  20. package/dist/api/bank-transaction-api.js +39 -34
  21. package/dist/api/exceeding-credits-api.d.ts +206 -0
  22. package/dist/api/exceeding-credits-api.js +356 -0
  23. package/dist/api/payment-methods-api.d.ts +39 -12
  24. package/dist/api/payment-methods-api.js +32 -14
  25. package/dist/api/payment-reminders-api.d.ts +35 -8
  26. package/dist/api/payment-reminders-api.js +29 -11
  27. package/dist/api/payments-api.d.ts +112 -16
  28. package/dist/api/payments-api.js +141 -18
  29. package/dist/api/policy-payment-methods-api.d.ts +97 -0
  30. package/dist/api/policy-payment-methods-api.js +228 -0
  31. package/dist/api/refunds-api.d.ts +28 -10
  32. package/dist/api/refunds-api.js +24 -12
  33. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  34. package/dist/api/tenant-bank-account-api.js +24 -12
  35. package/dist/api.d.ts +3 -0
  36. package/dist/api.js +3 -0
  37. package/dist/base.d.ts +11 -2
  38. package/dist/base.js +42 -3
  39. package/dist/models/bank-order-class.d.ts +115 -0
  40. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  41. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  42. package/dist/models/bank-transaction-class.d.ts +22 -22
  43. package/dist/models/bank-transaction-class.js +5 -0
  44. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  45. package/dist/models/bank-transaction-invoice-class.js +15 -0
  46. package/dist/models/bank-transfer-dto.d.ts +25 -0
  47. package/dist/models/bank-transfer-dto.js +15 -0
  48. package/dist/models/billing-address-dto.d.ts +54 -0
  49. package/dist/models/billing-address-dto.js +15 -0
  50. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  51. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  52. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  53. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  54. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  55. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  56. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  57. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  58. package/dist/models/create-bank-order-request-dto.js +28 -0
  59. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  60. package/dist/models/create-bank-order-response-class.js +15 -0
  61. package/dist/models/create-payment-order-dto.d.ts +48 -0
  62. package/dist/models/create-payment-order-dto.js +15 -0
  63. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  64. package/dist/models/create-payment-order-request-dto.js +15 -0
  65. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  66. package/dist/models/create-payment-request-dto.d.ts +7 -1
  67. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  68. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  69. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  70. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  71. package/dist/models/create-psp-payment-method-request-dto.d.ts +22 -1
  72. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  73. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  74. package/dist/models/exceeding-credit-class.d.ts +116 -0
  75. package/dist/models/exceeding-credit-class.js +29 -0
  76. package/dist/models/financial-account-class.d.ts +111 -0
  77. package/dist/models/financial-account-class.js +24 -0
  78. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  79. package/dist/models/get-bank-order-response-class.js +15 -0
  80. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  81. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  82. package/dist/models/index.d.ts +22 -1
  83. package/dist/models/index.js +22 -1
  84. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  85. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  86. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  87. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  88. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  89. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  90. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  91. package/dist/models/invoice-allocation-dto.js +15 -0
  92. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  93. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  94. package/dist/models/list-bank-orders-response-class.js +15 -0
  95. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  96. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  97. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  98. package/dist/models/payment-class.d.ts +7 -1
  99. package/dist/models/payment-method-class.d.ts +6 -0
  100. package/dist/models/payment-reminder-class.d.ts +7 -1
  101. package/dist/models/policy-payment-method-class.d.ts +73 -0
  102. package/dist/models/policy-payment-method-class.js +15 -0
  103. package/dist/models/refund-class.d.ts +7 -1
  104. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  105. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  106. package/dist/models/update-bank-order-request-dto.d.ts +62 -0
  107. package/dist/models/update-bank-order-request-dto.js +23 -0
  108. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  109. package/dist/models/update-bank-order-response-class.js +15 -0
  110. package/models/bank-order-class.ts +121 -0
  111. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  112. package/models/bank-transaction-class.ts +25 -22
  113. package/models/bank-transaction-invoice-class.ts +66 -0
  114. package/models/bank-transfer-dto.ts +31 -0
  115. package/models/billing-address-dto.ts +60 -0
  116. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  117. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  118. package/models/complete-payment-setup-request-dto.ts +7 -0
  119. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  120. package/models/create-bank-order-request-dto.ts +84 -0
  121. package/models/create-bank-order-response-class.ts +31 -0
  122. package/models/create-payment-order-dto.ts +54 -0
  123. package/models/create-payment-order-request-dto.ts +54 -0
  124. package/models/create-payment-reminder-request-dto.ts +7 -1
  125. package/models/create-payment-request-dto.ts +7 -1
  126. package/models/create-policy-payment-method-request-dto.ts +36 -0
  127. package/models/create-policy-payment-method-response-class.ts +31 -0
  128. package/models/create-psp-payment-method-request-dto.ts +23 -2
  129. package/models/deactivated-payment-reminder-class.ts +7 -1
  130. package/models/exceeding-credit-class.ts +125 -0
  131. package/models/financial-account-class.ts +120 -0
  132. package/models/get-bank-order-response-class.ts +31 -0
  133. package/models/get-exceeding-credit-response-class.ts +31 -0
  134. package/models/index.ts +22 -1
  135. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  136. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  137. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  138. package/models/initiate-payment-setup-request-dto.ts +3 -2
  139. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  140. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  141. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  142. package/models/list-bank-orders-response-class.ts +37 -0
  143. package/models/list-exceeding-credits-response-class.ts +37 -0
  144. package/models/payment-class-without-expand-properties.ts +7 -1
  145. package/models/payment-class.ts +7 -1
  146. package/models/payment-method-class.ts +6 -0
  147. package/models/payment-reminder-class.ts +7 -1
  148. package/models/policy-payment-method-class.ts +79 -0
  149. package/models/refund-class.ts +7 -1
  150. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  151. package/models/update-bank-order-request-dto.ts +71 -0
  152. package/models/update-bank-order-response-class.ts +31 -0
  153. package/package.json +1 -1
  154. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
@@ -55,15 +55,17 @@ export declare const TenantBankAccountApiAxiosParamCreator: (configuration?: Con
55
55
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
56
56
  * @summary List tenant bank accounts
57
57
  * @param {string} [authorization] Bearer Token
58
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
58
60
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
59
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
60
61
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
61
62
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
62
63
  * @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: bankTransactions<i>
64
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
63
65
  * @param {*} [options] Override http request option.
64
66
  * @throws {RequiredError}
65
67
  */
66
- listTenantBankAccounts: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listTenantBankAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
69
  /**
68
70
  * Update a tenant bank account by code
69
71
  * @summary Update the tenant bank account
@@ -112,15 +114,17 @@ export declare const TenantBankAccountApiFp: (configuration?: Configuration) =>
112
114
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
113
115
  * @summary List tenant bank accounts
114
116
  * @param {string} [authorization] Bearer Token
117
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
115
119
  * @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, iban, bankName, accountName&lt;/i&gt;
116
- * @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, iban, bankName, accountName&lt;/i&gt;
117
120
  * @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, iban, bankName, accountName&lt;/i&gt;
118
121
  * @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&lt;/i&gt;
119
122
  * @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: bankTransactions&lt;i&gt;
123
+ * @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, iban, bankName, accountName&lt;/i&gt;
120
124
  * @param {*} [options] Override http request option.
121
125
  * @throws {RequiredError}
122
126
  */
123
- listTenantBankAccounts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>>;
127
+ listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>>;
124
128
  /**
125
129
  * Update a tenant bank account by code
126
130
  * @summary Update the tenant bank account
@@ -169,15 +173,17 @@ export declare const TenantBankAccountApiFactory: (configuration?: Configuration
169
173
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
170
174
  * @summary List tenant bank accounts
171
175
  * @param {string} [authorization] Bearer Token
176
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
172
178
  * @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, iban, bankName, accountName&lt;/i&gt;
173
- * @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, iban, bankName, accountName&lt;/i&gt;
174
179
  * @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, iban, bankName, accountName&lt;/i&gt;
175
180
  * @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&lt;/i&gt;
176
181
  * @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: bankTransactions&lt;i&gt;
182
+ * @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, iban, bankName, accountName&lt;/i&gt;
177
183
  * @param {*} [options] Override http request option.
178
184
  * @throws {RequiredError}
179
185
  */
180
- listTenantBankAccounts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass>;
186
+ listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass>;
181
187
  /**
182
188
  * Update a tenant bank account by code
183
189
  * @summary Update the tenant bank account
@@ -265,17 +271,23 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
265
271
  */
266
272
  readonly authorization?: string;
267
273
  /**
268
- * 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, iban, bankName, accountName&lt;/i&gt;
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
276
+ * @memberof TenantBankAccountApiListTenantBankAccounts
277
+ */
278
+ readonly pageSize?: number;
279
+ /**
280
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
269
281
  * @type {string}
270
282
  * @memberof TenantBankAccountApiListTenantBankAccounts
271
283
  */
272
- readonly filter?: string;
284
+ readonly pageToken?: string;
273
285
  /**
274
- * 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, iban, bankName, accountName&lt;/i&gt;
286
+ * 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, iban, bankName, accountName&lt;/i&gt;
275
287
  * @type {string}
276
288
  * @memberof TenantBankAccountApiListTenantBankAccounts
277
289
  */
278
- readonly filters?: string;
290
+ readonly filter?: string;
279
291
  /**
280
292
  * 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, iban, bankName, accountName&lt;/i&gt;
281
293
  * @type {string}
@@ -294,6 +306,12 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
294
306
  * @memberof TenantBankAccountApiListTenantBankAccounts
295
307
  */
296
308
  readonly expand?: string;
309
+ /**
310
+ * 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, iban, bankName, accountName&lt;/i&gt;
311
+ * @type {string}
312
+ * @memberof TenantBankAccountApiListTenantBankAccounts
313
+ */
314
+ readonly filters?: string;
297
315
  }
298
316
  /**
299
317
  * Request parameters for updateTenantBankAccount operation in TenantBankAccountApi.
@@ -249,15 +249,17 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
249
249
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
250
250
  * @summary List tenant bank accounts
251
251
  * @param {string} [authorization] Bearer Token
252
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
252
254
  * @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, iban, bankName, accountName&lt;/i&gt;
253
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
254
255
  * @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, iban, bankName, accountName&lt;/i&gt;
255
256
  * @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&lt;/i&gt;
256
257
  * @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: bankTransactions&lt;i&gt;
258
+ * @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, iban, bankName, accountName&lt;/i&gt;
257
259
  * @param {*} [options] Override http request option.
258
260
  * @throws {RequiredError}
259
261
  */
260
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
262
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
263
  if (options === void 0) { options = {}; }
262
264
  return __awaiter(_this, void 0, void 0, function () {
263
265
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -280,12 +282,15 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
280
282
  // authentication bearer required
281
283
  // http bearer authentication required
282
284
  _a.sent();
285
+ if (pageSize !== undefined) {
286
+ localVarQueryParameter['pageSize'] = pageSize;
287
+ }
288
+ if (pageToken !== undefined) {
289
+ localVarQueryParameter['pageToken'] = pageToken;
290
+ }
283
291
  if (filter !== undefined) {
284
292
  localVarQueryParameter['filter'] = filter;
285
293
  }
286
- if (filters !== undefined) {
287
- localVarQueryParameter['filters'] = filters;
288
- }
289
294
  if (search !== undefined) {
290
295
  localVarQueryParameter['search'] = search;
291
296
  }
@@ -295,6 +300,9 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
295
300
  if (expand !== undefined) {
296
301
  localVarQueryParameter['expand'] = expand;
297
302
  }
303
+ if (filters !== undefined) {
304
+ localVarQueryParameter['filters'] = filters;
305
+ }
298
306
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
307
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
308
  }
@@ -440,20 +448,22 @@ var TenantBankAccountApiFp = function (configuration) {
440
448
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
441
449
  * @summary List tenant bank accounts
442
450
  * @param {string} [authorization] Bearer Token
451
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
452
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
443
453
  * @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, iban, bankName, accountName&lt;/i&gt;
444
- * @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, iban, bankName, accountName&lt;/i&gt;
445
454
  * @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, iban, bankName, accountName&lt;/i&gt;
446
455
  * @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&lt;/i&gt;
447
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: bankTransactions&lt;i&gt;
457
+ * @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, iban, bankName, accountName&lt;/i&gt;
448
458
  * @param {*} [options] Override http request option.
449
459
  * @throws {RequiredError}
450
460
  */
451
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
461
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
452
462
  return __awaiter(this, void 0, void 0, function () {
453
463
  var localVarAxiosArgs;
454
464
  return __generator(this, function (_a) {
455
465
  switch (_a.label) {
456
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenantBankAccounts(authorization, filter, filters, search, order, expand, options)];
466
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
457
467
  case 1:
458
468
  localVarAxiosArgs = _a.sent();
459
469
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -531,16 +541,18 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
531
541
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
532
542
  * @summary List tenant bank accounts
533
543
  * @param {string} [authorization] Bearer Token
544
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
545
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
534
546
  * @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, iban, bankName, accountName&lt;/i&gt;
535
- * @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, iban, bankName, accountName&lt;/i&gt;
536
547
  * @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, iban, bankName, accountName&lt;/i&gt;
537
548
  * @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&lt;/i&gt;
538
549
  * @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: bankTransactions&lt;i&gt;
550
+ * @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, iban, bankName, accountName&lt;/i&gt;
539
551
  * @param {*} [options] Override http request option.
540
552
  * @throws {RequiredError}
541
553
  */
542
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
543
- return localVarFp.listTenantBankAccounts(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
554
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
555
+ return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
544
556
  },
545
557
  /**
546
558
  * Update a tenant bank account by code
@@ -615,7 +627,7 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
615
627
  TenantBankAccountApi.prototype.listTenantBankAccounts = function (requestParameters, options) {
616
628
  var _this = this;
617
629
  if (requestParameters === void 0) { requestParameters = {}; }
618
- return (0, exports.TenantBankAccountApiFp)(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
+ return (0, exports.TenantBankAccountApiFp)(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
631
  };
620
632
  /**
621
633
  * Update a tenant bank account by code
package/dist/api.d.ts CHANGED
@@ -10,12 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/bank-accounts-api';
13
+ export * from './api/bank-orders-api';
13
14
  export * from './api/bank-transaction-api';
15
+ export * from './api/exceeding-credits-api';
14
16
  export * from './api/health-check-api';
15
17
  export * from './api/payment-methods-api';
16
18
  export * from './api/payment-reminders-api';
17
19
  export * from './api/payment-setup-api';
18
20
  export * from './api/payments-api';
21
+ export * from './api/policy-payment-methods-api';
19
22
  export * from './api/refunds-api';
20
23
  export * from './api/tenant-bank-account-api';
21
24
  export * from './api/webhooks-api';
package/dist/api.js CHANGED
@@ -28,12 +28,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/bank-accounts-api"), exports);
31
+ __exportStar(require("./api/bank-orders-api"), exports);
31
32
  __exportStar(require("./api/bank-transaction-api"), exports);
33
+ __exportStar(require("./api/exceeding-credits-api"), exports);
32
34
  __exportStar(require("./api/health-check-api"), exports);
33
35
  __exportStar(require("./api/payment-methods-api"), exports);
34
36
  __exportStar(require("./api/payment-reminders-api"), exports);
35
37
  __exportStar(require("./api/payment-setup-api"), exports);
36
38
  __exportStar(require("./api/payments-api"), exports);
39
+ __exportStar(require("./api/policy-payment-methods-api"), exports);
37
40
  __exportStar(require("./api/refunds-api"), exports);
38
41
  __exportStar(require("./api/tenant-bank-account-api"), exports);
39
42
  __exportStar(require("./api/webhooks-api"), exports);
package/dist/base.d.ts CHANGED
@@ -26,6 +26,14 @@ export interface LoginClass {
26
26
  accessToken: string;
27
27
  permissions: string;
28
28
  }
29
+ export interface SwitchWorkspaceRequest {
30
+ username: string;
31
+ targetWorkspace: string;
32
+ }
33
+ export interface SwitchWorkspaceResponseClass {
34
+ accessToken: string;
35
+ permissions: string;
36
+ }
29
37
  export declare enum Environment {
30
38
  Production = "https://apiv2.emil.de",
31
39
  Test = "https://apiv2-test.emil.de",
@@ -55,12 +63,13 @@ export declare class BaseAPI {
55
63
  private username?;
56
64
  private password?;
57
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
58
- initialize(env?: Environment): Promise<void>;
66
+ initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
59
67
  private loadCredentials;
60
68
  private readConfigFile;
61
69
  private readEnvVariables;
62
70
  selectEnvironment(env: Environment): void;
63
- authorize(username: string, password: string): Promise<void>;
71
+ authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
72
+ switchWorkspace(targetWorkspace: string): Promise<void>;
64
73
  refreshTokenInternal(): Promise<string>;
65
74
  private extractRefreshToken;
66
75
  getConfiguration(): Configuration;
package/dist/base.js CHANGED
@@ -162,7 +162,7 @@ var BaseAPI = /** @class */ (function () {
162
162
  }
163
163
  this.attachInterceptor(axios);
164
164
  }
165
- BaseAPI.prototype.initialize = function (env) {
165
+ BaseAPI.prototype.initialize = function (env, targetWorkspace) {
166
166
  if (env === void 0) { env = Environment.Production; }
167
167
  return __awaiter(this, void 0, void 0, function () {
168
168
  return __generator(this, function (_a) {
@@ -173,7 +173,7 @@ var BaseAPI = /** @class */ (function () {
173
173
  case 1:
174
174
  _a.sent();
175
175
  if (!this.username) return [3 /*break*/, 3];
176
- return [4 /*yield*/, this.authorize(this.username, this.password)];
176
+ return [4 /*yield*/, this.authorize(this.username, this.password, targetWorkspace)];
177
177
  case 2:
178
178
  _a.sent();
179
179
  this.password = null; // to avoid keeping password loaded in memory.
@@ -243,7 +243,7 @@ var BaseAPI = /** @class */ (function () {
243
243
  BaseAPI.prototype.selectEnvironment = function (env) {
244
244
  this.configuration.basePath = env;
245
245
  };
246
- BaseAPI.prototype.authorize = function (username, password) {
246
+ BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
247
247
  return __awaiter(this, void 0, void 0, function () {
248
248
  var options, response, accessToken, refreshToken;
249
249
  return __generator(this, function (_a) {
@@ -267,6 +267,45 @@ var BaseAPI = /** @class */ (function () {
267
267
  this.configuration.accessToken = "Bearer ".concat(accessToken);
268
268
  refreshToken = this.extractRefreshToken(response);
269
269
  this.configuration.refreshToken = refreshToken;
270
+ if (!targetWorkspace) return [3 /*break*/, 3];
271
+ return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
272
+ case 2:
273
+ _a.sent();
274
+ _a.label = 3;
275
+ case 3: return [2 /*return*/];
276
+ }
277
+ });
278
+ });
279
+ };
280
+ BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
281
+ return __awaiter(this, void 0, void 0, function () {
282
+ var options, response, accessToken, refreshToken;
283
+ return __generator(this, function (_a) {
284
+ switch (_a.label) {
285
+ case 0:
286
+ options = {
287
+ method: 'POST',
288
+ url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
289
+ headers: {
290
+ 'Content-Type': 'application/json',
291
+ 'Authorization': "Bearer ".concat(this.configuration.accessToken),
292
+ 'Cookie': this.configuration.refreshToken,
293
+ },
294
+ data: {
295
+ username: this.configuration.username,
296
+ targetWorkspace: targetWorkspace,
297
+ },
298
+ withCredentials: true,
299
+ };
300
+ return [4 /*yield*/, axios_1.default.request(options)];
301
+ case 1:
302
+ response = _a.sent();
303
+ accessToken = response.data.accessToken;
304
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
305
+ refreshToken = this.extractRefreshToken(response);
306
+ if (refreshToken) {
307
+ this.configuration.refreshToken = refreshToken;
308
+ }
270
309
  return [2 /*return*/];
271
310
  }
272
311
  });
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { FinancialAccountClass } from './financial-account-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BankOrderClass
17
+ */
18
+ export interface BankOrderClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof BankOrderClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Unique identifier for the object.
27
+ * @type {string}
28
+ * @memberof BankOrderClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * Bank order type.
33
+ * @type {string}
34
+ * @memberof BankOrderClass
35
+ */
36
+ 'type': string;
37
+ /**
38
+ * Amount associated with bank order.
39
+ * @type {number}
40
+ * @memberof BankOrderClass
41
+ */
42
+ 'amount': number;
43
+ /**
44
+ * Status associated with bank order.
45
+ * @type {string}
46
+ * @memberof BankOrderClass
47
+ */
48
+ 'status': string;
49
+ /**
50
+ * Number associated with bank order.
51
+ * @type {string}
52
+ * @memberof BankOrderClass
53
+ */
54
+ 'orderNumber': string;
55
+ /**
56
+ * Bank order description.
57
+ * @type {string}
58
+ * @memberof BankOrderClass
59
+ */
60
+ 'description'?: string;
61
+ /**
62
+ * Financial account code associated with the bank order.
63
+ * @type {string}
64
+ * @memberof BankOrderClass
65
+ */
66
+ 'financialAccountCode': string;
67
+ /**
68
+ * List of invoice IDs associated with bank order.
69
+ * @type {Array<number>}
70
+ * @memberof BankOrderClass
71
+ */
72
+ 'invoiceIds': Array<number>;
73
+ /**
74
+ * Day of execution of bank order.
75
+ * @type {string}
76
+ * @memberof BankOrderClass
77
+ */
78
+ 'executionDate': string;
79
+ /**
80
+ * Latest due date.
81
+ * @type {string}
82
+ * @memberof BankOrderClass
83
+ */
84
+ 'dueDate': string;
85
+ /**
86
+ * Time at which the object was created.
87
+ * @type {string}
88
+ * @memberof BankOrderClass
89
+ */
90
+ 'createdAt': string;
91
+ /**
92
+ * Time at which the object was updated.
93
+ * @type {string}
94
+ * @memberof BankOrderClass
95
+ */
96
+ 'updatedAt': string;
97
+ /**
98
+ * Identifier of the user who created the record.
99
+ * @type {string}
100
+ * @memberof BankOrderClass
101
+ */
102
+ 'createdBy': string;
103
+ /**
104
+ * Identifier of the user who last updated the record.
105
+ * @type {string}
106
+ * @memberof BankOrderClass
107
+ */
108
+ 'updatedBy': string;
109
+ /**
110
+ * The financial account object that this bank order is belongs to
111
+ * @type {FinancialAccountClass}
112
+ * @memberof BankOrderClass
113
+ */
114
+ 'financialAccount'?: FinancialAccountClass;
115
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { BankOrderClass } from './bank-order-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface BankTransactionClassWithoutExpandProperties {
45
46
  * @memberof BankTransactionClassWithoutExpandProperties
46
47
  */
47
48
  'messageReference'?: string;
49
+ /**
50
+ * Label of the transaction
51
+ * @type {string}
52
+ * @memberof BankTransactionClassWithoutExpandProperties
53
+ */
54
+ 'label'?: BankTransactionClassWithoutExpandPropertiesLabelEnum;
48
55
  /**
49
56
  * Currency of the transaction.
50
57
  * @type {string}
@@ -81,30 +88,18 @@ export interface BankTransactionClassWithoutExpandProperties {
81
88
  * @memberof BankTransactionClassWithoutExpandProperties
82
89
  */
83
90
  'metadata'?: object;
84
- /**
85
- * The id of the PSP transaction that this bank transaction is linked to
86
- * @type {number}
87
- * @memberof BankTransactionClassWithoutExpandProperties
88
- */
89
- 'linkedTransactionId'?: number;
90
- /**
91
- * The code of the invoice that this bank transaction is linked to
92
- * @type {string}
93
- * @memberof BankTransactionClassWithoutExpandProperties
94
- */
95
- 'linkedInvoiceCode'?: string;
96
- /**
97
- * The identifying invoice number that this bank transaction is linked to
98
- * @type {string}
99
- * @memberof BankTransactionClassWithoutExpandProperties
100
- */
101
- 'linkedInvoiceNumber'?: string;
102
91
  /**
103
92
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
104
93
  * @type {boolean}
105
94
  * @memberof BankTransactionClassWithoutExpandProperties
106
95
  */
107
96
  'isLinked': boolean;
97
+ /**
98
+ * The linked bank order object
99
+ * @type {BankOrderClass}
100
+ * @memberof BankTransactionClassWithoutExpandProperties
101
+ */
102
+ 'linkedBankOrder'?: BankOrderClass;
108
103
  /**
109
104
  * The file format of the bank transaction
110
105
  * @type {string}
@@ -130,3 +125,8 @@ export interface BankTransactionClassWithoutExpandProperties {
130
125
  */
131
126
  'updatedBy': string;
132
127
  }
128
+ export declare const BankTransactionClassWithoutExpandPropertiesLabelEnum: {
129
+ readonly Automated: "automated";
130
+ readonly Manual: "manual";
131
+ };
132
+ export type BankTransactionClassWithoutExpandPropertiesLabelEnum = typeof BankTransactionClassWithoutExpandPropertiesLabelEnum[keyof typeof BankTransactionClassWithoutExpandPropertiesLabelEnum];
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = void 0;
17
+ exports.BankTransactionClassWithoutExpandPropertiesLabelEnum = {
18
+ Automated: 'automated',
19
+ Manual: 'manual'
20
+ };
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { BankOrderClass } from './bank-order-class';
13
+ import { BankTransactionInvoiceClass } from './bank-transaction-invoice-class';
12
14
  import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
13
- import { SharedTransactionClass } from './shared-transaction-class';
14
15
  import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
15
16
  import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
16
17
  /**
@@ -49,6 +50,12 @@ export interface BankTransactionClass {
49
50
  * @memberof BankTransactionClass
50
51
  */
51
52
  'messageReference'?: string;
53
+ /**
54
+ * Label of the transaction
55
+ * @type {string}
56
+ * @memberof BankTransactionClass
57
+ */
58
+ 'label'?: BankTransactionClassLabelEnum;
52
59
  /**
53
60
  * Currency of the transaction.
54
61
  * @type {string}
@@ -85,30 +92,18 @@ export interface BankTransactionClass {
85
92
  * @memberof BankTransactionClass
86
93
  */
87
94
  'metadata'?: object;
88
- /**
89
- * The id of the PSP transaction that this bank transaction is linked to
90
- * @type {number}
91
- * @memberof BankTransactionClass
92
- */
93
- 'linkedTransactionId'?: number;
94
- /**
95
- * The code of the invoice that this bank transaction is linked to
96
- * @type {string}
97
- * @memberof BankTransactionClass
98
- */
99
- 'linkedInvoiceCode'?: string;
100
- /**
101
- * The identifying invoice number that this bank transaction is linked to
102
- * @type {string}
103
- * @memberof BankTransactionClass
104
- */
105
- 'linkedInvoiceNumber'?: string;
106
95
  /**
107
96
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
108
97
  * @type {boolean}
109
98
  * @memberof BankTransactionClass
110
99
  */
111
100
  'isLinked': boolean;
101
+ /**
102
+ * The bank transaction invoices that this bank transaction is linked to
103
+ * @type {Array<BankTransactionInvoiceClass>}
104
+ * @memberof BankTransactionClass
105
+ */
106
+ 'bankTransactionInvoices'?: Array<BankTransactionInvoiceClass>;
112
107
  /**
113
108
  * The bank account object that this transaction is belongs to
114
109
  * @type {TenantBankAccountClassWithoutExpandProperties}
@@ -116,11 +111,11 @@ export interface BankTransactionClass {
116
111
  */
117
112
  'bankAccount'?: TenantBankAccountClassWithoutExpandProperties;
118
113
  /**
119
- * The linked transaction object
120
- * @type {SharedTransactionClass}
114
+ * The linked bank order object
115
+ * @type {BankOrderClass}
121
116
  * @memberof BankTransactionClass
122
117
  */
123
- 'linkedTransaction'?: SharedTransactionClass;
118
+ 'linkedBankOrder'?: BankOrderClass;
124
119
  /**
125
120
  * The file format of the bank transaction
126
121
  * @type {string}
@@ -158,3 +153,8 @@ export interface BankTransactionClass {
158
153
  */
159
154
  'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
160
155
  }
156
+ export declare const BankTransactionClassLabelEnum: {
157
+ readonly Automated: "automated";
158
+ readonly Manual: "manual";
159
+ };
160
+ export type BankTransactionClassLabelEnum = typeof BankTransactionClassLabelEnum[keyof typeof BankTransactionClassLabelEnum];
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BankTransactionClassLabelEnum = void 0;
17
+ exports.BankTransactionClassLabelEnum = {
18
+ Automated: 'automated',
19
+ Manual: 'manual'
20
+ };