flexinet-api 0.0.1405-prerelease0 → 0.0.1407-prerelease0
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.ts +100 -9
- package/dist/api.d.ts +45 -4
- package/dist/api.js +93 -9
- package/dist/esm/api.d.ts +45 -4
- package/dist/esm/api.js +93 -9
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1407-prerelease0
|
2
2
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
4
4
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
36
36
|
_published:_
|
37
37
|
|
38
38
|
```
|
39
|
-
npm install flexinet-api@0.0.
|
39
|
+
npm install flexinet-api@0.0.1407-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -4627,6 +4627,58 @@ export class AuditApi extends BaseAPI {
|
|
4627
4627
|
*/
|
4628
4628
|
export const BalanceApiAxiosParamCreator = function (configuration?: Configuration) {
|
4629
4629
|
return {
|
4630
|
+
/**
|
4631
|
+
* Get balance
|
4632
|
+
* @summary Get balance by beneficiary and currency
|
4633
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4634
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4635
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4636
|
+
* @param {*} [options] Override http request option.
|
4637
|
+
* @throws {RequiredError}
|
4638
|
+
*/
|
4639
|
+
getBalance: async (beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4640
|
+
// verify required parameter 'beneficiaryValue' is not null or undefined
|
4641
|
+
assertParamExists('getBalance', 'beneficiaryValue', beneficiaryValue)
|
4642
|
+
// verify required parameter 'kind' is not null or undefined
|
4643
|
+
assertParamExists('getBalance', 'kind', kind)
|
4644
|
+
// verify required parameter 'currency' is not null or undefined
|
4645
|
+
assertParamExists('getBalance', 'currency', currency)
|
4646
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
4647
|
+
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
4648
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4649
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4650
|
+
let baseOptions;
|
4651
|
+
if (configuration) {
|
4652
|
+
baseOptions = configuration.baseOptions;
|
4653
|
+
}
|
4654
|
+
|
4655
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
4656
|
+
const localVarHeaderParameter = {} as any;
|
4657
|
+
const localVarQueryParameter = {} as any;
|
4658
|
+
|
4659
|
+
// authentication systemJWT required
|
4660
|
+
// http bearer authentication required
|
4661
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
4662
|
+
|
4663
|
+
if (kind !== undefined) {
|
4664
|
+
localVarQueryParameter['kind'] = kind;
|
4665
|
+
}
|
4666
|
+
|
4667
|
+
if (currency !== undefined) {
|
4668
|
+
localVarQueryParameter['currency'] = currency;
|
4669
|
+
}
|
4670
|
+
|
4671
|
+
|
4672
|
+
|
4673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4675
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4676
|
+
|
4677
|
+
return {
|
4678
|
+
url: toPathString(localVarUrlObj),
|
4679
|
+
options: localVarRequestOptions,
|
4680
|
+
};
|
4681
|
+
},
|
4630
4682
|
/**
|
4631
4683
|
* Get balance
|
4632
4684
|
* @summary Get balance
|
@@ -4635,11 +4687,11 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
4635
4687
|
* @param {*} [options] Override http request option.
|
4636
4688
|
* @throws {RequiredError}
|
4637
4689
|
*/
|
4638
|
-
|
4690
|
+
getBalances: async (beneficiaryValues: Array<string>, kind: BeneficiaryKind, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4639
4691
|
// verify required parameter 'beneficiaryValues' is not null or undefined
|
4640
|
-
assertParamExists('
|
4692
|
+
assertParamExists('getBalances', 'beneficiaryValues', beneficiaryValues)
|
4641
4693
|
// verify required parameter 'kind' is not null or undefined
|
4642
|
-
assertParamExists('
|
4694
|
+
assertParamExists('getBalances', 'kind', kind)
|
4643
4695
|
const localVarPath = `/admins/balances`;
|
4644
4696
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4645
4697
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -4808,6 +4860,19 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
4808
4860
|
export const BalanceApiFp = function(configuration?: Configuration) {
|
4809
4861
|
const localVarAxiosParamCreator = BalanceApiAxiosParamCreator(configuration)
|
4810
4862
|
return {
|
4863
|
+
/**
|
4864
|
+
* Get balance
|
4865
|
+
* @summary Get balance by beneficiary and currency
|
4866
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4867
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4868
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4869
|
+
* @param {*} [options] Override http request option.
|
4870
|
+
* @throws {RequiredError}
|
4871
|
+
*/
|
4872
|
+
async getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>> {
|
4873
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, currency, options);
|
4874
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4875
|
+
},
|
4811
4876
|
/**
|
4812
4877
|
* Get balance
|
4813
4878
|
* @summary Get balance
|
@@ -4816,8 +4881,8 @@ export const BalanceApiFp = function(configuration?: Configuration) {
|
|
4816
4881
|
* @param {*} [options] Override http request option.
|
4817
4882
|
* @throws {RequiredError}
|
4818
4883
|
*/
|
4819
|
-
async
|
4820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
4884
|
+
async getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalancesResponse>> {
|
4885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBalances(beneficiaryValues, kind, options);
|
4821
4886
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4822
4887
|
},
|
4823
4888
|
/**
|
@@ -4865,6 +4930,18 @@ export const BalanceApiFp = function(configuration?: Configuration) {
|
|
4865
4930
|
export const BalanceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
4866
4931
|
const localVarFp = BalanceApiFp(configuration)
|
4867
4932
|
return {
|
4933
|
+
/**
|
4934
|
+
* Get balance
|
4935
|
+
* @summary Get balance by beneficiary and currency
|
4936
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4937
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4938
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4939
|
+
* @param {*} [options] Override http request option.
|
4940
|
+
* @throws {RequiredError}
|
4941
|
+
*/
|
4942
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: any): AxiosPromise<Balance> {
|
4943
|
+
return localVarFp.getBalance(beneficiaryValue, kind, currency, options).then((request) => request(axios, basePath));
|
4944
|
+
},
|
4868
4945
|
/**
|
4869
4946
|
* Get balance
|
4870
4947
|
* @summary Get balance
|
@@ -4873,8 +4950,8 @@ export const BalanceApiFactory = function (configuration?: Configuration, basePa
|
|
4873
4950
|
* @param {*} [options] Override http request option.
|
4874
4951
|
* @throws {RequiredError}
|
4875
4952
|
*/
|
4876
|
-
|
4877
|
-
return localVarFp.
|
4953
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: any): AxiosPromise<BalancesResponse> {
|
4954
|
+
return localVarFp.getBalances(beneficiaryValues, kind, options).then((request) => request(axios, basePath));
|
4878
4955
|
},
|
4879
4956
|
/**
|
4880
4957
|
* Get balance for the user
|
@@ -4918,6 +4995,20 @@ export const BalanceApiFactory = function (configuration?: Configuration, basePa
|
|
4918
4995
|
* @extends {BaseAPI}
|
4919
4996
|
*/
|
4920
4997
|
export class BalanceApi extends BaseAPI {
|
4998
|
+
/**
|
4999
|
+
* Get balance
|
5000
|
+
* @summary Get balance by beneficiary and currency
|
5001
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
5002
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
5003
|
+
* @param {TransactionCurrencyKind} currency Currency
|
5004
|
+
* @param {*} [options] Override http request option.
|
5005
|
+
* @throws {RequiredError}
|
5006
|
+
* @memberof BalanceApi
|
5007
|
+
*/
|
5008
|
+
public getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig) {
|
5009
|
+
return BalanceApiFp(this.configuration).getBalance(beneficiaryValue, kind, currency, options).then((request) => request(this.axios, this.basePath));
|
5010
|
+
}
|
5011
|
+
|
4921
5012
|
/**
|
4922
5013
|
* Get balance
|
4923
5014
|
* @summary Get balance
|
@@ -4927,8 +5018,8 @@ export class BalanceApi extends BaseAPI {
|
|
4927
5018
|
* @throws {RequiredError}
|
4928
5019
|
* @memberof BalanceApi
|
4929
5020
|
*/
|
4930
|
-
public
|
4931
|
-
return BalanceApiFp(this.configuration).
|
5021
|
+
public getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig) {
|
5022
|
+
return BalanceApiFp(this.configuration).getBalances(beneficiaryValues, kind, options).then((request) => request(this.axios, this.basePath));
|
4932
5023
|
}
|
4933
5024
|
|
4934
5025
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -4313,6 +4313,16 @@ export declare class AuditApi extends BaseAPI {
|
|
4313
4313
|
* @export
|
4314
4314
|
*/
|
4315
4315
|
export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration) => {
|
4316
|
+
/**
|
4317
|
+
* Get balance
|
4318
|
+
* @summary Get balance by beneficiary and currency
|
4319
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4320
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4321
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4322
|
+
* @param {*} [options] Override http request option.
|
4323
|
+
* @throws {RequiredError}
|
4324
|
+
*/
|
4325
|
+
getBalance: (beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4316
4326
|
/**
|
4317
4327
|
* Get balance
|
4318
4328
|
* @summary Get balance
|
@@ -4321,7 +4331,7 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
|
|
4321
4331
|
* @param {*} [options] Override http request option.
|
4322
4332
|
* @throws {RequiredError}
|
4323
4333
|
*/
|
4324
|
-
|
4334
|
+
getBalances: (beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4325
4335
|
/**
|
4326
4336
|
* Get balance for the user
|
4327
4337
|
* @summary Get balance
|
@@ -4354,6 +4364,16 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
|
|
4354
4364
|
* @export
|
4355
4365
|
*/
|
4356
4366
|
export declare const BalanceApiFp: (configuration?: Configuration) => {
|
4367
|
+
/**
|
4368
|
+
* Get balance
|
4369
|
+
* @summary Get balance by beneficiary and currency
|
4370
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4371
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4372
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4373
|
+
* @param {*} [options] Override http request option.
|
4374
|
+
* @throws {RequiredError}
|
4375
|
+
*/
|
4376
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
|
4357
4377
|
/**
|
4358
4378
|
* Get balance
|
4359
4379
|
* @summary Get balance
|
@@ -4362,7 +4382,7 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
|
|
4362
4382
|
* @param {*} [options] Override http request option.
|
4363
4383
|
* @throws {RequiredError}
|
4364
4384
|
*/
|
4365
|
-
|
4385
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalancesResponse>>;
|
4366
4386
|
/**
|
4367
4387
|
* Get balance for the user
|
4368
4388
|
* @summary Get balance
|
@@ -4395,6 +4415,16 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
|
|
4395
4415
|
* @export
|
4396
4416
|
*/
|
4397
4417
|
export declare const BalanceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
4418
|
+
/**
|
4419
|
+
* Get balance
|
4420
|
+
* @summary Get balance by beneficiary and currency
|
4421
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4422
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4423
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4424
|
+
* @param {*} [options] Override http request option.
|
4425
|
+
* @throws {RequiredError}
|
4426
|
+
*/
|
4427
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: any): AxiosPromise<Balance>;
|
4398
4428
|
/**
|
4399
4429
|
* Get balance
|
4400
4430
|
* @summary Get balance
|
@@ -4403,7 +4433,7 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
|
|
4403
4433
|
* @param {*} [options] Override http request option.
|
4404
4434
|
* @throws {RequiredError}
|
4405
4435
|
*/
|
4406
|
-
|
4436
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: any): AxiosPromise<BalancesResponse>;
|
4407
4437
|
/**
|
4408
4438
|
* Get balance for the user
|
4409
4439
|
* @summary Get balance
|
@@ -4438,6 +4468,17 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
|
|
4438
4468
|
* @extends {BaseAPI}
|
4439
4469
|
*/
|
4440
4470
|
export declare class BalanceApi extends BaseAPI {
|
4471
|
+
/**
|
4472
|
+
* Get balance
|
4473
|
+
* @summary Get balance by beneficiary and currency
|
4474
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4475
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4476
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4477
|
+
* @param {*} [options] Override http request option.
|
4478
|
+
* @throws {RequiredError}
|
4479
|
+
* @memberof BalanceApi
|
4480
|
+
*/
|
4481
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
|
4441
4482
|
/**
|
4442
4483
|
* Get balance
|
4443
4484
|
* @summary Get balance
|
@@ -4447,7 +4488,7 @@ export declare class BalanceApi extends BaseAPI {
|
|
4447
4488
|
* @throws {RequiredError}
|
4448
4489
|
* @memberof BalanceApi
|
4449
4490
|
*/
|
4450
|
-
|
4491
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BalancesResponse, any>>;
|
4451
4492
|
/**
|
4452
4493
|
* Get balance for the user
|
4453
4494
|
* @summary Get balance
|
package/dist/api.js
CHANGED
@@ -624,6 +624,50 @@ exports.AuditApi = AuditApi;
|
|
624
624
|
*/
|
625
625
|
const BalanceApiAxiosParamCreator = function (configuration) {
|
626
626
|
return {
|
627
|
+
/**
|
628
|
+
* Get balance
|
629
|
+
* @summary Get balance by beneficiary and currency
|
630
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
631
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
632
|
+
* @param {TransactionCurrencyKind} currency Currency
|
633
|
+
* @param {*} [options] Override http request option.
|
634
|
+
* @throws {RequiredError}
|
635
|
+
*/
|
636
|
+
getBalance: (beneficiaryValue, kind, currency, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
637
|
+
// verify required parameter 'beneficiaryValue' is not null or undefined
|
638
|
+
(0, common_1.assertParamExists)('getBalance', 'beneficiaryValue', beneficiaryValue);
|
639
|
+
// verify required parameter 'kind' is not null or undefined
|
640
|
+
(0, common_1.assertParamExists)('getBalance', 'kind', kind);
|
641
|
+
// verify required parameter 'currency' is not null or undefined
|
642
|
+
(0, common_1.assertParamExists)('getBalance', 'currency', currency);
|
643
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
644
|
+
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
645
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
646
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
647
|
+
let baseOptions;
|
648
|
+
if (configuration) {
|
649
|
+
baseOptions = configuration.baseOptions;
|
650
|
+
}
|
651
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
652
|
+
const localVarHeaderParameter = {};
|
653
|
+
const localVarQueryParameter = {};
|
654
|
+
// authentication systemJWT required
|
655
|
+
// http bearer authentication required
|
656
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
657
|
+
if (kind !== undefined) {
|
658
|
+
localVarQueryParameter['kind'] = kind;
|
659
|
+
}
|
660
|
+
if (currency !== undefined) {
|
661
|
+
localVarQueryParameter['currency'] = currency;
|
662
|
+
}
|
663
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
666
|
+
return {
|
667
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
668
|
+
options: localVarRequestOptions,
|
669
|
+
};
|
670
|
+
}),
|
627
671
|
/**
|
628
672
|
* Get balance
|
629
673
|
* @summary Get balance
|
@@ -632,11 +676,11 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
632
676
|
* @param {*} [options] Override http request option.
|
633
677
|
* @throws {RequiredError}
|
634
678
|
*/
|
635
|
-
|
679
|
+
getBalances: (beneficiaryValues, kind, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
636
680
|
// verify required parameter 'beneficiaryValues' is not null or undefined
|
637
|
-
(0, common_1.assertParamExists)('
|
681
|
+
(0, common_1.assertParamExists)('getBalances', 'beneficiaryValues', beneficiaryValues);
|
638
682
|
// verify required parameter 'kind' is not null or undefined
|
639
|
-
(0, common_1.assertParamExists)('
|
683
|
+
(0, common_1.assertParamExists)('getBalances', 'kind', kind);
|
640
684
|
const localVarPath = `/admins/balances`;
|
641
685
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
642
686
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -776,6 +820,21 @@ exports.BalanceApiAxiosParamCreator = BalanceApiAxiosParamCreator;
|
|
776
820
|
const BalanceApiFp = function (configuration) {
|
777
821
|
const localVarAxiosParamCreator = (0, exports.BalanceApiAxiosParamCreator)(configuration);
|
778
822
|
return {
|
823
|
+
/**
|
824
|
+
* Get balance
|
825
|
+
* @summary Get balance by beneficiary and currency
|
826
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
827
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
828
|
+
* @param {TransactionCurrencyKind} currency Currency
|
829
|
+
* @param {*} [options] Override http request option.
|
830
|
+
* @throws {RequiredError}
|
831
|
+
*/
|
832
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
834
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, currency, options);
|
835
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
836
|
+
});
|
837
|
+
},
|
779
838
|
/**
|
780
839
|
* Get balance
|
781
840
|
* @summary Get balance
|
@@ -784,9 +843,9 @@ const BalanceApiFp = function (configuration) {
|
|
784
843
|
* @param {*} [options] Override http request option.
|
785
844
|
* @throws {RequiredError}
|
786
845
|
*/
|
787
|
-
|
846
|
+
getBalances(beneficiaryValues, kind, options) {
|
788
847
|
return __awaiter(this, void 0, void 0, function* () {
|
789
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
848
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalances(beneficiaryValues, kind, options);
|
790
849
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
791
850
|
});
|
792
851
|
},
|
@@ -841,6 +900,18 @@ exports.BalanceApiFp = BalanceApiFp;
|
|
841
900
|
const BalanceApiFactory = function (configuration, basePath, axios) {
|
842
901
|
const localVarFp = (0, exports.BalanceApiFp)(configuration);
|
843
902
|
return {
|
903
|
+
/**
|
904
|
+
* Get balance
|
905
|
+
* @summary Get balance by beneficiary and currency
|
906
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
907
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
908
|
+
* @param {TransactionCurrencyKind} currency Currency
|
909
|
+
* @param {*} [options] Override http request option.
|
910
|
+
* @throws {RequiredError}
|
911
|
+
*/
|
912
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
913
|
+
return localVarFp.getBalance(beneficiaryValue, kind, currency, options).then((request) => request(axios, basePath));
|
914
|
+
},
|
844
915
|
/**
|
845
916
|
* Get balance
|
846
917
|
* @summary Get balance
|
@@ -849,8 +920,8 @@ const BalanceApiFactory = function (configuration, basePath, axios) {
|
|
849
920
|
* @param {*} [options] Override http request option.
|
850
921
|
* @throws {RequiredError}
|
851
922
|
*/
|
852
|
-
|
853
|
-
return localVarFp.
|
923
|
+
getBalances(beneficiaryValues, kind, options) {
|
924
|
+
return localVarFp.getBalances(beneficiaryValues, kind, options).then((request) => request(axios, basePath));
|
854
925
|
},
|
855
926
|
/**
|
856
927
|
* Get balance for the user
|
@@ -894,6 +965,19 @@ exports.BalanceApiFactory = BalanceApiFactory;
|
|
894
965
|
* @extends {BaseAPI}
|
895
966
|
*/
|
896
967
|
class BalanceApi extends base_1.BaseAPI {
|
968
|
+
/**
|
969
|
+
* Get balance
|
970
|
+
* @summary Get balance by beneficiary and currency
|
971
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
972
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
973
|
+
* @param {TransactionCurrencyKind} currency Currency
|
974
|
+
* @param {*} [options] Override http request option.
|
975
|
+
* @throws {RequiredError}
|
976
|
+
* @memberof BalanceApi
|
977
|
+
*/
|
978
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
979
|
+
return (0, exports.BalanceApiFp)(this.configuration).getBalance(beneficiaryValue, kind, currency, options).then((request) => request(this.axios, this.basePath));
|
980
|
+
}
|
897
981
|
/**
|
898
982
|
* Get balance
|
899
983
|
* @summary Get balance
|
@@ -903,8 +987,8 @@ class BalanceApi extends base_1.BaseAPI {
|
|
903
987
|
* @throws {RequiredError}
|
904
988
|
* @memberof BalanceApi
|
905
989
|
*/
|
906
|
-
|
907
|
-
return (0, exports.BalanceApiFp)(this.configuration).
|
990
|
+
getBalances(beneficiaryValues, kind, options) {
|
991
|
+
return (0, exports.BalanceApiFp)(this.configuration).getBalances(beneficiaryValues, kind, options).then((request) => request(this.axios, this.basePath));
|
908
992
|
}
|
909
993
|
/**
|
910
994
|
* Get balance for the user
|
package/dist/esm/api.d.ts
CHANGED
@@ -4313,6 +4313,16 @@ export declare class AuditApi extends BaseAPI {
|
|
4313
4313
|
* @export
|
4314
4314
|
*/
|
4315
4315
|
export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration) => {
|
4316
|
+
/**
|
4317
|
+
* Get balance
|
4318
|
+
* @summary Get balance by beneficiary and currency
|
4319
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4320
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4321
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4322
|
+
* @param {*} [options] Override http request option.
|
4323
|
+
* @throws {RequiredError}
|
4324
|
+
*/
|
4325
|
+
getBalance: (beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4316
4326
|
/**
|
4317
4327
|
* Get balance
|
4318
4328
|
* @summary Get balance
|
@@ -4321,7 +4331,7 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
|
|
4321
4331
|
* @param {*} [options] Override http request option.
|
4322
4332
|
* @throws {RequiredError}
|
4323
4333
|
*/
|
4324
|
-
|
4334
|
+
getBalances: (beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4325
4335
|
/**
|
4326
4336
|
* Get balance for the user
|
4327
4337
|
* @summary Get balance
|
@@ -4354,6 +4364,16 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
|
|
4354
4364
|
* @export
|
4355
4365
|
*/
|
4356
4366
|
export declare const BalanceApiFp: (configuration?: Configuration) => {
|
4367
|
+
/**
|
4368
|
+
* Get balance
|
4369
|
+
* @summary Get balance by beneficiary and currency
|
4370
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4371
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4372
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4373
|
+
* @param {*} [options] Override http request option.
|
4374
|
+
* @throws {RequiredError}
|
4375
|
+
*/
|
4376
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
|
4357
4377
|
/**
|
4358
4378
|
* Get balance
|
4359
4379
|
* @summary Get balance
|
@@ -4362,7 +4382,7 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
|
|
4362
4382
|
* @param {*} [options] Override http request option.
|
4363
4383
|
* @throws {RequiredError}
|
4364
4384
|
*/
|
4365
|
-
|
4385
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalancesResponse>>;
|
4366
4386
|
/**
|
4367
4387
|
* Get balance for the user
|
4368
4388
|
* @summary Get balance
|
@@ -4395,6 +4415,16 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
|
|
4395
4415
|
* @export
|
4396
4416
|
*/
|
4397
4417
|
export declare const BalanceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
4418
|
+
/**
|
4419
|
+
* Get balance
|
4420
|
+
* @summary Get balance by beneficiary and currency
|
4421
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4422
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4423
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4424
|
+
* @param {*} [options] Override http request option.
|
4425
|
+
* @throws {RequiredError}
|
4426
|
+
*/
|
4427
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: any): AxiosPromise<Balance>;
|
4398
4428
|
/**
|
4399
4429
|
* Get balance
|
4400
4430
|
* @summary Get balance
|
@@ -4403,7 +4433,7 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
|
|
4403
4433
|
* @param {*} [options] Override http request option.
|
4404
4434
|
* @throws {RequiredError}
|
4405
4435
|
*/
|
4406
|
-
|
4436
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: any): AxiosPromise<BalancesResponse>;
|
4407
4437
|
/**
|
4408
4438
|
* Get balance for the user
|
4409
4439
|
* @summary Get balance
|
@@ -4438,6 +4468,17 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
|
|
4438
4468
|
* @extends {BaseAPI}
|
4439
4469
|
*/
|
4440
4470
|
export declare class BalanceApi extends BaseAPI {
|
4471
|
+
/**
|
4472
|
+
* Get balance
|
4473
|
+
* @summary Get balance by beneficiary and currency
|
4474
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
4475
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
4476
|
+
* @param {TransactionCurrencyKind} currency Currency
|
4477
|
+
* @param {*} [options] Override http request option.
|
4478
|
+
* @throws {RequiredError}
|
4479
|
+
* @memberof BalanceApi
|
4480
|
+
*/
|
4481
|
+
getBalance(beneficiaryValue: string, kind: BeneficiaryKind, currency: TransactionCurrencyKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
|
4441
4482
|
/**
|
4442
4483
|
* Get balance
|
4443
4484
|
* @summary Get balance
|
@@ -4447,7 +4488,7 @@ export declare class BalanceApi extends BaseAPI {
|
|
4447
4488
|
* @throws {RequiredError}
|
4448
4489
|
* @memberof BalanceApi
|
4449
4490
|
*/
|
4450
|
-
|
4491
|
+
getBalances(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BalancesResponse, any>>;
|
4451
4492
|
/**
|
4452
4493
|
* Get balance for the user
|
4453
4494
|
* @summary Get balance
|
package/dist/esm/api.js
CHANGED
@@ -615,6 +615,50 @@ export class AuditApi extends BaseAPI {
|
|
615
615
|
*/
|
616
616
|
export const BalanceApiAxiosParamCreator = function (configuration) {
|
617
617
|
return {
|
618
|
+
/**
|
619
|
+
* Get balance
|
620
|
+
* @summary Get balance by beneficiary and currency
|
621
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
622
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
623
|
+
* @param {TransactionCurrencyKind} currency Currency
|
624
|
+
* @param {*} [options] Override http request option.
|
625
|
+
* @throws {RequiredError}
|
626
|
+
*/
|
627
|
+
getBalance: (beneficiaryValue, kind, currency, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
628
|
+
// verify required parameter 'beneficiaryValue' is not null or undefined
|
629
|
+
assertParamExists('getBalance', 'beneficiaryValue', beneficiaryValue);
|
630
|
+
// verify required parameter 'kind' is not null or undefined
|
631
|
+
assertParamExists('getBalance', 'kind', kind);
|
632
|
+
// verify required parameter 'currency' is not null or undefined
|
633
|
+
assertParamExists('getBalance', 'currency', currency);
|
634
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
635
|
+
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
638
|
+
let baseOptions;
|
639
|
+
if (configuration) {
|
640
|
+
baseOptions = configuration.baseOptions;
|
641
|
+
}
|
642
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
643
|
+
const localVarHeaderParameter = {};
|
644
|
+
const localVarQueryParameter = {};
|
645
|
+
// authentication systemJWT required
|
646
|
+
// http bearer authentication required
|
647
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
648
|
+
if (kind !== undefined) {
|
649
|
+
localVarQueryParameter['kind'] = kind;
|
650
|
+
}
|
651
|
+
if (currency !== undefined) {
|
652
|
+
localVarQueryParameter['currency'] = currency;
|
653
|
+
}
|
654
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
656
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
657
|
+
return {
|
658
|
+
url: toPathString(localVarUrlObj),
|
659
|
+
options: localVarRequestOptions,
|
660
|
+
};
|
661
|
+
}),
|
618
662
|
/**
|
619
663
|
* Get balance
|
620
664
|
* @summary Get balance
|
@@ -623,11 +667,11 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
623
667
|
* @param {*} [options] Override http request option.
|
624
668
|
* @throws {RequiredError}
|
625
669
|
*/
|
626
|
-
|
670
|
+
getBalances: (beneficiaryValues, kind, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
627
671
|
// verify required parameter 'beneficiaryValues' is not null or undefined
|
628
|
-
assertParamExists('
|
672
|
+
assertParamExists('getBalances', 'beneficiaryValues', beneficiaryValues);
|
629
673
|
// verify required parameter 'kind' is not null or undefined
|
630
|
-
assertParamExists('
|
674
|
+
assertParamExists('getBalances', 'kind', kind);
|
631
675
|
const localVarPath = `/admins/balances`;
|
632
676
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
633
677
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -766,6 +810,21 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
766
810
|
export const BalanceApiFp = function (configuration) {
|
767
811
|
const localVarAxiosParamCreator = BalanceApiAxiosParamCreator(configuration);
|
768
812
|
return {
|
813
|
+
/**
|
814
|
+
* Get balance
|
815
|
+
* @summary Get balance by beneficiary and currency
|
816
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
817
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
818
|
+
* @param {TransactionCurrencyKind} currency Currency
|
819
|
+
* @param {*} [options] Override http request option.
|
820
|
+
* @throws {RequiredError}
|
821
|
+
*/
|
822
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
824
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, currency, options);
|
825
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
826
|
+
});
|
827
|
+
},
|
769
828
|
/**
|
770
829
|
* Get balance
|
771
830
|
* @summary Get balance
|
@@ -774,9 +833,9 @@ export const BalanceApiFp = function (configuration) {
|
|
774
833
|
* @param {*} [options] Override http request option.
|
775
834
|
* @throws {RequiredError}
|
776
835
|
*/
|
777
|
-
|
836
|
+
getBalances(beneficiaryValues, kind, options) {
|
778
837
|
return __awaiter(this, void 0, void 0, function* () {
|
779
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalances(beneficiaryValues, kind, options);
|
780
839
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
781
840
|
});
|
782
841
|
},
|
@@ -830,6 +889,18 @@ export const BalanceApiFp = function (configuration) {
|
|
830
889
|
export const BalanceApiFactory = function (configuration, basePath, axios) {
|
831
890
|
const localVarFp = BalanceApiFp(configuration);
|
832
891
|
return {
|
892
|
+
/**
|
893
|
+
* Get balance
|
894
|
+
* @summary Get balance by beneficiary and currency
|
895
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
896
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
897
|
+
* @param {TransactionCurrencyKind} currency Currency
|
898
|
+
* @param {*} [options] Override http request option.
|
899
|
+
* @throws {RequiredError}
|
900
|
+
*/
|
901
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
902
|
+
return localVarFp.getBalance(beneficiaryValue, kind, currency, options).then((request) => request(axios, basePath));
|
903
|
+
},
|
833
904
|
/**
|
834
905
|
* Get balance
|
835
906
|
* @summary Get balance
|
@@ -838,8 +909,8 @@ export const BalanceApiFactory = function (configuration, basePath, axios) {
|
|
838
909
|
* @param {*} [options] Override http request option.
|
839
910
|
* @throws {RequiredError}
|
840
911
|
*/
|
841
|
-
|
842
|
-
return localVarFp.
|
912
|
+
getBalances(beneficiaryValues, kind, options) {
|
913
|
+
return localVarFp.getBalances(beneficiaryValues, kind, options).then((request) => request(axios, basePath));
|
843
914
|
},
|
844
915
|
/**
|
845
916
|
* Get balance for the user
|
@@ -882,6 +953,19 @@ export const BalanceApiFactory = function (configuration, basePath, axios) {
|
|
882
953
|
* @extends {BaseAPI}
|
883
954
|
*/
|
884
955
|
export class BalanceApi extends BaseAPI {
|
956
|
+
/**
|
957
|
+
* Get balance
|
958
|
+
* @summary Get balance by beneficiary and currency
|
959
|
+
* @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
|
960
|
+
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
961
|
+
* @param {TransactionCurrencyKind} currency Currency
|
962
|
+
* @param {*} [options] Override http request option.
|
963
|
+
* @throws {RequiredError}
|
964
|
+
* @memberof BalanceApi
|
965
|
+
*/
|
966
|
+
getBalance(beneficiaryValue, kind, currency, options) {
|
967
|
+
return BalanceApiFp(this.configuration).getBalance(beneficiaryValue, kind, currency, options).then((request) => request(this.axios, this.basePath));
|
968
|
+
}
|
885
969
|
/**
|
886
970
|
* Get balance
|
887
971
|
* @summary Get balance
|
@@ -891,8 +975,8 @@ export class BalanceApi extends BaseAPI {
|
|
891
975
|
* @throws {RequiredError}
|
892
976
|
* @memberof BalanceApi
|
893
977
|
*/
|
894
|
-
|
895
|
-
return BalanceApiFp(this.configuration).
|
978
|
+
getBalances(beneficiaryValues, kind, options) {
|
979
|
+
return BalanceApiFp(this.configuration).getBalances(beneficiaryValues, kind, options).then((request) => request(this.axios, this.basePath));
|
896
980
|
}
|
897
981
|
/**
|
898
982
|
* Get balance for the user
|