@finverse/sdk-typescript 0.0.381 → 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.
Files changed (3) hide show
  1. package/dist/api.d.ts +142 -59
  2. package/dist/api.js +93 -25
  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
@@ -2009,45 +2079,6 @@ export declare const CreateRecipientAccountAccountTypeEnum: {
2009
2079
  readonly ExternalAccount: "EXTERNAL_ACCOUNT";
2010
2080
  };
2011
2081
  export type CreateRecipientAccountAccountTypeEnum = (typeof CreateRecipientAccountAccountTypeEnum)[keyof typeof CreateRecipientAccountAccountTypeEnum];
2012
- /**
2013
- *
2014
- * @export
2015
- * @interface CreateScheduledPayoutRequest
2016
- */
2017
- export interface CreateScheduledPayoutRequest {
2018
- /**
2019
- * Amount to be paid, in currency\'s smallest unit or “minor unit”, as defined in ISO 4217. For example, HKD 100.01 is represented as amount = 10001 (minor unit = cents). For currencies without minor units (e.g. VND, JPY), the amount is represented as is, without modification. For example, VND 15101 is represented as amount = 15101.
2020
- * @type {number}
2021
- * @memberof CreateScheduledPayoutRequest
2022
- */
2023
- amount: number;
2024
- /**
2025
- * The currency code as defined in ISO 4217.
2026
- * @type {string}
2027
- * @memberof CreateScheduledPayoutRequest
2028
- */
2029
- currency: string;
2030
- /**
2031
- *
2032
- * @type {PayoutDetails}
2033
- * @memberof CreateScheduledPayoutRequest
2034
- */
2035
- payment_details: PayoutDetails;
2036
- /**
2037
- *
2038
- * @type {MandateRecipientRequest}
2039
- * @memberof CreateScheduledPayoutRequest
2040
- */
2041
- recipient_account: MandateRecipientRequest;
2042
- /**
2043
- *
2044
- * @type {{ [key: string]: string; }}
2045
- * @memberof CreateScheduledPayoutRequest
2046
- */
2047
- metadata?: {
2048
- [key: string]: string;
2049
- };
2050
- }
2051
2082
  /**
2052
2083
  *
2053
2084
  * @export
@@ -7866,6 +7897,19 @@ export declare const PaymentUserWithoutEmailUserTypeEnum: {
7866
7897
  readonly Business: "BUSINESS";
7867
7898
  };
7868
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
+ }
7869
7913
  /**
7870
7914
  *
7871
7915
  * @export
@@ -8104,6 +8148,7 @@ export declare const PayoutSnapshotResponseTypeEnum: {
8104
8148
  readonly Manual: "MANUAL";
8105
8149
  readonly Scheduled: "SCHEDULED";
8106
8150
  readonly Settlement: "SETTLEMENT";
8151
+ readonly OnDemand: "ON_DEMAND";
8107
8152
  };
8108
8153
  export type PayoutSnapshotResponseTypeEnum = (typeof PayoutSnapshotResponseTypeEnum)[keyof typeof PayoutSnapshotResponseTypeEnum];
8109
8154
  /**
@@ -10809,6 +10854,13 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
10809
10854
  * @throws {RequiredError}
10810
10855
  */
10811
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>;
10812
10864
  /**
10813
10865
  * CREATE Mandate
10814
10866
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -10863,13 +10915,13 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
10863
10915
  */
10864
10916
  createPaymentUser: (createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10865
10917
  /**
10866
- * Create a scheduled payout
10867
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
10868
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
10869
10921
  * @param {*} [options] Override http request option.
10870
10922
  * @throws {RequiredError}
10871
10923
  */
10872
- createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10924
+ createPayout: (idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10873
10925
  /**
10874
10926
  * delete payment account
10875
10927
  * @param {string} paymentAccountId The payment account id
@@ -11167,6 +11219,13 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
11167
11219
  * @throws {RequiredError}
11168
11220
  */
11169
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>>;
11170
11229
  /**
11171
11230
  * CREATE Mandate
11172
11231
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -11221,13 +11280,13 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
11221
11280
  */
11222
11281
  createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
11223
11282
  /**
11224
- * Create a scheduled payout
11225
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
11226
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
11227
11286
  * @param {*} [options] Override http request option.
11228
11287
  * @throws {RequiredError}
11229
11288
  */
11230
- createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
11289
+ createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
11231
11290
  /**
11232
11291
  * delete payment account
11233
11292
  * @param {string} paymentAccountId The payment account id
@@ -11531,6 +11590,13 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
11531
11590
  * @throws {RequiredError}
11532
11591
  */
11533
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>;
11534
11600
  /**
11535
11601
  * CREATE Mandate
11536
11602
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -11585,13 +11651,13 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
11585
11651
  */
11586
11652
  createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
11587
11653
  /**
11588
- * Create a scheduled payout
11589
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
11590
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
11591
11657
  * @param {*} [options] Override http request option.
11592
11658
  * @throws {RequiredError}
11593
11659
  */
11594
- createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
11660
+ createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
11595
11661
  /**
11596
11662
  * delete payment account
11597
11663
  * @param {string} paymentAccountId The payment account id
@@ -11901,6 +11967,14 @@ export interface PaymentApiInterface {
11901
11967
  * @memberof PaymentApiInterface
11902
11968
  */
11903
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>;
11904
11978
  /**
11905
11979
  * CREATE Mandate
11906
11980
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -11962,14 +12036,14 @@ export interface PaymentApiInterface {
11962
12036
  */
11963
12037
  createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentUser>;
11964
12038
  /**
11965
- * Create a scheduled payout
11966
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
11967
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
11968
12042
  * @param {*} [options] Override http request option.
11969
12043
  * @throws {RequiredError}
11970
12044
  * @memberof PaymentApiInterface
11971
12045
  */
11972
- createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
12046
+ createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
11973
12047
  /**
11974
12048
  * delete payment account
11975
12049
  * @param {string} paymentAccountId The payment account id
@@ -12308,6 +12382,14 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
12308
12382
  * @memberof PaymentApi
12309
12383
  */
12310
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, {}>>;
12311
12393
  /**
12312
12394
  * CREATE Mandate
12313
12395
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -12369,14 +12451,14 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
12369
12451
  */
12370
12452
  createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser, any, {}>>;
12371
12453
  /**
12372
- * Create a scheduled payout
12373
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
12374
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
12375
12457
  * @param {*} [options] Override http request option.
12376
12458
  * @throws {RequiredError}
12377
12459
  * @memberof PaymentApi
12378
12460
  */
12379
- createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
12461
+ createPayout(idempotencyKey: string, createPayoutRequest: CreatePayoutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse, any, {}>>;
12380
12462
  /**
12381
12463
  * delete payment account
12382
12464
  * @param {string} paymentAccountId The payment account id
@@ -12813,6 +12895,7 @@ export declare const ListPayoutsPayoutTypesEnum: {
12813
12895
  readonly Manual: "MANUAL";
12814
12896
  readonly Scheduled: "SCHEDULED";
12815
12897
  readonly Settlement: "SETTLEMENT";
12898
+ readonly OnDemand: "ON_DEMAND";
12816
12899
  };
12817
12900
  export type ListPayoutsPayoutTypesEnum = (typeof ListPayoutsPayoutTypesEnum)[keyof typeof ListPayoutsPayoutTypesEnum];
12818
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
@@ -2938,18 +2969,18 @@ const PaymentApiAxiosParamCreator = function (configuration) {
2938
2969
  };
2939
2970
  }),
2940
2971
  /**
2941
- * Create a scheduled payout
2942
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
2943
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
2944
2975
  * @param {*} [options] Override http request option.
2945
2976
  * @throws {RequiredError}
2946
2977
  */
2947
- createScheduledPayout: (idempotencyKey_1, createScheduledPayoutRequest_1, ...args_1) => __awaiter(this, [idempotencyKey_1, createScheduledPayoutRequest_1, ...args_1], void 0, function* (idempotencyKey, createScheduledPayoutRequest, options = {}) {
2978
+ createPayout: (idempotencyKey_1, createPayoutRequest_1, ...args_1) => __awaiter(this, [idempotencyKey_1, createPayoutRequest_1, ...args_1], void 0, function* (idempotencyKey, createPayoutRequest, options = {}) {
2948
2979
  // verify required parameter 'idempotencyKey' is not null or undefined
2949
- (0, common_1.assertParamExists)('createScheduledPayout', 'idempotencyKey', idempotencyKey);
2950
- // verify required parameter 'createScheduledPayoutRequest' is not null or undefined
2951
- (0, common_1.assertParamExists)('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
2952
- const localVarPath = `/payouts/scheduled`;
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`;
2953
2984
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2954
2985
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2955
2986
  let baseOptions;
@@ -2969,7 +3000,7 @@ const PaymentApiAxiosParamCreator = function (configuration) {
2969
3000
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2970
3001
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2971
3002
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2972
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createScheduledPayoutRequest, localVarRequestOptions, configuration);
3003
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPayoutRequest, localVarRequestOptions, configuration);
2973
3004
  return {
2974
3005
  url: (0, common_1.toPathString)(localVarUrlObj),
2975
3006
  options: localVarRequestOptions,
@@ -4155,6 +4186,21 @@ const PaymentApiFp = function (configuration) {
4155
4186
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4156
4187
  });
4157
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
+ },
4158
4204
  /**
4159
4205
  * CREATE Mandate
4160
4206
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -4265,18 +4311,18 @@ const PaymentApiFp = function (configuration) {
4265
4311
  });
4266
4312
  },
4267
4313
  /**
4268
- * Create a scheduled payout
4269
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
4270
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
4271
4317
  * @param {*} [options] Override http request option.
4272
4318
  * @throws {RequiredError}
4273
4319
  */
4274
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
4320
+ createPayout(idempotencyKey, createPayoutRequest, options) {
4275
4321
  return __awaiter(this, void 0, void 0, function* () {
4276
4322
  var _a, _b, _c;
4277
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options);
4323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayout(idempotencyKey, createPayoutRequest, options);
4278
4324
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4279
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.createScheduledPayout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
4280
4326
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4281
4327
  });
4282
4328
  },
@@ -4815,6 +4861,15 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
4815
4861
  .completeKcpPayment(completeKcpPaymentRequest, options)
4816
4862
  .then((request) => request(axios, basePath));
4817
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
+ },
4818
4873
  /**
4819
4874
  * CREATE Mandate
4820
4875
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -4897,15 +4952,15 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
4897
4952
  .then((request) => request(axios, basePath));
4898
4953
  },
4899
4954
  /**
4900
- * Create a scheduled payout
4901
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
4902
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
4903
4958
  * @param {*} [options] Override http request option.
4904
4959
  * @throws {RequiredError}
4905
4960
  */
4906
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
4961
+ createPayout(idempotencyKey, createPayoutRequest, options) {
4907
4962
  return localVarFp
4908
- .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
4963
+ .createPayout(idempotencyKey, createPayoutRequest, options)
4909
4964
  .then((request) => request(axios, basePath));
4910
4965
  },
4911
4966
  /**
@@ -5316,6 +5371,18 @@ class PaymentApi extends base_1.BaseAPI {
5316
5371
  .completeKcpPayment(completeKcpPaymentRequest, options)
5317
5372
  .then((request) => request(this.axios, this.basePath));
5318
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
+ }
5319
5386
  /**
5320
5387
  * CREATE Mandate
5321
5388
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -5405,16 +5472,16 @@ class PaymentApi extends base_1.BaseAPI {
5405
5472
  .then((request) => request(this.axios, this.basePath));
5406
5473
  }
5407
5474
  /**
5408
- * Create a scheduled payout
5409
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
5410
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
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
5411
5478
  * @param {*} [options] Override http request option.
5412
5479
  * @throws {RequiredError}
5413
5480
  * @memberof PaymentApi
5414
5481
  */
5415
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
5482
+ createPayout(idempotencyKey, createPayoutRequest, options) {
5416
5483
  return (0, exports.PaymentApiFp)(this.configuration)
5417
- .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
5484
+ .createPayout(idempotencyKey, createPayoutRequest, options)
5418
5485
  .then((request) => request(this.axios, this.basePath));
5419
5486
  }
5420
5487
  /**
@@ -5944,6 +6011,7 @@ exports.ListPayoutsPayoutTypesEnum = {
5944
6011
  Manual: 'MANUAL',
5945
6012
  Scheduled: 'SCHEDULED',
5946
6013
  Settlement: 'SETTLEMENT',
6014
+ OnDemand: 'ON_DEMAND',
5947
6015
  };
5948
6016
  /**
5949
6017
  * PublicApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.381",
3
+ "version": "0.0.383",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {