@finverse/sdk-typescript 0.0.86 → 0.0.88
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/dist/api.d.ts +168 -32
- package/dist/api.js +126 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -897,42 +897,12 @@ export interface CreateRecipientRequest {
|
|
|
897
897
|
* @interface CreateRecipientResponse
|
|
898
898
|
*/
|
|
899
899
|
export interface CreateRecipientResponse {
|
|
900
|
-
/**
|
|
901
|
-
* A unique identifier generated after creating recipient
|
|
902
|
-
* @type {string}
|
|
903
|
-
* @memberof CreateRecipientResponse
|
|
904
|
-
*/
|
|
905
|
-
recipient_account_id?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Recipient\'s name/nickname (note: this does not need to match the actual accountholder name of the recipient\'s account)
|
|
908
|
-
* @type {string}
|
|
909
|
-
* @memberof CreateRecipientResponse
|
|
910
|
-
*/
|
|
911
|
-
name: string;
|
|
912
900
|
/**
|
|
913
901
|
*
|
|
914
|
-
* @type {
|
|
915
|
-
* @memberof CreateRecipientResponse
|
|
916
|
-
*/
|
|
917
|
-
recipient_account: RecipientAccount;
|
|
918
|
-
/**
|
|
919
|
-
* Customer App\'s internal ID for the recipient
|
|
920
|
-
* @type {string}
|
|
902
|
+
* @type {RecipientResponse}
|
|
921
903
|
* @memberof CreateRecipientResponse
|
|
922
904
|
*/
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* Additional attributes of the recipient in key:value format (e.g. employer_name: Apple Inc for a payroll case where recipient is an employee)
|
|
926
|
-
* @type {object}
|
|
927
|
-
* @memberof CreateRecipientResponse
|
|
928
|
-
*/
|
|
929
|
-
metadata?: object;
|
|
930
|
-
/**
|
|
931
|
-
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
932
|
-
* @type {string}
|
|
933
|
-
* @memberof CreateRecipientResponse
|
|
934
|
-
*/
|
|
935
|
-
last_update?: string;
|
|
905
|
+
recipient?: RecipientResponse;
|
|
936
906
|
}
|
|
937
907
|
/**
|
|
938
908
|
*
|
|
@@ -1629,6 +1599,19 @@ export interface GetPaymentInstructionsResponse {
|
|
|
1629
1599
|
*/
|
|
1630
1600
|
payment_instruction?: PaymentInstruction;
|
|
1631
1601
|
}
|
|
1602
|
+
/**
|
|
1603
|
+
*
|
|
1604
|
+
* @export
|
|
1605
|
+
* @interface GetRecipientResponse
|
|
1606
|
+
*/
|
|
1607
|
+
export interface GetRecipientResponse {
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @type {RecipientResponse}
|
|
1611
|
+
* @memberof GetRecipientResponse
|
|
1612
|
+
*/
|
|
1613
|
+
recipient?: RecipientResponse;
|
|
1614
|
+
}
|
|
1632
1615
|
/**
|
|
1633
1616
|
*
|
|
1634
1617
|
* @export
|
|
@@ -3724,6 +3707,42 @@ export interface PayoutInstructionResponse {
|
|
|
3724
3707
|
* @memberof PayoutInstructionResponse
|
|
3725
3708
|
*/
|
|
3726
3709
|
status: PayoutInstructionResponseStatusEnum;
|
|
3710
|
+
/**
|
|
3711
|
+
* The mandate used to execute payments for this payout instruction. Currency for the mandate must be supported by the recipient account
|
|
3712
|
+
* @type {string}
|
|
3713
|
+
* @memberof PayoutInstructionResponse
|
|
3714
|
+
*/
|
|
3715
|
+
mandate_id?: string;
|
|
3716
|
+
/**
|
|
3717
|
+
* The recipient account to receive the payment
|
|
3718
|
+
* @type {string}
|
|
3719
|
+
* @memberof PayoutInstructionResponse
|
|
3720
|
+
*/
|
|
3721
|
+
recipient_account_id?: string;
|
|
3722
|
+
/**
|
|
3723
|
+
* Amount to be paid, in currency\'s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
|
|
3724
|
+
* @type {number}
|
|
3725
|
+
* @memberof PayoutInstructionResponse
|
|
3726
|
+
*/
|
|
3727
|
+
amount?: number;
|
|
3728
|
+
/**
|
|
3729
|
+
* YYYY-MM-DD, date (in UTC) to execute the payment, must be 1 day later than current date
|
|
3730
|
+
* @type {string}
|
|
3731
|
+
* @memberof PayoutInstructionResponse
|
|
3732
|
+
*/
|
|
3733
|
+
date?: string;
|
|
3734
|
+
/**
|
|
3735
|
+
* A description for the payment (that will appear as the transaction description on bank statements)
|
|
3736
|
+
* @type {string}
|
|
3737
|
+
* @memberof PayoutInstructionResponse
|
|
3738
|
+
*/
|
|
3739
|
+
description?: string;
|
|
3740
|
+
/**
|
|
3741
|
+
* The currency code as defined in ISO 4217.
|
|
3742
|
+
* @type {string}
|
|
3743
|
+
* @memberof PayoutInstructionResponse
|
|
3744
|
+
*/
|
|
3745
|
+
currency?: string;
|
|
3727
3746
|
/**
|
|
3728
3747
|
*
|
|
3729
3748
|
* @type {FvErrorModel}
|
|
@@ -3902,6 +3921,49 @@ export declare const RecipientAccountNumberTypeEnum: {
|
|
|
3902
3921
|
readonly Iban: "IBAN";
|
|
3903
3922
|
};
|
|
3904
3923
|
export declare type RecipientAccountNumberTypeEnum = typeof RecipientAccountNumberTypeEnum[keyof typeof RecipientAccountNumberTypeEnum];
|
|
3924
|
+
/**
|
|
3925
|
+
*
|
|
3926
|
+
* @export
|
|
3927
|
+
* @interface RecipientResponse
|
|
3928
|
+
*/
|
|
3929
|
+
export interface RecipientResponse {
|
|
3930
|
+
/**
|
|
3931
|
+
* A unique identifier generated after creating recipient
|
|
3932
|
+
* @type {string}
|
|
3933
|
+
* @memberof RecipientResponse
|
|
3934
|
+
*/
|
|
3935
|
+
recipient_account_id?: string;
|
|
3936
|
+
/**
|
|
3937
|
+
* Recipient\'s name/nickname (note: this does not need to match the actual accountholder name of the recipient\'s account)
|
|
3938
|
+
* @type {string}
|
|
3939
|
+
* @memberof RecipientResponse
|
|
3940
|
+
*/
|
|
3941
|
+
name: string;
|
|
3942
|
+
/**
|
|
3943
|
+
*
|
|
3944
|
+
* @type {RecipientAccount}
|
|
3945
|
+
* @memberof RecipientResponse
|
|
3946
|
+
*/
|
|
3947
|
+
recipient_account: RecipientAccount;
|
|
3948
|
+
/**
|
|
3949
|
+
* Customer App\'s internal ID for the recipient
|
|
3950
|
+
* @type {string}
|
|
3951
|
+
* @memberof RecipientResponse
|
|
3952
|
+
*/
|
|
3953
|
+
user_id?: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* Additional attributes of the recipient in key:value format (e.g. employer_name: Apple Inc for a payroll case where recipient is an employee)
|
|
3956
|
+
* @type {object}
|
|
3957
|
+
* @memberof RecipientResponse
|
|
3958
|
+
*/
|
|
3959
|
+
metadata?: object;
|
|
3960
|
+
/**
|
|
3961
|
+
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
3962
|
+
* @type {string}
|
|
3963
|
+
* @memberof RecipientResponse
|
|
3964
|
+
*/
|
|
3965
|
+
last_update?: string;
|
|
3966
|
+
}
|
|
3905
3967
|
/**
|
|
3906
3968
|
*
|
|
3907
3969
|
* @export
|
|
@@ -4577,6 +4639,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
4577
4639
|
* @throws {RequiredError}
|
|
4578
4640
|
*/
|
|
4579
4641
|
createRecipient: (createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4642
|
+
/**
|
|
4643
|
+
* Delete Recipient
|
|
4644
|
+
* @param {string} recipientAccountId The institution id
|
|
4645
|
+
* @param {*} [options] Override http request option.
|
|
4646
|
+
* @throws {RequiredError}
|
|
4647
|
+
*/
|
|
4648
|
+
deleteRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4580
4649
|
/**
|
|
4581
4650
|
* generate a link token that can be used to create link
|
|
4582
4651
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -4646,6 +4715,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
4646
4715
|
* @throws {RequiredError}
|
|
4647
4716
|
*/
|
|
4648
4717
|
getPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4718
|
+
/**
|
|
4719
|
+
* Get Recipient
|
|
4720
|
+
* @param {string} recipientAccountId The institution id
|
|
4721
|
+
* @param {*} [options] Override http request option.
|
|
4722
|
+
* @throws {RequiredError}
|
|
4723
|
+
*/
|
|
4724
|
+
getRecipient: (recipientAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4649
4725
|
/**
|
|
4650
4726
|
* Get a list of institutions
|
|
4651
4727
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -4728,6 +4804,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
4728
4804
|
* @throws {RequiredError}
|
|
4729
4805
|
*/
|
|
4730
4806
|
createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRecipientResponse>>;
|
|
4807
|
+
/**
|
|
4808
|
+
* Delete Recipient
|
|
4809
|
+
* @param {string} recipientAccountId The institution id
|
|
4810
|
+
* @param {*} [options] Override http request option.
|
|
4811
|
+
* @throws {RequiredError}
|
|
4812
|
+
*/
|
|
4813
|
+
deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4731
4814
|
/**
|
|
4732
4815
|
* generate a link token that can be used to create link
|
|
4733
4816
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -4797,6 +4880,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
4797
4880
|
* @throws {RequiredError}
|
|
4798
4881
|
*/
|
|
4799
4882
|
getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
|
|
4883
|
+
/**
|
|
4884
|
+
* Get Recipient
|
|
4885
|
+
* @param {string} recipientAccountId The institution id
|
|
4886
|
+
* @param {*} [options] Override http request option.
|
|
4887
|
+
* @throws {RequiredError}
|
|
4888
|
+
*/
|
|
4889
|
+
getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRecipientResponse>>;
|
|
4800
4890
|
/**
|
|
4801
4891
|
* Get a list of institutions
|
|
4802
4892
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -4879,6 +4969,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
4879
4969
|
* @throws {RequiredError}
|
|
4880
4970
|
*/
|
|
4881
4971
|
createRecipient(createRecipientRequest: CreateRecipientRequest, options?: any): AxiosPromise<CreateRecipientResponse>;
|
|
4972
|
+
/**
|
|
4973
|
+
* Delete Recipient
|
|
4974
|
+
* @param {string} recipientAccountId The institution id
|
|
4975
|
+
* @param {*} [options] Override http request option.
|
|
4976
|
+
* @throws {RequiredError}
|
|
4977
|
+
*/
|
|
4978
|
+
deleteRecipient(recipientAccountId: string, options?: any): AxiosPromise<void>;
|
|
4882
4979
|
/**
|
|
4883
4980
|
* generate a link token that can be used to create link
|
|
4884
4981
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -4948,6 +5045,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
4948
5045
|
* @throws {RequiredError}
|
|
4949
5046
|
*/
|
|
4950
5047
|
getPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
|
|
5048
|
+
/**
|
|
5049
|
+
* Get Recipient
|
|
5050
|
+
* @param {string} recipientAccountId The institution id
|
|
5051
|
+
* @param {*} [options] Override http request option.
|
|
5052
|
+
* @throws {RequiredError}
|
|
5053
|
+
*/
|
|
5054
|
+
getRecipient(recipientAccountId: string, options?: any): AxiosPromise<GetRecipientResponse>;
|
|
4951
5055
|
/**
|
|
4952
5056
|
* Get a list of institutions
|
|
4953
5057
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -5037,6 +5141,14 @@ export interface CustomerApiInterface {
|
|
|
5037
5141
|
* @memberof CustomerApiInterface
|
|
5038
5142
|
*/
|
|
5039
5143
|
createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): AxiosPromise<CreateRecipientResponse>;
|
|
5144
|
+
/**
|
|
5145
|
+
* Delete Recipient
|
|
5146
|
+
* @param {string} recipientAccountId The institution id
|
|
5147
|
+
* @param {*} [options] Override http request option.
|
|
5148
|
+
* @throws {RequiredError}
|
|
5149
|
+
* @memberof CustomerApiInterface
|
|
5150
|
+
*/
|
|
5151
|
+
deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
5040
5152
|
/**
|
|
5041
5153
|
* generate a link token that can be used to create link
|
|
5042
5154
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5116,6 +5228,14 @@ export interface CustomerApiInterface {
|
|
|
5116
5228
|
* @memberof CustomerApiInterface
|
|
5117
5229
|
*/
|
|
5118
5230
|
getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
|
|
5231
|
+
/**
|
|
5232
|
+
* Get Recipient
|
|
5233
|
+
* @param {string} recipientAccountId The institution id
|
|
5234
|
+
* @param {*} [options] Override http request option.
|
|
5235
|
+
* @throws {RequiredError}
|
|
5236
|
+
* @memberof CustomerApiInterface
|
|
5237
|
+
*/
|
|
5238
|
+
getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): AxiosPromise<GetRecipientResponse>;
|
|
5119
5239
|
/**
|
|
5120
5240
|
* Get a list of institutions
|
|
5121
5241
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -5210,6 +5330,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
5210
5330
|
* @memberof CustomerApi
|
|
5211
5331
|
*/
|
|
5212
5332
|
createRecipient(createRecipientRequest: CreateRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRecipientResponse>>;
|
|
5333
|
+
/**
|
|
5334
|
+
* Delete Recipient
|
|
5335
|
+
* @param {string} recipientAccountId The institution id
|
|
5336
|
+
* @param {*} [options] Override http request option.
|
|
5337
|
+
* @throws {RequiredError}
|
|
5338
|
+
* @memberof CustomerApi
|
|
5339
|
+
*/
|
|
5340
|
+
deleteRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
5213
5341
|
/**
|
|
5214
5342
|
* generate a link token that can be used to create link
|
|
5215
5343
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5289,6 +5417,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
5289
5417
|
* @memberof CustomerApi
|
|
5290
5418
|
*/
|
|
5291
5419
|
getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
|
|
5420
|
+
/**
|
|
5421
|
+
* Get Recipient
|
|
5422
|
+
* @param {string} recipientAccountId The institution id
|
|
5423
|
+
* @param {*} [options] Override http request option.
|
|
5424
|
+
* @throws {RequiredError}
|
|
5425
|
+
* @memberof CustomerApi
|
|
5426
|
+
*/
|
|
5427
|
+
getRecipient(recipientAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRecipientResponse>>;
|
|
5292
5428
|
/**
|
|
5293
5429
|
* Get a list of institutions
|
|
5294
5430
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
package/dist/api.js
CHANGED
|
@@ -445,6 +445,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
445
445
|
options: localVarRequestOptions,
|
|
446
446
|
};
|
|
447
447
|
}),
|
|
448
|
+
/**
|
|
449
|
+
* Delete Recipient
|
|
450
|
+
* @param {string} recipientAccountId The institution id
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
deleteRecipient: (recipientAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
// verify required parameter 'recipientAccountId' is not null or undefined
|
|
456
|
+
common_1.assertParamExists('deleteRecipient', 'recipientAccountId', recipientAccountId);
|
|
457
|
+
const localVarPath = `/recipients/{recipientAccountId}`.replace(`{${'recipientAccountId'}}`, encodeURIComponent(String(recipientAccountId)));
|
|
458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
460
|
+
let baseOptions;
|
|
461
|
+
if (configuration) {
|
|
462
|
+
baseOptions = configuration.baseOptions;
|
|
463
|
+
}
|
|
464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
465
|
+
const localVarHeaderParameter = {};
|
|
466
|
+
const localVarQueryParameter = {};
|
|
467
|
+
// authentication Oauth2 required
|
|
468
|
+
// oauth required
|
|
469
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
470
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
472
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
473
|
+
return {
|
|
474
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
475
|
+
options: localVarRequestOptions,
|
|
476
|
+
};
|
|
477
|
+
}),
|
|
448
478
|
/**
|
|
449
479
|
* generate a link token that can be used to create link
|
|
450
480
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -746,6 +776,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
746
776
|
options: localVarRequestOptions,
|
|
747
777
|
};
|
|
748
778
|
}),
|
|
779
|
+
/**
|
|
780
|
+
* Get Recipient
|
|
781
|
+
* @param {string} recipientAccountId The institution id
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
getRecipient: (recipientAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
786
|
+
// verify required parameter 'recipientAccountId' is not null or undefined
|
|
787
|
+
common_1.assertParamExists('getRecipient', 'recipientAccountId', recipientAccountId);
|
|
788
|
+
const localVarPath = `/recipients/{recipientAccountId}`.replace(`{${'recipientAccountId'}}`, encodeURIComponent(String(recipientAccountId)));
|
|
789
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
790
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
791
|
+
let baseOptions;
|
|
792
|
+
if (configuration) {
|
|
793
|
+
baseOptions = configuration.baseOptions;
|
|
794
|
+
}
|
|
795
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
796
|
+
const localVarHeaderParameter = {};
|
|
797
|
+
const localVarQueryParameter = {};
|
|
798
|
+
// authentication Oauth2 required
|
|
799
|
+
// oauth required
|
|
800
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
801
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
804
|
+
return {
|
|
805
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
};
|
|
808
|
+
}),
|
|
749
809
|
/**
|
|
750
810
|
* Get a list of institutions
|
|
751
811
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -969,6 +1029,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
969
1029
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
970
1030
|
});
|
|
971
1031
|
},
|
|
1032
|
+
/**
|
|
1033
|
+
* Delete Recipient
|
|
1034
|
+
* @param {string} recipientAccountId The institution id
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
deleteRecipient(recipientAccountId, options) {
|
|
1039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1040
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRecipient(recipientAccountId, options);
|
|
1041
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1042
|
+
});
|
|
1043
|
+
},
|
|
972
1044
|
/**
|
|
973
1045
|
* generate a link token that can be used to create link
|
|
974
1046
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1088,6 +1160,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1088
1160
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1089
1161
|
});
|
|
1090
1162
|
},
|
|
1163
|
+
/**
|
|
1164
|
+
* Get Recipient
|
|
1165
|
+
* @param {string} recipientAccountId The institution id
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
getRecipient(recipientAccountId, options) {
|
|
1170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1171
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecipient(recipientAccountId, options);
|
|
1172
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1173
|
+
});
|
|
1174
|
+
},
|
|
1091
1175
|
/**
|
|
1092
1176
|
* Get a list of institutions
|
|
1093
1177
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -1215,6 +1299,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1215
1299
|
createRecipient(createRecipientRequest, options) {
|
|
1216
1300
|
return localVarFp.createRecipient(createRecipientRequest, options).then((request) => request(axios, basePath));
|
|
1217
1301
|
},
|
|
1302
|
+
/**
|
|
1303
|
+
* Delete Recipient
|
|
1304
|
+
* @param {string} recipientAccountId The institution id
|
|
1305
|
+
* @param {*} [options] Override http request option.
|
|
1306
|
+
* @throws {RequiredError}
|
|
1307
|
+
*/
|
|
1308
|
+
deleteRecipient(recipientAccountId, options) {
|
|
1309
|
+
return localVarFp.deleteRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
|
|
1310
|
+
},
|
|
1218
1311
|
/**
|
|
1219
1312
|
* generate a link token that can be used to create link
|
|
1220
1313
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1308,6 +1401,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1308
1401
|
getPayoutInstruction(payoutInstructionId, options) {
|
|
1309
1402
|
return localVarFp.getPayoutInstruction(payoutInstructionId, options).then((request) => request(axios, basePath));
|
|
1310
1403
|
},
|
|
1404
|
+
/**
|
|
1405
|
+
* Get Recipient
|
|
1406
|
+
* @param {string} recipientAccountId The institution id
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
getRecipient(recipientAccountId, options) {
|
|
1411
|
+
return localVarFp.getRecipient(recipientAccountId, options).then((request) => request(axios, basePath));
|
|
1412
|
+
},
|
|
1311
1413
|
/**
|
|
1312
1414
|
* Get a list of institutions
|
|
1313
1415
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|
|
@@ -1435,6 +1537,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1435
1537
|
.createRecipient(createRecipientRequest, options)
|
|
1436
1538
|
.then((request) => request(this.axios, this.basePath));
|
|
1437
1539
|
}
|
|
1540
|
+
/**
|
|
1541
|
+
* Delete Recipient
|
|
1542
|
+
* @param {string} recipientAccountId The institution id
|
|
1543
|
+
* @param {*} [options] Override http request option.
|
|
1544
|
+
* @throws {RequiredError}
|
|
1545
|
+
* @memberof CustomerApi
|
|
1546
|
+
*/
|
|
1547
|
+
deleteRecipient(recipientAccountId, options) {
|
|
1548
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1549
|
+
.deleteRecipient(recipientAccountId, options)
|
|
1550
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1551
|
+
}
|
|
1438
1552
|
/**
|
|
1439
1553
|
* generate a link token that can be used to create link
|
|
1440
1554
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1554,6 +1668,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1554
1668
|
.getPayoutInstruction(payoutInstructionId, options)
|
|
1555
1669
|
.then((request) => request(this.axios, this.basePath));
|
|
1556
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Get Recipient
|
|
1673
|
+
* @param {string} recipientAccountId The institution id
|
|
1674
|
+
* @param {*} [options] Override http request option.
|
|
1675
|
+
* @throws {RequiredError}
|
|
1676
|
+
* @memberof CustomerApi
|
|
1677
|
+
*/
|
|
1678
|
+
getRecipient(recipientAccountId, options) {
|
|
1679
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1680
|
+
.getRecipient(recipientAccountId, options)
|
|
1681
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1682
|
+
}
|
|
1557
1683
|
/**
|
|
1558
1684
|
* Get a list of institutions
|
|
1559
1685
|
* @param {string} [country] (Deprecated) The country the institution belongs to
|