@finverse/sdk-typescript 0.0.382 → 0.0.383
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 +164 -0
- package/dist/api.js +147 -0
- 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
|
|
@@ -7827,6 +7897,19 @@ export declare const PaymentUserWithoutEmailUserTypeEnum: {
|
|
|
7827
7897
|
readonly Business: "BUSINESS";
|
|
7828
7898
|
};
|
|
7829
7899
|
export type PaymentUserWithoutEmailUserTypeEnum = (typeof PaymentUserWithoutEmailUserTypeEnum)[keyof typeof PaymentUserWithoutEmailUserTypeEnum];
|
|
7900
|
+
/**
|
|
7901
|
+
*
|
|
7902
|
+
* @export
|
|
7903
|
+
* @interface PayoutAccountRef
|
|
7904
|
+
*/
|
|
7905
|
+
export interface PayoutAccountRef {
|
|
7906
|
+
/**
|
|
7907
|
+
* The payment account id
|
|
7908
|
+
* @type {string}
|
|
7909
|
+
* @memberof PayoutAccountRef
|
|
7910
|
+
*/
|
|
7911
|
+
account_id: string;
|
|
7912
|
+
}
|
|
7830
7913
|
/**
|
|
7831
7914
|
*
|
|
7832
7915
|
* @export
|
|
@@ -8065,6 +8148,7 @@ export declare const PayoutSnapshotResponseTypeEnum: {
|
|
|
8065
8148
|
readonly Manual: "MANUAL";
|
|
8066
8149
|
readonly Scheduled: "SCHEDULED";
|
|
8067
8150
|
readonly Settlement: "SETTLEMENT";
|
|
8151
|
+
readonly OnDemand: "ON_DEMAND";
|
|
8068
8152
|
};
|
|
8069
8153
|
export type PayoutSnapshotResponseTypeEnum = (typeof PayoutSnapshotResponseTypeEnum)[keyof typeof PayoutSnapshotResponseTypeEnum];
|
|
8070
8154
|
/**
|
|
@@ -10770,6 +10854,13 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10770
10854
|
* @throws {RequiredError}
|
|
10771
10855
|
*/
|
|
10772
10856
|
completeKcpPayment: (completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10857
|
+
/**
|
|
10858
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
10859
|
+
* @param {string} payoutId payout id
|
|
10860
|
+
* @param {*} [options] Override http request option.
|
|
10861
|
+
* @throws {RequiredError}
|
|
10862
|
+
*/
|
|
10863
|
+
confirmPayout: (payoutId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10773
10864
|
/**
|
|
10774
10865
|
* CREATE Mandate
|
|
10775
10866
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -10823,6 +10914,14 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10823
10914
|
* @throws {RequiredError}
|
|
10824
10915
|
*/
|
|
10825
10916
|
createPaymentUser: (createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10917
|
+
/**
|
|
10918
|
+
* Create a payout
|
|
10919
|
+
* @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.
|
|
10920
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
10921
|
+
* @param {*} [options] Override http request option.
|
|
10922
|
+
* @throws {RequiredError}
|
|
10923
|
+
*/
|
|
10924
|
+
createPayout: (idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10826
10925
|
/**
|
|
10827
10926
|
* delete payment account
|
|
10828
10927
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11120,6 +11219,13 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
11120
11219
|
* @throws {RequiredError}
|
|
11121
11220
|
*/
|
|
11122
11221
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteKcpPaymentResponse>>;
|
|
11222
|
+
/**
|
|
11223
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
11224
|
+
* @param {string} payoutId payout id
|
|
11225
|
+
* @param {*} [options] Override http request option.
|
|
11226
|
+
* @throws {RequiredError}
|
|
11227
|
+
*/
|
|
11228
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
11123
11229
|
/**
|
|
11124
11230
|
* CREATE Mandate
|
|
11125
11231
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11173,6 +11279,14 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
|
11173
11279
|
* @throws {RequiredError}
|
|
11174
11280
|
*/
|
|
11175
11281
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
|
|
11282
|
+
/**
|
|
11283
|
+
* Create a payout
|
|
11284
|
+
* @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.
|
|
11285
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
11286
|
+
* @param {*} [options] Override http request option.
|
|
11287
|
+
* @throws {RequiredError}
|
|
11288
|
+
*/
|
|
11289
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
11176
11290
|
/**
|
|
11177
11291
|
* delete payment account
|
|
11178
11292
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11476,6 +11590,13 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
11476
11590
|
* @throws {RequiredError}
|
|
11477
11591
|
*/
|
|
11478
11592
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
11593
|
+
/**
|
|
11594
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
11595
|
+
* @param {string} payoutId payout id
|
|
11596
|
+
* @param {*} [options] Override http request option.
|
|
11597
|
+
* @throws {RequiredError}
|
|
11598
|
+
*/
|
|
11599
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11479
11600
|
/**
|
|
11480
11601
|
* CREATE Mandate
|
|
11481
11602
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11529,6 +11650,14 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
|
|
|
11529
11650
|
* @throws {RequiredError}
|
|
11530
11651
|
*/
|
|
11531
11652
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
11653
|
+
/**
|
|
11654
|
+
* Create a payout
|
|
11655
|
+
* @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.
|
|
11656
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
11657
|
+
* @param {*} [options] Override http request option.
|
|
11658
|
+
* @throws {RequiredError}
|
|
11659
|
+
*/
|
|
11660
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11532
11661
|
/**
|
|
11533
11662
|
* delete payment account
|
|
11534
11663
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -11838,6 +11967,14 @@ export interface PaymentApiInterface {
|
|
|
11838
11967
|
* @memberof PaymentApiInterface
|
|
11839
11968
|
*/
|
|
11840
11969
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
11970
|
+
/**
|
|
11971
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
11972
|
+
* @param {string} payoutId payout id
|
|
11973
|
+
* @param {*} [options] Override http request option.
|
|
11974
|
+
* @throws {RequiredError}
|
|
11975
|
+
* @memberof PaymentApiInterface
|
|
11976
|
+
*/
|
|
11977
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11841
11978
|
/**
|
|
11842
11979
|
* CREATE Mandate
|
|
11843
11980
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -11898,6 +12035,15 @@ export interface PaymentApiInterface {
|
|
|
11898
12035
|
* @memberof PaymentApiInterface
|
|
11899
12036
|
*/
|
|
11900
12037
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
12038
|
+
/**
|
|
12039
|
+
* Create a payout
|
|
12040
|
+
* @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.
|
|
12041
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
12042
|
+
* @param {*} [options] Override http request option.
|
|
12043
|
+
* @throws {RequiredError}
|
|
12044
|
+
* @memberof PaymentApiInterface
|
|
12045
|
+
*/
|
|
12046
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
11901
12047
|
/**
|
|
11902
12048
|
* delete payment account
|
|
11903
12049
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -12236,6 +12382,14 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
12236
12382
|
* @memberof PaymentApi
|
|
12237
12383
|
*/
|
|
12238
12384
|
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteKcpPaymentResponse, any, {}>>;
|
|
12385
|
+
/**
|
|
12386
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
12387
|
+
* @param {string} payoutId payout id
|
|
12388
|
+
* @param {*} [options] Override http request option.
|
|
12389
|
+
* @throws {RequiredError}
|
|
12390
|
+
* @memberof PaymentApi
|
|
12391
|
+
*/
|
|
12392
|
+
confirmPayout(payoutId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
|
|
12239
12393
|
/**
|
|
12240
12394
|
* CREATE Mandate
|
|
12241
12395
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -12296,6 +12450,15 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
12296
12450
|
* @memberof PaymentApi
|
|
12297
12451
|
*/
|
|
12298
12452
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser, any, {}>>;
|
|
12453
|
+
/**
|
|
12454
|
+
* Create a payout
|
|
12455
|
+
* @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.
|
|
12456
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
12457
|
+
* @param {*} [options] Override http request option.
|
|
12458
|
+
* @throws {RequiredError}
|
|
12459
|
+
* @memberof PaymentApi
|
|
12460
|
+
*/
|
|
12461
|
+
createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
|
|
12299
12462
|
/**
|
|
12300
12463
|
* delete payment account
|
|
12301
12464
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -12732,6 +12895,7 @@ export declare const ListPayoutsPayoutTypesEnum: {
|
|
|
12732
12895
|
readonly Manual: "MANUAL";
|
|
12733
12896
|
readonly Scheduled: "SCHEDULED";
|
|
12734
12897
|
readonly Settlement: "SETTLEMENT";
|
|
12898
|
+
readonly OnDemand: "ON_DEMAND";
|
|
12735
12899
|
};
|
|
12736
12900
|
export type ListPayoutsPayoutTypesEnum = (typeof ListPayoutsPayoutTypesEnum)[keyof typeof ListPayoutsPayoutTypesEnum];
|
|
12737
12901
|
/**
|
package/dist/api.js
CHANGED
|
@@ -459,6 +459,7 @@ exports.PayoutSnapshotResponseTypeEnum = {
|
|
|
459
459
|
Manual: 'MANUAL',
|
|
460
460
|
Scheduled: 'SCHEDULED',
|
|
461
461
|
Settlement: 'SETTLEMENT',
|
|
462
|
+
OnDemand: 'ON_DEMAND',
|
|
462
463
|
};
|
|
463
464
|
exports.RecipientAccountNumberTypeEnum = {
|
|
464
465
|
Local: 'LOCAL',
|
|
@@ -2696,6 +2697,36 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2696
2697
|
options: localVarRequestOptions,
|
|
2697
2698
|
};
|
|
2698
2699
|
}),
|
|
2700
|
+
/**
|
|
2701
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
2702
|
+
* @param {string} payoutId payout id
|
|
2703
|
+
* @param {*} [options] Override http request option.
|
|
2704
|
+
* @throws {RequiredError}
|
|
2705
|
+
*/
|
|
2706
|
+
confirmPayout: (payoutId_1, ...args_1) => __awaiter(this, [payoutId_1, ...args_1], void 0, function* (payoutId, options = {}) {
|
|
2707
|
+
// verify required parameter 'payoutId' is not null or undefined
|
|
2708
|
+
(0, common_1.assertParamExists)('confirmPayout', 'payoutId', payoutId);
|
|
2709
|
+
const localVarPath = `/payouts/{payoutId}/confirm`.replace(`{${'payoutId'}}`, encodeURIComponent(String(payoutId)));
|
|
2710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2711
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2712
|
+
let baseOptions;
|
|
2713
|
+
if (configuration) {
|
|
2714
|
+
baseOptions = configuration.baseOptions;
|
|
2715
|
+
}
|
|
2716
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2717
|
+
const localVarHeaderParameter = {};
|
|
2718
|
+
const localVarQueryParameter = {};
|
|
2719
|
+
// authentication Oauth2 required
|
|
2720
|
+
// oauth required
|
|
2721
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2724
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2725
|
+
return {
|
|
2726
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2727
|
+
options: localVarRequestOptions,
|
|
2728
|
+
};
|
|
2729
|
+
}),
|
|
2699
2730
|
/**
|
|
2700
2731
|
* CREATE Mandate
|
|
2701
2732
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -2937,6 +2968,44 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2937
2968
|
options: localVarRequestOptions,
|
|
2938
2969
|
};
|
|
2939
2970
|
}),
|
|
2971
|
+
/**
|
|
2972
|
+
* Create a payout
|
|
2973
|
+
* @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.
|
|
2974
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
*/
|
|
2978
|
+
createPayout: (idempotencyKey_1, createPayoutRequest_1, ...args_1) => __awaiter(this, [idempotencyKey_1, createPayoutRequest_1, ...args_1], void 0, function* (idempotencyKey, createPayoutRequest, options = {}) {
|
|
2979
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
2980
|
+
(0, common_1.assertParamExists)('createPayout', 'idempotencyKey', idempotencyKey);
|
|
2981
|
+
// verify required parameter 'createPayoutRequest' is not null or undefined
|
|
2982
|
+
(0, common_1.assertParamExists)('createPayout', 'createPayoutRequest', createPayoutRequest);
|
|
2983
|
+
const localVarPath = `/payouts`;
|
|
2984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2985
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2986
|
+
let baseOptions;
|
|
2987
|
+
if (configuration) {
|
|
2988
|
+
baseOptions = configuration.baseOptions;
|
|
2989
|
+
}
|
|
2990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2991
|
+
const localVarHeaderParameter = {};
|
|
2992
|
+
const localVarQueryParameter = {};
|
|
2993
|
+
// authentication Oauth2 required
|
|
2994
|
+
// oauth required
|
|
2995
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2996
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2997
|
+
if (idempotencyKey != null) {
|
|
2998
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
2999
|
+
}
|
|
3000
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3002
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3003
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPayoutRequest, localVarRequestOptions, configuration);
|
|
3004
|
+
return {
|
|
3005
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3006
|
+
options: localVarRequestOptions,
|
|
3007
|
+
};
|
|
3008
|
+
}),
|
|
2940
3009
|
/**
|
|
2941
3010
|
* delete payment account
|
|
2942
3011
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -4117,6 +4186,21 @@ const PaymentApiFp = function (configuration) {
|
|
|
4117
4186
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4118
4187
|
});
|
|
4119
4188
|
},
|
|
4189
|
+
/**
|
|
4190
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
4191
|
+
* @param {string} payoutId payout id
|
|
4192
|
+
* @param {*} [options] Override http request option.
|
|
4193
|
+
* @throws {RequiredError}
|
|
4194
|
+
*/
|
|
4195
|
+
confirmPayout(payoutId, options) {
|
|
4196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4197
|
+
var _a, _b, _c;
|
|
4198
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPayout(payoutId, options);
|
|
4199
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4200
|
+
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;
|
|
4201
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4202
|
+
});
|
|
4203
|
+
},
|
|
4120
4204
|
/**
|
|
4121
4205
|
* CREATE Mandate
|
|
4122
4206
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -4226,6 +4310,22 @@ const PaymentApiFp = function (configuration) {
|
|
|
4226
4310
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4227
4311
|
});
|
|
4228
4312
|
},
|
|
4313
|
+
/**
|
|
4314
|
+
* Create a payout
|
|
4315
|
+
* @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.
|
|
4316
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
4317
|
+
* @param {*} [options] Override http request option.
|
|
4318
|
+
* @throws {RequiredError}
|
|
4319
|
+
*/
|
|
4320
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
4321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4322
|
+
var _a, _b, _c;
|
|
4323
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayout(idempotencyKey, createPayoutRequest, options);
|
|
4324
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4325
|
+
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;
|
|
4326
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4327
|
+
});
|
|
4328
|
+
},
|
|
4229
4329
|
/**
|
|
4230
4330
|
* delete payment account
|
|
4231
4331
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -4761,6 +4861,15 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4761
4861
|
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
4762
4862
|
.then((request) => request(axios, basePath));
|
|
4763
4863
|
},
|
|
4864
|
+
/**
|
|
4865
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
4866
|
+
* @param {string} payoutId payout id
|
|
4867
|
+
* @param {*} [options] Override http request option.
|
|
4868
|
+
* @throws {RequiredError}
|
|
4869
|
+
*/
|
|
4870
|
+
confirmPayout(payoutId, options) {
|
|
4871
|
+
return localVarFp.confirmPayout(payoutId, options).then((request) => request(axios, basePath));
|
|
4872
|
+
},
|
|
4764
4873
|
/**
|
|
4765
4874
|
* CREATE Mandate
|
|
4766
4875
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -4842,6 +4951,18 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4842
4951
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
4843
4952
|
.then((request) => request(axios, basePath));
|
|
4844
4953
|
},
|
|
4954
|
+
/**
|
|
4955
|
+
* Create a payout
|
|
4956
|
+
* @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.
|
|
4957
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
4958
|
+
* @param {*} [options] Override http request option.
|
|
4959
|
+
* @throws {RequiredError}
|
|
4960
|
+
*/
|
|
4961
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
4962
|
+
return localVarFp
|
|
4963
|
+
.createPayout(idempotencyKey, createPayoutRequest, options)
|
|
4964
|
+
.then((request) => request(axios, basePath));
|
|
4965
|
+
},
|
|
4845
4966
|
/**
|
|
4846
4967
|
* delete payment account
|
|
4847
4968
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -5250,6 +5371,18 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5250
5371
|
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
5251
5372
|
.then((request) => request(this.axios, this.basePath));
|
|
5252
5373
|
}
|
|
5374
|
+
/**
|
|
5375
|
+
* Confirm a payout that was created with confirm = false, submitting it for processing
|
|
5376
|
+
* @param {string} payoutId payout id
|
|
5377
|
+
* @param {*} [options] Override http request option.
|
|
5378
|
+
* @throws {RequiredError}
|
|
5379
|
+
* @memberof PaymentApi
|
|
5380
|
+
*/
|
|
5381
|
+
confirmPayout(payoutId, options) {
|
|
5382
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5383
|
+
.confirmPayout(payoutId, options)
|
|
5384
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5385
|
+
}
|
|
5253
5386
|
/**
|
|
5254
5387
|
* CREATE Mandate
|
|
5255
5388
|
* @param {CreateMandateRequest} createMandateRequest request body for creating mandate
|
|
@@ -5338,6 +5471,19 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5338
5471
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
5339
5472
|
.then((request) => request(this.axios, this.basePath));
|
|
5340
5473
|
}
|
|
5474
|
+
/**
|
|
5475
|
+
* Create a payout
|
|
5476
|
+
* @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.
|
|
5477
|
+
* @param {CreatePayoutRequest} createPayoutRequest Request body containing information to create a payout
|
|
5478
|
+
* @param {*} [options] Override http request option.
|
|
5479
|
+
* @throws {RequiredError}
|
|
5480
|
+
* @memberof PaymentApi
|
|
5481
|
+
*/
|
|
5482
|
+
createPayout(idempotencyKey, createPayoutRequest, options) {
|
|
5483
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5484
|
+
.createPayout(idempotencyKey, createPayoutRequest, options)
|
|
5485
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5486
|
+
}
|
|
5341
5487
|
/**
|
|
5342
5488
|
* delete payment account
|
|
5343
5489
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -5865,6 +6011,7 @@ exports.ListPayoutsPayoutTypesEnum = {
|
|
|
5865
6011
|
Manual: 'MANUAL',
|
|
5866
6012
|
Scheduled: 'SCHEDULED',
|
|
5867
6013
|
Settlement: 'SETTLEMENT',
|
|
6014
|
+
OnDemand: 'ON_DEMAND',
|
|
5868
6015
|
};
|
|
5869
6016
|
/**
|
|
5870
6017
|
* PublicApi - axios parameter creator
|