@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30

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 (224) hide show
  1. package/.openapi-generator/FILES +10 -27
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +497 -43
  4. package/api/bank-transaction-api.ts +89 -53
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +62 -173
  7. package/api/payment-reminders-api.ts +21 -25
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +54 -59
  10. package/api/refunds-api.ts +20 -18
  11. package/api/tenant-bank-account-api.ts +71 -61
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +6 -2
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +295 -45
  18. package/dist/api/bank-accounts-api.js +412 -24
  19. package/dist/api/bank-transaction-api.d.ts +65 -45
  20. package/dist/api/bank-transaction-api.js +55 -40
  21. package/dist/api/default-api.d.ts +1 -1
  22. package/dist/api/default-api.js +1 -1
  23. package/dist/api/payment-methods-api.d.ts +48 -107
  24. package/dist/api/payment-methods-api.js +51 -143
  25. package/dist/api/payment-reminders-api.d.ts +25 -27
  26. package/dist/api/payment-reminders-api.js +12 -12
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +46 -49
  30. package/dist/api/payments-api.js +43 -41
  31. package/dist/api/refunds-api.d.ts +15 -15
  32. package/dist/api/refunds-api.js +15 -13
  33. package/dist/api/tenant-bank-account-api.d.ts +70 -57
  34. package/dist/api/tenant-bank-account-api.js +56 -42
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +1 -1
  38. package/dist/api.js +1 -1
  39. package/dist/base.d.ts +2 -1
  40. package/dist/base.js +5 -2
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-account-class.d.ts +23 -4
  48. package/dist/models/bank-account-class.js +1 -1
  49. package/dist/models/bank-transaction-response-class.d.ts +7 -1
  50. package/dist/models/bank-transaction-response-class.js +1 -1
  51. package/dist/models/create-bank-account-request-dto.d.ts +15 -3
  52. package/dist/models/create-bank-account-request-dto.js +1 -1
  53. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  54. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  55. package/dist/models/create-payment-request-dto.d.ts +4 -4
  56. package/dist/models/create-payment-request-dto.js +1 -1
  57. package/dist/models/create-refund-request-dto.d.ts +1 -1
  58. package/dist/models/create-refund-request-dto.js +1 -1
  59. package/dist/models/create-refund-response-class.d.ts +1 -1
  60. package/dist/models/create-refund-response-class.js +1 -1
  61. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  62. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  63. package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
  64. package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
  65. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  66. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  67. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  68. package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.js} +1 -1
  69. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  70. package/dist/models/get-bank-transactions-response-class.js +1 -1
  71. package/dist/models/get-refund-response-class.d.ts +1 -1
  72. package/dist/models/get-refund-response-class.js +1 -1
  73. package/dist/models/get-request-dto.d.ts +2 -2
  74. package/dist/models/get-request-dto.js +1 -1
  75. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  76. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  77. package/dist/models/index.d.ts +10 -27
  78. package/dist/models/index.js +10 -27
  79. package/dist/models/inline-response200.d.ts +1 -1
  80. package/dist/models/inline-response200.js +1 -1
  81. package/dist/models/inline-response503.d.ts +1 -1
  82. package/dist/models/inline-response503.js +1 -1
  83. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  84. package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
  85. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  86. package/dist/models/list-bank-transactions-response-class.js +1 -1
  87. package/dist/models/list-refunds-response-class.d.ts +1 -1
  88. package/dist/models/list-refunds-response-class.js +1 -1
  89. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  90. package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
  91. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  92. package/dist/models/primary-bank-account-response-class.js +15 -0
  93. package/dist/models/refund-class.d.ts +2 -1
  94. package/dist/models/refund-class.js +3 -2
  95. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  96. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  97. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  98. package/dist/models/tenant-bank-account-response-class.js +1 -1
  99. package/dist/models/transaction-class.d.ts +1 -1
  100. package/dist/models/transaction-class.js +1 -1
  101. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  102. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  103. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  104. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  105. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  106. package/dist/models/update-bank-account-request-dto.js +15 -0
  107. package/dist/models/update-bank-account-response-class.d.ts +25 -0
  108. package/dist/models/update-bank-account-response-class.js +15 -0
  109. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  110. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  111. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  112. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  113. package/index.ts +1 -1
  114. package/models/bank-account-class.ts +23 -4
  115. package/models/bank-transaction-response-class.ts +7 -1
  116. package/models/create-bank-account-request-dto.ts +15 -3
  117. package/models/create-payment-reminder-request-dto.ts +1 -1
  118. package/models/create-payment-request-dto.ts +4 -4
  119. package/models/create-refund-request-dto.ts +1 -1
  120. package/models/create-refund-response-class.ts +1 -1
  121. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  122. package/models/create-tenant-bank-account-response-class.ts +31 -0
  123. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  124. package/models/get-bank-account-response-class.ts +31 -0
  125. package/models/get-bank-transactions-response-class.ts +1 -1
  126. package/models/get-refund-response-class.ts +1 -1
  127. package/models/get-request-dto.ts +2 -2
  128. package/models/get-tenant-bank-account-response-class.ts +1 -1
  129. package/models/index.ts +10 -27
  130. package/models/inline-response200.ts +1 -1
  131. package/models/inline-response503.ts +1 -1
  132. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  133. package/models/list-bank-transactions-response-class.ts +1 -1
  134. package/models/list-refunds-response-class.ts +1 -1
  135. package/models/list-tenant-bank-account-response-class.ts +37 -0
  136. package/models/primary-bank-account-response-class.ts +48 -0
  137. package/models/refund-class.ts +3 -2
  138. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  139. package/models/tenant-bank-account-response-class.ts +1 -1
  140. package/models/transaction-class.ts +1 -1
  141. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  142. package/models/update-bank-account-request-dto-rest.ts +36 -0
  143. package/models/update-bank-account-request-dto.ts +42 -0
  144. package/models/update-bank-account-response-class.ts +31 -0
  145. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  146. package/models/validate-pspconfig-request-dto.ts +2 -12
  147. package/package.json +1 -1
  148. package/dist/models/billing-profile-dto.d.ts +0 -38
  149. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  150. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  151. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  152. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  153. package/dist/models/complete-payment-setup-response-class.js +0 -15
  154. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  155. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  156. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  157. package/dist/models/create-payment-method-response-class.js +0 -15
  158. package/dist/models/create-payment-response-class.d.ts +0 -25
  159. package/dist/models/create-payment-response-class.js +0 -15
  160. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  161. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  162. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  163. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  164. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  165. package/dist/models/get-payment-method-response-class.js +0 -15
  166. package/dist/models/get-payment-response-class.d.ts +0 -25
  167. package/dist/models/get-payment-response-class.js +0 -15
  168. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  169. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  170. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  171. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  172. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  173. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  174. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  175. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  176. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  177. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  178. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  179. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  180. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  181. package/dist/models/list-bank-accounts-response-class.js +0 -15
  182. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  183. package/dist/models/list-payment-methods-response-class.js +0 -15
  184. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  185. package/dist/models/list-payment-reminders-response-class.js +0 -15
  186. package/dist/models/list-payments-response-class.d.ts +0 -31
  187. package/dist/models/list-payments-response-class.js +0 -15
  188. package/dist/models/payment-class.d.ts +0 -103
  189. package/dist/models/payment-class.js +0 -15
  190. package/dist/models/payment-method-class.d.ts +0 -66
  191. package/dist/models/payment-method-class.js +0 -15
  192. package/dist/models/payment-reminder-class.d.ts +0 -112
  193. package/dist/models/payment-reminder-class.js +0 -36
  194. package/dist/models/sepa-direct-dto.d.ts +0 -24
  195. package/dist/models/sepa-direct-dto.js +0 -15
  196. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  197. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  198. package/models/billing-profile-dto.ts +0 -44
  199. package/models/billing-profile-limited-response-dto.ts +0 -60
  200. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  201. package/models/complete-payment-setup-request-dto.ts +0 -38
  202. package/models/complete-payment-setup-response-class.ts +0 -31
  203. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  204. package/models/create-payment-method-response-class.ts +0 -31
  205. package/models/create-payment-response-class.ts +0 -31
  206. package/models/create-psp-payment-method-request-dto.ts +0 -70
  207. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  208. package/models/get-payment-method-response-class.ts +0 -31
  209. package/models/get-payment-response-class.ts +0 -31
  210. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  211. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  212. package/models/initiate-payment-setup-request-dto.ts +0 -50
  213. package/models/initiate-payment-setup-response-class.ts +0 -38
  214. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  215. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  216. package/models/list-bank-accounts-response-class.ts +0 -37
  217. package/models/list-payment-methods-response-class.ts +0 -37
  218. package/models/list-payment-reminders-response-class.ts +0 -37
  219. package/models/list-payments-response-class.ts +0 -37
  220. package/models/payment-class.ts +0 -109
  221. package/models/payment-method-class.ts +0 -72
  222. package/models/payment-reminder-class.ts +0 -122
  223. package/models/sepa-direct-dto.ts +0 -30
  224. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -23,8 +23,12 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateTenantBankAccountRequestDto } from '../models';
25
25
  // @ts-ignore
26
+ import { CreateTenantBankAccountResponseClass } from '../models';
27
+ // @ts-ignore
26
28
  import { GetTenantBankAccountResponseClass } from '../models';
27
29
  // @ts-ignore
30
+ import { ListTenantBankAccountResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { UpdateTenantBankAccountRestRequestDto } from '../models';
29
33
  /**
30
34
  * TenantBankAccountApi - axios parameter creator
@@ -33,7 +37,8 @@ import { UpdateTenantBankAccountRestRequestDto } from '../models';
33
37
  export const TenantBankAccountApiAxiosParamCreator = function (configuration?: Configuration) {
34
38
  return {
35
39
  /**
36
- *
40
+ * Create a new tenant bank account
41
+ * @summary Create the Tenant Bank Account
37
42
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
38
43
  * @param {string} [authorization] Bearer Token
39
44
  * @param {*} [options] Override http request option.
@@ -79,7 +84,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
79
84
  };
80
85
  },
81
86
  /**
82
- *
87
+ * Deletes a tenant bank account by code
88
+ * @summary Delete the tenant bank account
83
89
  * @param {string} code Unique identifier for the object.
84
90
  * @param {string} [authorization] Bearer Token
85
91
  * @param {*} [options] Override http request option.
@@ -123,14 +129,14 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
123
129
  };
124
130
  },
125
131
  /**
126
- *
132
+ * Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
133
+ * @summary Retrieve the Tenant Bank Account
127
134
  * @param {string} code Unique identifier for the object.
128
135
  * @param {string} [authorization] Bearer Token
129
- * @param {string} [expand] Expand the response with additional entities
130
136
  * @param {*} [options] Override http request option.
131
137
  * @throws {RequiredError}
132
138
  */
133
- getTenantBankAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
139
+ getTenantBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
140
  // verify required parameter 'code' is not null or undefined
135
141
  assertParamExists('getTenantBankAccount', 'code', code)
136
142
  const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
@@ -152,10 +158,6 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
152
158
  // http bearer authentication required
153
159
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
154
160
 
155
- if (expand !== undefined) {
156
- localVarQueryParameter['expand'] = expand;
157
- }
158
-
159
161
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
160
162
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
161
163
  }
@@ -172,14 +174,15 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
172
174
  };
173
175
  },
174
176
  /**
175
- *
177
+ * 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.
178
+ * @summary List Tenant Bank Accounts
176
179
  * @param {string} [authorization] Bearer Token
177
180
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
178
181
  * @param {any} [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.
179
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
180
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
182
+ * @param {any} [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;
183
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
181
184
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
182
- * @param {string} [expand] Expand the response with additional entities
185
+ * @param {string} [expand] No expand is available for this tenant bank accounts
183
186
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
184
187
  * @param {*} [options] Override http request option.
185
188
  * @throws {RequiredError}
@@ -247,7 +250,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
247
250
  };
248
251
  },
249
252
  /**
250
- *
253
+ * Update a tenant bank account by code
254
+ * @summary Update the tenant bank account
251
255
  * @param {string} code Unique identifier for the object.
252
256
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
253
257
  * @param {string} [authorization] Bearer Token
@@ -307,65 +311,69 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
307
311
  const localVarAxiosParamCreator = TenantBankAccountApiAxiosParamCreator(configuration)
308
312
  return {
309
313
  /**
310
- *
314
+ * Create a new tenant bank account
315
+ * @summary Create the Tenant Bank Account
311
316
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
312
317
  * @param {string} [authorization] Bearer Token
313
318
  * @param {*} [options] Override http request option.
314
319
  * @throws {RequiredError}
315
320
  */
316
- async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
321
+ async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantBankAccountResponseClass>> {
317
322
  const localVarAxiosArgs = await localVarAxiosParamCreator.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options);
318
323
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
324
  },
320
325
  /**
321
- *
326
+ * Deletes a tenant bank account by code
327
+ * @summary Delete the tenant bank account
322
328
  * @param {string} code Unique identifier for the object.
323
329
  * @param {string} [authorization] Bearer Token
324
330
  * @param {*} [options] Override http request option.
325
331
  * @throws {RequiredError}
326
332
  */
327
- async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
333
+ async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
328
334
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTenantBankAccount(code, authorization, options);
329
335
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
336
  },
331
337
  /**
332
- *
338
+ * Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
339
+ * @summary Retrieve the Tenant Bank Account
333
340
  * @param {string} code Unique identifier for the object.
334
341
  * @param {string} [authorization] Bearer Token
335
- * @param {string} [expand] Expand the response with additional entities
336
342
  * @param {*} [options] Override http request option.
337
343
  * @throws {RequiredError}
338
344
  */
339
- async getTenantBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTenantBankAccountResponseClass>> {
340
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization, expand, options);
345
+ async getTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTenantBankAccountResponseClass>> {
346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization, options);
341
347
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
348
  },
343
349
  /**
344
- *
350
+ * 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.
351
+ * @summary List Tenant Bank Accounts
345
352
  * @param {string} [authorization] Bearer Token
346
353
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
347
354
  * @param {any} [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.
348
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
349
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
355
+ * @param {any} [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;
356
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
350
357
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
351
- * @param {string} [expand] Expand the response with additional entities
358
+ * @param {string} [expand] No expand is available for this tenant bank accounts
352
359
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
353
360
  * @param {*} [options] Override http request option.
354
361
  * @throws {RequiredError}
355
362
  */
356
- async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
363
+ async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>> {
357
364
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
358
365
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
359
366
  },
360
367
  /**
361
- *
368
+ * Update a tenant bank account by code
369
+ * @summary Update the tenant bank account
362
370
  * @param {string} code Unique identifier for the object.
363
371
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
364
372
  * @param {string} [authorization] Bearer Token
365
373
  * @param {*} [options] Override http request option.
366
374
  * @throws {RequiredError}
367
375
  */
368
- async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
376
+ async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantBankAccountResponseClass>> {
369
377
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options);
370
378
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
371
379
  },
@@ -380,61 +388,65 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
380
388
  const localVarFp = TenantBankAccountApiFp(configuration)
381
389
  return {
382
390
  /**
383
- *
391
+ * Create a new tenant bank account
392
+ * @summary Create the Tenant Bank Account
384
393
  * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
385
394
  * @param {string} [authorization] Bearer Token
386
395
  * @param {*} [options] Override http request option.
387
396
  * @throws {RequiredError}
388
397
  */
389
- createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
398
+ createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantBankAccountResponseClass> {
390
399
  return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
391
400
  },
392
401
  /**
393
- *
402
+ * Deletes a tenant bank account by code
403
+ * @summary Delete the tenant bank account
394
404
  * @param {string} code Unique identifier for the object.
395
405
  * @param {string} [authorization] Bearer Token
396
406
  * @param {*} [options] Override http request option.
397
407
  * @throws {RequiredError}
398
408
  */
399
- deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
409
+ deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
400
410
  return localVarFp.deleteTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
401
411
  },
402
412
  /**
403
- *
413
+ * Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
414
+ * @summary Retrieve the Tenant Bank Account
404
415
  * @param {string} code Unique identifier for the object.
405
416
  * @param {string} [authorization] Bearer Token
406
- * @param {string} [expand] Expand the response with additional entities
407
417
  * @param {*} [options] Override http request option.
408
418
  * @throws {RequiredError}
409
419
  */
410
- getTenantBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTenantBankAccountResponseClass> {
411
- return localVarFp.getTenantBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
420
+ getTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetTenantBankAccountResponseClass> {
421
+ return localVarFp.getTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
412
422
  },
413
423
  /**
414
- *
424
+ * 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.
425
+ * @summary List Tenant Bank Accounts
415
426
  * @param {string} [authorization] Bearer Token
416
427
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
417
428
  * @param {any} [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.
418
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
419
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
429
+ * @param {any} [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;
430
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
420
431
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
421
- * @param {string} [expand] Expand the response with additional entities
432
+ * @param {string} [expand] No expand is available for this tenant bank accounts
422
433
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
423
434
  * @param {*} [options] Override http request option.
424
435
  * @throws {RequiredError}
425
436
  */
426
- listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
437
+ listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListTenantBankAccountResponseClass> {
427
438
  return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
428
439
  },
429
440
  /**
430
- *
441
+ * Update a tenant bank account by code
442
+ * @summary Update the tenant bank account
431
443
  * @param {string} code Unique identifier for the object.
432
444
  * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
433
445
  * @param {string} [authorization] Bearer Token
434
446
  * @param {*} [options] Override http request option.
435
447
  * @throws {RequiredError}
436
448
  */
437
- updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
449
+ updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantBankAccountResponseClass> {
438
450
  return localVarFp.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options).then((request) => request(axios, basePath));
439
451
  },
440
452
  };
@@ -501,13 +513,6 @@ export interface TenantBankAccountApiGetTenantBankAccountRequest {
501
513
  * @memberof TenantBankAccountApiGetTenantBankAccount
502
514
  */
503
515
  readonly authorization?: string
504
-
505
- /**
506
- * Expand the response with additional entities
507
- * @type {string}
508
- * @memberof TenantBankAccountApiGetTenantBankAccount
509
- */
510
- readonly expand?: string
511
516
  }
512
517
 
513
518
  /**
@@ -538,14 +543,14 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
538
543
  readonly pageToken?: any
539
544
 
540
545
  /**
541
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
546
+ * 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;
542
547
  * @type {any}
543
548
  * @memberof TenantBankAccountApiListTenantBankAccounts
544
549
  */
545
550
  readonly filter?: any
546
551
 
547
552
  /**
548
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
553
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
549
554
  * @type {any}
550
555
  * @memberof TenantBankAccountApiListTenantBankAccounts
551
556
  */
@@ -559,7 +564,7 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
559
564
  readonly order?: any
560
565
 
561
566
  /**
562
- * Expand the response with additional entities
567
+ * No expand is available for this tenant bank accounts
563
568
  * @type {string}
564
569
  * @memberof TenantBankAccountApiListTenantBankAccounts
565
570
  */
@@ -609,7 +614,8 @@ export interface TenantBankAccountApiUpdateTenantBankAccountRequest {
609
614
  */
610
615
  export class TenantBankAccountApi extends BaseAPI {
611
616
  /**
612
- *
617
+ * Create a new tenant bank account
618
+ * @summary Create the Tenant Bank Account
613
619
  * @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
614
620
  * @param {*} [options] Override http request option.
615
621
  * @throws {RequiredError}
@@ -620,7 +626,8 @@ export class TenantBankAccountApi extends BaseAPI {
620
626
  }
621
627
 
622
628
  /**
623
- *
629
+ * Deletes a tenant bank account by code
630
+ * @summary Delete the tenant bank account
624
631
  * @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
625
632
  * @param {*} [options] Override http request option.
626
633
  * @throws {RequiredError}
@@ -631,18 +638,20 @@ export class TenantBankAccountApi extends BaseAPI {
631
638
  }
632
639
 
633
640
  /**
634
- *
641
+ * Retrieves the details of the Tenant Bank Account that was previously created. Supply the unique Tenant Bank Account code that was returned when you created it and Emil Api will return the corresponding Tenant Bank Account information.
642
+ * @summary Retrieve the Tenant Bank Account
635
643
  * @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
636
644
  * @param {*} [options] Override http request option.
637
645
  * @throws {RequiredError}
638
646
  * @memberof TenantBankAccountApi
639
647
  */
640
648
  public getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig) {
641
- return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
649
+ return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
642
650
  }
643
651
 
644
652
  /**
645
- *
653
+ * 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.
654
+ * @summary List Tenant Bank Accounts
646
655
  * @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
647
656
  * @param {*} [options] Override http request option.
648
657
  * @throws {RequiredError}
@@ -653,7 +662,8 @@ export class TenantBankAccountApi extends BaseAPI {
653
662
  }
654
663
 
655
664
  /**
656
- *
665
+ * Update a tenant bank account by code
666
+ * @summary Update the tenant bank account
657
667
  * @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
658
668
  * @param {*} [options] Override http request option.
659
669
  * @throws {RequiredError}
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
package/api.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
package/base.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -102,7 +102,11 @@ export class BaseAPI {
102
102
  }
103
103
 
104
104
  selectEnvironment(env: Environment) {
105
- this.configuration.basePath = env;
105
+ this.selectBasePath(env);
106
+ }
107
+
108
+ selectBasePath(path: string) {
109
+ this.configuration.basePath = path;
106
110
  }
107
111
 
108
112
  async authorize(username: string, password: string): Promise<void> {
package/common.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -140,7 +140,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
140
140
  /* eslint-disable */
141
141
  /**
142
142
  * Emil Payment Service
143
- * 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.
143
+ * 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.
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
146
  * Contact: kontakt@emil.de
package/configuration.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de