@emilgroup/payment-sdk 1.4.1-beta.25 → 1.4.1-beta.27
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/README.md +2 -2
- package/api/bank-accounts-api.ts +71 -57
- package/base.ts +4 -0
- package/dist/api/bank-accounts-api.d.ts +63 -54
- package/dist/api/bank-accounts-api.js +48 -42
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/package.json +1 -1
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.27 --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.27
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
|
35
35
|
export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
* Creates a bank account for a specified account.
|
|
38
|
+
* 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
39
|
* @summary Create a bank account
|
|
40
40
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
@@ -82,7 +82,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
82
82
|
};
|
|
83
83
|
},
|
|
84
84
|
/**
|
|
85
|
-
* Deletes a bank account by code
|
|
85
|
+
* 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
86
|
* @summary Delete the bank account
|
|
87
87
|
* @param {string} code Unique identifier for the object.
|
|
88
88
|
* @param {string} [authorization] Bearer Token
|
|
@@ -127,14 +127,15 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
127
127
|
};
|
|
128
128
|
},
|
|
129
129
|
/**
|
|
130
|
-
* Retrieves the details of the
|
|
131
|
-
* @summary Retrieve the
|
|
130
|
+
* 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.
|
|
131
|
+
* @summary Retrieve the bank account
|
|
132
132
|
* @param {string} code Unique identifier for the object.
|
|
133
133
|
* @param {string} [authorization] Bearer Token
|
|
134
|
+
* @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
135
|
* @param {*} [options] Override http request option.
|
|
135
136
|
* @throws {RequiredError}
|
|
136
137
|
*/
|
|
137
|
-
getBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
|
+
getBankAccount: async (code: string, authorization?: string, expand?: 'primaryBankAccount', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
139
|
// verify required parameter 'code' is not null or undefined
|
|
139
140
|
assertParamExists('getBankAccount', 'code', code)
|
|
140
141
|
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
@@ -156,6 +157,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
156
157
|
// http bearer authentication required
|
|
157
158
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
159
|
|
|
160
|
+
if (expand !== undefined) {
|
|
161
|
+
localVarQueryParameter['expand'] = expand;
|
|
162
|
+
}
|
|
163
|
+
|
|
159
164
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
165
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
166
|
}
|
|
@@ -172,20 +177,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
172
177
|
};
|
|
173
178
|
},
|
|
174
179
|
/**
|
|
175
|
-
* Returns a list of bank accounts you
|
|
180
|
+
* 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
181
|
* @summary List bank accounts
|
|
177
182
|
* @param {string} [authorization] Bearer Token
|
|
178
183
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
179
184
|
* @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 {
|
|
185
|
+
* @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
186
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
182
|
-
* @param {
|
|
183
|
-
* @param {
|
|
184
|
-
* @param {
|
|
187
|
+
* @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>
|
|
188
|
+
* @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.
|
|
189
|
+
* @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
190
|
* @param {*} [options] Override http request option.
|
|
186
191
|
* @throws {RequiredError}
|
|
187
192
|
*/
|
|
188
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
193
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
194
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
190
195
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
196
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -248,7 +253,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
248
253
|
};
|
|
249
254
|
},
|
|
250
255
|
/**
|
|
251
|
-
* Set primary bank account
|
|
256
|
+
* Set the primary bank account for the specified partner/account
|
|
252
257
|
* @summary Set primary bank account
|
|
253
258
|
* @param {string} code Code of the bank account to set primary
|
|
254
259
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -360,7 +365,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
360
365
|
const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
|
|
361
366
|
return {
|
|
362
367
|
/**
|
|
363
|
-
* Creates a bank account for a specified account.
|
|
368
|
+
* 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
369
|
* @summary Create a bank account
|
|
365
370
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
366
371
|
* @param {string} [authorization] Bearer Token
|
|
@@ -372,7 +377,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
372
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
378
|
},
|
|
374
379
|
/**
|
|
375
|
-
* Deletes a bank account by code
|
|
380
|
+
* 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
381
|
* @summary Delete the bank account
|
|
377
382
|
* @param {string} code Unique identifier for the object.
|
|
378
383
|
* @param {string} [authorization] Bearer Token
|
|
@@ -384,37 +389,38 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
384
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
390
|
},
|
|
386
391
|
/**
|
|
387
|
-
* Retrieves the details of the
|
|
388
|
-
* @summary Retrieve the
|
|
392
|
+
* 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.
|
|
393
|
+
* @summary Retrieve the bank account
|
|
389
394
|
* @param {string} code Unique identifier for the object.
|
|
390
395
|
* @param {string} [authorization] Bearer Token
|
|
396
|
+
* @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
397
|
* @param {*} [options] Override http request option.
|
|
392
398
|
* @throws {RequiredError}
|
|
393
399
|
*/
|
|
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);
|
|
400
|
+
async getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
396
402
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
403
|
},
|
|
398
404
|
/**
|
|
399
|
-
* Returns a list of bank accounts you
|
|
405
|
+
* 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
406
|
* @summary List bank accounts
|
|
401
407
|
* @param {string} [authorization] Bearer Token
|
|
402
408
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
403
409
|
* @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 {
|
|
410
|
+
* @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
411
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
406
|
-
* @param {
|
|
407
|
-
* @param {
|
|
408
|
-
* @param {
|
|
412
|
+
* @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>
|
|
413
|
+
* @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.
|
|
414
|
+
* @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
415
|
* @param {*} [options] Override http request option.
|
|
410
416
|
* @throws {RequiredError}
|
|
411
417
|
*/
|
|
412
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
418
|
+
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
419
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
414
420
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
421
|
},
|
|
416
422
|
/**
|
|
417
|
-
* Set primary bank account
|
|
423
|
+
* Set the primary bank account for the specified partner/account
|
|
418
424
|
* @summary Set primary bank account
|
|
419
425
|
* @param {string} code Code of the bank account to set primary
|
|
420
426
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -450,7 +456,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
450
456
|
const localVarFp = BankAccountsApiFp(configuration)
|
|
451
457
|
return {
|
|
452
458
|
/**
|
|
453
|
-
* Creates a bank account for a specified account.
|
|
459
|
+
* 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
460
|
* @summary Create a bank account
|
|
455
461
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
456
462
|
* @param {string} [authorization] Bearer Token
|
|
@@ -461,7 +467,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
461
467
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
462
468
|
},
|
|
463
469
|
/**
|
|
464
|
-
* Deletes a bank account by code
|
|
470
|
+
* 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
471
|
* @summary Delete the bank account
|
|
466
472
|
* @param {string} code Unique identifier for the object.
|
|
467
473
|
* @param {string} [authorization] Bearer Token
|
|
@@ -472,35 +478,36 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
472
478
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
473
479
|
},
|
|
474
480
|
/**
|
|
475
|
-
* Retrieves the details of the
|
|
476
|
-
* @summary Retrieve the
|
|
481
|
+
* 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.
|
|
482
|
+
* @summary Retrieve the bank account
|
|
477
483
|
* @param {string} code Unique identifier for the object.
|
|
478
484
|
* @param {string} [authorization] Bearer Token
|
|
485
|
+
* @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
486
|
* @param {*} [options] Override http request option.
|
|
480
487
|
* @throws {RequiredError}
|
|
481
488
|
*/
|
|
482
|
-
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
483
|
-
return localVarFp.getBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
489
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
490
|
+
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
484
491
|
},
|
|
485
492
|
/**
|
|
486
|
-
* Returns a list of bank accounts you
|
|
493
|
+
* 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
494
|
* @summary List bank accounts
|
|
488
495
|
* @param {string} [authorization] Bearer Token
|
|
489
496
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
490
497
|
* @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 {
|
|
498
|
+
* @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
499
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
493
|
-
* @param {
|
|
494
|
-
* @param {
|
|
495
|
-
* @param {
|
|
500
|
+
* @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>
|
|
501
|
+
* @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.
|
|
502
|
+
* @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
503
|
* @param {*} [options] Override http request option.
|
|
497
504
|
* @throws {RequiredError}
|
|
498
505
|
*/
|
|
499
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
506
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: any): AxiosPromise<void> {
|
|
500
507
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
501
508
|
},
|
|
502
509
|
/**
|
|
503
|
-
* Set primary bank account
|
|
510
|
+
* Set the primary bank account for the specified partner/account
|
|
504
511
|
* @summary Set primary bank account
|
|
505
512
|
* @param {string} code Code of the bank account to set primary
|
|
506
513
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -587,6 +594,13 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
587
594
|
* @memberof BankAccountsApiGetBankAccount
|
|
588
595
|
*/
|
|
589
596
|
readonly authorization?: string
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
600
|
+
* @type {'primaryBankAccount'}
|
|
601
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
602
|
+
*/
|
|
603
|
+
readonly expand?: 'primaryBankAccount'
|
|
590
604
|
}
|
|
591
605
|
|
|
592
606
|
/**
|
|
@@ -617,11 +631,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
617
631
|
readonly pageToken?: any
|
|
618
632
|
|
|
619
633
|
/**
|
|
620
|
-
* Filter the response by one or multiple fields.
|
|
621
|
-
* @type {
|
|
634
|
+
* 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>
|
|
635
|
+
* @type {string}
|
|
622
636
|
* @memberof BankAccountsApiListBankAccounts
|
|
623
637
|
*/
|
|
624
|
-
readonly filter?:
|
|
638
|
+
readonly filter?: string
|
|
625
639
|
|
|
626
640
|
/**
|
|
627
641
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -631,25 +645,25 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
631
645
|
readonly search?: any
|
|
632
646
|
|
|
633
647
|
/**
|
|
634
|
-
*
|
|
635
|
-
* @type {
|
|
648
|
+
* 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>
|
|
649
|
+
* @type {string}
|
|
636
650
|
* @memberof BankAccountsApiListBankAccounts
|
|
637
651
|
*/
|
|
638
|
-
readonly order?:
|
|
652
|
+
readonly order?: string
|
|
639
653
|
|
|
640
654
|
/**
|
|
641
|
-
*
|
|
642
|
-
* @type {
|
|
655
|
+
* 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.
|
|
656
|
+
* @type {'primaryBankAccount'}
|
|
643
657
|
* @memberof BankAccountsApiListBankAccounts
|
|
644
658
|
*/
|
|
645
|
-
readonly expand?:
|
|
659
|
+
readonly expand?: 'primaryBankAccount'
|
|
646
660
|
|
|
647
661
|
/**
|
|
648
|
-
* Filters the response by one or multiple fields.
|
|
649
|
-
* @type {
|
|
662
|
+
* 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>
|
|
663
|
+
* @type {string}
|
|
650
664
|
* @memberof BankAccountsApiListBankAccounts
|
|
651
665
|
*/
|
|
652
|
-
readonly filters?:
|
|
666
|
+
readonly filters?: string
|
|
653
667
|
}
|
|
654
668
|
|
|
655
669
|
/**
|
|
@@ -716,7 +730,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
716
730
|
*/
|
|
717
731
|
export class BankAccountsApi extends BaseAPI {
|
|
718
732
|
/**
|
|
719
|
-
* Creates a bank account for a specified account.
|
|
733
|
+
* 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
734
|
* @summary Create a bank account
|
|
721
735
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
722
736
|
* @param {*} [options] Override http request option.
|
|
@@ -728,7 +742,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
728
742
|
}
|
|
729
743
|
|
|
730
744
|
/**
|
|
731
|
-
* Deletes a bank account by code
|
|
745
|
+
* 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
746
|
* @summary Delete the bank account
|
|
733
747
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
734
748
|
* @param {*} [options] Override http request option.
|
|
@@ -740,19 +754,19 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
740
754
|
}
|
|
741
755
|
|
|
742
756
|
/**
|
|
743
|
-
* Retrieves the details of the
|
|
744
|
-
* @summary Retrieve the
|
|
757
|
+
* 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.
|
|
758
|
+
* @summary Retrieve the bank account
|
|
745
759
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
746
760
|
* @param {*} [options] Override http request option.
|
|
747
761
|
* @throws {RequiredError}
|
|
748
762
|
* @memberof BankAccountsApi
|
|
749
763
|
*/
|
|
750
764
|
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
751
|
-
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
765
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
752
766
|
}
|
|
753
767
|
|
|
754
768
|
/**
|
|
755
|
-
* Returns a list of bank accounts you
|
|
769
|
+
* 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
770
|
* @summary List bank accounts
|
|
757
771
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
758
772
|
* @param {*} [options] Override http request option.
|
|
@@ -764,7 +778,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
764
778
|
}
|
|
765
779
|
|
|
766
780
|
/**
|
|
767
|
-
* Set primary bank account
|
|
781
|
+
* Set the primary bank account for the specified partner/account
|
|
768
782
|
* @summary Set primary bank account
|
|
769
783
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
770
784
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -105,6 +105,10 @@ export class BaseAPI {
|
|
|
105
105
|
this.configuration.basePath = env;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
async authorize(username: string, password: string): Promise<void> {
|
|
109
113
|
const options: AxiosRequestConfig = {
|
|
110
114
|
method: 'POST',
|
|
@@ -22,7 +22,7 @@ import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
|
-
* Creates a bank account for a specified account.
|
|
25
|
+
* 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
26
|
* @summary Create a bank account
|
|
27
27
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
28
28
|
* @param {string} [authorization] Bearer Token
|
|
@@ -31,7 +31,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
31
31
|
*/
|
|
32
32
|
createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
|
-
* Deletes a bank account by code
|
|
34
|
+
* 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
35
|
* @summary Delete the bank account
|
|
36
36
|
* @param {string} code Unique identifier for the object.
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
@@ -40,31 +40,32 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
40
40
|
*/
|
|
41
41
|
deleteBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
42
|
/**
|
|
43
|
-
* Retrieves the details of the
|
|
44
|
-
* @summary Retrieve the
|
|
43
|
+
* 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.
|
|
44
|
+
* @summary Retrieve the bank account
|
|
45
45
|
* @param {string} code Unique identifier for the object.
|
|
46
46
|
* @param {string} [authorization] Bearer Token
|
|
47
|
+
* @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
48
|
* @param {*} [options] Override http request option.
|
|
48
49
|
* @throws {RequiredError}
|
|
49
50
|
*/
|
|
50
|
-
getBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
getBankAccount: (code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
52
|
/**
|
|
52
|
-
* Returns a list of bank accounts you
|
|
53
|
+
* 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
54
|
* @summary List bank accounts
|
|
54
55
|
* @param {string} [authorization] Bearer Token
|
|
55
56
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
56
57
|
* @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 {
|
|
58
|
+
* @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
59
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {
|
|
60
|
+
* @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>
|
|
61
|
+
* @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.
|
|
62
|
+
* @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
63
|
* @param {*} [options] Override http request option.
|
|
63
64
|
* @throws {RequiredError}
|
|
64
65
|
*/
|
|
65
|
-
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
66
|
+
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
67
|
/**
|
|
67
|
-
* Set primary bank account
|
|
68
|
+
* Set the primary bank account for the specified partner/account
|
|
68
69
|
* @summary Set primary bank account
|
|
69
70
|
* @param {string} code Code of the bank account to set primary
|
|
70
71
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -90,7 +91,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
90
91
|
*/
|
|
91
92
|
export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
92
93
|
/**
|
|
93
|
-
* Creates a bank account for a specified account.
|
|
94
|
+
* 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
95
|
* @summary Create a bank account
|
|
95
96
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
96
97
|
* @param {string} [authorization] Bearer Token
|
|
@@ -99,7 +100,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
99
100
|
*/
|
|
100
101
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
102
|
/**
|
|
102
|
-
* Deletes a bank account by code
|
|
103
|
+
* 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
104
|
* @summary Delete the bank account
|
|
104
105
|
* @param {string} code Unique identifier for the object.
|
|
105
106
|
* @param {string} [authorization] Bearer Token
|
|
@@ -108,31 +109,32 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
108
109
|
*/
|
|
109
110
|
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
110
111
|
/**
|
|
111
|
-
* Retrieves the details of the
|
|
112
|
-
* @summary Retrieve the
|
|
112
|
+
* 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.
|
|
113
|
+
* @summary Retrieve the bank account
|
|
113
114
|
* @param {string} code Unique identifier for the object.
|
|
114
115
|
* @param {string} [authorization] Bearer Token
|
|
116
|
+
* @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
117
|
* @param {*} [options] Override http request option.
|
|
116
118
|
* @throws {RequiredError}
|
|
117
119
|
*/
|
|
118
|
-
getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
120
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
119
121
|
/**
|
|
120
|
-
* Returns a list of bank accounts you
|
|
122
|
+
* 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
123
|
* @summary List bank accounts
|
|
122
124
|
* @param {string} [authorization] Bearer Token
|
|
123
125
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
124
126
|
* @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 {
|
|
127
|
+
* @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
128
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
127
|
-
* @param {
|
|
128
|
-
* @param {
|
|
129
|
-
* @param {
|
|
129
|
+
* @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>
|
|
130
|
+
* @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.
|
|
131
|
+
* @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
132
|
* @param {*} [options] Override http request option.
|
|
131
133
|
* @throws {RequiredError}
|
|
132
134
|
*/
|
|
133
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
135
|
+
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
136
|
/**
|
|
135
|
-
* Set primary bank account
|
|
137
|
+
* Set the primary bank account for the specified partner/account
|
|
136
138
|
* @summary Set primary bank account
|
|
137
139
|
* @param {string} code Code of the bank account to set primary
|
|
138
140
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -158,7 +160,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
158
160
|
*/
|
|
159
161
|
export declare const BankAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
160
162
|
/**
|
|
161
|
-
* Creates a bank account for a specified account.
|
|
163
|
+
* 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
164
|
* @summary Create a bank account
|
|
163
165
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
164
166
|
* @param {string} [authorization] Bearer Token
|
|
@@ -167,7 +169,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
167
169
|
*/
|
|
168
170
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
169
171
|
/**
|
|
170
|
-
* Deletes a bank account by code
|
|
172
|
+
* 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
173
|
* @summary Delete the bank account
|
|
172
174
|
* @param {string} code Unique identifier for the object.
|
|
173
175
|
* @param {string} [authorization] Bearer Token
|
|
@@ -176,31 +178,32 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
176
178
|
*/
|
|
177
179
|
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
178
180
|
/**
|
|
179
|
-
* Retrieves the details of the
|
|
180
|
-
* @summary Retrieve the
|
|
181
|
+
* 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.
|
|
182
|
+
* @summary Retrieve the bank account
|
|
181
183
|
* @param {string} code Unique identifier for the object.
|
|
182
184
|
* @param {string} [authorization] Bearer Token
|
|
185
|
+
* @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
186
|
* @param {*} [options] Override http request option.
|
|
184
187
|
* @throws {RequiredError}
|
|
185
188
|
*/
|
|
186
|
-
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
189
|
+
getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
187
190
|
/**
|
|
188
|
-
* Returns a list of bank accounts you
|
|
191
|
+
* 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
192
|
* @summary List bank accounts
|
|
190
193
|
* @param {string} [authorization] Bearer Token
|
|
191
194
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
192
195
|
* @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 {
|
|
196
|
+
* @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
197
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
195
|
-
* @param {
|
|
196
|
-
* @param {
|
|
197
|
-
* @param {
|
|
198
|
+
* @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>
|
|
199
|
+
* @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.
|
|
200
|
+
* @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
201
|
* @param {*} [options] Override http request option.
|
|
199
202
|
* @throws {RequiredError}
|
|
200
203
|
*/
|
|
201
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
204
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: any): AxiosPromise<void>;
|
|
202
205
|
/**
|
|
203
|
-
* Set primary bank account
|
|
206
|
+
* Set the primary bank account for the specified partner/account
|
|
204
207
|
* @summary Set primary bank account
|
|
205
208
|
* @param {string} code Code of the bank account to set primary
|
|
206
209
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -276,6 +279,12 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
276
279
|
* @memberof BankAccountsApiGetBankAccount
|
|
277
280
|
*/
|
|
278
281
|
readonly authorization?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
284
|
+
* @type {'primaryBankAccount'}
|
|
285
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
286
|
+
*/
|
|
287
|
+
readonly expand?: 'primaryBankAccount';
|
|
279
288
|
}
|
|
280
289
|
/**
|
|
281
290
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
@@ -302,11 +311,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
302
311
|
*/
|
|
303
312
|
readonly pageToken?: any;
|
|
304
313
|
/**
|
|
305
|
-
* Filter the response by one or multiple fields.
|
|
306
|
-
* @type {
|
|
314
|
+
* 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>
|
|
315
|
+
* @type {string}
|
|
307
316
|
* @memberof BankAccountsApiListBankAccounts
|
|
308
317
|
*/
|
|
309
|
-
readonly filter?:
|
|
318
|
+
readonly filter?: string;
|
|
310
319
|
/**
|
|
311
320
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
312
321
|
* @type {any}
|
|
@@ -314,23 +323,23 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
314
323
|
*/
|
|
315
324
|
readonly search?: any;
|
|
316
325
|
/**
|
|
317
|
-
*
|
|
318
|
-
* @type {
|
|
326
|
+
* 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>
|
|
327
|
+
* @type {string}
|
|
319
328
|
* @memberof BankAccountsApiListBankAccounts
|
|
320
329
|
*/
|
|
321
|
-
readonly order?:
|
|
330
|
+
readonly order?: string;
|
|
322
331
|
/**
|
|
323
|
-
*
|
|
324
|
-
* @type {
|
|
332
|
+
* 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.
|
|
333
|
+
* @type {'primaryBankAccount'}
|
|
325
334
|
* @memberof BankAccountsApiListBankAccounts
|
|
326
335
|
*/
|
|
327
|
-
readonly expand?:
|
|
336
|
+
readonly expand?: 'primaryBankAccount';
|
|
328
337
|
/**
|
|
329
|
-
* Filters the response by one or multiple fields.
|
|
330
|
-
* @type {
|
|
338
|
+
* 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>
|
|
339
|
+
* @type {string}
|
|
331
340
|
* @memberof BankAccountsApiListBankAccounts
|
|
332
341
|
*/
|
|
333
|
-
readonly filters?:
|
|
342
|
+
readonly filters?: string;
|
|
334
343
|
}
|
|
335
344
|
/**
|
|
336
345
|
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
@@ -390,7 +399,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
390
399
|
*/
|
|
391
400
|
export declare class BankAccountsApi extends BaseAPI {
|
|
392
401
|
/**
|
|
393
|
-
* Creates a bank account for a specified account.
|
|
402
|
+
* 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
403
|
* @summary Create a bank account
|
|
395
404
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
396
405
|
* @param {*} [options] Override http request option.
|
|
@@ -399,7 +408,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
399
408
|
*/
|
|
400
409
|
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
401
410
|
/**
|
|
402
|
-
* Deletes a bank account by code
|
|
411
|
+
* 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
412
|
* @summary Delete the bank account
|
|
404
413
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
405
414
|
* @param {*} [options] Override http request option.
|
|
@@ -408,8 +417,8 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
408
417
|
*/
|
|
409
418
|
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
410
419
|
/**
|
|
411
|
-
* Retrieves the details of the
|
|
412
|
-
* @summary Retrieve the
|
|
420
|
+
* 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.
|
|
421
|
+
* @summary Retrieve the bank account
|
|
413
422
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
414
423
|
* @param {*} [options] Override http request option.
|
|
415
424
|
* @throws {RequiredError}
|
|
@@ -417,7 +426,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
417
426
|
*/
|
|
418
427
|
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
|
|
419
428
|
/**
|
|
420
|
-
* Returns a list of bank accounts you
|
|
429
|
+
* 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
430
|
* @summary List bank accounts
|
|
422
431
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
423
432
|
* @param {*} [options] Override http request option.
|
|
@@ -426,7 +435,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
426
435
|
*/
|
|
427
436
|
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
428
437
|
/**
|
|
429
|
-
* Set primary bank account
|
|
438
|
+
* Set the primary bank account for the specified partner/account
|
|
430
439
|
* @summary Set primary bank account
|
|
431
440
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
432
441
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
@@ -140,6 +140,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
140
140
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
141
141
|
this.configuration.basePath = env;
|
|
142
142
|
};
|
|
143
|
+
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
|
+
this.configuration.basePath = path;
|
|
145
|
+
};
|
|
143
146
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
144
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
148
|
var options, response, accessToken;
|