@finverse/sdk-typescript 0.0.382 → 0.0.384
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 +194 -0
- package/dist/api.js +154 -3
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1968,6 +1968,76 @@ export declare const CreatePaymentUserRequestUserTypeEnum: {
|
|
|
1968
1968
|
readonly Business: "BUSINESS";
|
|
1969
1969
|
};
|
|
1970
1970
|
export type CreatePaymentUserRequestUserTypeEnum = (typeof CreatePaymentUserRequestUserTypeEnum)[keyof typeof CreatePaymentUserRequestUserTypeEnum];
|
|
1971
|
+
/**
|
|
1972
|
+
*
|
|
1973
|
+
* @export
|
|
1974
|
+
* @interface CreatePayoutDetails
|
|
1975
|
+
*/
|
|
1976
|
+
export interface CreatePayoutDetails {
|
|
1977
|
+
/**
|
|
1978
|
+
* A description for the payout
|
|
1979
|
+
* @type {string}
|
|
1980
|
+
* @memberof CreatePayoutDetails
|
|
1981
|
+
*/
|
|
1982
|
+
description: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Any reference ID provided by the customer for this payout
|
|
1985
|
+
* @type {string}
|
|
1986
|
+
* @memberof CreatePayoutDetails
|
|
1987
|
+
*/
|
|
1988
|
+
external_transaction_reference: string;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @export
|
|
1993
|
+
* @interface CreatePayoutRequest
|
|
1994
|
+
*/
|
|
1995
|
+
export interface CreatePayoutRequest {
|
|
1996
|
+
/**
|
|
1997
|
+
* The payout amount, in the minor unit of the currency
|
|
1998
|
+
* @type {number}
|
|
1999
|
+
* @memberof CreatePayoutRequest
|
|
2000
|
+
*/
|
|
2001
|
+
amount: number;
|
|
2002
|
+
/**
|
|
2003
|
+
* ISO 4217 currency code of the payout
|
|
2004
|
+
* @type {string}
|
|
2005
|
+
* @memberof CreatePayoutRequest
|
|
2006
|
+
*/
|
|
2007
|
+
currency: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* If true, the payout is immediately submitted for processing. If false, the payout is created in CREATED status and must be confirmed via POST /payouts/{payoutId}/confirm before it is processed.
|
|
2010
|
+
* @type {boolean}
|
|
2011
|
+
* @memberof CreatePayoutRequest
|
|
2012
|
+
*/
|
|
2013
|
+
confirm: boolean;
|
|
2014
|
+
/**
|
|
2015
|
+
*
|
|
2016
|
+
* @type {CreatePayoutDetails}
|
|
2017
|
+
* @memberof CreatePayoutRequest
|
|
2018
|
+
*/
|
|
2019
|
+
payment_details: CreatePayoutDetails;
|
|
2020
|
+
/**
|
|
2021
|
+
*
|
|
2022
|
+
* @type {PayoutAccountRef}
|
|
2023
|
+
* @memberof CreatePayoutRequest
|
|
2024
|
+
*/
|
|
2025
|
+
sender_account: PayoutAccountRef;
|
|
2026
|
+
/**
|
|
2027
|
+
*
|
|
2028
|
+
* @type {PayoutAccountRef}
|
|
2029
|
+
* @memberof CreatePayoutRequest
|
|
2030
|
+
*/
|
|
2031
|
+
recipient_account: PayoutAccountRef;
|
|
2032
|
+
/**
|
|
2033
|
+
* Up to 20 metadata key-value pairs
|
|
2034
|
+
* @type {{ [key: string]: string; }}
|
|
2035
|
+
* @memberof CreatePayoutRequest
|
|
2036
|
+
*/
|
|
2037
|
+
metadata?: {
|
|
2038
|
+
[key: string]: string;
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
1971
2041
|
/**
|
|
1972
2042
|
*
|
|
1973
2043
|
* @export
|
|
@@ -4263,6 +4333,30 @@ export interface JWKSKey {
|
|
|
4263
4333
|
*/
|
|
4264
4334
|
x5c?: Array<string>;
|
|
4265
4335
|
}
|
|
4336
|
+
/**
|
|
4337
|
+
* KCP virtual account metadata
|
|
4338
|
+
* @export
|
|
4339
|
+
* @interface KcpVaMetadata
|
|
4340
|
+
*/
|
|
4341
|
+
export interface KcpVaMetadata {
|
|
4342
|
+
/**
|
|
4343
|
+
* Cash receipt type; \"0\" = income tax deduction (for individuals), \"1\" = proof of expenditure (for businesses)
|
|
4344
|
+
* @type {string}
|
|
4345
|
+
* @memberof KcpVaMetadata
|
|
4346
|
+
*/
|
|
4347
|
+
va_receipt_gubn: KcpVaMetadataVaReceiptGubnEnum;
|
|
4348
|
+
/**
|
|
4349
|
+
* ID number for cash receipt issuance
|
|
4350
|
+
* @type {string}
|
|
4351
|
+
* @memberof KcpVaMetadata
|
|
4352
|
+
*/
|
|
4353
|
+
va_taxno: string;
|
|
4354
|
+
}
|
|
4355
|
+
export declare const KcpVaMetadataVaReceiptGubnEnum: {
|
|
4356
|
+
readonly _0: "0";
|
|
4357
|
+
readonly _1: "1";
|
|
4358
|
+
};
|
|
4359
|
+
export type KcpVaMetadataVaReceiptGubnEnum = (typeof KcpVaMetadataVaReceiptGubnEnum)[keyof typeof KcpVaMetadataVaReceiptGubnEnum];
|
|
4266
4360
|
/**
|
|
4267
4361
|
*
|
|
4268
4362
|
* @export
|
|
@@ -7827,6 +7921,19 @@ export declare const PaymentUserWithoutEmailUserTypeEnum: {
|
|
|
7827
7921
|
readonly Business: "BUSINESS";
|
|
7828
7922
|
};
|
|
7829
7923
|
export type PaymentUserWithoutEmailUserTypeEnum = (typeof PaymentUserWithoutEmailUserTypeEnum)[keyof typeof PaymentUserWithoutEmailUserTypeEnum];
|
|
7924
|
+
/**
|
|
7925
|
+
*
|
|
7926
|
+
* @export
|
|
7927
|
+
* @interface PayoutAccountRef
|
|
7928
|
+
*/
|
|
7929
|
+
export interface PayoutAccountRef {
|
|
7930
|
+
/**
|
|
7931
|
+
* The payment account id
|
|
7932
|
+
* @type {string}
|
|
7933
|
+
* @memberof PayoutAccountRef
|
|
7934
|
+
*/
|
|
7935
|
+
account_id: string;
|
|
7936
|
+
}
|
|
7830
7937
|
/**
|
|
7831
7938
|
*
|
|
7832
7939
|
* @export
|
|
@@ -8065,6 +8172,7 @@ export declare const PayoutSnapshotResponseTypeEnum: {
|
|
|
8065
8172
|
readonly Manual: "MANUAL";
|
|
8066
8173
|
readonly Scheduled: "SCHEDULED";
|
|
8067
8174
|
readonly Settlement: "SETTLEMENT";
|
|
8175
|
+
readonly OnDemand: "ON_DEMAND";
|
|
8068
8176
|
};
|
|
8069
8177
|
export type PayoutSnapshotResponseTypeEnum = (typeof PayoutSnapshotResponseTypeEnum)[keyof typeof PayoutSnapshotResponseTypeEnum];
|
|
8070
8178
|
/**
|
|
@@ -8787,6 +8895,12 @@ export interface SelectPaymentMethodRequest {
|
|
|
8787
8895
|
* @memberof SelectPaymentMethodRequest
|
|
8788
8896
|
*/
|
|
8789
8897
|
institution_id?: string;
|
|
8898
|
+
/**
|
|
8899
|
+
*
|
|
8900
|
+
* @type {KcpVaMetadata}
|
|
8901
|
+
* @memberof SelectPaymentMethodRequest
|
|
8902
|
+
*/
|
|
8903
|
+
kcp_va_metadata?: KcpVaMetadata;
|
|
8790
8904
|
}
|
|
8791
8905
|
export declare const SelectPaymentMethodRequestPaymentMethodTypeEnum: {
|
|
8792
8906
|
readonly Mandate: "MANDATE";
|
|
@@ -10770,6 +10884,13 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10770
10884
|
* @throws {RequiredError}
|
|
10771
10885
|
*/
|
|
10772
10886
|
completeKcpPayment: (completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10887
|
+
/**
|
|
10888
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
10889
|
+
* @param {string} payoutId payout id
|
|
10890
|
+
* @param {*} [options] Override http request option.
|
|
10891
|
+
* @throws {RequiredError}
|
|
10892
|
+
*/
|
|
10893
|
+
confirmPayout: (payoutId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10773
10894
|
/**
|
|
10774
10895
|
* CREATE Mandate
|
|
10775
10896
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -10823,6 +10944,14 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10823
10944
|
* @throws {RequiredError}
|
|
10824
10945
|
*/
|
|
10825
10946
|
createPaymentUser: (createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10947
|
+
/**
|
|
10948
|
+
* Create a payout
|
|
10949
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
10950
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
10951
|
+
* @param {*} [options] Override http request option.
|
|
10952
|
+
* @throws {RequiredError}
|
|
10953
|
+
*/
|
|
10954
|
+
createPayout: (idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10826
10955
|
/**
|
|
10827
10956
|
* delete payment account
|
|
10828
10957
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11120,6 +11249,13 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
11120
11249
|
* @throws {RequiredError}
|
|
11121
11250
|
*/
|
|
11122
11251
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteKcpPaymentResponse>>;
|
|
11252
|
+
/**
|
|
11253
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
11254
|
+
* @param {string} payoutId payout id
|
|
11255
|
+
* @param {*} [options] Override http request option.
|
|
11256
|
+
* @throws {RequiredError}
|
|
11257
|
+
*/
|
|
11258
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
11123
11259
|
/**
|
|
11124
11260
|
* CREATE Mandate
|
|
11125
11261
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11173,6 +11309,14 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
11173
11309
|
* @throws {RequiredError}
|
|
11174
11310
|
*/
|
|
11175
11311
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
|
|
11312
|
+
/**
|
|
11313
|
+
* Create a payout
|
|
11314
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
11315
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
11316
|
+
* @param {*} [options] Override http request option.
|
|
11317
|
+
* @throws {RequiredError}
|
|
11318
|
+
*/
|
|
11319
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
11176
11320
|
/**
|
|
11177
11321
|
* delete payment account
|
|
11178
11322
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11476,6 +11620,13 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
11476
11620
|
* @throws {RequiredError}
|
|
11477
11621
|
*/
|
|
11478
11622
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
11623
|
+
/**
|
|
11624
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
11625
|
+
* @param {string} payoutId payout id
|
|
11626
|
+
* @param {*} [options] Override http request option.
|
|
11627
|
+
* @throws {RequiredError}
|
|
11628
|
+
*/
|
|
11629
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11479
11630
|
/**
|
|
11480
11631
|
* CREATE Mandate
|
|
11481
11632
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11529,6 +11680,14 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
11529
11680
|
* @throws {RequiredError}
|
|
11530
11681
|
*/
|
|
11531
11682
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
11683
|
+
/**
|
|
11684
|
+
* Create a payout
|
|
11685
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
11686
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
11687
|
+
* @param {*} [options] Override http request option.
|
|
11688
|
+
* @throws {RequiredError}
|
|
11689
|
+
*/
|
|
11690
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11532
11691
|
/**
|
|
11533
11692
|
* delete payment account
|
|
11534
11693
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11838,6 +11997,14 @@ export interface PaymentApiInterface {
|
|
|
11838
11997
|
* @memberof PaymentApiInterface
|
|
11839
11998
|
*/
|
|
11840
11999
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
12000
|
+
/**
|
|
12001
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
12002
|
+
* @param {string} payoutId payout id
|
|
12003
|
+
* @param {*} [options] Override http request option.
|
|
12004
|
+
* @throws {RequiredError}
|
|
12005
|
+
* @memberof PaymentApiInterface
|
|
12006
|
+
*/
|
|
12007
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11841
12008
|
/**
|
|
11842
12009
|
* CREATE Mandate
|
|
11843
12010
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11898,6 +12065,15 @@ export interface PaymentApiInterface {
|
|
|
11898
12065
|
* @memberof PaymentApiInterface
|
|
11899
12066
|
*/
|
|
11900
12067
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
12068
|
+
/**
|
|
12069
|
+
* Create a payout
|
|
12070
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
12071
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
12072
|
+
* @param {*} [options] Override http request option.
|
|
12073
|
+
* @throws {RequiredError}
|
|
12074
|
+
* @memberof PaymentApiInterface
|
|
12075
|
+
*/
|
|
12076
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11901
12077
|
/**
|
|
11902
12078
|
* delete payment account
|
|
11903
12079
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -12236,6 +12412,14 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
12236
12412
|
* @memberof PaymentApi
|
|
12237
12413
|
*/
|
|
12238
12414
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteKcpPaymentResponse, any, {}>>;
|
|
12415
|
+
/**
|
|
12416
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
12417
|
+
* @param {string} payoutId payout id
|
|
12418
|
+
* @param {*} [options] Override http request option.
|
|
12419
|
+
* @throws {RequiredError}
|
|
12420
|
+
* @memberof PaymentApi
|
|
12421
|
+
*/
|
|
12422
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
|
|
12239
12423
|
/**
|
|
12240
12424
|
* CREATE Mandate
|
|
12241
12425
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -12296,6 +12480,15 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
12296
12480
|
* @memberof PaymentApi
|
|
12297
12481
|
*/
|
|
12298
12482
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser, any, {}>>;
|
|
12483
|
+
/**
|
|
12484
|
+
* Create a payout
|
|
12485
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
12486
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
12487
|
+
* @param {*} [options] Override http request option.
|
|
12488
|
+
* @throws {RequiredError}
|
|
12489
|
+
* @memberof PaymentApi
|
|
12490
|
+
*/
|
|
12491
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
|
|
12299
12492
|
/**
|
|
12300
12493
|
* delete payment account
|
|
12301
12494
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -12732,6 +12925,7 @@ export declare const ListPayoutsPayoutTypesEnum: {
|
|
|
12732
12925
|
readonly Manual: "MANUAL";
|
|
12733
12926
|
readonly Scheduled: "SCHEDULED";
|
|
12734
12927
|
readonly Settlement: "SETTLEMENT";
|
|
12928
|
+
readonly OnDemand: "ON_DEMAND";
|
|
12735
12929
|
};
|
|
12736
12930
|
export type ListPayoutsPayoutTypesEnum = (typeof ListPayoutsPayoutTypesEnum)[keyof typeof ListPayoutsPayoutTypesEnum];
|
|
12737
12931
|
/**
|
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = exports.ListBillsStatusesEnum = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = void 0;
|
|
25
|
+
exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.KcpVaMetadataVaReceiptGubnEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = exports.IntegrationMetadataPaymentUserRequestIntegrationIdEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBillResponseStatusEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardDetailsFundingEnum = exports.FVCardStatusEnum = exports.FVBillStatusEnum = exports.DisputeResponseDisputeStatusEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestCardDetailsFundingEnum = exports.CreateCardRequestStatusEnum = exports.CompleteKcpPaymentRequestCardPointUseEnum = exports.CardFvLinkResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AutopayEnrollmentConfigurationEnrollmentPrefillValueEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
|
+
exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListInstitutionsInstitutionTypeEnum = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsResponsePeriodEnum = exports.TransactionLimitsRequestPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.SelectPaymentMethodRequestSenderTypeEnum = exports.SelectPaymentMethodRequestPaymentMethodTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutSnapshotResponseTypeEnum = exports.PayoutSnapshotResponseStatusEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsRequestPaymentMethodTypesEnum = exports.PaymentSetupOptionsRequestFuturePaymentsEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataFundsSettlementEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataStatusEnum = exports.PaymentMethodIntegrationMetadataAdyenMetadataRecurringProcessingModelEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseTypeEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = void 0;
|
|
27
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = exports.ListBillsStatusesEnum = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = exports.LinkApi = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -256,6 +256,10 @@ exports.IntegrationMetadataRequestIntegrationIdEnum = {
|
|
|
256
256
|
exports.IntegrationMetadataResponseIntegrationIdEnum = {
|
|
257
257
|
Rapidstor: 'RAPIDSTOR',
|
|
258
258
|
};
|
|
259
|
+
exports.KcpVaMetadataVaReceiptGubnEnum = {
|
|
260
|
+
_0: '0',
|
|
261
|
+
_1: '1',
|
|
262
|
+
};
|
|
259
263
|
exports.LineItemItemTypeEnum = {
|
|
260
264
|
AmountDue: 'AMOUNT_DUE',
|
|
261
265
|
Surcharge: 'SURCHARGE',
|
|
@@ -459,6 +463,7 @@ exports.PayoutSnapshotResponseTypeEnum = {
|
|
|
459
463
|
Manual: 'MANUAL',
|
|
460
464
|
Scheduled: 'SCHEDULED',
|
|
461
465
|
Settlement: 'SETTLEMENT',
|
|
466
|
+
OnDemand: 'ON_DEMAND',
|
|
462
467
|
};
|
|
463
468
|
exports.RecipientAccountNumberTypeEnum = {
|
|
464
469
|
Local: 'LOCAL',
|
|
@@ -2696,6 +2701,36 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2696
2701
|
options: localVarRequestOptions,
|
|
2697
2702
|
};
|
|
2698
2703
|
}),
|
|
2704
|
+
/**
|
|
2705
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
2706
|
+
* @param {string} payoutId payout id
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
*/
|
|
2710
|
+
confirmPayout: (payoutId_1, ...args_1) => __awaiter(this, [payoutId_1, ...args_1], void 0, function* (payoutId, options = {}) {
|
|
2711
|
+
// verify required parameter 'payoutId' is not null or undefined
|
|
2712
|
+
(0, common_1.assertParamExists)('confirmPayout', 'payoutId', payoutId);
|
|
2713
|
+
const localVarPath = `/payouts/{payoutId}/confirm`.replace(`{${'payoutId'}}`, encodeURIComponent(String(payoutId)));
|
|
2714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2715
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2716
|
+
let baseOptions;
|
|
2717
|
+
if (configuration) {
|
|
2718
|
+
baseOptions = configuration.baseOptions;
|
|
2719
|
+
}
|
|
2720
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2721
|
+
const localVarHeaderParameter = {};
|
|
2722
|
+
const localVarQueryParameter = {};
|
|
2723
|
+
// authentication Oauth2 required
|
|
2724
|
+
// oauth required
|
|
2725
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2726
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2728
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2729
|
+
return {
|
|
2730
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2731
|
+
options: localVarRequestOptions,
|
|
2732
|
+
};
|
|
2733
|
+
}),
|
|
2699
2734
|
/**
|
|
2700
2735
|
* CREATE Mandate
|
|
2701
2736
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -2937,6 +2972,44 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2937
2972
|
options: localVarRequestOptions,
|
|
2938
2973
|
};
|
|
2939
2974
|
}),
|
|
2975
|
+
/**
|
|
2976
|
+
* Create a payout
|
|
2977
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
2978
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
2979
|
+
* @param {*} [options] Override http request option.
|
|
2980
|
+
* @throws {RequiredError}
|
|
2981
|
+
*/
|
|
2982
|
+
createPayout: (idempotencyKey_1, createPayoutRequest_1, ...args_1) => __awaiter(this, [idempotencyKey_1, createPayoutRequest_1, ...args_1], void 0, function* (idempotencyKey, createPayoutRequest, options = {}) {
|
|
2983
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
2984
|
+
(0, common_1.assertParamExists)('createPayout', 'idempotencyKey', idempotencyKey);
|
|
2985
|
+
// verify required parameter 'createPayoutRequest' is not null or undefined
|
|
2986
|
+
(0, common_1.assertParamExists)('createPayout', 'createPayoutRequest', createPayoutRequest);
|
|
2987
|
+
const localVarPath = `/payouts`;
|
|
2988
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2989
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2990
|
+
let baseOptions;
|
|
2991
|
+
if (configuration) {
|
|
2992
|
+
baseOptions = configuration.baseOptions;
|
|
2993
|
+
}
|
|
2994
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2995
|
+
const localVarHeaderParameter = {};
|
|
2996
|
+
const localVarQueryParameter = {};
|
|
2997
|
+
// authentication Oauth2 required
|
|
2998
|
+
// oauth required
|
|
2999
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3000
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3001
|
+
if (idempotencyKey != null) {
|
|
3002
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
3003
|
+
}
|
|
3004
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3006
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3007
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPayoutRequest, localVarRequestOptions, configuration);
|
|
3008
|
+
return {
|
|
3009
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3010
|
+
options: localVarRequestOptions,
|
|
3011
|
+
};
|
|
3012
|
+
}),
|
|
2940
3013
|
/**
|
|
2941
3014
|
* delete payment account
|
|
2942
3015
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -4117,6 +4190,21 @@ const PaymentApiFp = function (configuration) {
|
|
|
4117
4190
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4118
4191
|
});
|
|
4119
4192
|
},
|
|
4193
|
+
/**
|
|
4194
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
4195
|
+
* @param {string} payoutId payout id
|
|
4196
|
+
* @param {*} [options] Override http request option.
|
|
4197
|
+
* @throws {RequiredError}
|
|
4198
|
+
*/
|
|
4199
|
+
confirmPayout(payoutId, options) {
|
|
4200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4201
|
+
var _a, _b, _c;
|
|
4202
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPayout(payoutId, options);
|
|
4203
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4204
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.confirmPayout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4205
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4206
|
+
});
|
|
4207
|
+
},
|
|
4120
4208
|
/**
|
|
4121
4209
|
* CREATE Mandate
|
|
4122
4210
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -4226,6 +4314,22 @@ const PaymentApiFp = function (configuration) {
|
|
|
4226
4314
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4227
4315
|
});
|
|
4228
4316
|
},
|
|
4317
|
+
/**
|
|
4318
|
+
* Create a payout
|
|
4319
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4320
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
4321
|
+
* @param {*} [options] Override http request option.
|
|
4322
|
+
* @throws {RequiredError}
|
|
4323
|
+
*/
|
|
4324
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
4325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4326
|
+
var _a, _b, _c;
|
|
4327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayout(idempotencyKey, createPayoutRequest, options);
|
|
4328
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4329
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.createPayout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4330
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4331
|
+
});
|
|
4332
|
+
},
|
|
4229
4333
|
/**
|
|
4230
4334
|
* delete payment account
|
|
4231
4335
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -4761,6 +4865,15 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4761
4865
|
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
4762
4866
|
.then((request) => request(axios, basePath));
|
|
4763
4867
|
},
|
|
4868
|
+
/**
|
|
4869
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
4870
|
+
* @param {string} payoutId payout id
|
|
4871
|
+
* @param {*} [options] Override http request option.
|
|
4872
|
+
* @throws {RequiredError}
|
|
4873
|
+
*/
|
|
4874
|
+
confirmPayout(payoutId, options) {
|
|
4875
|
+
return localVarFp.confirmPayout(payoutId, options).then((request) => request(axios, basePath));
|
|
4876
|
+
},
|
|
4764
4877
|
/**
|
|
4765
4878
|
* CREATE Mandate
|
|
4766
4879
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -4842,6 +4955,18 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4842
4955
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
4843
4956
|
.then((request) => request(axios, basePath));
|
|
4844
4957
|
},
|
|
4958
|
+
/**
|
|
4959
|
+
* Create a payout
|
|
4960
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
4961
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
4962
|
+
* @param {*} [options] Override http request option.
|
|
4963
|
+
* @throws {RequiredError}
|
|
4964
|
+
*/
|
|
4965
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
4966
|
+
return localVarFp
|
|
4967
|
+
.createPayout(idempotencyKey, createPayoutRequest, options)
|
|
4968
|
+
.then((request) => request(axios, basePath));
|
|
4969
|
+
},
|
|
4845
4970
|
/**
|
|
4846
4971
|
* delete payment account
|
|
4847
4972
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -5250,6 +5375,18 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5250
5375
|
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
5251
5376
|
.then((request) => request(this.axios, this.basePath));
|
|
5252
5377
|
}
|
|
5378
|
+
/**
|
|
5379
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
5380
|
+
* @param {string} payoutId payout id
|
|
5381
|
+
* @param {*} [options] Override http request option.
|
|
5382
|
+
* @throws {RequiredError}
|
|
5383
|
+
* @memberof PaymentApi
|
|
5384
|
+
*/
|
|
5385
|
+
confirmPayout(payoutId, options) {
|
|
5386
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5387
|
+
.confirmPayout(payoutId, options)
|
|
5388
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5389
|
+
}
|
|
5253
5390
|
/**
|
|
5254
5391
|
* CREATE Mandate
|
|
5255
5392
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -5338,6 +5475,19 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5338
5475
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
5339
5476
|
.then((request) => request(this.axios, this.basePath));
|
|
5340
5477
|
}
|
|
5478
|
+
/**
|
|
5479
|
+
* Create a payout
|
|
5480
|
+
* @param {string} idempotencyKey A random key provided by the customer, per unique payout. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
|
|
5481
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
5482
|
+
* @param {*} [options] Override http request option.
|
|
5483
|
+
* @throws {RequiredError}
|
|
5484
|
+
* @memberof PaymentApi
|
|
5485
|
+
*/
|
|
5486
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
5487
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5488
|
+
.createPayout(idempotencyKey, createPayoutRequest, options)
|
|
5489
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5490
|
+
}
|
|
5341
5491
|
/**
|
|
5342
5492
|
* delete payment account
|
|
5343
5493
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -5865,6 +6015,7 @@ exports.ListPayoutsPayoutTypesEnum = {
|
|
|
5865
6015
|
Manual: 'MANUAL',
|
|
5866
6016
|
Scheduled: 'SCHEDULED',
|
|
5867
6017
|
Settlement: 'SETTLEMENT',
|
|
6018
|
+
OnDemand: 'ON_DEMAND',
|
|
5868
6019
|
};
|
|
5869
6020
|
/**
|
|
5870
6021
|
* PublicApi - axios parameter creator
|