@emilgroup/payment-sdk 1.4.1-beta.26 → 1.4.1-beta.28
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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +75 -59
- package/base.ts +5 -1
- package/dist/api/bank-accounts-api.d.ts +67 -57
- package/dist/api/bank-accounts-api.js +48 -42
- package/dist/base.d.ts +1 -0
- package/dist/base.js +4 -1
- package/dist/models/create-bank-account-request-dto.d.ts +6 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/models/create-bank-account-request-dto.ts +6 -0
- package/models/index.ts +1 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -48,6 +48,7 @@ models/transaction-class.ts
|
|
|
48
48
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
49
49
|
models/update-bank-account-request-dto-rest.ts
|
|
50
50
|
models/update-bank-account-request-dto.ts
|
|
51
|
+
models/update-bank-account-response-class.ts
|
|
51
52
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
52
53
|
models/validate-pspconfig-request-dto.ts
|
|
53
54
|
package.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.28 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.1-beta.28
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -28,6 +28,8 @@ import { GetBankAccountResponseClass } from '../models';
|
|
|
28
28
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateBankAccountResponseClass } from '../models';
|
|
31
33
|
/**
|
|
32
34
|
* BankAccountsApi - axios parameter creator
|
|
33
35
|
* @export
|
|
@@ -35,7 +37,7 @@ import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
|
35
37
|
export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
38
|
return {
|
|
37
39
|
/**
|
|
38
|
-
* Creates a bank account for a specified account.
|
|
40
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
39
41
|
* @summary Create a bank account
|
|
40
42
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
41
43
|
* @param {string} [authorization] Bearer Token
|
|
@@ -82,7 +84,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
82
84
|
};
|
|
83
85
|
},
|
|
84
86
|
/**
|
|
85
|
-
* Deletes a bank account by code
|
|
87
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
86
88
|
* @summary Delete the bank account
|
|
87
89
|
* @param {string} code Unique identifier for the object.
|
|
88
90
|
* @param {string} [authorization] Bearer Token
|
|
@@ -127,14 +129,15 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
127
129
|
};
|
|
128
130
|
},
|
|
129
131
|
/**
|
|
130
|
-
* Retrieves the details of the
|
|
131
|
-
* @summary Retrieve the
|
|
132
|
+
* 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.
|
|
133
|
+
* @summary Retrieve the bank account
|
|
132
134
|
* @param {string} code Unique identifier for the object.
|
|
133
135
|
* @param {string} [authorization] Bearer Token
|
|
136
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
134
137
|
* @param {*} [options] Override http request option.
|
|
135
138
|
* @throws {RequiredError}
|
|
136
139
|
*/
|
|
137
|
-
getBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
140
|
+
getBankAccount: async (code: string, authorization?: string, expand?: 'primaryBankAccount', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
141
|
// verify required parameter 'code' is not null or undefined
|
|
139
142
|
assertParamExists('getBankAccount', 'code', code)
|
|
140
143
|
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
@@ -156,6 +159,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
156
159
|
// http bearer authentication required
|
|
157
160
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
161
|
|
|
162
|
+
if (expand !== undefined) {
|
|
163
|
+
localVarQueryParameter['expand'] = expand;
|
|
164
|
+
}
|
|
165
|
+
|
|
159
166
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
167
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
168
|
}
|
|
@@ -172,20 +179,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
172
179
|
};
|
|
173
180
|
},
|
|
174
181
|
/**
|
|
175
|
-
* Returns a list of bank accounts you
|
|
182
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
176
183
|
* @summary List bank accounts
|
|
177
184
|
* @param {string} [authorization] Bearer Token
|
|
178
185
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
179
186
|
* @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.
|
|
180
|
-
* @param {
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
181
188
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
182
|
-
* @param {
|
|
183
|
-
* @param {
|
|
184
|
-
* @param {
|
|
189
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
190
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
191
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
185
192
|
* @param {*} [options] Override http request option.
|
|
186
193
|
* @throws {RequiredError}
|
|
187
194
|
*/
|
|
188
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
195
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
196
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
190
197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -248,7 +255,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
248
255
|
};
|
|
249
256
|
},
|
|
250
257
|
/**
|
|
251
|
-
* Set primary bank account
|
|
258
|
+
* Set the primary bank account for the specified partner/account
|
|
252
259
|
* @summary Set primary bank account
|
|
253
260
|
* @param {string} code Code of the bank account to set primary
|
|
254
261
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -360,7 +367,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
360
367
|
const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
|
|
361
368
|
return {
|
|
362
369
|
/**
|
|
363
|
-
* Creates a bank account for a specified account.
|
|
370
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
364
371
|
* @summary Create a bank account
|
|
365
372
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
366
373
|
* @param {string} [authorization] Bearer Token
|
|
@@ -372,7 +379,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
372
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
380
|
},
|
|
374
381
|
/**
|
|
375
|
-
* Deletes a bank account by code
|
|
382
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
376
383
|
* @summary Delete the bank account
|
|
377
384
|
* @param {string} code Unique identifier for the object.
|
|
378
385
|
* @param {string} [authorization] Bearer Token
|
|
@@ -384,37 +391,38 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
384
391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
392
|
},
|
|
386
393
|
/**
|
|
387
|
-
* Retrieves the details of the
|
|
388
|
-
* @summary Retrieve the
|
|
394
|
+
* 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.
|
|
395
|
+
* @summary Retrieve the bank account
|
|
389
396
|
* @param {string} code Unique identifier for the object.
|
|
390
397
|
* @param {string} [authorization] Bearer Token
|
|
398
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
391
399
|
* @param {*} [options] Override http request option.
|
|
392
400
|
* @throws {RequiredError}
|
|
393
401
|
*/
|
|
394
|
-
async getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, options);
|
|
402
|
+
async getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
396
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
405
|
},
|
|
398
406
|
/**
|
|
399
|
-
* Returns a list of bank accounts you
|
|
407
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
400
408
|
* @summary List bank accounts
|
|
401
409
|
* @param {string} [authorization] Bearer Token
|
|
402
410
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
403
411
|
* @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.
|
|
404
|
-
* @param {
|
|
412
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
405
413
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
406
|
-
* @param {
|
|
407
|
-
* @param {
|
|
408
|
-
* @param {
|
|
414
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
415
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
416
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
409
417
|
* @param {*} [options] Override http request option.
|
|
410
418
|
* @throws {RequiredError}
|
|
411
419
|
*/
|
|
412
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
420
|
+
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
413
421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
414
422
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
423
|
},
|
|
416
424
|
/**
|
|
417
|
-
* Set primary bank account
|
|
425
|
+
* Set the primary bank account for the specified partner/account
|
|
418
426
|
* @summary Set primary bank account
|
|
419
427
|
* @param {string} code Code of the bank account to set primary
|
|
420
428
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -435,7 +443,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
435
443
|
* @param {*} [options] Override http request option.
|
|
436
444
|
* @throws {RequiredError}
|
|
437
445
|
*/
|
|
438
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
446
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>> {
|
|
439
447
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
440
448
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
441
449
|
},
|
|
@@ -450,7 +458,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
450
458
|
const localVarFp = BankAccountsApiFp(configuration)
|
|
451
459
|
return {
|
|
452
460
|
/**
|
|
453
|
-
* Creates a bank account for a specified account.
|
|
461
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
454
462
|
* @summary Create a bank account
|
|
455
463
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
456
464
|
* @param {string} [authorization] Bearer Token
|
|
@@ -461,7 +469,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
461
469
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
462
470
|
},
|
|
463
471
|
/**
|
|
464
|
-
* Deletes a bank account by code
|
|
472
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
465
473
|
* @summary Delete the bank account
|
|
466
474
|
* @param {string} code Unique identifier for the object.
|
|
467
475
|
* @param {string} [authorization] Bearer Token
|
|
@@ -472,35 +480,36 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
472
480
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
473
481
|
},
|
|
474
482
|
/**
|
|
475
|
-
* Retrieves the details of the
|
|
476
|
-
* @summary Retrieve the
|
|
483
|
+
* 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.
|
|
484
|
+
* @summary Retrieve the bank account
|
|
477
485
|
* @param {string} code Unique identifier for the object.
|
|
478
486
|
* @param {string} [authorization] Bearer Token
|
|
487
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
479
488
|
* @param {*} [options] Override http request option.
|
|
480
489
|
* @throws {RequiredError}
|
|
481
490
|
*/
|
|
482
|
-
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
483
|
-
return localVarFp.getBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
491
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
492
|
+
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
484
493
|
},
|
|
485
494
|
/**
|
|
486
|
-
* Returns a list of bank accounts you
|
|
495
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
487
496
|
* @summary List bank accounts
|
|
488
497
|
* @param {string} [authorization] Bearer Token
|
|
489
498
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
490
499
|
* @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.
|
|
491
|
-
* @param {
|
|
500
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
492
501
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
493
|
-
* @param {
|
|
494
|
-
* @param {
|
|
495
|
-
* @param {
|
|
502
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
503
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
504
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
496
505
|
* @param {*} [options] Override http request option.
|
|
497
506
|
* @throws {RequiredError}
|
|
498
507
|
*/
|
|
499
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
508
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: any): AxiosPromise<void> {
|
|
500
509
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
501
510
|
},
|
|
502
511
|
/**
|
|
503
|
-
* Set primary bank account
|
|
512
|
+
* Set the primary bank account for the specified partner/account
|
|
504
513
|
* @summary Set primary bank account
|
|
505
514
|
* @param {string} code Code of the bank account to set primary
|
|
506
515
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -520,7 +529,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
520
529
|
* @param {*} [options] Override http request option.
|
|
521
530
|
* @throws {RequiredError}
|
|
522
531
|
*/
|
|
523
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
532
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass> {
|
|
524
533
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
525
534
|
},
|
|
526
535
|
};
|
|
@@ -587,6 +596,13 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
587
596
|
* @memberof BankAccountsApiGetBankAccount
|
|
588
597
|
*/
|
|
589
598
|
readonly authorization?: string
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
602
|
+
* @type {'primaryBankAccount'}
|
|
603
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
604
|
+
*/
|
|
605
|
+
readonly expand?: 'primaryBankAccount'
|
|
590
606
|
}
|
|
591
607
|
|
|
592
608
|
/**
|
|
@@ -617,11 +633,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
617
633
|
readonly pageToken?: any
|
|
618
634
|
|
|
619
635
|
/**
|
|
620
|
-
* Filter the response by one or multiple fields.
|
|
621
|
-
* @type {
|
|
636
|
+
* 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: code, id, accountCode, partnerCode</i>
|
|
637
|
+
* @type {string}
|
|
622
638
|
* @memberof BankAccountsApiListBankAccounts
|
|
623
639
|
*/
|
|
624
|
-
readonly filter?:
|
|
640
|
+
readonly filter?: string
|
|
625
641
|
|
|
626
642
|
/**
|
|
627
643
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -631,25 +647,25 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
631
647
|
readonly search?: any
|
|
632
648
|
|
|
633
649
|
/**
|
|
634
|
-
*
|
|
635
|
-
* @type {
|
|
650
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
651
|
+
* @type {string}
|
|
636
652
|
* @memberof BankAccountsApiListBankAccounts
|
|
637
653
|
*/
|
|
638
|
-
readonly order?:
|
|
654
|
+
readonly order?: string
|
|
639
655
|
|
|
640
656
|
/**
|
|
641
|
-
*
|
|
642
|
-
* @type {
|
|
657
|
+
* Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
658
|
+
* @type {'primaryBankAccount'}
|
|
643
659
|
* @memberof BankAccountsApiListBankAccounts
|
|
644
660
|
*/
|
|
645
|
-
readonly expand?:
|
|
661
|
+
readonly expand?: 'primaryBankAccount'
|
|
646
662
|
|
|
647
663
|
/**
|
|
648
|
-
* Filters the response by one or multiple fields.
|
|
649
|
-
* @type {
|
|
664
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
665
|
+
* @type {string}
|
|
650
666
|
* @memberof BankAccountsApiListBankAccounts
|
|
651
667
|
*/
|
|
652
|
-
readonly filters?:
|
|
668
|
+
readonly filters?: string
|
|
653
669
|
}
|
|
654
670
|
|
|
655
671
|
/**
|
|
@@ -716,7 +732,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
716
732
|
*/
|
|
717
733
|
export class BankAccountsApi extends BaseAPI {
|
|
718
734
|
/**
|
|
719
|
-
* Creates a bank account for a specified account.
|
|
735
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
720
736
|
* @summary Create a bank account
|
|
721
737
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
722
738
|
* @param {*} [options] Override http request option.
|
|
@@ -728,7 +744,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
728
744
|
}
|
|
729
745
|
|
|
730
746
|
/**
|
|
731
|
-
* Deletes a bank account by code
|
|
747
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
732
748
|
* @summary Delete the bank account
|
|
733
749
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
734
750
|
* @param {*} [options] Override http request option.
|
|
@@ -740,19 +756,19 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
740
756
|
}
|
|
741
757
|
|
|
742
758
|
/**
|
|
743
|
-
* Retrieves the details of the
|
|
744
|
-
* @summary Retrieve the
|
|
759
|
+
* 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.
|
|
760
|
+
* @summary Retrieve the bank account
|
|
745
761
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
746
762
|
* @param {*} [options] Override http request option.
|
|
747
763
|
* @throws {RequiredError}
|
|
748
764
|
* @memberof BankAccountsApi
|
|
749
765
|
*/
|
|
750
766
|
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
751
|
-
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
767
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
752
768
|
}
|
|
753
769
|
|
|
754
770
|
/**
|
|
755
|
-
* Returns a list of bank accounts you
|
|
771
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
756
772
|
* @summary List bank accounts
|
|
757
773
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
758
774
|
* @param {*} [options] Override http request option.
|
|
@@ -764,7 +780,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
764
780
|
}
|
|
765
781
|
|
|
766
782
|
/**
|
|
767
|
-
* Set primary bank account
|
|
783
|
+
* Set the primary bank account for the specified partner/account
|
|
768
784
|
* @summary Set primary bank account
|
|
769
785
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
770
786
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -102,7 +102,11 @@ export class BaseAPI {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
selectEnvironment(env: Environment) {
|
|
105
|
-
this.
|
|
105
|
+
this.selectBasePath(env);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
async authorize(username: string, password: string): Promise<void> {
|
|
@@ -16,13 +16,14 @@ import { CreateBankAccountRequestDto } from '../models';
|
|
|
16
16
|
import { GetBankAccountResponseClass } from '../models';
|
|
17
17
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
18
18
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
19
|
+
import { UpdateBankAccountResponseClass } from '../models';
|
|
19
20
|
/**
|
|
20
21
|
* BankAccountsApi - axios parameter creator
|
|
21
22
|
* @export
|
|
22
23
|
*/
|
|
23
24
|
export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
25
|
/**
|
|
25
|
-
* Creates a bank account for a specified account.
|
|
26
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
26
27
|
* @summary Create a bank account
|
|
27
28
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
28
29
|
* @param {string} [authorization] Bearer Token
|
|
@@ -31,7 +32,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
31
32
|
*/
|
|
32
33
|
createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
34
|
/**
|
|
34
|
-
* Deletes a bank account by code
|
|
35
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
35
36
|
* @summary Delete the bank account
|
|
36
37
|
* @param {string} code Unique identifier for the object.
|
|
37
38
|
* @param {string} [authorization] Bearer Token
|
|
@@ -40,31 +41,32 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
40
41
|
*/
|
|
41
42
|
deleteBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
43
|
/**
|
|
43
|
-
* Retrieves the details of the
|
|
44
|
-
* @summary Retrieve the
|
|
44
|
+
* 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.
|
|
45
|
+
* @summary Retrieve the bank account
|
|
45
46
|
* @param {string} code Unique identifier for the object.
|
|
46
47
|
* @param {string} [authorization] Bearer Token
|
|
48
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
47
49
|
* @param {*} [options] Override http request option.
|
|
48
50
|
* @throws {RequiredError}
|
|
49
51
|
*/
|
|
50
|
-
getBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
getBankAccount: (code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
53
|
/**
|
|
52
|
-
* Returns a list of bank accounts you
|
|
54
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
53
55
|
* @summary List bank accounts
|
|
54
56
|
* @param {string} [authorization] Bearer Token
|
|
55
57
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
56
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
57
|
-
* @param {
|
|
59
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
58
60
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
62
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
63
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
62
64
|
* @param {*} [options] Override http request option.
|
|
63
65
|
* @throws {RequiredError}
|
|
64
66
|
*/
|
|
65
|
-
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
67
|
+
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
68
|
/**
|
|
67
|
-
* Set primary bank account
|
|
69
|
+
* Set the primary bank account for the specified partner/account
|
|
68
70
|
* @summary Set primary bank account
|
|
69
71
|
* @param {string} code Code of the bank account to set primary
|
|
70
72
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -90,7 +92,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
90
92
|
*/
|
|
91
93
|
export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
92
94
|
/**
|
|
93
|
-
* Creates a bank account for a specified account.
|
|
95
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
94
96
|
* @summary Create a bank account
|
|
95
97
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
96
98
|
* @param {string} [authorization] Bearer Token
|
|
@@ -99,7 +101,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
99
101
|
*/
|
|
100
102
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
103
|
/**
|
|
102
|
-
* Deletes a bank account by code
|
|
104
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
103
105
|
* @summary Delete the bank account
|
|
104
106
|
* @param {string} code Unique identifier for the object.
|
|
105
107
|
* @param {string} [authorization] Bearer Token
|
|
@@ -108,31 +110,32 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
108
110
|
*/
|
|
109
111
|
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
110
112
|
/**
|
|
111
|
-
* Retrieves the details of the
|
|
112
|
-
* @summary Retrieve the
|
|
113
|
+
* 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.
|
|
114
|
+
* @summary Retrieve the bank account
|
|
113
115
|
* @param {string} code Unique identifier for the object.
|
|
114
116
|
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
115
118
|
* @param {*} [options] Override http request option.
|
|
116
119
|
* @throws {RequiredError}
|
|
117
120
|
*/
|
|
118
|
-
getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
121
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
119
122
|
/**
|
|
120
|
-
* Returns a list of bank accounts you
|
|
123
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
121
124
|
* @summary List bank accounts
|
|
122
125
|
* @param {string} [authorization] Bearer Token
|
|
123
126
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
124
127
|
* @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.
|
|
125
|
-
* @param {
|
|
128
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
126
129
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
127
|
-
* @param {
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {
|
|
130
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
131
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
132
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
130
133
|
* @param {*} [options] Override http request option.
|
|
131
134
|
* @throws {RequiredError}
|
|
132
135
|
*/
|
|
133
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
136
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
134
137
|
/**
|
|
135
|
-
* Set primary bank account
|
|
138
|
+
* Set the primary bank account for the specified partner/account
|
|
136
139
|
* @summary Set primary bank account
|
|
137
140
|
* @param {string} code Code of the bank account to set primary
|
|
138
141
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -150,7 +153,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
150
153
|
* @param {*} [options] Override http request option.
|
|
151
154
|
* @throws {RequiredError}
|
|
152
155
|
*/
|
|
153
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
156
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>>;
|
|
154
157
|
};
|
|
155
158
|
/**
|
|
156
159
|
* BankAccountsApi - factory interface
|
|
@@ -158,7 +161,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
158
161
|
*/
|
|
159
162
|
export declare const BankAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
160
163
|
/**
|
|
161
|
-
* Creates a bank account for a specified account.
|
|
164
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
162
165
|
* @summary Create a bank account
|
|
163
166
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
164
167
|
* @param {string} [authorization] Bearer Token
|
|
@@ -167,7 +170,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
167
170
|
*/
|
|
168
171
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
169
172
|
/**
|
|
170
|
-
* Deletes a bank account by code
|
|
173
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
171
174
|
* @summary Delete the bank account
|
|
172
175
|
* @param {string} code Unique identifier for the object.
|
|
173
176
|
* @param {string} [authorization] Bearer Token
|
|
@@ -176,31 +179,32 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
176
179
|
*/
|
|
177
180
|
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
178
181
|
/**
|
|
179
|
-
* Retrieves the details of the
|
|
180
|
-
* @summary Retrieve the
|
|
182
|
+
* 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.
|
|
183
|
+
* @summary Retrieve the bank account
|
|
181
184
|
* @param {string} code Unique identifier for the object.
|
|
182
185
|
* @param {string} [authorization] Bearer Token
|
|
186
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
183
187
|
* @param {*} [options] Override http request option.
|
|
184
188
|
* @throws {RequiredError}
|
|
185
189
|
*/
|
|
186
|
-
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
190
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
187
191
|
/**
|
|
188
|
-
* Returns a list of bank accounts you
|
|
192
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
189
193
|
* @summary List bank accounts
|
|
190
194
|
* @param {string} [authorization] Bearer Token
|
|
191
195
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
192
196
|
* @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.
|
|
193
|
-
* @param {
|
|
197
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
194
198
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
195
|
-
* @param {
|
|
196
|
-
* @param {
|
|
197
|
-
* @param {
|
|
199
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
200
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
201
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
198
202
|
* @param {*} [options] Override http request option.
|
|
199
203
|
* @throws {RequiredError}
|
|
200
204
|
*/
|
|
201
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
205
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: any): AxiosPromise<void>;
|
|
202
206
|
/**
|
|
203
|
-
* Set primary bank account
|
|
207
|
+
* Set the primary bank account for the specified partner/account
|
|
204
208
|
* @summary Set primary bank account
|
|
205
209
|
* @param {string} code Code of the bank account to set primary
|
|
206
210
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -218,7 +222,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
218
222
|
* @param {*} [options] Override http request option.
|
|
219
223
|
* @throws {RequiredError}
|
|
220
224
|
*/
|
|
221
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
225
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass>;
|
|
222
226
|
};
|
|
223
227
|
/**
|
|
224
228
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -276,6 +280,12 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
276
280
|
* @memberof BankAccountsApiGetBankAccount
|
|
277
281
|
*/
|
|
278
282
|
readonly authorization?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
285
|
+
* @type {'primaryBankAccount'}
|
|
286
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
287
|
+
*/
|
|
288
|
+
readonly expand?: 'primaryBankAccount';
|
|
279
289
|
}
|
|
280
290
|
/**
|
|
281
291
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
@@ -302,11 +312,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
302
312
|
*/
|
|
303
313
|
readonly pageToken?: any;
|
|
304
314
|
/**
|
|
305
|
-
* Filter the response by one or multiple fields.
|
|
306
|
-
* @type {
|
|
315
|
+
* 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: code, id, accountCode, partnerCode</i>
|
|
316
|
+
* @type {string}
|
|
307
317
|
* @memberof BankAccountsApiListBankAccounts
|
|
308
318
|
*/
|
|
309
|
-
readonly filter?:
|
|
319
|
+
readonly filter?: string;
|
|
310
320
|
/**
|
|
311
321
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
312
322
|
* @type {any}
|
|
@@ -314,23 +324,23 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
314
324
|
*/
|
|
315
325
|
readonly search?: any;
|
|
316
326
|
/**
|
|
317
|
-
*
|
|
318
|
-
* @type {
|
|
327
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
328
|
+
* @type {string}
|
|
319
329
|
* @memberof BankAccountsApiListBankAccounts
|
|
320
330
|
*/
|
|
321
|
-
readonly order?:
|
|
331
|
+
readonly order?: string;
|
|
322
332
|
/**
|
|
323
|
-
*
|
|
324
|
-
* @type {
|
|
333
|
+
* Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
334
|
+
* @type {'primaryBankAccount'}
|
|
325
335
|
* @memberof BankAccountsApiListBankAccounts
|
|
326
336
|
*/
|
|
327
|
-
readonly expand?:
|
|
337
|
+
readonly expand?: 'primaryBankAccount';
|
|
328
338
|
/**
|
|
329
|
-
* Filters the response by one or multiple fields.
|
|
330
|
-
* @type {
|
|
339
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
340
|
+
* @type {string}
|
|
331
341
|
* @memberof BankAccountsApiListBankAccounts
|
|
332
342
|
*/
|
|
333
|
-
readonly filters?:
|
|
343
|
+
readonly filters?: string;
|
|
334
344
|
}
|
|
335
345
|
/**
|
|
336
346
|
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
@@ -390,7 +400,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
390
400
|
*/
|
|
391
401
|
export declare class BankAccountsApi extends BaseAPI {
|
|
392
402
|
/**
|
|
393
|
-
* Creates a bank account for a specified account.
|
|
403
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
394
404
|
* @summary Create a bank account
|
|
395
405
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
396
406
|
* @param {*} [options] Override http request option.
|
|
@@ -399,7 +409,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
399
409
|
*/
|
|
400
410
|
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
401
411
|
/**
|
|
402
|
-
* Deletes a bank account by code
|
|
412
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
403
413
|
* @summary Delete the bank account
|
|
404
414
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
405
415
|
* @param {*} [options] Override http request option.
|
|
@@ -408,8 +418,8 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
408
418
|
*/
|
|
409
419
|
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
410
420
|
/**
|
|
411
|
-
* Retrieves the details of the
|
|
412
|
-
* @summary Retrieve the
|
|
421
|
+
* 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.
|
|
422
|
+
* @summary Retrieve the bank account
|
|
413
423
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
414
424
|
* @param {*} [options] Override http request option.
|
|
415
425
|
* @throws {RequiredError}
|
|
@@ -417,7 +427,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
417
427
|
*/
|
|
418
428
|
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
|
|
419
429
|
/**
|
|
420
|
-
* Returns a list of bank accounts you
|
|
430
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
421
431
|
* @summary List bank accounts
|
|
422
432
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
423
433
|
* @param {*} [options] Override http request option.
|
|
@@ -426,7 +436,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
426
436
|
*/
|
|
427
437
|
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
428
438
|
/**
|
|
429
|
-
* Set primary bank account
|
|
439
|
+
* Set the primary bank account for the specified partner/account
|
|
430
440
|
* @summary Set primary bank account
|
|
431
441
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
432
442
|
* @param {*} [options] Override http request option.
|
|
@@ -442,5 +452,5 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
442
452
|
* @throws {RequiredError}
|
|
443
453
|
* @memberof BankAccountsApi
|
|
444
454
|
*/
|
|
445
|
-
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
455
|
+
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankAccountResponseClass, any>>;
|
|
446
456
|
}
|
|
@@ -93,7 +93,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Creates a bank account for a specified account.
|
|
96
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
97
97
|
* @summary Create a bank account
|
|
98
98
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,7 +142,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Deletes a bank account by code
|
|
145
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
146
146
|
* @summary Delete the bank account
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
@@ -190,14 +190,15 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* Retrieves the details of the
|
|
194
|
-
* @summary Retrieve the
|
|
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
195
|
* @param {string} code Unique identifier for the object.
|
|
196
196
|
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
197
198
|
* @param {*} [options] Override http request option.
|
|
198
199
|
* @throws {RequiredError}
|
|
199
200
|
*/
|
|
200
|
-
getBankAccount: function (code, authorization, options) {
|
|
201
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
201
202
|
if (options === void 0) { options = {}; }
|
|
202
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -223,6 +224,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
223
224
|
// authentication bearer required
|
|
224
225
|
// http bearer authentication required
|
|
225
226
|
_a.sent();
|
|
227
|
+
if (expand !== undefined) {
|
|
228
|
+
localVarQueryParameter['expand'] = expand;
|
|
229
|
+
}
|
|
226
230
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
231
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
232
|
}
|
|
@@ -238,16 +242,16 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
238
242
|
});
|
|
239
243
|
},
|
|
240
244
|
/**
|
|
241
|
-
* Returns a list of bank accounts you
|
|
245
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
242
246
|
* @summary List bank accounts
|
|
243
247
|
* @param {string} [authorization] Bearer Token
|
|
244
248
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
245
249
|
* @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.
|
|
246
|
-
* @param {
|
|
250
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
247
251
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
252
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
253
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
254
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
251
255
|
* @param {*} [options] Override http request option.
|
|
252
256
|
* @throws {RequiredError}
|
|
253
257
|
*/
|
|
@@ -310,7 +314,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
310
314
|
});
|
|
311
315
|
},
|
|
312
316
|
/**
|
|
313
|
-
* Set primary bank account
|
|
317
|
+
* Set the primary bank account for the specified partner/account
|
|
314
318
|
* @summary Set primary bank account
|
|
315
319
|
* @param {string} code Code of the bank account to set primary
|
|
316
320
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -426,7 +430,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
426
430
|
var localVarAxiosParamCreator = (0, exports.BankAccountsApiAxiosParamCreator)(configuration);
|
|
427
431
|
return {
|
|
428
432
|
/**
|
|
429
|
-
* Creates a bank account for a specified account.
|
|
433
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
430
434
|
* @summary Create a bank account
|
|
431
435
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
432
436
|
* @param {string} [authorization] Bearer Token
|
|
@@ -447,7 +451,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
447
451
|
});
|
|
448
452
|
},
|
|
449
453
|
/**
|
|
450
|
-
* Deletes a bank account by code
|
|
454
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
451
455
|
* @summary Delete the bank account
|
|
452
456
|
* @param {string} code Unique identifier for the object.
|
|
453
457
|
* @param {string} [authorization] Bearer Token
|
|
@@ -468,19 +472,20 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
468
472
|
});
|
|
469
473
|
},
|
|
470
474
|
/**
|
|
471
|
-
* Retrieves the details of the
|
|
472
|
-
* @summary Retrieve the
|
|
475
|
+
* 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.
|
|
476
|
+
* @summary Retrieve the bank account
|
|
473
477
|
* @param {string} code Unique identifier for the object.
|
|
474
478
|
* @param {string} [authorization] Bearer Token
|
|
479
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
475
480
|
* @param {*} [options] Override http request option.
|
|
476
481
|
* @throws {RequiredError}
|
|
477
482
|
*/
|
|
478
|
-
getBankAccount: function (code, authorization, options) {
|
|
483
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
479
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
480
485
|
var localVarAxiosArgs;
|
|
481
486
|
return __generator(this, function (_a) {
|
|
482
487
|
switch (_a.label) {
|
|
483
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankAccount(code, authorization, options)];
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options)];
|
|
484
489
|
case 1:
|
|
485
490
|
localVarAxiosArgs = _a.sent();
|
|
486
491
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -489,16 +494,16 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
489
494
|
});
|
|
490
495
|
},
|
|
491
496
|
/**
|
|
492
|
-
* Returns a list of bank accounts you
|
|
497
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
493
498
|
* @summary List bank accounts
|
|
494
499
|
* @param {string} [authorization] Bearer Token
|
|
495
500
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
496
501
|
* @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.
|
|
497
|
-
* @param {
|
|
502
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
498
503
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
499
|
-
* @param {
|
|
500
|
-
* @param {
|
|
501
|
-
* @param {
|
|
504
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
505
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
506
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
502
507
|
* @param {*} [options] Override http request option.
|
|
503
508
|
* @throws {RequiredError}
|
|
504
509
|
*/
|
|
@@ -516,7 +521,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
516
521
|
});
|
|
517
522
|
},
|
|
518
523
|
/**
|
|
519
|
-
* Set primary bank account
|
|
524
|
+
* Set the primary bank account for the specified partner/account
|
|
520
525
|
* @summary Set primary bank account
|
|
521
526
|
* @param {string} code Code of the bank account to set primary
|
|
522
527
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -570,7 +575,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
570
575
|
var localVarFp = (0, exports.BankAccountsApiFp)(configuration);
|
|
571
576
|
return {
|
|
572
577
|
/**
|
|
573
|
-
* Creates a bank account for a specified account.
|
|
578
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
574
579
|
* @summary Create a bank account
|
|
575
580
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
576
581
|
* @param {string} [authorization] Bearer Token
|
|
@@ -581,7 +586,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
581
586
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
582
587
|
},
|
|
583
588
|
/**
|
|
584
|
-
* Deletes a bank account by code
|
|
589
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
585
590
|
* @summary Delete the bank account
|
|
586
591
|
* @param {string} code Unique identifier for the object.
|
|
587
592
|
* @param {string} [authorization] Bearer Token
|
|
@@ -592,27 +597,28 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
592
597
|
return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
598
|
},
|
|
594
599
|
/**
|
|
595
|
-
* Retrieves the details of the
|
|
596
|
-
* @summary Retrieve the
|
|
600
|
+
* 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.
|
|
601
|
+
* @summary Retrieve the bank account
|
|
597
602
|
* @param {string} code Unique identifier for the object.
|
|
598
603
|
* @param {string} [authorization] Bearer Token
|
|
604
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
599
605
|
* @param {*} [options] Override http request option.
|
|
600
606
|
* @throws {RequiredError}
|
|
601
607
|
*/
|
|
602
|
-
getBankAccount: function (code, authorization, options) {
|
|
603
|
-
return localVarFp.getBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
608
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
609
|
+
return localVarFp.getBankAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
604
610
|
},
|
|
605
611
|
/**
|
|
606
|
-
* Returns a list of bank accounts you
|
|
612
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
607
613
|
* @summary List bank accounts
|
|
608
614
|
* @param {string} [authorization] Bearer Token
|
|
609
615
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
610
616
|
* @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.
|
|
611
|
-
* @param {
|
|
617
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
612
618
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
613
|
-
* @param {
|
|
614
|
-
* @param {
|
|
615
|
-
* @param {
|
|
619
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
620
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
621
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
616
622
|
* @param {*} [options] Override http request option.
|
|
617
623
|
* @throws {RequiredError}
|
|
618
624
|
*/
|
|
@@ -620,7 +626,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
620
626
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
621
627
|
},
|
|
622
628
|
/**
|
|
623
|
-
* Set primary bank account
|
|
629
|
+
* Set the primary bank account for the specified partner/account
|
|
624
630
|
* @summary Set primary bank account
|
|
625
631
|
* @param {string} code Code of the bank account to set primary
|
|
626
632
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -658,7 +664,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
658
664
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
659
665
|
}
|
|
660
666
|
/**
|
|
661
|
-
* Creates a bank account for a specified account.
|
|
667
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
662
668
|
* @summary Create a bank account
|
|
663
669
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
664
670
|
* @param {*} [options] Override http request option.
|
|
@@ -670,7 +676,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
670
676
|
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
671
677
|
};
|
|
672
678
|
/**
|
|
673
|
-
* Deletes a bank account by code
|
|
679
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
674
680
|
* @summary Delete the bank account
|
|
675
681
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
676
682
|
* @param {*} [options] Override http request option.
|
|
@@ -682,8 +688,8 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
682
688
|
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
683
689
|
};
|
|
684
690
|
/**
|
|
685
|
-
* Retrieves the details of the
|
|
686
|
-
* @summary Retrieve the
|
|
691
|
+
* 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.
|
|
692
|
+
* @summary Retrieve the bank account
|
|
687
693
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
688
694
|
* @param {*} [options] Override http request option.
|
|
689
695
|
* @throws {RequiredError}
|
|
@@ -691,10 +697,10 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
691
697
|
*/
|
|
692
698
|
BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
|
|
693
699
|
var _this = this;
|
|
694
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
700
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
695
701
|
};
|
|
696
702
|
/**
|
|
697
|
-
* Returns a list of bank accounts you
|
|
703
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
698
704
|
* @summary List bank accounts
|
|
699
705
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
700
706
|
* @param {*} [options] Override http request option.
|
|
@@ -707,7 +713,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
707
713
|
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
708
714
|
};
|
|
709
715
|
/**
|
|
710
|
-
* Set primary bank account
|
|
716
|
+
* Set the primary bank account for the specified partner/account
|
|
711
717
|
* @summary Set primary bank account
|
|
712
718
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
713
719
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class BaseAPI {
|
|
|
54
54
|
private tokenData?;
|
|
55
55
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
56
|
selectEnvironment(env: Environment): void;
|
|
57
|
+
selectBasePath(path: string): void;
|
|
57
58
|
authorize(username: string, password: string): Promise<void>;
|
|
58
59
|
refreshTokenInternal(): Promise<string>;
|
|
59
60
|
private storeTokenData;
|
package/dist/base.js
CHANGED
|
@@ -138,7 +138,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
138
138
|
this.attachInterceptor(axios);
|
|
139
139
|
}
|
|
140
140
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
141
|
-
this.
|
|
141
|
+
this.selectBasePath(env);
|
|
142
|
+
};
|
|
143
|
+
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
|
+
this.configuration.basePath = path;
|
|
142
145
|
};
|
|
143
146
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
144
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -27,6 +27,12 @@ export interface CreateBankAccountRequestDto {
|
|
|
27
27
|
* @memberof CreateBankAccountRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'partnerCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* IBAN number for the bank account
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateBankAccountRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'iban': string;
|
|
30
36
|
/**
|
|
31
37
|
* Bank account holder
|
|
32
38
|
* @type {string}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,5 +27,6 @@ export * from './transaction-class';
|
|
|
27
27
|
export * from './unlink-bank-transaction-request-dto-rest';
|
|
28
28
|
export * from './update-bank-account-request-dto';
|
|
29
29
|
export * from './update-bank-account-request-dto-rest';
|
|
30
|
+
export * from './update-bank-account-response-class';
|
|
30
31
|
export * from './update-tenant-bank-account-rest-request-dto';
|
|
31
32
|
export * from './validate-pspconfig-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -43,5 +43,6 @@ __exportStar(require("./transaction-class"), exports);
|
|
|
43
43
|
__exportStar(require("./unlink-bank-transaction-request-dto-rest"), exports);
|
|
44
44
|
__exportStar(require("./update-bank-account-request-dto"), exports);
|
|
45
45
|
__exportStar(require("./update-bank-account-request-dto-rest"), exports);
|
|
46
|
+
__exportStar(require("./update-bank-account-response-class"), exports);
|
|
46
47
|
__exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
|
|
47
48
|
__exportStar(require("./validate-pspconfig-request-dto"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BankAccountClass } from './bank-account-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateBankAccountResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateBankAccountResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Bank Account
|
|
21
|
+
* @type {BankAccountClass}
|
|
22
|
+
* @memberof UpdateBankAccountResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'bankAccount': BankAccountClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -32,6 +32,12 @@ export interface CreateBankAccountRequestDto {
|
|
|
32
32
|
* @memberof CreateBankAccountRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'partnerCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* IBAN number for the bank account
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateBankAccountRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'iban': string;
|
|
35
41
|
/**
|
|
36
42
|
* Bank account holder
|
|
37
43
|
* @type {string}
|
package/models/index.ts
CHANGED
|
@@ -27,5 +27,6 @@ export * from './transaction-class';
|
|
|
27
27
|
export * from './unlink-bank-transaction-request-dto-rest';
|
|
28
28
|
export * from './update-bank-account-request-dto';
|
|
29
29
|
export * from './update-bank-account-request-dto-rest';
|
|
30
|
+
export * from './update-bank-account-response-class';
|
|
30
31
|
export * from './update-tenant-bank-account-rest-request-dto';
|
|
31
32
|
export * from './validate-pspconfig-request-dto';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { BankAccountClass } from './bank-account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UpdateBankAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateBankAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Bank Account
|
|
26
|
+
* @type {BankAccountClass}
|
|
27
|
+
* @memberof UpdateBankAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'bankAccount': BankAccountClass;
|
|
30
|
+
}
|
|
31
|
+
|