@emilgroup/payment-sdk 1.4.1-beta.16 → 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 +4 -4
  5. package/api/payment-methods-api.ts +4 -4
  6. package/api/payment-reminders-api.ts +4 -4
  7. package/api/payments-api.ts +4 -4
  8. package/api/refunds-api.ts +4 -4
  9. package/api/tenant-bank-account-api.ts +4 -4
  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 +4 -4
  13. package/dist/api/bank-transaction-api.js +3 -3
  14. package/dist/api/payment-methods-api.d.ts +4 -4
  15. package/dist/api/payment-methods-api.js +3 -3
  16. package/dist/api/payment-reminders-api.d.ts +4 -4
  17. package/dist/api/payment-reminders-api.js +3 -3
  18. package/dist/api/payments-api.d.ts +4 -4
  19. package/dist/api/payments-api.js +3 -3
  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 +4 -4
  23. package/dist/api/tenant-bank-account-api.js +3 -3
  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
@@ -180,7 +180,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
180
180
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
181
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
182
182
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
183
- * @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.
183
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
184
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.
185
185
  * @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.
186
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.
@@ -303,7 +303,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
303
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
304
  * @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.
305
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
306
- * @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.
306
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
307
307
  * @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.
308
308
  * @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.
309
309
  * @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.
@@ -365,7 +365,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
365
365
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
366
  * @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.
367
367
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
368
- * @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.
368
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
369
369
  * @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.
370
370
  * @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.
371
371
  * @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.
@@ -483,7 +483,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
483
483
  readonly filter?: any
484
484
 
485
485
  /**
486
- * Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
486
+ * To search the list by any field, pass search=xxx to fetch the result.
487
487
  * @type {any}
488
488
  * @memberof PaymentRemindersApiListPaymentReminders
489
489
  */
@@ -148,7 +148,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
148
148
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
149
149
  * @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
150
  * @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.
151
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
152
152
  * @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
153
  * @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
154
  * @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.
@@ -261,7 +261,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
261
261
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
262
262
  * @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.
263
263
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
264
- * @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.
264
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
265
265
  * @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.
266
266
  * @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.
267
267
  * @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.
@@ -314,7 +314,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
314
314
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
315
315
  * @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.
316
316
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
317
- * @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.
317
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
318
318
  * @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.
319
319
  * @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.
320
320
  * @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.
@@ -425,7 +425,7 @@ export interface PaymentsApiListPaymentsRequest {
425
425
  readonly filter?: any
426
426
 
427
427
  /**
428
- * Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
428
+ * To search the list by any field, pass search=xxx to fetch the result.
429
429
  * @type {any}
430
430
  * @memberof PaymentsApiListPayments
431
431
  */
@@ -144,7 +144,7 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
144
144
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
145
145
  * @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.
146
146
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
147
- * @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.
147
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
148
148
  * @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.
149
149
  * @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.
150
150
  * @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.
@@ -253,7 +253,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
253
253
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
254
254
  * @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.
255
255
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
256
- * @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.
256
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
257
257
  * @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.
258
258
  * @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.
259
259
  * @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.
@@ -302,7 +302,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
302
302
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
303
303
  * @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.
304
304
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
305
- * @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.
305
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
306
306
  * @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.
307
307
  * @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.
308
308
  * @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.
@@ -406,7 +406,7 @@ export interface RefundsApiListRefundsRequest {
406
406
  readonly filter?: any
407
407
 
408
408
  /**
409
- * Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
409
+ * To search the list by any field, pass search=xxx to fetch the result.
410
410
  * @type {any}
411
411
  * @memberof RefundsApiListRefunds
412
412
  */
@@ -180,7 +180,7 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
180
180
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
181
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
182
182
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
183
- * @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.
183
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
184
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.
185
185
  * @param {string} [expand] No expand is available for this tenant bank accounts
186
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.
@@ -353,7 +353,7 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
353
353
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
354
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
355
355
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
356
- * @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.
356
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
357
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.
358
358
  * @param {string} [expand] No expand is available for this tenant bank accounts
359
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.
@@ -427,7 +427,7 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
427
427
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
428
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
429
429
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
430
- * @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.
430
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
431
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.
432
432
  * @param {string} [expand] No expand is available for this tenant bank accounts
433
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.
@@ -550,7 +550,7 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
550
550
  readonly filter?: any
551
551
 
552
552
  /**
553
- * Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
553
+ * To search the list by any field, pass search=xxx to fetch the result.
554
554
  * @type {any}
555
555
  * @memberof TenantBankAccountApiListTenantBankAccounts
556
556
  */
@@ -12,6 +12,9 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateBankAccountRequestDto } from '../models';
16
+ import { GetBankAccountResponseClass } from '../models';
17
+ import { SetPrimaryBankAccountRequestDtoRest } from '../models';
15
18
  /**
16
19
  * BankAccountsApi - axios parameter creator
17
20
  * @export
@@ -20,20 +23,38 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
20
23
  /**
21
24
  * Creates a bank account for a specified account.
22
25
  * @summary Create a bank account
23
- * @param {object} body
26
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
24
27
  * @param {string} [authorization] Bearer Token
25
28
  * @param {*} [options] Override http request option.
26
29
  * @throws {RequiredError}
27
30
  */
28
- createBankAccount: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
32
  /**
30
- * 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.
33
+ * Deletes a bank account by code
34
+ * @summary Delete the bank account
35
+ * @param {string} code Unique identifier for the object.
36
+ * @param {string} [authorization] Bearer Token
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ deleteBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ * 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.
43
+ * @summary Retrieve the Bank Account
44
+ * @param {string} code Unique identifier for the object.
45
+ * @param {string} [authorization] Bearer Token
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ getBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ * 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.
31
52
  * @summary List bank accounts
32
53
  * @param {string} [authorization] Bearer Token
33
54
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
34
55
  * @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.
35
56
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
36
- * @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.
57
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
37
58
  * @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.
38
59
  * @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.
39
60
  * @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.
@@ -41,6 +62,16 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
41
62
  * @throws {RequiredError}
42
63
  */
43
64
  listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ /**
66
+ * Set Primary Bank account
67
+ * @summary Set Primary Bank account
68
+ * @param {string} code Code of the bank account to set primary
69
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
70
+ * @param {string} [authorization] Bearer Token
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ setPrimaryBankAccount: (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
75
  };
45
76
  /**
46
77
  * BankAccountsApi - functional programming interface
@@ -50,20 +81,38 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
50
81
  /**
51
82
  * Creates a bank account for a specified account.
52
83
  * @summary Create a bank account
53
- * @param {object} body
84
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
85
+ * @param {string} [authorization] Bearer Token
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
90
+ /**
91
+ * Deletes a bank account by code
92
+ * @summary Delete the bank account
93
+ * @param {string} code Unique identifier for the object.
94
+ * @param {string} [authorization] Bearer Token
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
99
+ /**
100
+ * 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.
101
+ * @summary Retrieve the Bank Account
102
+ * @param {string} code Unique identifier for the object.
54
103
  * @param {string} [authorization] Bearer Token
55
104
  * @param {*} [options] Override http request option.
56
105
  * @throws {RequiredError}
57
106
  */
58
- createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
107
+ getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
59
108
  /**
60
- * 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.
109
+ * 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.
61
110
  * @summary List bank accounts
62
111
  * @param {string} [authorization] Bearer Token
63
112
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
64
113
  * @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.
65
114
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
66
- * @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.
115
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
67
116
  * @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.
68
117
  * @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.
69
118
  * @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.
@@ -71,6 +120,16 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
71
120
  * @throws {RequiredError}
72
121
  */
73
122
  listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
+ /**
124
+ * Set Primary Bank account
125
+ * @summary Set Primary Bank account
126
+ * @param {string} code Code of the bank account to set primary
127
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
128
+ * @param {string} [authorization] Bearer Token
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
74
133
  };
75
134
  /**
76
135
  * BankAccountsApi - factory interface
@@ -80,20 +139,38 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
80
139
  /**
81
140
  * Creates a bank account for a specified account.
82
141
  * @summary Create a bank account
83
- * @param {object} body
142
+ * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
84
143
  * @param {string} [authorization] Bearer Token
85
144
  * @param {*} [options] Override http request option.
86
145
  * @throws {RequiredError}
87
146
  */
88
- createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void>;
147
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
89
148
  /**
90
- * 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.
149
+ * Deletes a bank account by code
150
+ * @summary Delete the bank account
151
+ * @param {string} code Unique identifier for the object.
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
157
+ /**
158
+ * 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.
159
+ * @summary Retrieve the Bank Account
160
+ * @param {string} code Unique identifier for the object.
161
+ * @param {string} [authorization] Bearer Token
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
166
+ /**
167
+ * 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.
91
168
  * @summary List bank accounts
92
169
  * @param {string} [authorization] Bearer Token
93
170
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
94
171
  * @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.
95
172
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
- * @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.
173
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
97
174
  * @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.
98
175
  * @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.
99
176
  * @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.
@@ -101,6 +178,16 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
101
178
  * @throws {RequiredError}
102
179
  */
103
180
  listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
181
+ /**
182
+ * Set Primary Bank account
183
+ * @summary Set Primary Bank account
184
+ * @param {string} code Code of the bank account to set primary
185
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
186
+ * @param {string} [authorization] Bearer Token
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void>;
104
191
  };
105
192
  /**
106
193
  * Request parameters for createBankAccount operation in BankAccountsApi.
@@ -110,10 +197,10 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
110
197
  export interface BankAccountsApiCreateBankAccountRequest {
111
198
  /**
112
199
  *
113
- * @type {object}
200
+ * @type {CreateBankAccountRequestDto}
114
201
  * @memberof BankAccountsApiCreateBankAccount
115
202
  */
116
- readonly body: object;
203
+ readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
117
204
  /**
118
205
  * Bearer Token
119
206
  * @type {string}
@@ -121,6 +208,44 @@ export interface BankAccountsApiCreateBankAccountRequest {
121
208
  */
122
209
  readonly authorization?: string;
123
210
  }
211
+ /**
212
+ * Request parameters for deleteBankAccount operation in BankAccountsApi.
213
+ * @export
214
+ * @interface BankAccountsApiDeleteBankAccountRequest
215
+ */
216
+ export interface BankAccountsApiDeleteBankAccountRequest {
217
+ /**
218
+ * Unique identifier for the object.
219
+ * @type {string}
220
+ * @memberof BankAccountsApiDeleteBankAccount
221
+ */
222
+ readonly code: string;
223
+ /**
224
+ * Bearer Token
225
+ * @type {string}
226
+ * @memberof BankAccountsApiDeleteBankAccount
227
+ */
228
+ readonly authorization?: string;
229
+ }
230
+ /**
231
+ * Request parameters for getBankAccount operation in BankAccountsApi.
232
+ * @export
233
+ * @interface BankAccountsApiGetBankAccountRequest
234
+ */
235
+ export interface BankAccountsApiGetBankAccountRequest {
236
+ /**
237
+ * Unique identifier for the object.
238
+ * @type {string}
239
+ * @memberof BankAccountsApiGetBankAccount
240
+ */
241
+ readonly code: string;
242
+ /**
243
+ * Bearer Token
244
+ * @type {string}
245
+ * @memberof BankAccountsApiGetBankAccount
246
+ */
247
+ readonly authorization?: string;
248
+ }
124
249
  /**
125
250
  * Request parameters for listBankAccounts operation in BankAccountsApi.
126
251
  * @export
@@ -152,7 +277,7 @@ export interface BankAccountsApiListBankAccountsRequest {
152
277
  */
153
278
  readonly filter?: any;
154
279
  /**
155
- * 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.
280
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
156
281
  * @type {any}
157
282
  * @memberof BankAccountsApiListBankAccounts
158
283
  */
@@ -176,6 +301,31 @@ export interface BankAccountsApiListBankAccountsRequest {
176
301
  */
177
302
  readonly filters?: any;
178
303
  }
304
+ /**
305
+ * Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
306
+ * @export
307
+ * @interface BankAccountsApiSetPrimaryBankAccountRequest
308
+ */
309
+ export interface BankAccountsApiSetPrimaryBankAccountRequest {
310
+ /**
311
+ * Code of the bank account to set primary
312
+ * @type {string}
313
+ * @memberof BankAccountsApiSetPrimaryBankAccount
314
+ */
315
+ readonly code: string;
316
+ /**
317
+ *
318
+ * @type {SetPrimaryBankAccountRequestDtoRest}
319
+ * @memberof BankAccountsApiSetPrimaryBankAccount
320
+ */
321
+ readonly setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest;
322
+ /**
323
+ * Bearer Token
324
+ * @type {string}
325
+ * @memberof BankAccountsApiSetPrimaryBankAccount
326
+ */
327
+ readonly authorization?: string;
328
+ }
179
329
  /**
180
330
  * BankAccountsApi - object-oriented interface
181
331
  * @export
@@ -193,7 +343,25 @@ export declare class BankAccountsApi extends BaseAPI {
193
343
  */
194
344
  createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
195
345
  /**
196
- * 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.
346
+ * Deletes a bank account by code
347
+ * @summary Delete the bank account
348
+ * @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ * @memberof BankAccountsApi
352
+ */
353
+ deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
354
+ /**
355
+ * 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.
356
+ * @summary Retrieve the Bank Account
357
+ * @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ * @memberof BankAccountsApi
361
+ */
362
+ getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
363
+ /**
364
+ * 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.
197
365
  * @summary List bank accounts
198
366
  * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
199
367
  * @param {*} [options] Override http request option.
@@ -201,4 +369,13 @@ export declare class BankAccountsApi extends BaseAPI {
201
369
  * @memberof BankAccountsApi
202
370
  */
203
371
  listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
372
+ /**
373
+ * Set Primary Bank account
374
+ * @summary Set Primary Bank account
375
+ * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ * @memberof BankAccountsApi
379
+ */
380
+ setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
204
381
  }