@emilgroup/payment-sdk 1.4.1-beta.15 → 1.4.1-beta.17

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 (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +346 -22
  4. package/api/bank-transaction-api.ts +12 -12
  5. package/api/payment-methods-api.ts +38 -145
  6. package/api/payment-reminders-api.ts +12 -12
  7. package/api/payments-api.ts +42 -45
  8. package/api/refunds-api.ts +4 -4
  9. package/api/tenant-bank-account-api.ts +20 -20
  10. package/dist/api/bank-accounts-api.d.ts +193 -16
  11. package/dist/api/bank-accounts-api.js +302 -19
  12. package/dist/api/bank-transaction-api.d.ts +12 -12
  13. package/dist/api/bank-transaction-api.js +11 -11
  14. package/dist/api/payment-methods-api.d.ts +29 -84
  15. package/dist/api/payment-methods-api.js +33 -129
  16. package/dist/api/payment-reminders-api.d.ts +12 -12
  17. package/dist/api/payment-reminders-api.js +11 -11
  18. package/dist/api/payments-api.d.ts +33 -33
  19. package/dist/api/payments-api.js +37 -39
  20. package/dist/api/refunds-api.d.ts +4 -4
  21. package/dist/api/refunds-api.js +3 -3
  22. package/dist/api/tenant-bank-account-api.d.ts +20 -20
  23. package/dist/api/tenant-bank-account-api.js +14 -14
  24. package/dist/models/bank-account-class.d.ts +67 -0
  25. package/dist/models/bank-account-class.js +15 -0
  26. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  27. package/dist/models/create-bank-account-request-dto.js +15 -0
  28. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  29. package/dist/models/get-bank-account-response-class.js +15 -0
  30. package/dist/models/index.d.ts +5 -0
  31. package/dist/models/index.js +5 -0
  32. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  33. package/dist/models/primary-bank-account-response-class.js +15 -0
  34. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  35. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  36. package/models/bank-account-class.ts +73 -0
  37. package/models/create-bank-account-request-dto.ts +36 -0
  38. package/models/get-bank-account-response-class.ts +31 -0
  39. package/models/index.ts +5 -0
  40. package/models/primary-bank-account-response-class.ts +48 -0
  41. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  42. package/package.json +1 -1
@@ -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 {object} body
98
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createBankAccount: function (body, authorization, options) {
103
+ createBankAccount: function (createBankAccountRequestDto, 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 'body' is not null or undefined
111
- (0, common_1.assertParamExists)('createBankAccount', 'body', body);
110
+ // verify required parameter 'createBankAccountRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
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)(body, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankAccountRequestDto, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -142,13 +142,109 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
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.
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.
146
242
  * @summary List bank accounts
147
243
  * @param {string} [authorization] Bearer Token
148
244
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
149
245
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
150
246
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
151
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
247
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
152
248
  * @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.
153
249
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
154
250
  * @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.
@@ -213,6 +309,59 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
213
309
  });
214
310
  });
215
311
  },
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
+ },
216
365
  };
217
366
  };
218
367
  exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
@@ -226,17 +375,59 @@ var BankAccountsApiFp = function (configuration) {
226
375
  /**
227
376
  * Creates a bank account for a specified account.
228
377
  * @summary Create a bank account
229
- * @param {object} body
378
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
379
+ * @param {string} [authorization] Bearer Token
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
384
+ return __awaiter(this, void 0, void 0, function () {
385
+ var localVarAxiosArgs;
386
+ return __generator(this, function (_a) {
387
+ switch (_a.label) {
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
389
+ case 1:
390
+ localVarAxiosArgs = _a.sent();
391
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
392
+ }
393
+ });
394
+ });
395
+ },
396
+ /**
397
+ * Deletes a bank account by code
398
+ * @summary Delete the bank account
399
+ * @param {string} code Unique identifier for the object.
400
+ * @param {string} [authorization] Bearer Token
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ deleteBankAccount: function (code, authorization, options) {
405
+ return __awaiter(this, void 0, void 0, function () {
406
+ var localVarAxiosArgs;
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteBankAccount(code, authorization, options)];
410
+ case 1:
411
+ localVarAxiosArgs = _a.sent();
412
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
413
+ }
414
+ });
415
+ });
416
+ },
417
+ /**
418
+ * 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.
419
+ * @summary Retrieve the Bank Account
420
+ * @param {string} code Unique identifier for the object.
230
421
  * @param {string} [authorization] Bearer Token
231
422
  * @param {*} [options] Override http request option.
232
423
  * @throws {RequiredError}
233
424
  */
234
- createBankAccount: function (body, authorization, options) {
425
+ getBankAccount: function (code, authorization, options) {
235
426
  return __awaiter(this, void 0, void 0, function () {
236
427
  var localVarAxiosArgs;
237
428
  return __generator(this, function (_a) {
238
429
  switch (_a.label) {
239
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(body, authorization, options)];
430
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankAccount(code, authorization, options)];
240
431
  case 1:
241
432
  localVarAxiosArgs = _a.sent();
242
433
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -245,13 +436,13 @@ var BankAccountsApiFp = function (configuration) {
245
436
  });
246
437
  },
247
438
  /**
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.
439
+ * 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.
249
440
  * @summary List bank accounts
250
441
  * @param {string} [authorization] Bearer Token
251
442
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
252
443
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
253
444
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
445
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
255
446
  * @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.
256
447
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
257
448
  * @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.
@@ -271,6 +462,28 @@ var BankAccountsApiFp = function (configuration) {
271
462
  });
272
463
  });
273
464
  },
465
+ /**
466
+ * Set Primary Bank account
467
+ * @summary Set Primary Bank account
468
+ * @param {string} code Code of the bank account to set primary
469
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
470
+ * @param {string} [authorization] Bearer Token
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
475
+ return __awaiter(this, void 0, void 0, function () {
476
+ var localVarAxiosArgs;
477
+ return __generator(this, function (_a) {
478
+ switch (_a.label) {
479
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options)];
480
+ case 1:
481
+ localVarAxiosArgs = _a.sent();
482
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
483
+ }
484
+ });
485
+ });
486
+ },
274
487
  };
275
488
  };
276
489
  exports.BankAccountsApiFp = BankAccountsApiFp;
@@ -284,22 +497,44 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
284
497
  /**
285
498
  * Creates a bank account for a specified account.
286
499
  * @summary Create a bank account
287
- * @param {object} body
500
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
501
+ * @param {string} [authorization] Bearer Token
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
506
+ return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
507
+ },
508
+ /**
509
+ * Deletes a bank account by code
510
+ * @summary Delete the bank account
511
+ * @param {string} code Unique identifier for the object.
288
512
  * @param {string} [authorization] Bearer Token
289
513
  * @param {*} [options] Override http request option.
290
514
  * @throws {RequiredError}
291
515
  */
292
- createBankAccount: function (body, authorization, options) {
293
- return localVarFp.createBankAccount(body, authorization, options).then(function (request) { return request(axios, basePath); });
516
+ deleteBankAccount: function (code, authorization, options) {
517
+ return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
294
518
  },
295
519
  /**
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.
520
+ * 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.
521
+ * @summary Retrieve the Bank Account
522
+ * @param {string} code Unique identifier for the object.
523
+ * @param {string} [authorization] Bearer Token
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ getBankAccount: function (code, authorization, options) {
528
+ return localVarFp.getBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
529
+ },
530
+ /**
531
+ * 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.
297
532
  * @summary List bank accounts
298
533
  * @param {string} [authorization] Bearer Token
299
534
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
300
535
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
301
536
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
302
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
537
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
303
538
  * @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.
304
539
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
305
540
  * @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.
@@ -309,6 +544,18 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
309
544
  listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
310
545
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
311
546
  },
547
+ /**
548
+ * Set Primary Bank account
549
+ * @summary Set Primary Bank account
550
+ * @param {string} code Code of the bank account to set primary
551
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
552
+ * @param {string} [authorization] Bearer Token
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
557
+ return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
558
+ },
312
559
  };
313
560
  };
314
561
  exports.BankAccountsApiFactory = BankAccountsApiFactory;
@@ -333,10 +580,34 @@ var BankAccountsApi = /** @class */ (function (_super) {
333
580
  */
334
581
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
335
582
  var _this = this;
336
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
583
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
337
584
  };
338
585
  /**
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.
586
+ * Deletes a bank account by code
587
+ * @summary Delete the bank account
588
+ * @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ * @memberof BankAccountsApi
592
+ */
593
+ BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, options) {
594
+ var _this = this;
595
+ return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
+ };
597
+ /**
598
+ * 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.
599
+ * @summary Retrieve the Bank Account
600
+ * @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ * @memberof BankAccountsApi
604
+ */
605
+ BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
606
+ var _this = this;
607
+ return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
+ };
609
+ /**
610
+ * 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.
340
611
  * @summary List bank accounts
341
612
  * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
342
613
  * @param {*} [options] Override http request option.
@@ -348,6 +619,18 @@ var BankAccountsApi = /** @class */ (function (_super) {
348
619
  if (requestParameters === void 0) { requestParameters = {}; }
349
620
  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); });
350
621
  };
622
+ /**
623
+ * Set Primary Bank account
624
+ * @summary Set Primary Bank account
625
+ * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof BankAccountsApi
629
+ */
630
+ BankAccountsApi.prototype.setPrimaryBankAccount = function (requestParameters, options) {
631
+ var _this = this;
632
+ return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
+ };
351
634
  return BankAccountsApi;
352
635
  }(base_1.BaseAPI));
353
636
  exports.BankAccountsApi = BankAccountsApi;
@@ -22,7 +22,7 @@ import { UnlinkBankTransactionRequestDtoRest } from '../models';
22
22
  */
23
23
  export declare const BankTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
25
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
26
26
  * @summary Retrieve the Bank Transaction
27
27
  * @param {string} code
28
28
  * @param {string} [authorization] Bearer Token
@@ -51,13 +51,13 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
51
51
  */
52
52
  linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
53
  /**
54
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
54
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
55
55
  * @summary List bank transactions
56
56
  * @param {string} [authorization] Bearer Token
57
57
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
58
58
  * @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.
59
59
  * @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
60
- * @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.
60
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
61
61
  * @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.
62
62
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
63
63
  * @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.
@@ -82,7 +82,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
82
82
  */
83
83
  export declare const BankTransactionApiFp: (configuration?: Configuration) => {
84
84
  /**
85
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
85
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
86
86
  * @summary Retrieve the Bank Transaction
87
87
  * @param {string} code
88
88
  * @param {string} [authorization] Bearer Token
@@ -111,13 +111,13 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
111
111
  */
112
112
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
113
113
  /**
114
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
114
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
115
115
  * @summary List bank transactions
116
116
  * @param {string} [authorization] Bearer Token
117
117
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
118
  * @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.
119
119
  * @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
120
- * @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.
120
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
121
121
  * @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.
122
122
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
123
123
  * @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.
@@ -142,7 +142,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
142
142
  */
143
143
  export declare const BankTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
144
144
  /**
145
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
145
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
146
146
  * @summary Retrieve the Bank Transaction
147
147
  * @param {string} code
148
148
  * @param {string} [authorization] Bearer Token
@@ -171,13 +171,13 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
171
171
  */
172
172
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
173
173
  /**
174
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
174
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
175
175
  * @summary List bank transactions
176
176
  * @param {string} [authorization] Bearer Token
177
177
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
178
178
  * @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
179
  * @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
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.
180
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
181
181
  * @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
182
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
183
183
  * @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.
@@ -296,7 +296,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
296
296
  */
297
297
  readonly filter?: any;
298
298
  /**
299
- * 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.
299
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
300
300
  * @type {any}
301
301
  * @memberof BankTransactionApiListBankTransactions
302
302
  */
@@ -353,7 +353,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
353
353
  */
354
354
  export declare class BankTransactionApi extends BaseAPI {
355
355
  /**
356
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
356
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
357
357
  * @summary Retrieve the Bank Transaction
358
358
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
359
359
  * @param {*} [options] Override http request option.
@@ -380,7 +380,7 @@ export declare class BankTransactionApi extends BaseAPI {
380
380
  */
381
381
  linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
382
382
  /**
383
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
383
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
384
384
  * @summary List bank transactions
385
385
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
386
386
  * @param {*} [options] Override http request option.