@emilgroup/payment-sdk 1.4.1-beta.22 → 1.4.1-beta.24

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 (144) hide show
  1. package/.openapi-generator/FILES +0 -7
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +19 -461
  4. package/api/bank-transaction-api.ts +1 -1
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +35 -142
  7. package/api/payment-reminders-api.ts +1 -1
  8. package/api/payment-setup-api.ts +1 -1
  9. package/api/payments-api.ts +39 -42
  10. package/api/refunds-api.ts +1 -1
  11. package/api/tenant-bank-account-api.ts +9 -9
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +1 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +13 -255
  18. package/dist/api/bank-accounts-api.js +17 -399
  19. package/dist/api/bank-transaction-api.d.ts +1 -1
  20. package/dist/api/bank-transaction-api.js +1 -1
  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 +26 -81
  24. package/dist/api/payment-methods-api.js +31 -127
  25. package/dist/api/payment-reminders-api.d.ts +1 -1
  26. package/dist/api/payment-reminders-api.js +1 -1
  27. package/dist/api/payment-setup-api.d.ts +1 -1
  28. package/dist/api/payment-setup-api.js +1 -1
  29. package/dist/api/payments-api.d.ts +30 -30
  30. package/dist/api/payments-api.js +35 -37
  31. package/dist/api/refunds-api.d.ts +1 -1
  32. package/dist/api/refunds-api.js +1 -1
  33. package/dist/api/tenant-bank-account-api.d.ts +9 -9
  34. package/dist/api/tenant-bank-account-api.js +4 -4
  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 +1 -1
  40. package/dist/base.js +1 -1
  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-transaction-response-class.d.ts +1 -1
  48. package/dist/models/bank-transaction-response-class.js +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +1 -1
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/create-refund-request-dto.d.ts +1 -1
  54. package/dist/models/create-refund-request-dto.js +1 -1
  55. package/dist/models/create-refund-response-class.d.ts +1 -1
  56. package/dist/models/create-refund-response-class.js +1 -1
  57. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  58. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  59. package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
  60. package/dist/models/create-tenant-bank-account-response-class.js +1 -1
  61. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  62. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  63. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  64. package/dist/models/get-bank-transactions-response-class.js +1 -1
  65. package/dist/models/get-refund-response-class.d.ts +1 -1
  66. package/dist/models/get-refund-response-class.js +1 -1
  67. package/dist/models/get-request-dto.d.ts +1 -1
  68. package/dist/models/get-request-dto.js +1 -1
  69. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  70. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  71. package/dist/models/index.d.ts +0 -7
  72. package/dist/models/index.js +0 -7
  73. package/dist/models/inline-response200.d.ts +1 -1
  74. package/dist/models/inline-response200.js +1 -1
  75. package/dist/models/inline-response503.d.ts +1 -1
  76. package/dist/models/inline-response503.js +1 -1
  77. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
  78. package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
  79. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  80. package/dist/models/list-bank-transactions-response-class.js +1 -1
  81. package/dist/models/list-refunds-response-class.d.ts +1 -1
  82. package/dist/models/list-refunds-response-class.js +1 -1
  83. package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
  84. package/dist/models/list-tenant-bank-account-response-class.js +1 -1
  85. package/dist/models/refund-class.d.ts +1 -1
  86. package/dist/models/refund-class.js +1 -1
  87. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  88. package/dist/models/tenant-bank-account-response-class.js +1 -1
  89. package/dist/models/transaction-class.d.ts +1 -1
  90. package/dist/models/transaction-class.js +1 -1
  91. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
  92. package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
  93. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  94. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  95. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -1
  96. package/dist/models/validate-pspconfig-request-dto.js +1 -1
  97. package/index.ts +1 -1
  98. package/models/bank-transaction-response-class.ts +1 -1
  99. package/models/create-payment-reminder-request-dto.ts +1 -1
  100. package/models/create-payment-request-dto.ts +1 -1
  101. package/models/create-refund-request-dto.ts +1 -1
  102. package/models/create-refund-response-class.ts +1 -1
  103. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  104. package/models/create-tenant-bank-account-response-class.ts +1 -1
  105. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  106. package/models/get-bank-transactions-response-class.ts +1 -1
  107. package/models/get-refund-response-class.ts +1 -1
  108. package/models/get-request-dto.ts +1 -1
  109. package/models/get-tenant-bank-account-response-class.ts +1 -1
  110. package/models/index.ts +0 -7
  111. package/models/inline-response200.ts +1 -1
  112. package/models/inline-response503.ts +1 -1
  113. package/models/link-bank-transaction-request-dto-rest.ts +1 -1
  114. package/models/list-bank-transactions-response-class.ts +1 -1
  115. package/models/list-refunds-response-class.ts +1 -1
  116. package/models/list-tenant-bank-account-response-class.ts +1 -1
  117. package/models/refund-class.ts +1 -1
  118. package/models/tenant-bank-account-response-class.ts +1 -1
  119. package/models/transaction-class.ts +1 -1
  120. package/models/unlink-bank-transaction-request-dto-rest.ts +1 -1
  121. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  122. package/models/validate-pspconfig-request-dto.ts +1 -1
  123. package/package.json +1 -1
  124. package/dist/models/bank-account-class.d.ts +0 -79
  125. package/dist/models/bank-account-class.js +0 -15
  126. package/dist/models/create-bank-account-request-dto.d.ts +0 -36
  127. package/dist/models/create-bank-account-request-dto.js +0 -15
  128. package/dist/models/get-bank-account-response-class.d.ts +0 -25
  129. package/dist/models/get-bank-account-response-class.js +0 -15
  130. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  131. package/dist/models/primary-bank-account-response-class.js +0 -15
  132. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
  133. package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
  134. package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
  135. package/dist/models/update-bank-account-request-dto-rest.js +0 -15
  136. package/dist/models/update-bank-account-request-dto.d.ts +0 -36
  137. package/dist/models/update-bank-account-request-dto.js +0 -15
  138. package/models/bank-account-class.ts +0 -85
  139. package/models/create-bank-account-request-dto.ts +0 -42
  140. package/models/get-bank-account-response-class.ts +0 -31
  141. package/models/primary-bank-account-response-class.ts +0 -48
  142. package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
  143. package/models/update-bank-account-request-dto-rest.ts +0 -36
  144. package/models/update-bank-account-request-dto.ts +0 -42
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Emil Payment Service
6
- * 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
+ * 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.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -95,20 +95,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * Creates a bank account for a specified account.
97
97
  * @summary Create a bank account
98
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
103
+ createBankAccount: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('createBankAccount', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/bank-accounts";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -142,103 +142,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Deletes a bank account by code
146
- * @summary Delete the bank account
147
- * @param {string} code Unique identifier for the object.
148
- * @param {string} [authorization] Bearer Token
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- deleteBankAccount: function (code, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
158
- case 0:
159
- // verify required parameter 'code' is not null or undefined
160
- (0, common_1.assertParamExists)('deleteBankAccount', 'code', code);
161
- localVarPath = "/paymentservice/v1/bank-accounts/{code}"
162
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
- if (configuration) {
165
- baseOptions = configuration.baseOptions;
166
- baseAccessToken = configuration.accessToken;
167
- }
168
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
- localVarHeaderParameter = {};
170
- localVarQueryParameter = {};
171
- // authentication bearer required
172
- // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
- case 1:
175
- // authentication bearer required
176
- // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
- }
181
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- return [2 /*return*/, {
185
- url: (0, common_1.toPathString)(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- }];
188
- }
189
- });
190
- });
191
- },
192
- /**
193
- * Retrieves the details of the Bank Account that was previously created. Supply the unique Bank Account code that was returned when you created it and Emil Api will return the corresponding Bank Account information.
194
- * @summary Retrieve the Bank Account
195
- * @param {string} code Unique identifier for the object.
196
- * @param {string} [authorization] Bearer Token
197
- * @param {*} [options] Override http request option.
198
- * @throws {RequiredError}
199
- */
200
- getBankAccount: function (code, authorization, options) {
201
- if (options === void 0) { options = {}; }
202
- return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
206
- case 0:
207
- // verify required parameter 'code' is not null or undefined
208
- (0, common_1.assertParamExists)('getBankAccount', 'code', code);
209
- localVarPath = "/paymentservice/v1/bank-accounts/{code}"
210
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
211
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
- if (configuration) {
213
- baseOptions = configuration.baseOptions;
214
- baseAccessToken = configuration.accessToken;
215
- }
216
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
- localVarHeaderParameter = {};
218
- localVarQueryParameter = {};
219
- // authentication bearer required
220
- // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
- case 1:
223
- // authentication bearer required
224
- // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
- }
229
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
- return [2 /*return*/, {
233
- url: (0, common_1.toPathString)(localVarUrlObj),
234
- options: localVarRequestOptions,
235
- }];
236
- }
237
- });
238
- });
239
- },
240
- /**
241
- * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
145
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
242
146
  * @summary List bank accounts
243
147
  * @param {string} [authorization] Bearer Token
244
148
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -309,112 +213,6 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
309
213
  });
310
214
  });
311
215
  },
312
- /**
313
- * Set primary bank account
314
- * @summary Set primary bank account
315
- * @param {string} code Code of the bank account to set primary
316
- * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
317
- * @param {string} [authorization] Bearer Token
318
- * @param {*} [options] Override http request option.
319
- * @throws {RequiredError}
320
- */
321
- setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
322
- if (options === void 0) { options = {}; }
323
- return __awaiter(_this, void 0, void 0, function () {
324
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
325
- return __generator(this, function (_a) {
326
- switch (_a.label) {
327
- case 0:
328
- // verify required parameter 'code' is not null or undefined
329
- (0, common_1.assertParamExists)('setPrimaryBankAccount', 'code', code);
330
- // verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
331
- (0, common_1.assertParamExists)('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest);
332
- localVarPath = "/paymentservice/v1/bank-accounts/{code}/primary"
333
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
334
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
335
- if (configuration) {
336
- baseOptions = configuration.baseOptions;
337
- baseAccessToken = configuration.accessToken;
338
- }
339
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
340
- localVarHeaderParameter = {};
341
- localVarQueryParameter = {};
342
- // authentication bearer required
343
- // http bearer authentication required
344
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
345
- case 1:
346
- // authentication bearer required
347
- // http bearer authentication required
348
- _a.sent();
349
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
351
- }
352
- localVarHeaderParameter['Content-Type'] = 'application/json';
353
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
354
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
356
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration);
357
- return [2 /*return*/, {
358
- url: (0, common_1.toPathString)(localVarUrlObj),
359
- options: localVarRequestOptions,
360
- }];
361
- }
362
- });
363
- });
364
- },
365
- /**
366
- * Update a bank account by code
367
- * @summary Update the Update bank account
368
- * @param {string} code Unique identifier for the object.
369
- * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
370
- * @param {string} [authorization] Bearer Token
371
- * @param {*} [options] Override http request option.
372
- * @throws {RequiredError}
373
- */
374
- updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
375
- if (options === void 0) { options = {}; }
376
- return __awaiter(_this, void 0, void 0, function () {
377
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
378
- return __generator(this, function (_a) {
379
- switch (_a.label) {
380
- case 0:
381
- // verify required parameter 'code' is not null or undefined
382
- (0, common_1.assertParamExists)('updateBankAccount', 'code', code);
383
- // verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
384
- (0, common_1.assertParamExists)('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest);
385
- localVarPath = "/paymentservice/v1/bank-accounts/{code}"
386
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
387
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
388
- if (configuration) {
389
- baseOptions = configuration.baseOptions;
390
- baseAccessToken = configuration.accessToken;
391
- }
392
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
393
- localVarHeaderParameter = {};
394
- localVarQueryParameter = {};
395
- // authentication bearer required
396
- // http bearer authentication required
397
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
398
- case 1:
399
- // authentication bearer required
400
- // http bearer authentication required
401
- _a.sent();
402
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
403
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
404
- }
405
- localVarHeaderParameter['Content-Type'] = 'application/json';
406
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
407
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
408
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
409
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration);
410
- return [2 /*return*/, {
411
- url: (0, common_1.toPathString)(localVarUrlObj),
412
- options: localVarRequestOptions,
413
- }];
414
- }
415
- });
416
- });
417
- },
418
216
  };
419
217
  };
420
218
  exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
@@ -428,17 +226,17 @@ var BankAccountsApiFp = function (configuration) {
428
226
  /**
429
227
  * Creates a bank account for a specified account.
430
228
  * @summary Create a bank account
431
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
229
+ * @param {object} body
432
230
  * @param {string} [authorization] Bearer Token
433
231
  * @param {*} [options] Override http request option.
434
232
  * @throws {RequiredError}
435
233
  */
436
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
234
+ createBankAccount: function (body, authorization, options) {
437
235
  return __awaiter(this, void 0, void 0, function () {
438
236
  var localVarAxiosArgs;
439
237
  return __generator(this, function (_a) {
440
238
  switch (_a.label) {
441
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(body, authorization, options)];
442
240
  case 1:
443
241
  localVarAxiosArgs = _a.sent();
444
242
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -447,49 +245,7 @@ var BankAccountsApiFp = function (configuration) {
447
245
  });
448
246
  },
449
247
  /**
450
- * Deletes a bank account by code
451
- * @summary Delete the bank account
452
- * @param {string} code Unique identifier for the object.
453
- * @param {string} [authorization] Bearer Token
454
- * @param {*} [options] Override http request option.
455
- * @throws {RequiredError}
456
- */
457
- deleteBankAccount: function (code, authorization, options) {
458
- return __awaiter(this, void 0, void 0, function () {
459
- var localVarAxiosArgs;
460
- return __generator(this, function (_a) {
461
- switch (_a.label) {
462
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteBankAccount(code, authorization, options)];
463
- case 1:
464
- localVarAxiosArgs = _a.sent();
465
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
466
- }
467
- });
468
- });
469
- },
470
- /**
471
- * Retrieves the details of the Bank Account that was previously created. Supply the unique Bank Account code that was returned when you created it and Emil Api will return the corresponding Bank Account information.
472
- * @summary Retrieve the Bank Account
473
- * @param {string} code Unique identifier for the object.
474
- * @param {string} [authorization] Bearer Token
475
- * @param {*} [options] Override http request option.
476
- * @throws {RequiredError}
477
- */
478
- getBankAccount: function (code, authorization, options) {
479
- return __awaiter(this, void 0, void 0, function () {
480
- var localVarAxiosArgs;
481
- return __generator(this, function (_a) {
482
- switch (_a.label) {
483
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankAccount(code, authorization, options)];
484
- case 1:
485
- localVarAxiosArgs = _a.sent();
486
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
487
- }
488
- });
489
- });
490
- },
491
- /**
492
- * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
248
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
493
249
  * @summary List bank accounts
494
250
  * @param {string} [authorization] Bearer Token
495
251
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -515,50 +271,6 @@ var BankAccountsApiFp = function (configuration) {
515
271
  });
516
272
  });
517
273
  },
518
- /**
519
- * Set primary bank account
520
- * @summary Set primary bank account
521
- * @param {string} code Code of the bank account to set primary
522
- * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
523
- * @param {string} [authorization] Bearer Token
524
- * @param {*} [options] Override http request option.
525
- * @throws {RequiredError}
526
- */
527
- setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
528
- return __awaiter(this, void 0, void 0, function () {
529
- var localVarAxiosArgs;
530
- return __generator(this, function (_a) {
531
- switch (_a.label) {
532
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options)];
533
- case 1:
534
- localVarAxiosArgs = _a.sent();
535
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
536
- }
537
- });
538
- });
539
- },
540
- /**
541
- * Update a bank account by code
542
- * @summary Update the Update bank account
543
- * @param {string} code Unique identifier for the object.
544
- * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
545
- * @param {string} [authorization] Bearer Token
546
- * @param {*} [options] Override http request option.
547
- * @throws {RequiredError}
548
- */
549
- updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- var localVarAxiosArgs;
552
- return __generator(this, function (_a) {
553
- switch (_a.label) {
554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options)];
555
- case 1:
556
- localVarAxiosArgs = _a.sent();
557
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
- }
559
- });
560
- });
561
- },
562
274
  };
563
275
  };
564
276
  exports.BankAccountsApiFp = BankAccountsApiFp;
@@ -572,38 +284,16 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
572
284
  /**
573
285
  * Creates a bank account for a specified account.
574
286
  * @summary Create a bank account
575
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
287
+ * @param {object} body
576
288
  * @param {string} [authorization] Bearer Token
577
289
  * @param {*} [options] Override http request option.
578
290
  * @throws {RequiredError}
579
291
  */
580
- createBankAccount: function (createBankAccountRequestDto, authorization, options) {
581
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
292
+ createBankAccount: function (body, authorization, options) {
293
+ return localVarFp.createBankAccount(body, authorization, options).then(function (request) { return request(axios, basePath); });
582
294
  },
583
295
  /**
584
- * Deletes a bank account by code
585
- * @summary Delete the bank account
586
- * @param {string} code Unique identifier for the object.
587
- * @param {string} [authorization] Bearer Token
588
- * @param {*} [options] Override http request option.
589
- * @throws {RequiredError}
590
- */
591
- deleteBankAccount: function (code, authorization, options) {
592
- return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
593
- },
594
- /**
595
- * Retrieves the details of the Bank Account that was previously created. Supply the unique Bank Account code that was returned when you created it and Emil Api will return the corresponding Bank Account information.
596
- * @summary Retrieve the Bank Account
597
- * @param {string} code Unique identifier for the object.
598
- * @param {string} [authorization] Bearer Token
599
- * @param {*} [options] Override http request option.
600
- * @throws {RequiredError}
601
- */
602
- getBankAccount: function (code, authorization, options) {
603
- return localVarFp.getBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
604
- },
605
- /**
606
- * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
296
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
607
297
  * @summary List bank accounts
608
298
  * @param {string} [authorization] Bearer Token
609
299
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -619,30 +309,6 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
619
309
  listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
620
310
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
621
311
  },
622
- /**
623
- * Set primary bank account
624
- * @summary Set primary bank account
625
- * @param {string} code Code of the bank account to set primary
626
- * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
627
- * @param {string} [authorization] Bearer Token
628
- * @param {*} [options] Override http request option.
629
- * @throws {RequiredError}
630
- */
631
- setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
632
- return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
633
- },
634
- /**
635
- * Update a bank account by code
636
- * @summary Update the Update bank account
637
- * @param {string} code Unique identifier for the object.
638
- * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
639
- * @param {string} [authorization] Bearer Token
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- */
643
- updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
644
- return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
645
- },
646
312
  };
647
313
  };
648
314
  exports.BankAccountsApiFactory = BankAccountsApiFactory;
@@ -667,34 +333,10 @@ var BankAccountsApi = /** @class */ (function (_super) {
667
333
  */
668
334
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
669
335
  var _this = this;
670
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
671
- };
672
- /**
673
- * Deletes a bank account by code
674
- * @summary Delete the bank account
675
- * @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
676
- * @param {*} [options] Override http request option.
677
- * @throws {RequiredError}
678
- * @memberof BankAccountsApi
679
- */
680
- BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, options) {
681
- var _this = this;
682
- return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
683
- };
684
- /**
685
- * Retrieves the details of the Bank Account that was previously created. Supply the unique Bank Account code that was returned when you created it and Emil Api will return the corresponding Bank Account information.
686
- * @summary Retrieve the Bank Account
687
- * @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
688
- * @param {*} [options] Override http request option.
689
- * @throws {RequiredError}
690
- * @memberof BankAccountsApi
691
- */
692
- BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
693
- var _this = this;
694
- return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
336
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
695
337
  };
696
338
  /**
697
- * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
339
+ * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
698
340
  * @summary List bank accounts
699
341
  * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
700
342
  * @param {*} [options] Override http request option.
@@ -706,30 +348,6 @@ var BankAccountsApi = /** @class */ (function (_super) {
706
348
  if (requestParameters === void 0) { requestParameters = {}; }
707
349
  return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(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); });
708
350
  };
709
- /**
710
- * Set primary bank account
711
- * @summary Set primary bank account
712
- * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
713
- * @param {*} [options] Override http request option.
714
- * @throws {RequiredError}
715
- * @memberof BankAccountsApi
716
- */
717
- BankAccountsApi.prototype.setPrimaryBankAccount = function (requestParameters, options) {
718
- var _this = this;
719
- return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
720
- };
721
- /**
722
- * Update a bank account by code
723
- * @summary Update the Update bank account
724
- * @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
725
- * @param {*} [options] Override http request option.
726
- * @throws {RequiredError}
727
- * @memberof BankAccountsApi
728
- */
729
- BankAccountsApi.prototype.updateBankAccount = function (requestParameters, options) {
730
- var _this = this;
731
- return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
732
- };
733
351
  return BankAccountsApi;
734
352
  }(base_1.BaseAPI));
735
353
  exports.BankAccountsApi = BankAccountsApi;
@@ -1,6 +1,6 @@
1
1
  /**
2
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.
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Emil Payment Service
6
- * 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
+ * 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.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -1,6 +1,6 @@
1
1
  /**
2
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.
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Emil Payment Service
6
- * 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
+ * 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.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de