@finverse/sdk-typescript 0.0.159 → 0.0.161
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 +134 -5
- package/dist/api.js +142 -9
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -832,6 +832,61 @@ export declare const CreateMandateSenderUserTypeEnum: {
|
|
|
832
832
|
readonly Business: "BUSINESS";
|
|
833
833
|
};
|
|
834
834
|
export declare type CreateMandateSenderUserTypeEnum = (typeof CreateMandateSenderUserTypeEnum)[keyof typeof CreateMandateSenderUserTypeEnum];
|
|
835
|
+
/**
|
|
836
|
+
*
|
|
837
|
+
* @export
|
|
838
|
+
* @interface CreatePaymentAccountRequest
|
|
839
|
+
*/
|
|
840
|
+
export interface CreatePaymentAccountRequest {
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @type {RecipientAccountNumber}
|
|
844
|
+
* @memberof CreatePaymentAccountRequest
|
|
845
|
+
*/
|
|
846
|
+
account_number: RecipientAccountNumber;
|
|
847
|
+
/**
|
|
848
|
+
* Type of payment account. Currently only allow creating external account.
|
|
849
|
+
* @type {string}
|
|
850
|
+
* @memberof CreatePaymentAccountRequest
|
|
851
|
+
*/
|
|
852
|
+
account_type: CreatePaymentAccountRequestAccountTypeEnum;
|
|
853
|
+
/**
|
|
854
|
+
* Accountholder name of the payment account
|
|
855
|
+
* @type {string}
|
|
856
|
+
* @memberof CreatePaymentAccountRequest
|
|
857
|
+
*/
|
|
858
|
+
accountholder_name: string;
|
|
859
|
+
/**
|
|
860
|
+
* List of currencies supported by the payment account
|
|
861
|
+
* @type {Array<string>}
|
|
862
|
+
* @memberof CreatePaymentAccountRequest
|
|
863
|
+
*/
|
|
864
|
+
currencies?: Array<string>;
|
|
865
|
+
/**
|
|
866
|
+
* Finverse Institution ID for the payment institution.
|
|
867
|
+
* @type {string}
|
|
868
|
+
* @memberof CreatePaymentAccountRequest
|
|
869
|
+
*/
|
|
870
|
+
institution_id: string;
|
|
871
|
+
/**
|
|
872
|
+
* A unique identifier generated after creating user (Finverse Payment User ID)
|
|
873
|
+
* @type {string}
|
|
874
|
+
* @memberof CreatePaymentAccountRequest
|
|
875
|
+
*/
|
|
876
|
+
user_id: string;
|
|
877
|
+
/**
|
|
878
|
+
* Additional attributes of the payment in key:value format (e.g. payment_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
|
|
879
|
+
* @type {{ [key: string]: string; }}
|
|
880
|
+
* @memberof CreatePaymentAccountRequest
|
|
881
|
+
*/
|
|
882
|
+
metadata?: {
|
|
883
|
+
[key: string]: string;
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
export declare const CreatePaymentAccountRequestAccountTypeEnum: {
|
|
887
|
+
readonly ExternalAccount: "EXTERNAL_ACCOUNT";
|
|
888
|
+
};
|
|
889
|
+
export declare type CreatePaymentAccountRequestAccountTypeEnum = (typeof CreatePaymentAccountRequestAccountTypeEnum)[keyof typeof CreatePaymentAccountRequestAccountTypeEnum];
|
|
835
890
|
/**
|
|
836
891
|
*
|
|
837
892
|
* @export
|
|
@@ -5604,6 +5659,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5604
5659
|
* @throws {RequiredError}
|
|
5605
5660
|
*/
|
|
5606
5661
|
createPayment: (createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5662
|
+
/**
|
|
5663
|
+
* create payment account
|
|
5664
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
5665
|
+
* @param {*} [options] Override http request option.
|
|
5666
|
+
* @throws {RequiredError}
|
|
5667
|
+
*/
|
|
5668
|
+
createPaymentAccount: (createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5607
5669
|
/**
|
|
5608
5670
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5609
5671
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5619,6 +5681,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5619
5681
|
* @throws {RequiredError}
|
|
5620
5682
|
*/
|
|
5621
5683
|
createPayoutInstruction: (createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5684
|
+
/**
|
|
5685
|
+
* delete payment account
|
|
5686
|
+
* @param {string} paymentAccountId The payment account id
|
|
5687
|
+
* @param {*} [options] Override http request option.
|
|
5688
|
+
* @throws {RequiredError}
|
|
5689
|
+
*/
|
|
5690
|
+
deletePaymentAccount: (paymentAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5622
5691
|
/**
|
|
5623
5692
|
* generate a link token that can be used to create link
|
|
5624
5693
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5711,7 +5780,7 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5711
5780
|
* @param {*} [options] Override http request option.
|
|
5712
5781
|
* @throws {RequiredError}
|
|
5713
5782
|
*/
|
|
5714
|
-
|
|
5783
|
+
listPaymentAccounts: (paymentUserId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5715
5784
|
/**
|
|
5716
5785
|
* Refresh an access token
|
|
5717
5786
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -5762,6 +5831,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5762
5831
|
* @throws {RequiredError}
|
|
5763
5832
|
*/
|
|
5764
5833
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponse>>;
|
|
5834
|
+
/**
|
|
5835
|
+
* create payment account
|
|
5836
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
5837
|
+
* @param {*} [options] Override http request option.
|
|
5838
|
+
* @throws {RequiredError}
|
|
5839
|
+
*/
|
|
5840
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccountDetails>>;
|
|
5765
5841
|
/**
|
|
5766
5842
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5767
5843
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5777,6 +5853,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5777
5853
|
* @throws {RequiredError}
|
|
5778
5854
|
*/
|
|
5779
5855
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
|
|
5856
|
+
/**
|
|
5857
|
+
* delete payment account
|
|
5858
|
+
* @param {string} paymentAccountId The payment account id
|
|
5859
|
+
* @param {*} [options] Override http request option.
|
|
5860
|
+
* @throws {RequiredError}
|
|
5861
|
+
*/
|
|
5862
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5780
5863
|
/**
|
|
5781
5864
|
* generate a link token that can be used to create link
|
|
5782
5865
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5869,7 +5952,7 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5869
5952
|
* @param {*} [options] Override http request option.
|
|
5870
5953
|
* @throws {RequiredError}
|
|
5871
5954
|
*/
|
|
5872
|
-
|
|
5955
|
+
listPaymentAccounts(paymentUserId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentAccountsResponse>>;
|
|
5873
5956
|
/**
|
|
5874
5957
|
* Refresh an access token
|
|
5875
5958
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -5920,6 +6003,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
5920
6003
|
* @throws {RequiredError}
|
|
5921
6004
|
*/
|
|
5922
6005
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: any): AxiosPromise<PaymentResponse>;
|
|
6006
|
+
/**
|
|
6007
|
+
* create payment account
|
|
6008
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6009
|
+
* @param {*} [options] Override http request option.
|
|
6010
|
+
* @throws {RequiredError}
|
|
6011
|
+
*/
|
|
6012
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: any): AxiosPromise<PaymentAccountDetails>;
|
|
5923
6013
|
/**
|
|
5924
6014
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5925
6015
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5935,6 +6025,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
5935
6025
|
* @throws {RequiredError}
|
|
5936
6026
|
*/
|
|
5937
6027
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
|
|
6028
|
+
/**
|
|
6029
|
+
* delete payment account
|
|
6030
|
+
* @param {string} paymentAccountId The payment account id
|
|
6031
|
+
* @param {*} [options] Override http request option.
|
|
6032
|
+
* @throws {RequiredError}
|
|
6033
|
+
*/
|
|
6034
|
+
deletePaymentAccount(paymentAccountId: string, options?: any): AxiosPromise<void>;
|
|
5938
6035
|
/**
|
|
5939
6036
|
* generate a link token that can be used to create link
|
|
5940
6037
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6027,7 +6124,7 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
6027
6124
|
* @param {*} [options] Override http request option.
|
|
6028
6125
|
* @throws {RequiredError}
|
|
6029
6126
|
*/
|
|
6030
|
-
|
|
6127
|
+
listPaymentAccounts(paymentUserId: string, options?: any): AxiosPromise<ListPaymentAccountsResponse>;
|
|
6031
6128
|
/**
|
|
6032
6129
|
* Refresh an access token
|
|
6033
6130
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -6082,6 +6179,14 @@ export interface CustomerApiInterface {
|
|
|
6082
6179
|
* @memberof CustomerApiInterface
|
|
6083
6180
|
*/
|
|
6084
6181
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PaymentResponse>;
|
|
6182
|
+
/**
|
|
6183
|
+
* create payment account
|
|
6184
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6185
|
+
* @param {*} [options] Override http request option.
|
|
6186
|
+
* @throws {RequiredError}
|
|
6187
|
+
* @memberof CustomerApiInterface
|
|
6188
|
+
*/
|
|
6189
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentAccountDetails>;
|
|
6085
6190
|
/**
|
|
6086
6191
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
6087
6192
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -6099,6 +6204,14 @@ export interface CustomerApiInterface {
|
|
|
6099
6204
|
* @memberof CustomerApiInterface
|
|
6100
6205
|
*/
|
|
6101
6206
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
|
|
6207
|
+
/**
|
|
6208
|
+
* delete payment account
|
|
6209
|
+
* @param {string} paymentAccountId The payment account id
|
|
6210
|
+
* @param {*} [options] Override http request option.
|
|
6211
|
+
* @throws {RequiredError}
|
|
6212
|
+
* @memberof CustomerApiInterface
|
|
6213
|
+
*/
|
|
6214
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
6102
6215
|
/**
|
|
6103
6216
|
* generate a link token that can be used to create link
|
|
6104
6217
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6204,7 +6317,7 @@ export interface CustomerApiInterface {
|
|
|
6204
6317
|
* @throws {RequiredError}
|
|
6205
6318
|
* @memberof CustomerApiInterface
|
|
6206
6319
|
*/
|
|
6207
|
-
|
|
6320
|
+
listPaymentAccounts(paymentUserId: string, options?: AxiosRequestConfig): AxiosPromise<ListPaymentAccountsResponse>;
|
|
6208
6321
|
/**
|
|
6209
6322
|
* Refresh an access token
|
|
6210
6323
|
* @param {RefreshRequest} refreshRequest The refresh token
|
|
@@ -6263,6 +6376,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6263
6376
|
* @memberof CustomerApi
|
|
6264
6377
|
*/
|
|
6265
6378
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentResponse>>;
|
|
6379
|
+
/**
|
|
6380
|
+
* create payment account
|
|
6381
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6382
|
+
* @param {*} [options] Override http request option.
|
|
6383
|
+
* @throws {RequiredError}
|
|
6384
|
+
* @memberof CustomerApi
|
|
6385
|
+
*/
|
|
6386
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccountDetails>>;
|
|
6266
6387
|
/**
|
|
6267
6388
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
6268
6389
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -6280,6 +6401,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6280
6401
|
* @memberof CustomerApi
|
|
6281
6402
|
*/
|
|
6282
6403
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
|
|
6404
|
+
/**
|
|
6405
|
+
* delete payment account
|
|
6406
|
+
* @param {string} paymentAccountId The payment account id
|
|
6407
|
+
* @param {*} [options] Override http request option.
|
|
6408
|
+
* @throws {RequiredError}
|
|
6409
|
+
* @memberof CustomerApi
|
|
6410
|
+
*/
|
|
6411
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
6283
6412
|
/**
|
|
6284
6413
|
* generate a link token that can be used to create link
|
|
6285
6414
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6385,7 +6514,7 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6385
6514
|
* @throws {RequiredError}
|
|
6386
6515
|
* @memberof CustomerApi
|
|
6387
6516
|
*/
|
|
6388
|
-
|
|
6517
|
+
listPaymentAccounts(paymentUserId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentAccountsResponse>>;
|
|
6389
6518
|
/**
|
|
6390
6519
|
* Refresh an access token
|
|
6391
6520
|
* @param {RefreshRequest} refreshRequest The refresh token
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -88,6 +88,9 @@ exports.CreateMandateSenderUserTypeEnum = {
|
|
|
88
88
|
Individual: 'INDIVIDUAL',
|
|
89
89
|
Business: 'BUSINESS',
|
|
90
90
|
};
|
|
91
|
+
exports.CreatePaymentAccountRequestAccountTypeEnum = {
|
|
92
|
+
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
93
|
+
};
|
|
91
94
|
exports.CreatePaymentLinkMandateRequestSenderTypeEnum = {
|
|
92
95
|
Individual: 'INDIVIDUAL',
|
|
93
96
|
Business: 'BUSINESS',
|
|
@@ -397,6 +400,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
397
400
|
options: localVarRequestOptions,
|
|
398
401
|
};
|
|
399
402
|
}),
|
|
403
|
+
/**
|
|
404
|
+
* create payment account
|
|
405
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
createPaymentAccount: (createPaymentAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
// verify required parameter 'createPaymentAccountRequest' is not null or undefined
|
|
411
|
+
common_1.assertParamExists('createPaymentAccount', 'createPaymentAccountRequest', createPaymentAccountRequest);
|
|
412
|
+
const localVarPath = `/payment_accounts`;
|
|
413
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
414
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
415
|
+
let baseOptions;
|
|
416
|
+
if (configuration) {
|
|
417
|
+
baseOptions = configuration.baseOptions;
|
|
418
|
+
}
|
|
419
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
420
|
+
const localVarHeaderParameter = {};
|
|
421
|
+
const localVarQueryParameter = {};
|
|
422
|
+
// authentication Oauth2 required
|
|
423
|
+
// oauth required
|
|
424
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
425
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
426
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
427
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
429
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentAccountRequest, localVarRequestOptions, configuration);
|
|
430
|
+
return {
|
|
431
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
432
|
+
options: localVarRequestOptions,
|
|
433
|
+
};
|
|
434
|
+
}),
|
|
400
435
|
/**
|
|
401
436
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
402
437
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -465,6 +500,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
465
500
|
options: localVarRequestOptions,
|
|
466
501
|
};
|
|
467
502
|
}),
|
|
503
|
+
/**
|
|
504
|
+
* delete payment account
|
|
505
|
+
* @param {string} paymentAccountId The payment account id
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
deletePaymentAccount: (paymentAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
// verify required parameter 'paymentAccountId' is not null or undefined
|
|
511
|
+
common_1.assertParamExists('deletePaymentAccount', 'paymentAccountId', paymentAccountId);
|
|
512
|
+
const localVarPath = `/payment_accounts/{paymentAccountId}`.replace(`{${'paymentAccountId'}}`, encodeURIComponent(String(paymentAccountId)));
|
|
513
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
514
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
515
|
+
let baseOptions;
|
|
516
|
+
if (configuration) {
|
|
517
|
+
baseOptions = configuration.baseOptions;
|
|
518
|
+
}
|
|
519
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
520
|
+
const localVarHeaderParameter = {};
|
|
521
|
+
const localVarQueryParameter = {};
|
|
522
|
+
// authentication Oauth2 required
|
|
523
|
+
// oauth required
|
|
524
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
525
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
526
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
527
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
528
|
+
return {
|
|
529
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
530
|
+
options: localVarRequestOptions,
|
|
531
|
+
};
|
|
532
|
+
}),
|
|
468
533
|
/**
|
|
469
534
|
* generate a link token that can be used to create link
|
|
470
535
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -845,9 +910,9 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
845
910
|
* @param {*} [options] Override http request option.
|
|
846
911
|
* @throws {RequiredError}
|
|
847
912
|
*/
|
|
848
|
-
|
|
913
|
+
listPaymentAccounts: (paymentUserId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
849
914
|
// verify required parameter 'paymentUserId' is not null or undefined
|
|
850
|
-
common_1.assertParamExists('
|
|
915
|
+
common_1.assertParamExists('listPaymentAccounts', 'paymentUserId', paymentUserId);
|
|
851
916
|
const localVarPath = `/payment_users/{paymentUserId}/payment_accounts`.replace(`{${'paymentUserId'}}`, encodeURIComponent(String(paymentUserId)));
|
|
852
917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
853
918
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1012,6 +1077,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1012
1077
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1013
1078
|
});
|
|
1014
1079
|
},
|
|
1080
|
+
/**
|
|
1081
|
+
* create payment account
|
|
1082
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentAccount(createPaymentAccountRequest, options);
|
|
1089
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1090
|
+
});
|
|
1091
|
+
},
|
|
1015
1092
|
/**
|
|
1016
1093
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1017
1094
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1037,6 +1114,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1037
1114
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1038
1115
|
});
|
|
1039
1116
|
},
|
|
1117
|
+
/**
|
|
1118
|
+
* delete payment account
|
|
1119
|
+
* @param {string} paymentAccountId The payment account id
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1125
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePaymentAccount(paymentAccountId, options);
|
|
1126
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1127
|
+
});
|
|
1128
|
+
},
|
|
1040
1129
|
/**
|
|
1041
1130
|
* generate a link token that can be used to create link
|
|
1042
1131
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1189,9 +1278,9 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1189
1278
|
* @param {*} [options] Override http request option.
|
|
1190
1279
|
* @throws {RequiredError}
|
|
1191
1280
|
*/
|
|
1192
|
-
|
|
1281
|
+
listPaymentAccounts(paymentUserId, options) {
|
|
1193
1282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1194
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1283
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPaymentAccounts(paymentUserId, options);
|
|
1195
1284
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1196
1285
|
});
|
|
1197
1286
|
},
|
|
@@ -1275,6 +1364,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1275
1364
|
.createPayment(createPaymentRequest, idempotencyKey, options)
|
|
1276
1365
|
.then((request) => request(axios, basePath));
|
|
1277
1366
|
},
|
|
1367
|
+
/**
|
|
1368
|
+
* create payment account
|
|
1369
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
*/
|
|
1373
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1374
|
+
return localVarFp
|
|
1375
|
+
.createPaymentAccount(createPaymentAccountRequest, options)
|
|
1376
|
+
.then((request) => request(axios, basePath));
|
|
1377
|
+
},
|
|
1278
1378
|
/**
|
|
1279
1379
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1280
1380
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1298,6 +1398,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1298
1398
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1299
1399
|
.then((request) => request(axios, basePath));
|
|
1300
1400
|
},
|
|
1401
|
+
/**
|
|
1402
|
+
* delete payment account
|
|
1403
|
+
* @param {string} paymentAccountId The payment account id
|
|
1404
|
+
* @param {*} [options] Override http request option.
|
|
1405
|
+
* @throws {RequiredError}
|
|
1406
|
+
*/
|
|
1407
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1408
|
+
return localVarFp.deletePaymentAccount(paymentAccountId, options).then((request) => request(axios, basePath));
|
|
1409
|
+
},
|
|
1301
1410
|
/**
|
|
1302
1411
|
* generate a link token that can be used to create link
|
|
1303
1412
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1420,8 +1529,8 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1420
1529
|
* @param {*} [options] Override http request option.
|
|
1421
1530
|
* @throws {RequiredError}
|
|
1422
1531
|
*/
|
|
1423
|
-
|
|
1424
|
-
return localVarFp.
|
|
1532
|
+
listPaymentAccounts(paymentUserId, options) {
|
|
1533
|
+
return localVarFp.listPaymentAccounts(paymentUserId, options).then((request) => request(axios, basePath));
|
|
1425
1534
|
},
|
|
1426
1535
|
/**
|
|
1427
1536
|
* Refresh an access token
|
|
@@ -1499,6 +1608,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1499
1608
|
.createPayment(createPaymentRequest, idempotencyKey, options)
|
|
1500
1609
|
.then((request) => request(this.axios, this.basePath));
|
|
1501
1610
|
}
|
|
1611
|
+
/**
|
|
1612
|
+
* create payment account
|
|
1613
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1614
|
+
* @param {*} [options] Override http request option.
|
|
1615
|
+
* @throws {RequiredError}
|
|
1616
|
+
* @memberof CustomerApi
|
|
1617
|
+
*/
|
|
1618
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1619
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1620
|
+
.createPaymentAccount(createPaymentAccountRequest, options)
|
|
1621
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1622
|
+
}
|
|
1502
1623
|
/**
|
|
1503
1624
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1504
1625
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1524,6 +1645,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1524
1645
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1525
1646
|
.then((request) => request(this.axios, this.basePath));
|
|
1526
1647
|
}
|
|
1648
|
+
/**
|
|
1649
|
+
* delete payment account
|
|
1650
|
+
* @param {string} paymentAccountId The payment account id
|
|
1651
|
+
* @param {*} [options] Override http request option.
|
|
1652
|
+
* @throws {RequiredError}
|
|
1653
|
+
* @memberof CustomerApi
|
|
1654
|
+
*/
|
|
1655
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1656
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1657
|
+
.deletePaymentAccount(paymentAccountId, options)
|
|
1658
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1659
|
+
}
|
|
1527
1660
|
/**
|
|
1528
1661
|
* generate a link token that can be used to create link
|
|
1529
1662
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1677,9 +1810,9 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1677
1810
|
* @throws {RequiredError}
|
|
1678
1811
|
* @memberof CustomerApi
|
|
1679
1812
|
*/
|
|
1680
|
-
|
|
1813
|
+
listPaymentAccounts(paymentUserId, options) {
|
|
1681
1814
|
return exports.CustomerApiFp(this.configuration)
|
|
1682
|
-
.
|
|
1815
|
+
.listPaymentAccounts(paymentUserId, options)
|
|
1683
1816
|
.then((request) => request(this.axios, this.basePath));
|
|
1684
1817
|
}
|
|
1685
1818
|
/**
|