@finverse/sdk-typescript 0.0.160 → 0.0.162
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 +321 -0
- package/dist/api.js +272 -1
- 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
|
|
@@ -1006,6 +1061,56 @@ export declare const CreatePaymentRequestTypeEnum: {
|
|
|
1006
1061
|
readonly Single: "SINGLE";
|
|
1007
1062
|
};
|
|
1008
1063
|
export declare type CreatePaymentRequestTypeEnum = (typeof CreatePaymentRequestTypeEnum)[keyof typeof CreatePaymentRequestTypeEnum];
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @export
|
|
1067
|
+
* @interface CreatePaymentUserRequest
|
|
1068
|
+
*/
|
|
1069
|
+
export interface CreatePaymentUserRequest {
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @type {string}
|
|
1073
|
+
* @memberof CreatePaymentUserRequest
|
|
1074
|
+
*/
|
|
1075
|
+
name: string;
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @type {string}
|
|
1079
|
+
* @memberof CreatePaymentUserRequest
|
|
1080
|
+
*/
|
|
1081
|
+
external_user_id: string;
|
|
1082
|
+
/**
|
|
1083
|
+
*
|
|
1084
|
+
* @type {string}
|
|
1085
|
+
* @memberof CreatePaymentUserRequest
|
|
1086
|
+
*/
|
|
1087
|
+
user_type?: CreatePaymentUserRequestUserTypeEnum;
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @type {string}
|
|
1091
|
+
* @memberof CreatePaymentUserRequest
|
|
1092
|
+
*/
|
|
1093
|
+
email?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @type {Array<SenderDetail>}
|
|
1097
|
+
* @memberof CreatePaymentUserRequest
|
|
1098
|
+
*/
|
|
1099
|
+
user_details?: Array<SenderDetail>;
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @type {{ [key: string]: string; }}
|
|
1103
|
+
* @memberof CreatePaymentUserRequest
|
|
1104
|
+
*/
|
|
1105
|
+
metadata?: {
|
|
1106
|
+
[key: string]: string;
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
export declare const CreatePaymentUserRequestUserTypeEnum: {
|
|
1110
|
+
readonly Individual: "INDIVIDUAL";
|
|
1111
|
+
readonly Business: "BUSINESS";
|
|
1112
|
+
};
|
|
1113
|
+
export declare type CreatePaymentUserRequestUserTypeEnum = (typeof CreatePaymentUserRequestUserTypeEnum)[keyof typeof CreatePaymentUserRequestUserTypeEnum];
|
|
1009
1114
|
/**
|
|
1010
1115
|
*
|
|
1011
1116
|
* @export
|
|
@@ -4555,6 +4660,74 @@ export declare const PaymentScheduleFrequencyEnum: {
|
|
|
4555
4660
|
readonly Yearly: "YEARLY";
|
|
4556
4661
|
};
|
|
4557
4662
|
export declare type PaymentScheduleFrequencyEnum = (typeof PaymentScheduleFrequencyEnum)[keyof typeof PaymentScheduleFrequencyEnum];
|
|
4663
|
+
/**
|
|
4664
|
+
*
|
|
4665
|
+
* @export
|
|
4666
|
+
* @interface PaymentUser
|
|
4667
|
+
*/
|
|
4668
|
+
export interface PaymentUser {
|
|
4669
|
+
/**
|
|
4670
|
+
*
|
|
4671
|
+
* @type {string}
|
|
4672
|
+
* @memberof PaymentUser
|
|
4673
|
+
*/
|
|
4674
|
+
created_at?: string;
|
|
4675
|
+
/**
|
|
4676
|
+
*
|
|
4677
|
+
* @type {string}
|
|
4678
|
+
* @memberof PaymentUser
|
|
4679
|
+
*/
|
|
4680
|
+
email?: string;
|
|
4681
|
+
/**
|
|
4682
|
+
*
|
|
4683
|
+
* @type {string}
|
|
4684
|
+
* @memberof PaymentUser
|
|
4685
|
+
*/
|
|
4686
|
+
external_user_id?: string;
|
|
4687
|
+
/**
|
|
4688
|
+
*
|
|
4689
|
+
* @type {{ [key: string]: string; }}
|
|
4690
|
+
* @memberof PaymentUser
|
|
4691
|
+
*/
|
|
4692
|
+
metadata?: {
|
|
4693
|
+
[key: string]: string;
|
|
4694
|
+
};
|
|
4695
|
+
/**
|
|
4696
|
+
*
|
|
4697
|
+
* @type {string}
|
|
4698
|
+
* @memberof PaymentUser
|
|
4699
|
+
*/
|
|
4700
|
+
name?: string;
|
|
4701
|
+
/**
|
|
4702
|
+
*
|
|
4703
|
+
* @type {Array<SenderDetail>}
|
|
4704
|
+
* @memberof PaymentUser
|
|
4705
|
+
*/
|
|
4706
|
+
user_details?: Array<SenderDetail>;
|
|
4707
|
+
/**
|
|
4708
|
+
*
|
|
4709
|
+
* @type {string}
|
|
4710
|
+
* @memberof PaymentUser
|
|
4711
|
+
*/
|
|
4712
|
+
updated_at?: string;
|
|
4713
|
+
/**
|
|
4714
|
+
*
|
|
4715
|
+
* @type {string}
|
|
4716
|
+
* @memberof PaymentUser
|
|
4717
|
+
*/
|
|
4718
|
+
user_id?: string;
|
|
4719
|
+
/**
|
|
4720
|
+
*
|
|
4721
|
+
* @type {string}
|
|
4722
|
+
* @memberof PaymentUser
|
|
4723
|
+
*/
|
|
4724
|
+
user_type?: PaymentUserUserTypeEnum;
|
|
4725
|
+
}
|
|
4726
|
+
export declare const PaymentUserUserTypeEnum: {
|
|
4727
|
+
readonly Individual: "INDIVIDUAL";
|
|
4728
|
+
readonly Business: "BUSINESS";
|
|
4729
|
+
};
|
|
4730
|
+
export declare type PaymentUserUserTypeEnum = (typeof PaymentUserUserTypeEnum)[keyof typeof PaymentUserUserTypeEnum];
|
|
4558
4731
|
/**
|
|
4559
4732
|
*
|
|
4560
4733
|
* @export
|
|
@@ -5604,6 +5777,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5604
5777
|
* @throws {RequiredError}
|
|
5605
5778
|
*/
|
|
5606
5779
|
createPayment: (createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5780
|
+
/**
|
|
5781
|
+
* create payment account
|
|
5782
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
5783
|
+
* @param {*} [options] Override http request option.
|
|
5784
|
+
* @throws {RequiredError}
|
|
5785
|
+
*/
|
|
5786
|
+
createPaymentAccount: (createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5607
5787
|
/**
|
|
5608
5788
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5609
5789
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5611,6 +5791,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5611
5791
|
* @throws {RequiredError}
|
|
5612
5792
|
*/
|
|
5613
5793
|
createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5794
|
+
/**
|
|
5795
|
+
* Create a payment user
|
|
5796
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
5797
|
+
* @param {*} [options] Override http request option.
|
|
5798
|
+
* @throws {RequiredError}
|
|
5799
|
+
*/
|
|
5800
|
+
createPaymentUser: (createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5614
5801
|
/**
|
|
5615
5802
|
* Create new Payout instruction
|
|
5616
5803
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -5619,6 +5806,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5619
5806
|
* @throws {RequiredError}
|
|
5620
5807
|
*/
|
|
5621
5808
|
createPayoutInstruction: (createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5809
|
+
/**
|
|
5810
|
+
* delete payment account
|
|
5811
|
+
* @param {string} paymentAccountId The payment account id
|
|
5812
|
+
* @param {*} [options] Override http request option.
|
|
5813
|
+
* @throws {RequiredError}
|
|
5814
|
+
*/
|
|
5815
|
+
deletePaymentAccount: (paymentAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5622
5816
|
/**
|
|
5623
5817
|
* generate a link token that can be used to create link
|
|
5624
5818
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5688,6 +5882,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5688
5882
|
* @throws {RequiredError}
|
|
5689
5883
|
*/
|
|
5690
5884
|
getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5885
|
+
/**
|
|
5886
|
+
* Get a payment user
|
|
5887
|
+
* @param {string} paymentUserId
|
|
5888
|
+
* @param {*} [options] Override http request option.
|
|
5889
|
+
* @throws {RequiredError}
|
|
5890
|
+
*/
|
|
5891
|
+
getPaymentUser: (paymentUserId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5691
5892
|
/**
|
|
5692
5893
|
* Get Payout Instruction details by payout_instruction_id
|
|
5693
5894
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -5762,6 +5963,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5762
5963
|
* @throws {RequiredError}
|
|
5763
5964
|
*/
|
|
5764
5965
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponse>>;
|
|
5966
|
+
/**
|
|
5967
|
+
* create payment account
|
|
5968
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
5969
|
+
* @param {*} [options] Override http request option.
|
|
5970
|
+
* @throws {RequiredError}
|
|
5971
|
+
*/
|
|
5972
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccountDetails>>;
|
|
5765
5973
|
/**
|
|
5766
5974
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5767
5975
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5769,6 +5977,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5769
5977
|
* @throws {RequiredError}
|
|
5770
5978
|
*/
|
|
5771
5979
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
|
|
5980
|
+
/**
|
|
5981
|
+
* Create a payment user
|
|
5982
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
5983
|
+
* @param {*} [options] Override http request option.
|
|
5984
|
+
* @throws {RequiredError}
|
|
5985
|
+
*/
|
|
5986
|
+
createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
|
|
5772
5987
|
/**
|
|
5773
5988
|
* Create new Payout instruction
|
|
5774
5989
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -5777,6 +5992,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5777
5992
|
* @throws {RequiredError}
|
|
5778
5993
|
*/
|
|
5779
5994
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
|
|
5995
|
+
/**
|
|
5996
|
+
* delete payment account
|
|
5997
|
+
* @param {string} paymentAccountId The payment account id
|
|
5998
|
+
* @param {*} [options] Override http request option.
|
|
5999
|
+
* @throws {RequiredError}
|
|
6000
|
+
*/
|
|
6001
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5780
6002
|
/**
|
|
5781
6003
|
* generate a link token that can be used to create link
|
|
5782
6004
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -5846,6 +6068,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
5846
6068
|
* @throws {RequiredError}
|
|
5847
6069
|
*/
|
|
5848
6070
|
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
|
|
6071
|
+
/**
|
|
6072
|
+
* Get a payment user
|
|
6073
|
+
* @param {string} paymentUserId
|
|
6074
|
+
* @param {*} [options] Override http request option.
|
|
6075
|
+
* @throws {RequiredError}
|
|
6076
|
+
*/
|
|
6077
|
+
getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
|
|
5849
6078
|
/**
|
|
5850
6079
|
* Get Payout Instruction details by payout_instruction_id
|
|
5851
6080
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -5920,6 +6149,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
5920
6149
|
* @throws {RequiredError}
|
|
5921
6150
|
*/
|
|
5922
6151
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: any): AxiosPromise<PaymentResponse>;
|
|
6152
|
+
/**
|
|
6153
|
+
* create payment account
|
|
6154
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6155
|
+
* @param {*} [options] Override http request option.
|
|
6156
|
+
* @throws {RequiredError}
|
|
6157
|
+
*/
|
|
6158
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: any): AxiosPromise<PaymentAccountDetails>;
|
|
5923
6159
|
/**
|
|
5924
6160
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
5925
6161
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -5927,6 +6163,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
5927
6163
|
* @throws {RequiredError}
|
|
5928
6164
|
*/
|
|
5929
6165
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
6166
|
+
/**
|
|
6167
|
+
* Create a payment user
|
|
6168
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
6169
|
+
* @param {*} [options] Override http request option.
|
|
6170
|
+
* @throws {RequiredError}
|
|
6171
|
+
*/
|
|
6172
|
+
createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: any): AxiosPromise<PaymentUser>;
|
|
5930
6173
|
/**
|
|
5931
6174
|
* Create new Payout instruction
|
|
5932
6175
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -5935,6 +6178,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
5935
6178
|
* @throws {RequiredError}
|
|
5936
6179
|
*/
|
|
5937
6180
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
|
|
6181
|
+
/**
|
|
6182
|
+
* delete payment account
|
|
6183
|
+
* @param {string} paymentAccountId The payment account id
|
|
6184
|
+
* @param {*} [options] Override http request option.
|
|
6185
|
+
* @throws {RequiredError}
|
|
6186
|
+
*/
|
|
6187
|
+
deletePaymentAccount(paymentAccountId: string, options?: any): AxiosPromise<void>;
|
|
5938
6188
|
/**
|
|
5939
6189
|
* generate a link token that can be used to create link
|
|
5940
6190
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6004,6 +6254,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
6004
6254
|
* @throws {RequiredError}
|
|
6005
6255
|
*/
|
|
6006
6256
|
getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
6257
|
+
/**
|
|
6258
|
+
* Get a payment user
|
|
6259
|
+
* @param {string} paymentUserId
|
|
6260
|
+
* @param {*} [options] Override http request option.
|
|
6261
|
+
* @throws {RequiredError}
|
|
6262
|
+
*/
|
|
6263
|
+
getPaymentUser(paymentUserId: string, options?: any): AxiosPromise<PaymentUser>;
|
|
6007
6264
|
/**
|
|
6008
6265
|
* Get Payout Instruction details by payout_instruction_id
|
|
6009
6266
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6082,6 +6339,14 @@ export interface CustomerApiInterface {
|
|
|
6082
6339
|
* @memberof CustomerApiInterface
|
|
6083
6340
|
*/
|
|
6084
6341
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PaymentResponse>;
|
|
6342
|
+
/**
|
|
6343
|
+
* create payment account
|
|
6344
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6345
|
+
* @param {*} [options] Override http request option.
|
|
6346
|
+
* @throws {RequiredError}
|
|
6347
|
+
* @memberof CustomerApiInterface
|
|
6348
|
+
*/
|
|
6349
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentAccountDetails>;
|
|
6085
6350
|
/**
|
|
6086
6351
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
6087
6352
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -6090,6 +6355,14 @@ export interface CustomerApiInterface {
|
|
|
6090
6355
|
* @memberof CustomerApiInterface
|
|
6091
6356
|
*/
|
|
6092
6357
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
6358
|
+
/**
|
|
6359
|
+
* Create a payment user
|
|
6360
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
6361
|
+
* @param {*} [options] Override http request option.
|
|
6362
|
+
* @throws {RequiredError}
|
|
6363
|
+
* @memberof CustomerApiInterface
|
|
6364
|
+
*/
|
|
6365
|
+
createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
6093
6366
|
/**
|
|
6094
6367
|
* Create new Payout instruction
|
|
6095
6368
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -6099,6 +6372,14 @@ export interface CustomerApiInterface {
|
|
|
6099
6372
|
* @memberof CustomerApiInterface
|
|
6100
6373
|
*/
|
|
6101
6374
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
|
|
6375
|
+
/**
|
|
6376
|
+
* delete payment account
|
|
6377
|
+
* @param {string} paymentAccountId The payment account id
|
|
6378
|
+
* @param {*} [options] Override http request option.
|
|
6379
|
+
* @throws {RequiredError}
|
|
6380
|
+
* @memberof CustomerApiInterface
|
|
6381
|
+
*/
|
|
6382
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
6102
6383
|
/**
|
|
6103
6384
|
* generate a link token that can be used to create link
|
|
6104
6385
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6178,6 +6459,14 @@ export interface CustomerApiInterface {
|
|
|
6178
6459
|
* @memberof CustomerApiInterface
|
|
6179
6460
|
*/
|
|
6180
6461
|
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
6462
|
+
/**
|
|
6463
|
+
* Get a payment user
|
|
6464
|
+
* @param {string} paymentUserId
|
|
6465
|
+
* @param {*} [options] Override http request option.
|
|
6466
|
+
* @throws {RequiredError}
|
|
6467
|
+
* @memberof CustomerApiInterface
|
|
6468
|
+
*/
|
|
6469
|
+
getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
6181
6470
|
/**
|
|
6182
6471
|
* Get Payout Instruction details by payout_instruction_id
|
|
6183
6472
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6263,6 +6552,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6263
6552
|
* @memberof CustomerApi
|
|
6264
6553
|
*/
|
|
6265
6554
|
createPayment(createPaymentRequest: CreatePaymentRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentResponse>>;
|
|
6555
|
+
/**
|
|
6556
|
+
* create payment account
|
|
6557
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
6558
|
+
* @param {*} [options] Override http request option.
|
|
6559
|
+
* @throws {RequiredError}
|
|
6560
|
+
* @memberof CustomerApi
|
|
6561
|
+
*/
|
|
6562
|
+
createPaymentAccount(createPaymentAccountRequest: CreatePaymentAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccountDetails>>;
|
|
6266
6563
|
/**
|
|
6267
6564
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
6268
6565
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -6271,6 +6568,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6271
6568
|
* @memberof CustomerApi
|
|
6272
6569
|
*/
|
|
6273
6570
|
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
|
|
6571
|
+
/**
|
|
6572
|
+
* Create a payment user
|
|
6573
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
6574
|
+
* @param {*} [options] Override http request option.
|
|
6575
|
+
* @throws {RequiredError}
|
|
6576
|
+
* @memberof CustomerApi
|
|
6577
|
+
*/
|
|
6578
|
+
createPaymentUser(createPaymentAccountRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
|
|
6274
6579
|
/**
|
|
6275
6580
|
* Create new Payout instruction
|
|
6276
6581
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -6280,6 +6585,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6280
6585
|
* @memberof CustomerApi
|
|
6281
6586
|
*/
|
|
6282
6587
|
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
|
|
6588
|
+
/**
|
|
6589
|
+
* delete payment account
|
|
6590
|
+
* @param {string} paymentAccountId The payment account id
|
|
6591
|
+
* @param {*} [options] Override http request option.
|
|
6592
|
+
* @throws {RequiredError}
|
|
6593
|
+
* @memberof CustomerApi
|
|
6594
|
+
*/
|
|
6595
|
+
deletePaymentAccount(paymentAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
6283
6596
|
/**
|
|
6284
6597
|
* generate a link token that can be used to create link
|
|
6285
6598
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -6359,6 +6672,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6359
6672
|
* @memberof CustomerApi
|
|
6360
6673
|
*/
|
|
6361
6674
|
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
|
|
6675
|
+
/**
|
|
6676
|
+
* Get a payment user
|
|
6677
|
+
* @param {string} paymentUserId
|
|
6678
|
+
* @param {*} [options] Override http request option.
|
|
6679
|
+
* @throws {RequiredError}
|
|
6680
|
+
* @memberof CustomerApi
|
|
6681
|
+
*/
|
|
6682
|
+
getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
|
|
6362
6683
|
/**
|
|
6363
6684
|
* Get Payout Instruction details by payout_instruction_id
|
|
6364
6685
|
* @param {string} payoutInstructionId payout instruction id
|
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.PaymentUserUserTypeEnum = 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.CreatePaymentUserRequestUserTypeEnum = 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',
|
|
@@ -99,6 +102,10 @@ exports.CreatePaymentRequestTypeEnum = {
|
|
|
99
102
|
Mandate: 'MANDATE',
|
|
100
103
|
Single: 'SINGLE',
|
|
101
104
|
};
|
|
105
|
+
exports.CreatePaymentUserRequestUserTypeEnum = {
|
|
106
|
+
Individual: 'INDIVIDUAL',
|
|
107
|
+
Business: 'BUSINESS',
|
|
108
|
+
};
|
|
102
109
|
exports.CreateRecipientAccountAccountTypeEnum = {
|
|
103
110
|
ExternalAccount: 'EXTERNAL_ACCOUNT',
|
|
104
111
|
};
|
|
@@ -255,6 +262,10 @@ exports.PaymentScheduleFrequencyEnum = {
|
|
|
255
262
|
Quarterly: 'QUARTERLY',
|
|
256
263
|
Yearly: 'YEARLY',
|
|
257
264
|
};
|
|
265
|
+
exports.PaymentUserUserTypeEnum = {
|
|
266
|
+
Individual: 'INDIVIDUAL',
|
|
267
|
+
Business: 'BUSINESS',
|
|
268
|
+
};
|
|
258
269
|
exports.PayoutInstructionResponseStatusEnum = {
|
|
259
270
|
Created: 'CREATED',
|
|
260
271
|
Processing: 'PROCESSING',
|
|
@@ -397,6 +408,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
397
408
|
options: localVarRequestOptions,
|
|
398
409
|
};
|
|
399
410
|
}),
|
|
411
|
+
/**
|
|
412
|
+
* create payment account
|
|
413
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
createPaymentAccount: (createPaymentAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
// verify required parameter 'createPaymentAccountRequest' is not null or undefined
|
|
419
|
+
common_1.assertParamExists('createPaymentAccount', 'createPaymentAccountRequest', createPaymentAccountRequest);
|
|
420
|
+
const localVarPath = `/payment_accounts`;
|
|
421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
423
|
+
let baseOptions;
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions;
|
|
426
|
+
}
|
|
427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
428
|
+
const localVarHeaderParameter = {};
|
|
429
|
+
const localVarQueryParameter = {};
|
|
430
|
+
// authentication Oauth2 required
|
|
431
|
+
// oauth required
|
|
432
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
433
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
434
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
436
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
437
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentAccountRequest, localVarRequestOptions, configuration);
|
|
438
|
+
return {
|
|
439
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
440
|
+
options: localVarRequestOptions,
|
|
441
|
+
};
|
|
442
|
+
}),
|
|
400
443
|
/**
|
|
401
444
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
402
445
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -429,6 +472,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
429
472
|
options: localVarRequestOptions,
|
|
430
473
|
};
|
|
431
474
|
}),
|
|
475
|
+
/**
|
|
476
|
+
* Create a payment user
|
|
477
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
createPaymentUser: (createPaymentAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
482
|
+
// verify required parameter 'createPaymentAccountRequest' is not null or undefined
|
|
483
|
+
common_1.assertParamExists('createPaymentUser', 'createPaymentAccountRequest', createPaymentAccountRequest);
|
|
484
|
+
const localVarPath = `/payment_users`;
|
|
485
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
486
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
487
|
+
let baseOptions;
|
|
488
|
+
if (configuration) {
|
|
489
|
+
baseOptions = configuration.baseOptions;
|
|
490
|
+
}
|
|
491
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
492
|
+
const localVarHeaderParameter = {};
|
|
493
|
+
const localVarQueryParameter = {};
|
|
494
|
+
// authentication Oauth2 required
|
|
495
|
+
// oauth required
|
|
496
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
497
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
498
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
501
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentAccountRequest, localVarRequestOptions, configuration);
|
|
502
|
+
return {
|
|
503
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
504
|
+
options: localVarRequestOptions,
|
|
505
|
+
};
|
|
506
|
+
}),
|
|
432
507
|
/**
|
|
433
508
|
* Create new Payout instruction
|
|
434
509
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -465,6 +540,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
465
540
|
options: localVarRequestOptions,
|
|
466
541
|
};
|
|
467
542
|
}),
|
|
543
|
+
/**
|
|
544
|
+
* delete payment account
|
|
545
|
+
* @param {string} paymentAccountId The payment account id
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
deletePaymentAccount: (paymentAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
// verify required parameter 'paymentAccountId' is not null or undefined
|
|
551
|
+
common_1.assertParamExists('deletePaymentAccount', 'paymentAccountId', paymentAccountId);
|
|
552
|
+
const localVarPath = `/payment_accounts/{paymentAccountId}`.replace(`{${'paymentAccountId'}}`, encodeURIComponent(String(paymentAccountId)));
|
|
553
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
555
|
+
let baseOptions;
|
|
556
|
+
if (configuration) {
|
|
557
|
+
baseOptions = configuration.baseOptions;
|
|
558
|
+
}
|
|
559
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
560
|
+
const localVarHeaderParameter = {};
|
|
561
|
+
const localVarQueryParameter = {};
|
|
562
|
+
// authentication Oauth2 required
|
|
563
|
+
// oauth required
|
|
564
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
565
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
567
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
568
|
+
return {
|
|
569
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
570
|
+
options: localVarRequestOptions,
|
|
571
|
+
};
|
|
572
|
+
}),
|
|
468
573
|
/**
|
|
469
574
|
* generate a link token that can be used to create link
|
|
470
575
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -766,6 +871,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
766
871
|
options: localVarRequestOptions,
|
|
767
872
|
};
|
|
768
873
|
}),
|
|
874
|
+
/**
|
|
875
|
+
* Get a payment user
|
|
876
|
+
* @param {string} paymentUserId
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
getPaymentUser: (paymentUserId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
// verify required parameter 'paymentUserId' is not null or undefined
|
|
882
|
+
common_1.assertParamExists('getPaymentUser', 'paymentUserId', paymentUserId);
|
|
883
|
+
const localVarPath = `/payment_users/{paymentUserId}`.replace(`{${'paymentUserId'}}`, encodeURIComponent(String(paymentUserId)));
|
|
884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
885
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
886
|
+
let baseOptions;
|
|
887
|
+
if (configuration) {
|
|
888
|
+
baseOptions = configuration.baseOptions;
|
|
889
|
+
}
|
|
890
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
891
|
+
const localVarHeaderParameter = {};
|
|
892
|
+
const localVarQueryParameter = {};
|
|
893
|
+
// authentication Oauth2 required
|
|
894
|
+
// oauth required
|
|
895
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
896
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
898
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
899
|
+
return {
|
|
900
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
901
|
+
options: localVarRequestOptions,
|
|
902
|
+
};
|
|
903
|
+
}),
|
|
769
904
|
/**
|
|
770
905
|
* Get Payout Instruction details by payout_instruction_id
|
|
771
906
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1012,6 +1147,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1012
1147
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1013
1148
|
});
|
|
1014
1149
|
},
|
|
1150
|
+
/**
|
|
1151
|
+
* create payment account
|
|
1152
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentAccount(createPaymentAccountRequest, options);
|
|
1159
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
1015
1162
|
/**
|
|
1016
1163
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1017
1164
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1024,6 +1171,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1024
1171
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1025
1172
|
});
|
|
1026
1173
|
},
|
|
1174
|
+
/**
|
|
1175
|
+
* Create a payment user
|
|
1176
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
*/
|
|
1180
|
+
createPaymentUser(createPaymentAccountRequest, options) {
|
|
1181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1182
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentUser(createPaymentAccountRequest, options);
|
|
1183
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1184
|
+
});
|
|
1185
|
+
},
|
|
1027
1186
|
/**
|
|
1028
1187
|
* Create new Payout instruction
|
|
1029
1188
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -1037,6 +1196,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1037
1196
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1038
1197
|
});
|
|
1039
1198
|
},
|
|
1199
|
+
/**
|
|
1200
|
+
* delete payment account
|
|
1201
|
+
* @param {string} paymentAccountId The payment account id
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePaymentAccount(paymentAccountId, options);
|
|
1208
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1209
|
+
});
|
|
1210
|
+
},
|
|
1040
1211
|
/**
|
|
1041
1212
|
* generate a link token that can be used to create link
|
|
1042
1213
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1156,6 +1327,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1156
1327
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1157
1328
|
});
|
|
1158
1329
|
},
|
|
1330
|
+
/**
|
|
1331
|
+
* Get a payment user
|
|
1332
|
+
* @param {string} paymentUserId
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
getPaymentUser(paymentUserId, options) {
|
|
1337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentUser(paymentUserId, options);
|
|
1339
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1340
|
+
});
|
|
1341
|
+
},
|
|
1159
1342
|
/**
|
|
1160
1343
|
* Get Payout Instruction details by payout_instruction_id
|
|
1161
1344
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1275,6 +1458,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1275
1458
|
.createPayment(createPaymentRequest, idempotencyKey, options)
|
|
1276
1459
|
.then((request) => request(axios, basePath));
|
|
1277
1460
|
},
|
|
1461
|
+
/**
|
|
1462
|
+
* create payment account
|
|
1463
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1468
|
+
return localVarFp
|
|
1469
|
+
.createPaymentAccount(createPaymentAccountRequest, options)
|
|
1470
|
+
.then((request) => request(axios, basePath));
|
|
1471
|
+
},
|
|
1278
1472
|
/**
|
|
1279
1473
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1280
1474
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1286,6 +1480,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1286
1480
|
.createPaymentInstruction(paymentInstruction, options)
|
|
1287
1481
|
.then((request) => request(axios, basePath));
|
|
1288
1482
|
},
|
|
1483
|
+
/**
|
|
1484
|
+
* Create a payment user
|
|
1485
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
createPaymentUser(createPaymentAccountRequest, options) {
|
|
1490
|
+
return localVarFp
|
|
1491
|
+
.createPaymentUser(createPaymentAccountRequest, options)
|
|
1492
|
+
.then((request) => request(axios, basePath));
|
|
1493
|
+
},
|
|
1289
1494
|
/**
|
|
1290
1495
|
* Create new Payout instruction
|
|
1291
1496
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -1298,6 +1503,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1298
1503
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1299
1504
|
.then((request) => request(axios, basePath));
|
|
1300
1505
|
},
|
|
1506
|
+
/**
|
|
1507
|
+
* delete payment account
|
|
1508
|
+
* @param {string} paymentAccountId The payment account id
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1513
|
+
return localVarFp.deletePaymentAccount(paymentAccountId, options).then((request) => request(axios, basePath));
|
|
1514
|
+
},
|
|
1301
1515
|
/**
|
|
1302
1516
|
* generate a link token that can be used to create link
|
|
1303
1517
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1391,6 +1605,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1391
1605
|
.getPaymentInstruction(paymentInstructionId, options)
|
|
1392
1606
|
.then((request) => request(axios, basePath));
|
|
1393
1607
|
},
|
|
1608
|
+
/**
|
|
1609
|
+
* Get a payment user
|
|
1610
|
+
* @param {string} paymentUserId
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
getPaymentUser(paymentUserId, options) {
|
|
1615
|
+
return localVarFp.getPaymentUser(paymentUserId, options).then((request) => request(axios, basePath));
|
|
1616
|
+
},
|
|
1394
1617
|
/**
|
|
1395
1618
|
* Get Payout Instruction details by payout_instruction_id
|
|
1396
1619
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1499,6 +1722,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1499
1722
|
.createPayment(createPaymentRequest, idempotencyKey, options)
|
|
1500
1723
|
.then((request) => request(this.axios, this.basePath));
|
|
1501
1724
|
}
|
|
1725
|
+
/**
|
|
1726
|
+
* create payment account
|
|
1727
|
+
* @param {CreatePaymentAccountRequest} createPaymentAccountRequest request body for creating payment account
|
|
1728
|
+
* @param {*} [options] Override http request option.
|
|
1729
|
+
* @throws {RequiredError}
|
|
1730
|
+
* @memberof CustomerApi
|
|
1731
|
+
*/
|
|
1732
|
+
createPaymentAccount(createPaymentAccountRequest, options) {
|
|
1733
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1734
|
+
.createPaymentAccount(createPaymentAccountRequest, options)
|
|
1735
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1736
|
+
}
|
|
1502
1737
|
/**
|
|
1503
1738
|
* Create a new payment instruction to be used when linking to perform new payment
|
|
1504
1739
|
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
@@ -1511,6 +1746,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1511
1746
|
.createPaymentInstruction(paymentInstruction, options)
|
|
1512
1747
|
.then((request) => request(this.axios, this.basePath));
|
|
1513
1748
|
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Create a payment user
|
|
1751
|
+
* @param {CreatePaymentUserRequest} createPaymentAccountRequest request body for creating payment account
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
* @memberof CustomerApi
|
|
1755
|
+
*/
|
|
1756
|
+
createPaymentUser(createPaymentAccountRequest, options) {
|
|
1757
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1758
|
+
.createPaymentUser(createPaymentAccountRequest, options)
|
|
1759
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1760
|
+
}
|
|
1514
1761
|
/**
|
|
1515
1762
|
* Create new Payout instruction
|
|
1516
1763
|
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
@@ -1524,6 +1771,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1524
1771
|
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1525
1772
|
.then((request) => request(this.axios, this.basePath));
|
|
1526
1773
|
}
|
|
1774
|
+
/**
|
|
1775
|
+
* delete payment account
|
|
1776
|
+
* @param {string} paymentAccountId The payment account id
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
* @memberof CustomerApi
|
|
1780
|
+
*/
|
|
1781
|
+
deletePaymentAccount(paymentAccountId, options) {
|
|
1782
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1783
|
+
.deletePaymentAccount(paymentAccountId, options)
|
|
1784
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1785
|
+
}
|
|
1527
1786
|
/**
|
|
1528
1787
|
* generate a link token that can be used to create link
|
|
1529
1788
|
* @param {LinkTokenRequest} linkTokenRequest token request
|
|
@@ -1643,6 +1902,18 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1643
1902
|
.getPaymentInstruction(paymentInstructionId, options)
|
|
1644
1903
|
.then((request) => request(this.axios, this.basePath));
|
|
1645
1904
|
}
|
|
1905
|
+
/**
|
|
1906
|
+
* Get a payment user
|
|
1907
|
+
* @param {string} paymentUserId
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
* @memberof CustomerApi
|
|
1911
|
+
*/
|
|
1912
|
+
getPaymentUser(paymentUserId, options) {
|
|
1913
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1914
|
+
.getPaymentUser(paymentUserId, options)
|
|
1915
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1916
|
+
}
|
|
1646
1917
|
/**
|
|
1647
1918
|
* Get Payout Instruction details by payout_instruction_id
|
|
1648
1919
|
* @param {string} payoutInstructionId payout instruction id
|