@finverse/sdk-typescript 0.0.180 → 0.0.182

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 +47 -231
  2. package/dist/api.js +80 -143
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -5051,146 +5051,6 @@ export interface PayoutDetails {
5051
5051
  */
5052
5052
  scheduled_date: string;
5053
5053
  }
5054
- /**
5055
- *
5056
- * @export
5057
- * @interface PayoutDetailsResponse
5058
- */
5059
- export interface PayoutDetailsResponse {
5060
- /**
5061
- * The mandate used to execute payments for this payout instruction. Currency for the mandate must be supported by the recipient account
5062
- * @type {string}
5063
- * @memberof PayoutDetailsResponse
5064
- */
5065
- mandate_id?: string;
5066
- /**
5067
- * A description for the payment (that will appear as the transaction description on bank statements)
5068
- * @type {string}
5069
- * @memberof PayoutDetailsResponse
5070
- */
5071
- description?: string;
5072
- /**
5073
- * YYYY-MM-DD, date (in UTC) to execute the payment, must be 1 day later than current date
5074
- * @type {string}
5075
- * @memberof PayoutDetailsResponse
5076
- */
5077
- scheduled_date?: string;
5078
- }
5079
- /**
5080
- *
5081
- * @export
5082
- * @interface PayoutInstructionResponse
5083
- */
5084
- export interface PayoutInstructionResponse {
5085
- /**
5086
- * 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.
5087
- * @type {number}
5088
- * @memberof PayoutInstructionResponse
5089
- */
5090
- amount?: number;
5091
- /**
5092
- * The currency code as defined in ISO 4217.
5093
- * @type {string}
5094
- * @memberof PayoutInstructionResponse
5095
- */
5096
- currency?: string;
5097
- /**
5098
- *
5099
- * @type {PayoutDetailsResponse}
5100
- * @memberof PayoutInstructionResponse
5101
- */
5102
- payment_details?: PayoutDetailsResponse;
5103
- /**
5104
- *
5105
- * @type {PayoutRecipient}
5106
- * @memberof PayoutInstructionResponse
5107
- */
5108
- recipient?: PayoutRecipient;
5109
- /**
5110
- *
5111
- * @type {PayoutSender}
5112
- * @memberof PayoutInstructionResponse
5113
- */
5114
- sender?: PayoutSender;
5115
- /**
5116
- * Finverse Payout Instruction ID
5117
- * @type {string}
5118
- * @memberof PayoutInstructionResponse
5119
- */
5120
- payout_instruction_id?: string;
5121
- /**
5122
- * Possible values - CREATED, PROCESSING, EXECUTED, CANCELLED, FAILED.
5123
- * @type {string}
5124
- * @memberof PayoutInstructionResponse
5125
- */
5126
- status?: PayoutInstructionResponseStatusEnum;
5127
- /**
5128
- * Additional attributes of the payout instruction in key:value format (e.g. payout_instruction_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
5129
- * @type {{ [key: string]: string; }}
5130
- * @memberof PayoutInstructionResponse
5131
- */
5132
- metadata?: {
5133
- [key: string]: string;
5134
- };
5135
- /**
5136
- * Timestamp of when the recipient was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
5137
- * @type {string}
5138
- * @memberof PayoutInstructionResponse
5139
- */
5140
- created_at?: string;
5141
- /**
5142
- * Timestamp of when the recipient was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
5143
- * @type {string}
5144
- * @memberof PayoutInstructionResponse
5145
- */
5146
- updated_at?: string;
5147
- /**
5148
- *
5149
- * @type {FvErrorModelV2}
5150
- * @memberof PayoutInstructionResponse
5151
- */
5152
- error?: FvErrorModelV2;
5153
- }
5154
- export declare const PayoutInstructionResponseStatusEnum: {
5155
- readonly Created: "CREATED";
5156
- readonly Processing: "PROCESSING";
5157
- readonly Executed: "EXECUTED";
5158
- readonly Cancelled: "CANCELLED";
5159
- readonly Failed: "FAILED";
5160
- };
5161
- export declare type PayoutInstructionResponseStatusEnum = (typeof PayoutInstructionResponseStatusEnum)[keyof typeof PayoutInstructionResponseStatusEnum];
5162
- /**
5163
- *
5164
- * @export
5165
- * @interface PayoutRecipient
5166
- */
5167
- export interface PayoutRecipient {
5168
- /**
5169
- * Merchant account name
5170
- * @type {string}
5171
- * @memberof PayoutRecipient
5172
- */
5173
- name?: string;
5174
- /**
5175
- * Merchant account ID assigned by Finverse
5176
- * @type {string}
5177
- * @memberof PayoutRecipient
5178
- */
5179
- account_id?: string;
5180
- }
5181
- /**
5182
- *
5183
- * @export
5184
- * @interface PayoutSender
5185
- */
5186
- export interface PayoutSender {
5187
- /**
5188
- *
5189
- * @type {string}
5190
- * @memberof PayoutSender
5191
- */
5192
- name?: string;
5193
- }
5194
5054
  /**
5195
5055
  *
5196
5056
  * @export
@@ -5259,12 +5119,6 @@ export interface PayoutSnapshotResponse {
5259
5119
  * @memberof PayoutSnapshotResponse
5260
5120
  */
5261
5121
  payout_id?: string;
5262
- /**
5263
- *
5264
- * @type {string}
5265
- * @memberof PayoutSnapshotResponse
5266
- */
5267
- transaction_reference_id?: string;
5268
5122
  /**
5269
5123
  *
5270
5124
  * @type {string}
@@ -5319,12 +5173,6 @@ export interface PayoutSnapshotResponse {
5319
5173
  * @memberof PayoutSnapshotResponse
5320
5174
  */
5321
5175
  currency?: string;
5322
- /**
5323
- *
5324
- * @type {string}
5325
- * @memberof PayoutSnapshotResponse
5326
- */
5327
- description?: string;
5328
5176
  /**
5329
5177
  *
5330
5178
  * @type {PayoutSnapshotPaymentAccount}
@@ -6207,13 +6055,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
6207
6055
  * @throws {RequiredError}
6208
6056
  */
6209
6057
  authorizeMandate: (mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6210
- /**
6211
- * Cancel Payout Instruction by payout_instruction_id
6212
- * @param {string} payoutInstructionId payout instruction id
6213
- * @param {*} [options] Override http request option.
6214
- * @throws {RequiredError}
6215
- */
6216
- cancelPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6217
6058
  /**
6218
6059
  * CREATE Mandate
6219
6060
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -6334,13 +6175,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
6334
6175
  * @throws {RequiredError}
6335
6176
  */
6336
6177
  getPaymentUser: (paymentUserId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6337
- /**
6338
- * Get Payout Instruction details by payout_instruction_id
6339
- * @param {string} payoutInstructionId payout instruction id
6340
- * @param {*} [options] Override http request option.
6341
- * @throws {RequiredError}
6342
- */
6343
- getPayoutInstruction: (payoutInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6344
6178
  /**
6345
6179
  * Get a list of institutions
6346
6180
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -6393,13 +6227,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
6393
6227
  * @throws {RequiredError}
6394
6228
  */
6395
6229
  authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandateResponse>>;
6396
- /**
6397
- * Cancel Payout Instruction by payout_instruction_id
6398
- * @param {string} payoutInstructionId payout instruction id
6399
- * @param {*} [options] Override http request option.
6400
- * @throws {RequiredError}
6401
- */
6402
- cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
6403
6230
  /**
6404
6231
  * CREATE Mandate
6405
6232
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -6520,13 +6347,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
6520
6347
  * @throws {RequiredError}
6521
6348
  */
6522
6349
  getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
6523
- /**
6524
- * Get Payout Instruction details by payout_instruction_id
6525
- * @param {string} payoutInstructionId payout instruction id
6526
- * @param {*} [options] Override http request option.
6527
- * @throws {RequiredError}
6528
- */
6529
- getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
6530
6350
  /**
6531
6351
  * Get a list of institutions
6532
6352
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -6579,13 +6399,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6579
6399
  * @throws {RequiredError}
6580
6400
  */
6581
6401
  authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: any): AxiosPromise<GetMandateResponse>;
6582
- /**
6583
- * Cancel Payout Instruction by payout_instruction_id
6584
- * @param {string} payoutInstructionId payout instruction id
6585
- * @param {*} [options] Override http request option.
6586
- * @throws {RequiredError}
6587
- */
6588
- cancelPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
6589
6402
  /**
6590
6403
  * CREATE Mandate
6591
6404
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -6706,13 +6519,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6706
6519
  * @throws {RequiredError}
6707
6520
  */
6708
6521
  getPaymentUser(paymentUserId: string, options?: any): AxiosPromise<PaymentUser>;
6709
- /**
6710
- * Get Payout Instruction details by payout_instruction_id
6711
- * @param {string} payoutInstructionId payout instruction id
6712
- * @param {*} [options] Override http request option.
6713
- * @throws {RequiredError}
6714
- */
6715
- getPayoutInstruction(payoutInstructionId: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
6716
6522
  /**
6717
6523
  * Get a list of institutions
6718
6524
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -6767,14 +6573,6 @@ export interface CustomerApiInterface {
6767
6573
  * @memberof CustomerApiInterface
6768
6574
  */
6769
6575
  authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): AxiosPromise<GetMandateResponse>;
6770
- /**
6771
- * Cancel Payout Instruction by payout_instruction_id
6772
- * @param {string} payoutInstructionId payout instruction id
6773
- * @param {*} [options] Override http request option.
6774
- * @throws {RequiredError}
6775
- * @memberof CustomerApiInterface
6776
- */
6777
- cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
6778
6576
  /**
6779
6577
  * CREATE Mandate
6780
6578
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -6912,14 +6710,6 @@ export interface CustomerApiInterface {
6912
6710
  * @memberof CustomerApiInterface
6913
6711
  */
6914
6712
  getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
6915
- /**
6916
- * Get Payout Instruction details by payout_instruction_id
6917
- * @param {string} payoutInstructionId payout instruction id
6918
- * @param {*} [options] Override http request option.
6919
- * @throws {RequiredError}
6920
- * @memberof CustomerApiInterface
6921
- */
6922
- getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
6923
6713
  /**
6924
6714
  * Get a list of institutions
6925
6715
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -6980,14 +6770,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6980
6770
  * @memberof CustomerApi
6981
6771
  */
6982
6772
  authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandateResponse>>;
6983
- /**
6984
- * Cancel Payout Instruction by payout_instruction_id
6985
- * @param {string} payoutInstructionId payout instruction id
6986
- * @param {*} [options] Override http request option.
6987
- * @throws {RequiredError}
6988
- * @memberof CustomerApi
6989
- */
6990
- cancelPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
6991
6773
  /**
6992
6774
  * CREATE Mandate
6993
6775
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -7125,14 +6907,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
7125
6907
  * @memberof CustomerApi
7126
6908
  */
7127
6909
  getPaymentUser(paymentUserId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
7128
- /**
7129
- * Get Payout Instruction details by payout_instruction_id
7130
- * @param {string} payoutInstructionId payout instruction id
7131
- * @param {*} [options] Override http request option.
7132
- * @throws {RequiredError}
7133
- * @memberof CustomerApi
7134
- */
7135
- getPayoutInstruction(payoutInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
7136
6910
  /**
7137
6911
  * Get a list of institutions
7138
6912
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -7189,6 +6963,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7189
6963
  * @throws {RequiredError}
7190
6964
  */
7191
6965
  cancelPaymentLink: (paymentLinkId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6966
+ /**
6967
+ * Cancel Payout by payout_id
6968
+ * @param {string} payoutId payout id
6969
+ * @param {*} [options] Override http request option.
6970
+ * @throws {RequiredError}
6971
+ */
6972
+ cancelPayout: (payoutId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7192
6973
  /**
7193
6974
  * Submit manual payment confirmation
7194
6975
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -7238,11 +7019,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7238
7019
  createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7239
7020
  /**
7240
7021
  * Create a scheduled payout
7022
+ * @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.
7241
7023
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7242
7024
  * @param {*} [options] Override http request option.
7243
7025
  * @throws {RequiredError}
7244
7026
  */
7245
- createScheduledPayout: (createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7027
+ createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7246
7028
  /**
7247
7029
  * Get a customer-specific list of institutions for Finverse Link
7248
7030
  * @param {*} [options] Override http request option.
@@ -7313,6 +7095,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7313
7095
  * @throws {RequiredError}
7314
7096
  */
7315
7097
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
7098
+ /**
7099
+ * Cancel Payout by payout_id
7100
+ * @param {string} payoutId payout id
7101
+ * @param {*} [options] Override http request option.
7102
+ * @throws {RequiredError}
7103
+ */
7104
+ cancelPayout(payoutId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7316
7105
  /**
7317
7106
  * Submit manual payment confirmation
7318
7107
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -7362,11 +7151,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7362
7151
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
7363
7152
  /**
7364
7153
  * Create a scheduled payout
7154
+ * @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.
7365
7155
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7366
7156
  * @param {*} [options] Override http request option.
7367
7157
  * @throws {RequiredError}
7368
7158
  */
7369
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7159
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7370
7160
  /**
7371
7161
  * Get a customer-specific list of institutions for Finverse Link
7372
7162
  * @param {*} [options] Override http request option.
@@ -7437,6 +7227,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7437
7227
  * @throws {RequiredError}
7438
7228
  */
7439
7229
  cancelPaymentLink(paymentLinkId: string, options?: any): AxiosPromise<PaymentLinkResponse>;
7230
+ /**
7231
+ * Cancel Payout by payout_id
7232
+ * @param {string} payoutId payout id
7233
+ * @param {*} [options] Override http request option.
7234
+ * @throws {RequiredError}
7235
+ */
7236
+ cancelPayout(payoutId: string, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7440
7237
  /**
7441
7238
  * Submit manual payment confirmation
7442
7239
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -7486,11 +7283,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7486
7283
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
7487
7284
  /**
7488
7285
  * Create a scheduled payout
7286
+ * @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.
7489
7287
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7490
7288
  * @param {*} [options] Override http request option.
7491
7289
  * @throws {RequiredError}
7492
7290
  */
7493
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7291
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7494
7292
  /**
7495
7293
  * Get a customer-specific list of institutions for Finverse Link
7496
7294
  * @param {*} [options] Override http request option.
@@ -7563,6 +7361,14 @@ export interface DefaultApiInterface {
7563
7361
  * @memberof DefaultApiInterface
7564
7362
  */
7565
7363
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
7364
+ /**
7365
+ * Cancel Payout by payout_id
7366
+ * @param {string} payoutId payout id
7367
+ * @param {*} [options] Override http request option.
7368
+ * @throws {RequiredError}
7369
+ * @memberof DefaultApiInterface
7370
+ */
7371
+ cancelPayout(payoutId: string, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7566
7372
  /**
7567
7373
  * Submit manual payment confirmation
7568
7374
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -7619,12 +7425,13 @@ export interface DefaultApiInterface {
7619
7425
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
7620
7426
  /**
7621
7427
  * Create a scheduled payout
7428
+ * @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.
7622
7429
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7623
7430
  * @param {*} [options] Override http request option.
7624
7431
  * @throws {RequiredError}
7625
7432
  * @memberof DefaultApiInterface
7626
7433
  */
7627
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7434
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7628
7435
  /**
7629
7436
  * Get a customer-specific list of institutions for Finverse Link
7630
7437
  * @param {*} [options] Override http request option.
@@ -7704,6 +7511,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7704
7511
  * @memberof DefaultApi
7705
7512
  */
7706
7513
  cancelPaymentLink(paymentLinkId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
7514
+ /**
7515
+ * Cancel Payout by payout_id
7516
+ * @param {string} payoutId payout id
7517
+ * @param {*} [options] Override http request option.
7518
+ * @throws {RequiredError}
7519
+ * @memberof DefaultApi
7520
+ */
7521
+ cancelPayout(payoutId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7707
7522
  /**
7708
7523
  * Submit manual payment confirmation
7709
7524
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -7760,12 +7575,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7760
7575
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
7761
7576
  /**
7762
7577
  * Create a scheduled payout
7578
+ * @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.
7763
7579
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7764
7580
  * @param {*} [options] Override http request option.
7765
7581
  * @throws {RequiredError}
7766
7582
  * @memberof DefaultApi
7767
7583
  */
7768
- createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7584
+ createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7769
7585
  /**
7770
7586
  * Get a customer-specific list of institutions for Finverse Link
7771
7587
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentUserUserTypeEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
25
+ exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -266,13 +266,6 @@ exports.PaymentUserUserTypeEnum = {
266
266
  Individual: 'INDIVIDUAL',
267
267
  Business: 'BUSINESS',
268
268
  };
269
- exports.PayoutInstructionResponseStatusEnum = {
270
- Created: 'CREATED',
271
- Processing: 'PROCESSING',
272
- Executed: 'EXECUTED',
273
- Cancelled: 'CANCELLED',
274
- Failed: 'FAILED',
275
- };
276
269
  exports.RecipientAccountNumberTypeEnum = {
277
270
  Local: 'LOCAL',
278
271
  Iban: 'IBAN',
@@ -341,36 +334,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
341
334
  options: localVarRequestOptions,
342
335
  };
343
336
  }),
344
- /**
345
- * Cancel Payout Instruction by payout_instruction_id
346
- * @param {string} payoutInstructionId payout instruction id
347
- * @param {*} [options] Override http request option.
348
- * @throws {RequiredError}
349
- */
350
- cancelPayoutInstruction: (payoutInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
351
- // verify required parameter 'payoutInstructionId' is not null or undefined
352
- common_1.assertParamExists('cancelPayoutInstruction', 'payoutInstructionId', payoutInstructionId);
353
- const localVarPath = `/payout_instructions/{payoutInstructionId}/cancel`.replace(`{${'payoutInstructionId'}}`, encodeURIComponent(String(payoutInstructionId)));
354
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
355
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
356
- let baseOptions;
357
- if (configuration) {
358
- baseOptions = configuration.baseOptions;
359
- }
360
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
361
- const localVarHeaderParameter = {};
362
- const localVarQueryParameter = {};
363
- // authentication Oauth2 required
364
- // oauth required
365
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
366
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
367
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
368
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
369
- return {
370
- url: common_1.toPathString(localVarUrlObj),
371
- options: localVarRequestOptions,
372
- };
373
- }),
374
337
  /**
375
338
  * CREATE Mandate
376
339
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -900,36 +863,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
900
863
  options: localVarRequestOptions,
901
864
  };
902
865
  }),
903
- /**
904
- * Get Payout Instruction details by payout_instruction_id
905
- * @param {string} payoutInstructionId payout instruction id
906
- * @param {*} [options] Override http request option.
907
- * @throws {RequiredError}
908
- */
909
- getPayoutInstruction: (payoutInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
910
- // verify required parameter 'payoutInstructionId' is not null or undefined
911
- common_1.assertParamExists('getPayoutInstruction', 'payoutInstructionId', payoutInstructionId);
912
- const localVarPath = `/payout_instructions/{payoutInstructionId}`.replace(`{${'payoutInstructionId'}}`, encodeURIComponent(String(payoutInstructionId)));
913
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
914
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
915
- let baseOptions;
916
- if (configuration) {
917
- baseOptions = configuration.baseOptions;
918
- }
919
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
920
- const localVarHeaderParameter = {};
921
- const localVarQueryParameter = {};
922
- // authentication Oauth2 required
923
- // oauth required
924
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
925
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
926
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
927
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
928
- return {
929
- url: common_1.toPathString(localVarUrlObj),
930
- options: localVarRequestOptions,
931
- };
932
- }),
933
866
  /**
934
867
  * Get a list of institutions
935
868
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1121,18 +1054,6 @@ exports.CustomerApiFp = function (configuration) {
1121
1054
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1122
1055
  });
1123
1056
  },
1124
- /**
1125
- * Cancel Payout Instruction by payout_instruction_id
1126
- * @param {string} payoutInstructionId payout instruction id
1127
- * @param {*} [options] Override http request option.
1128
- * @throws {RequiredError}
1129
- */
1130
- cancelPayoutInstruction(payoutInstructionId, options) {
1131
- return __awaiter(this, void 0, void 0, function* () {
1132
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPayoutInstruction(payoutInstructionId, options);
1133
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1134
- });
1135
- },
1136
1057
  /**
1137
1058
  * CREATE Mandate
1138
1059
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1338,18 +1259,6 @@ exports.CustomerApiFp = function (configuration) {
1338
1259
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1339
1260
  });
1340
1261
  },
1341
- /**
1342
- * Get Payout Instruction details by payout_instruction_id
1343
- * @param {string} payoutInstructionId payout instruction id
1344
- * @param {*} [options] Override http request option.
1345
- * @throws {RequiredError}
1346
- */
1347
- getPayoutInstruction(payoutInstructionId, options) {
1348
- return __awaiter(this, void 0, void 0, function* () {
1349
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayoutInstruction(payoutInstructionId, options);
1350
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1351
- });
1352
- },
1353
1262
  /**
1354
1263
  * Get a list of institutions
1355
1264
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1434,17 +1343,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1434
1343
  .authorizeMandate(mandateId, authorizeMandateRequest, options)
1435
1344
  .then((request) => request(axios, basePath));
1436
1345
  },
1437
- /**
1438
- * Cancel Payout Instruction by payout_instruction_id
1439
- * @param {string} payoutInstructionId payout instruction id
1440
- * @param {*} [options] Override http request option.
1441
- * @throws {RequiredError}
1442
- */
1443
- cancelPayoutInstruction(payoutInstructionId, options) {
1444
- return localVarFp
1445
- .cancelPayoutInstruction(payoutInstructionId, options)
1446
- .then((request) => request(axios, basePath));
1447
- },
1448
1346
  /**
1449
1347
  * CREATE Mandate
1450
1348
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1613,15 +1511,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1613
1511
  getPaymentUser(paymentUserId, options) {
1614
1512
  return localVarFp.getPaymentUser(paymentUserId, options).then((request) => request(axios, basePath));
1615
1513
  },
1616
- /**
1617
- * Get Payout Instruction details by payout_instruction_id
1618
- * @param {string} payoutInstructionId payout instruction id
1619
- * @param {*} [options] Override http request option.
1620
- * @throws {RequiredError}
1621
- */
1622
- getPayoutInstruction(payoutInstructionId, options) {
1623
- return localVarFp.getPayoutInstruction(payoutInstructionId, options).then((request) => request(axios, basePath));
1624
- },
1625
1514
  /**
1626
1515
  * Get a list of institutions
1627
1516
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -1696,18 +1585,6 @@ class CustomerApi extends base_1.BaseAPI {
1696
1585
  .authorizeMandate(mandateId, authorizeMandateRequest, options)
1697
1586
  .then((request) => request(this.axios, this.basePath));
1698
1587
  }
1699
- /**
1700
- * Cancel Payout Instruction by payout_instruction_id
1701
- * @param {string} payoutInstructionId payout instruction id
1702
- * @param {*} [options] Override http request option.
1703
- * @throws {RequiredError}
1704
- * @memberof CustomerApi
1705
- */
1706
- cancelPayoutInstruction(payoutInstructionId, options) {
1707
- return exports.CustomerApiFp(this.configuration)
1708
- .cancelPayoutInstruction(payoutInstructionId, options)
1709
- .then((request) => request(this.axios, this.basePath));
1710
- }
1711
1588
  /**
1712
1589
  * CREATE Mandate
1713
1590
  * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
@@ -1913,18 +1790,6 @@ class CustomerApi extends base_1.BaseAPI {
1913
1790
  .getPaymentUser(paymentUserId, options)
1914
1791
  .then((request) => request(this.axios, this.basePath));
1915
1792
  }
1916
- /**
1917
- * Get Payout Instruction details by payout_instruction_id
1918
- * @param {string} payoutInstructionId payout instruction id
1919
- * @param {*} [options] Override http request option.
1920
- * @throws {RequiredError}
1921
- * @memberof CustomerApi
1922
- */
1923
- getPayoutInstruction(payoutInstructionId, options) {
1924
- return exports.CustomerApiFp(this.configuration)
1925
- .getPayoutInstruction(payoutInstructionId, options)
1926
- .then((request) => request(this.axios, this.basePath));
1927
- }
1928
1793
  /**
1929
1794
  * Get a list of institutions
1930
1795
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -2026,6 +1891,36 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2026
1891
  options: localVarRequestOptions,
2027
1892
  };
2028
1893
  }),
1894
+ /**
1895
+ * Cancel Payout by payout_id
1896
+ * @param {string} payoutId payout id
1897
+ * @param {*} [options] Override http request option.
1898
+ * @throws {RequiredError}
1899
+ */
1900
+ cancelPayout: (payoutId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1901
+ // verify required parameter 'payoutId' is not null or undefined
1902
+ common_1.assertParamExists('cancelPayout', 'payoutId', payoutId);
1903
+ const localVarPath = `/payouts/{payoutId}/cancel`.replace(`{${'payoutId'}}`, encodeURIComponent(String(payoutId)));
1904
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1905
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1906
+ let baseOptions;
1907
+ if (configuration) {
1908
+ baseOptions = configuration.baseOptions;
1909
+ }
1910
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1911
+ const localVarHeaderParameter = {};
1912
+ const localVarQueryParameter = {};
1913
+ // authentication Oauth2 required
1914
+ // oauth required
1915
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1916
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1918
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1919
+ return {
1920
+ url: common_1.toPathString(localVarUrlObj),
1921
+ options: localVarRequestOptions,
1922
+ };
1923
+ }),
2029
1924
  /**
2030
1925
  * Submit manual payment confirmation
2031
1926
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2243,11 +2138,14 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2243
2138
  }),
2244
2139
  /**
2245
2140
  * Create a scheduled payout
2141
+ * @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.
2246
2142
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2247
2143
  * @param {*} [options] Override http request option.
2248
2144
  * @throws {RequiredError}
2249
2145
  */
2250
- createScheduledPayout: (createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2146
+ createScheduledPayout: (idempotencyKey, createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2147
+ // verify required parameter 'idempotencyKey' is not null or undefined
2148
+ common_1.assertParamExists('createScheduledPayout', 'idempotencyKey', idempotencyKey);
2251
2149
  // verify required parameter 'createScheduledPayoutRequest' is not null or undefined
2252
2150
  common_1.assertParamExists('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
2253
2151
  const localVarPath = `/payouts/scheduled`;
@@ -2263,6 +2161,9 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2263
2161
  // authentication Oauth2 required
2264
2162
  // oauth required
2265
2163
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2164
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
2165
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
2166
+ }
2266
2167
  localVarHeaderParameter['Content-Type'] = 'application/json';
2267
2168
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2268
2169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2544,6 +2445,18 @@ exports.DefaultApiFp = function (configuration) {
2544
2445
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2545
2446
  });
2546
2447
  },
2448
+ /**
2449
+ * Cancel Payout by payout_id
2450
+ * @param {string} payoutId payout id
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ */
2454
+ cancelPayout(payoutId, options) {
2455
+ return __awaiter(this, void 0, void 0, function* () {
2456
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPayout(payoutId, options);
2457
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2458
+ });
2459
+ },
2547
2460
  /**
2548
2461
  * Submit manual payment confirmation
2549
2462
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2628,13 +2541,14 @@ exports.DefaultApiFp = function (configuration) {
2628
2541
  },
2629
2542
  /**
2630
2543
  * Create a scheduled payout
2544
+ * @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.
2631
2545
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2632
2546
  * @param {*} [options] Override http request option.
2633
2547
  * @throws {RequiredError}
2634
2548
  */
2635
- createScheduledPayout(createScheduledPayoutRequest, options) {
2549
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
2636
2550
  return __awaiter(this, void 0, void 0, function* () {
2637
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(createScheduledPayoutRequest, options);
2551
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options);
2638
2552
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2639
2553
  });
2640
2554
  },
@@ -2743,6 +2657,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2743
2657
  cancelPaymentLink(paymentLinkId, options) {
2744
2658
  return localVarFp.cancelPaymentLink(paymentLinkId, options).then((request) => request(axios, basePath));
2745
2659
  },
2660
+ /**
2661
+ * Cancel Payout by payout_id
2662
+ * @param {string} payoutId payout id
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ cancelPayout(payoutId, options) {
2667
+ return localVarFp.cancelPayout(payoutId, options).then((request) => request(axios, basePath));
2668
+ },
2746
2669
  /**
2747
2670
  * Submit manual payment confirmation
2748
2671
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -2814,13 +2737,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2814
2737
  },
2815
2738
  /**
2816
2739
  * Create a scheduled payout
2740
+ * @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.
2817
2741
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2818
2742
  * @param {*} [options] Override http request option.
2819
2743
  * @throws {RequiredError}
2820
2744
  */
2821
- createScheduledPayout(createScheduledPayoutRequest, options) {
2745
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
2822
2746
  return localVarFp
2823
- .createScheduledPayout(createScheduledPayoutRequest, options)
2747
+ .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
2824
2748
  .then((request) => request(axios, basePath));
2825
2749
  },
2826
2750
  /**
@@ -2919,6 +2843,18 @@ class DefaultApi extends base_1.BaseAPI {
2919
2843
  .cancelPaymentLink(paymentLinkId, options)
2920
2844
  .then((request) => request(this.axios, this.basePath));
2921
2845
  }
2846
+ /**
2847
+ * Cancel Payout by payout_id
2848
+ * @param {string} payoutId payout id
2849
+ * @param {*} [options] Override http request option.
2850
+ * @throws {RequiredError}
2851
+ * @memberof DefaultApi
2852
+ */
2853
+ cancelPayout(payoutId, options) {
2854
+ return exports.DefaultApiFp(this.configuration)
2855
+ .cancelPayout(payoutId, options)
2856
+ .then((request) => request(this.axios, this.basePath));
2857
+ }
2922
2858
  /**
2923
2859
  * Submit manual payment confirmation
2924
2860
  * @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
@@ -3003,14 +2939,15 @@ class DefaultApi extends base_1.BaseAPI {
3003
2939
  }
3004
2940
  /**
3005
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.
3006
2943
  * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
3007
2944
  * @param {*} [options] Override http request option.
3008
2945
  * @throws {RequiredError}
3009
2946
  * @memberof DefaultApi
3010
2947
  */
3011
- createScheduledPayout(createScheduledPayoutRequest, options) {
2948
+ createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
3012
2949
  return exports.DefaultApiFp(this.configuration)
3013
- .createScheduledPayout(createScheduledPayoutRequest, options)
2950
+ .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
3014
2951
  .then((request) => request(this.axios, this.basePath));
3015
2952
  }
3016
2953
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [