@finverse/sdk-typescript 0.0.179 → 0.0.181
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 +216 -81
- package/dist/api.js +76 -74
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -1346,45 +1346,6 @@ export declare const CreatePaymentUserRequestUserTypeEnum: {
|
|
|
1346
1346
|
readonly Business: "BUSINESS";
|
|
1347
1347
|
};
|
|
1348
1348
|
export declare type CreatePaymentUserRequestUserTypeEnum = (typeof CreatePaymentUserRequestUserTypeEnum)[keyof typeof CreatePaymentUserRequestUserTypeEnum];
|
|
1349
|
-
/**
|
|
1350
|
-
*
|
|
1351
|
-
* @export
|
|
1352
|
-
* @interface CreatePayoutInstructionRequest
|
|
1353
|
-
*/
|
|
1354
|
-
export interface CreatePayoutInstructionRequest {
|
|
1355
|
-
/**
|
|
1356
|
-
* 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.
|
|
1357
|
-
* @type {number}
|
|
1358
|
-
* @memberof CreatePayoutInstructionRequest
|
|
1359
|
-
*/
|
|
1360
|
-
amount: number;
|
|
1361
|
-
/**
|
|
1362
|
-
* The currency code as defined in ISO 4217.
|
|
1363
|
-
* @type {string}
|
|
1364
|
-
* @memberof CreatePayoutInstructionRequest
|
|
1365
|
-
*/
|
|
1366
|
-
currency: string;
|
|
1367
|
-
/**
|
|
1368
|
-
*
|
|
1369
|
-
* @type {PayoutDetails}
|
|
1370
|
-
* @memberof CreatePayoutInstructionRequest
|
|
1371
|
-
*/
|
|
1372
|
-
payment_details: PayoutDetails;
|
|
1373
|
-
/**
|
|
1374
|
-
*
|
|
1375
|
-
* @type {MandateRecipientRequest}
|
|
1376
|
-
* @memberof CreatePayoutInstructionRequest
|
|
1377
|
-
*/
|
|
1378
|
-
recipient_account: MandateRecipientRequest;
|
|
1379
|
-
/**
|
|
1380
|
-
* 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.
|
|
1381
|
-
* @type {{ [key: string]: string; }}
|
|
1382
|
-
* @memberof CreatePayoutInstructionRequest
|
|
1383
|
-
*/
|
|
1384
|
-
metadata?: {
|
|
1385
|
-
[key: string]: string;
|
|
1386
|
-
};
|
|
1387
|
-
}
|
|
1388
1349
|
/**
|
|
1389
1350
|
*
|
|
1390
1351
|
* @export
|
|
@@ -1426,6 +1387,45 @@ export declare const CreateRecipientAccountAccountTypeEnum: {
|
|
|
1426
1387
|
readonly ExternalAccount: "EXTERNAL_ACCOUNT";
|
|
1427
1388
|
};
|
|
1428
1389
|
export declare type CreateRecipientAccountAccountTypeEnum = (typeof CreateRecipientAccountAccountTypeEnum)[keyof typeof CreateRecipientAccountAccountTypeEnum];
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @export
|
|
1393
|
+
* @interface CreateScheduledPayoutRequest
|
|
1394
|
+
*/
|
|
1395
|
+
export interface CreateScheduledPayoutRequest {
|
|
1396
|
+
/**
|
|
1397
|
+
* 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.
|
|
1398
|
+
* @type {number}
|
|
1399
|
+
* @memberof CreateScheduledPayoutRequest
|
|
1400
|
+
*/
|
|
1401
|
+
amount: number;
|
|
1402
|
+
/**
|
|
1403
|
+
* The currency code as defined in ISO 4217.
|
|
1404
|
+
* @type {string}
|
|
1405
|
+
* @memberof CreateScheduledPayoutRequest
|
|
1406
|
+
*/
|
|
1407
|
+
currency: string;
|
|
1408
|
+
/**
|
|
1409
|
+
*
|
|
1410
|
+
* @type {PayoutDetails}
|
|
1411
|
+
* @memberof CreateScheduledPayoutRequest
|
|
1412
|
+
*/
|
|
1413
|
+
payment_details: PayoutDetails;
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
* @type {MandateRecipientRequest}
|
|
1417
|
+
* @memberof CreateScheduledPayoutRequest
|
|
1418
|
+
*/
|
|
1419
|
+
recipient_account: MandateRecipientRequest;
|
|
1420
|
+
/**
|
|
1421
|
+
* 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.
|
|
1422
|
+
* @type {{ [key: string]: string; }}
|
|
1423
|
+
* @memberof CreateScheduledPayoutRequest
|
|
1424
|
+
*/
|
|
1425
|
+
metadata?: {
|
|
1426
|
+
[key: string]: string;
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
1429
|
/**
|
|
1430
1430
|
*
|
|
1431
1431
|
* @export
|
|
@@ -5191,6 +5191,141 @@ export interface PayoutSender {
|
|
|
5191
5191
|
*/
|
|
5192
5192
|
name?: string;
|
|
5193
5193
|
}
|
|
5194
|
+
/**
|
|
5195
|
+
*
|
|
5196
|
+
* @export
|
|
5197
|
+
* @interface PayoutSnapshotDetails
|
|
5198
|
+
*/
|
|
5199
|
+
export interface PayoutSnapshotDetails {
|
|
5200
|
+
/**
|
|
5201
|
+
*
|
|
5202
|
+
* @type {string}
|
|
5203
|
+
* @memberof PayoutSnapshotDetails
|
|
5204
|
+
*/
|
|
5205
|
+
description?: string;
|
|
5206
|
+
/**
|
|
5207
|
+
*
|
|
5208
|
+
* @type {string}
|
|
5209
|
+
* @memberof PayoutSnapshotDetails
|
|
5210
|
+
*/
|
|
5211
|
+
transaction_reference_id?: string;
|
|
5212
|
+
/**
|
|
5213
|
+
*
|
|
5214
|
+
* @type {string}
|
|
5215
|
+
* @memberof PayoutSnapshotDetails
|
|
5216
|
+
*/
|
|
5217
|
+
mandate_id?: string;
|
|
5218
|
+
}
|
|
5219
|
+
/**
|
|
5220
|
+
*
|
|
5221
|
+
* @export
|
|
5222
|
+
* @interface PayoutSnapshotPaymentAccount
|
|
5223
|
+
*/
|
|
5224
|
+
export interface PayoutSnapshotPaymentAccount {
|
|
5225
|
+
/**
|
|
5226
|
+
*
|
|
5227
|
+
* @type {string}
|
|
5228
|
+
* @memberof PayoutSnapshotPaymentAccount
|
|
5229
|
+
*/
|
|
5230
|
+
payment_user_id?: string;
|
|
5231
|
+
/**
|
|
5232
|
+
*
|
|
5233
|
+
* @type {string}
|
|
5234
|
+
* @memberof PayoutSnapshotPaymentAccount
|
|
5235
|
+
*/
|
|
5236
|
+
payment_account_id?: string;
|
|
5237
|
+
/**
|
|
5238
|
+
*
|
|
5239
|
+
* @type {string}
|
|
5240
|
+
* @memberof PayoutSnapshotPaymentAccount
|
|
5241
|
+
*/
|
|
5242
|
+
name?: string;
|
|
5243
|
+
/**
|
|
5244
|
+
*
|
|
5245
|
+
* @type {string}
|
|
5246
|
+
* @memberof PayoutSnapshotPaymentAccount
|
|
5247
|
+
*/
|
|
5248
|
+
institution_id?: string;
|
|
5249
|
+
}
|
|
5250
|
+
/**
|
|
5251
|
+
*
|
|
5252
|
+
* @export
|
|
5253
|
+
* @interface PayoutSnapshotResponse
|
|
5254
|
+
*/
|
|
5255
|
+
export interface PayoutSnapshotResponse {
|
|
5256
|
+
/**
|
|
5257
|
+
*
|
|
5258
|
+
* @type {string}
|
|
5259
|
+
* @memberof PayoutSnapshotResponse
|
|
5260
|
+
*/
|
|
5261
|
+
payout_id?: string;
|
|
5262
|
+
/**
|
|
5263
|
+
*
|
|
5264
|
+
* @type {string}
|
|
5265
|
+
* @memberof PayoutSnapshotResponse
|
|
5266
|
+
*/
|
|
5267
|
+
status?: string;
|
|
5268
|
+
/**
|
|
5269
|
+
*
|
|
5270
|
+
* @type {string}
|
|
5271
|
+
* @memberof PayoutSnapshotResponse
|
|
5272
|
+
*/
|
|
5273
|
+
payout_type?: string;
|
|
5274
|
+
/**
|
|
5275
|
+
*
|
|
5276
|
+
* @type {string}
|
|
5277
|
+
* @memberof PayoutSnapshotResponse
|
|
5278
|
+
*/
|
|
5279
|
+
created_at?: string;
|
|
5280
|
+
/**
|
|
5281
|
+
*
|
|
5282
|
+
* @type {string}
|
|
5283
|
+
* @memberof PayoutSnapshotResponse
|
|
5284
|
+
*/
|
|
5285
|
+
updated_at?: string;
|
|
5286
|
+
/**
|
|
5287
|
+
*
|
|
5288
|
+
* @type {string}
|
|
5289
|
+
* @memberof PayoutSnapshotResponse
|
|
5290
|
+
*/
|
|
5291
|
+
scheduled_date?: string;
|
|
5292
|
+
/**
|
|
5293
|
+
*
|
|
5294
|
+
* @type {string}
|
|
5295
|
+
* @memberof PayoutSnapshotResponse
|
|
5296
|
+
*/
|
|
5297
|
+
transaction_date?: string;
|
|
5298
|
+
/**
|
|
5299
|
+
*
|
|
5300
|
+
* @type {PayoutSnapshotDetails}
|
|
5301
|
+
* @memberof PayoutSnapshotResponse
|
|
5302
|
+
*/
|
|
5303
|
+
payout_details?: PayoutSnapshotDetails;
|
|
5304
|
+
/**
|
|
5305
|
+
*
|
|
5306
|
+
* @type {number}
|
|
5307
|
+
* @memberof PayoutSnapshotResponse
|
|
5308
|
+
*/
|
|
5309
|
+
amount?: number;
|
|
5310
|
+
/**
|
|
5311
|
+
*
|
|
5312
|
+
* @type {string}
|
|
5313
|
+
* @memberof PayoutSnapshotResponse
|
|
5314
|
+
*/
|
|
5315
|
+
currency?: string;
|
|
5316
|
+
/**
|
|
5317
|
+
*
|
|
5318
|
+
* @type {PayoutSnapshotPaymentAccount}
|
|
5319
|
+
* @memberof PayoutSnapshotResponse
|
|
5320
|
+
*/
|
|
5321
|
+
recipient?: PayoutSnapshotPaymentAccount;
|
|
5322
|
+
/**
|
|
5323
|
+
*
|
|
5324
|
+
* @type {PayoutSnapshotPaymentAccount}
|
|
5325
|
+
* @memberof PayoutSnapshotResponse
|
|
5326
|
+
*/
|
|
5327
|
+
sender?: PayoutSnapshotPaymentAccount;
|
|
5328
|
+
}
|
|
5194
5329
|
/**
|
|
5195
5330
|
*
|
|
5196
5331
|
* @export
|
|
@@ -6104,14 +6239,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6104
6239
|
* @throws {RequiredError}
|
|
6105
6240
|
*/
|
|
6106
6241
|
createPaymentUser: (createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6107
|
-
/**
|
|
6108
|
-
* Create new Payout instruction
|
|
6109
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
6110
|
-
* @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.
|
|
6111
|
-
* @param {*} [options] Override http request option.
|
|
6112
|
-
* @throws {RequiredError}
|
|
6113
|
-
*/
|
|
6114
|
-
createPayoutInstruction: (createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6115
6242
|
/**
|
|
6116
6243
|
* delete payment account
|
|
6117
6244
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -6298,14 +6425,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
6298
6425
|
* @throws {RequiredError}
|
|
6299
6426
|
*/
|
|
6300
6427
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentUser>>;
|
|
6301
|
-
/**
|
|
6302
|
-
* Create new Payout instruction
|
|
6303
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
6304
|
-
* @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.
|
|
6305
|
-
* @param {*} [options] Override http request option.
|
|
6306
|
-
* @throws {RequiredError}
|
|
6307
|
-
*/
|
|
6308
|
-
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutInstructionResponse>>;
|
|
6309
6428
|
/**
|
|
6310
6429
|
* delete payment account
|
|
6311
6430
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -6492,14 +6611,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
6492
6611
|
* @throws {RequiredError}
|
|
6493
6612
|
*/
|
|
6494
6613
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: any): AxiosPromise<PaymentUser>;
|
|
6495
|
-
/**
|
|
6496
|
-
* Create new Payout instruction
|
|
6497
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
6498
|
-
* @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.
|
|
6499
|
-
* @param {*} [options] Override http request option.
|
|
6500
|
-
* @throws {RequiredError}
|
|
6501
|
-
*/
|
|
6502
|
-
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: any): AxiosPromise<PayoutInstructionResponse>;
|
|
6503
6614
|
/**
|
|
6504
6615
|
* delete payment account
|
|
6505
6616
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -6694,15 +6805,6 @@ export interface CustomerApiInterface {
|
|
|
6694
6805
|
* @memberof CustomerApiInterface
|
|
6695
6806
|
*/
|
|
6696
6807
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentUser>;
|
|
6697
|
-
/**
|
|
6698
|
-
* Create new Payout instruction
|
|
6699
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
6700
|
-
* @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.
|
|
6701
|
-
* @param {*} [options] Override http request option.
|
|
6702
|
-
* @throws {RequiredError}
|
|
6703
|
-
* @memberof CustomerApiInterface
|
|
6704
|
-
*/
|
|
6705
|
-
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<PayoutInstructionResponse>;
|
|
6706
6808
|
/**
|
|
6707
6809
|
* delete payment account
|
|
6708
6810
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -6916,15 +7018,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
6916
7018
|
* @memberof CustomerApi
|
|
6917
7019
|
*/
|
|
6918
7020
|
createPaymentUser(createPaymentUserRequest: CreatePaymentUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentUser>>;
|
|
6919
|
-
/**
|
|
6920
|
-
* Create new Payout instruction
|
|
6921
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
6922
|
-
* @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.
|
|
6923
|
-
* @param {*} [options] Override http request option.
|
|
6924
|
-
* @throws {RequiredError}
|
|
6925
|
-
* @memberof CustomerApi
|
|
6926
|
-
*/
|
|
6927
|
-
createPayoutInstruction(createPayoutInstructionRequest: CreatePayoutInstructionRequest, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutInstructionResponse>>;
|
|
6928
7021
|
/**
|
|
6929
7022
|
* delete payment account
|
|
6930
7023
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -7131,6 +7224,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7131
7224
|
* @throws {RequiredError}
|
|
7132
7225
|
*/
|
|
7133
7226
|
createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7227
|
+
/**
|
|
7228
|
+
* Create a scheduled payout
|
|
7229
|
+
* @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.
|
|
7230
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
7231
|
+
* @param {*} [options] Override http request option.
|
|
7232
|
+
* @throws {RequiredError}
|
|
7233
|
+
*/
|
|
7234
|
+
createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7134
7235
|
/**
|
|
7135
7236
|
* Get a customer-specific list of institutions for Finverse Link
|
|
7136
7237
|
* @param {*} [options] Override http request option.
|
|
@@ -7248,6 +7349,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
7248
7349
|
* @throws {RequiredError}
|
|
7249
7350
|
*/
|
|
7250
7351
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
|
|
7352
|
+
/**
|
|
7353
|
+
* Create a scheduled payout
|
|
7354
|
+
* @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.
|
|
7355
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
7356
|
+
* @param {*} [options] Override http request option.
|
|
7357
|
+
* @throws {RequiredError}
|
|
7358
|
+
*/
|
|
7359
|
+
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
7251
7360
|
/**
|
|
7252
7361
|
* Get a customer-specific list of institutions for Finverse Link
|
|
7253
7362
|
* @param {*} [options] Override http request option.
|
|
@@ -7365,6 +7474,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
7365
7474
|
* @throws {RequiredError}
|
|
7366
7475
|
*/
|
|
7367
7476
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
7477
|
+
/**
|
|
7478
|
+
* Create a scheduled payout
|
|
7479
|
+
* @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.
|
|
7480
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
7481
|
+
* @param {*} [options] Override http request option.
|
|
7482
|
+
* @throws {RequiredError}
|
|
7483
|
+
*/
|
|
7484
|
+
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
|
|
7368
7485
|
/**
|
|
7369
7486
|
* Get a customer-specific list of institutions for Finverse Link
|
|
7370
7487
|
* @param {*} [options] Override http request option.
|
|
@@ -7491,6 +7608,15 @@ export interface DefaultApiInterface {
|
|
|
7491
7608
|
* @memberof DefaultApiInterface
|
|
7492
7609
|
*/
|
|
7493
7610
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
7611
|
+
/**
|
|
7612
|
+
* Create a scheduled payout
|
|
7613
|
+
* @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.
|
|
7614
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
7615
|
+
* @param {*} [options] Override http request option.
|
|
7616
|
+
* @throws {RequiredError}
|
|
7617
|
+
* @memberof DefaultApiInterface
|
|
7618
|
+
*/
|
|
7619
|
+
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
7494
7620
|
/**
|
|
7495
7621
|
* Get a customer-specific list of institutions for Finverse Link
|
|
7496
7622
|
* @param {*} [options] Override http request option.
|
|
@@ -7624,6 +7750,15 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
7624
7750
|
* @memberof DefaultApi
|
|
7625
7751
|
*/
|
|
7626
7752
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
|
|
7753
|
+
/**
|
|
7754
|
+
* Create a scheduled payout
|
|
7755
|
+
* @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.
|
|
7756
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
7757
|
+
* @param {*} [options] Override http request option.
|
|
7758
|
+
* @throws {RequiredError}
|
|
7759
|
+
* @memberof DefaultApi
|
|
7760
|
+
*/
|
|
7761
|
+
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
|
|
7627
7762
|
/**
|
|
7628
7763
|
* Get a customer-specific list of institutions for Finverse Link
|
|
7629
7764
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -539,42 +539,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
539
539
|
options: localVarRequestOptions,
|
|
540
540
|
};
|
|
541
541
|
}),
|
|
542
|
-
/**
|
|
543
|
-
* Create new Payout instruction
|
|
544
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
545
|
-
* @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.
|
|
546
|
-
* @param {*} [options] Override http request option.
|
|
547
|
-
* @throws {RequiredError}
|
|
548
|
-
*/
|
|
549
|
-
createPayoutInstruction: (createPayoutInstructionRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
550
|
-
// verify required parameter 'createPayoutInstructionRequest' is not null or undefined
|
|
551
|
-
common_1.assertParamExists('createPayoutInstruction', 'createPayoutInstructionRequest', createPayoutInstructionRequest);
|
|
552
|
-
const localVarPath = `/payout_instructions`;
|
|
553
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
555
|
-
let baseOptions;
|
|
556
|
-
if (configuration) {
|
|
557
|
-
baseOptions = configuration.baseOptions;
|
|
558
|
-
}
|
|
559
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
560
|
-
const localVarHeaderParameter = {};
|
|
561
|
-
const localVarQueryParameter = {};
|
|
562
|
-
// authentication Oauth2 required
|
|
563
|
-
// oauth required
|
|
564
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
565
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null) {
|
|
566
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
567
|
-
}
|
|
568
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
569
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
570
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
571
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
572
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPayoutInstructionRequest, localVarRequestOptions, configuration);
|
|
573
|
-
return {
|
|
574
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
575
|
-
options: localVarRequestOptions,
|
|
576
|
-
};
|
|
577
|
-
}),
|
|
578
542
|
/**
|
|
579
543
|
* delete payment account
|
|
580
544
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -1231,19 +1195,6 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1231
1195
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1232
1196
|
});
|
|
1233
1197
|
},
|
|
1234
|
-
/**
|
|
1235
|
-
* Create new Payout instruction
|
|
1236
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
1237
|
-
* @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.
|
|
1238
|
-
* @param {*} [options] Override http request option.
|
|
1239
|
-
* @throws {RequiredError}
|
|
1240
|
-
*/
|
|
1241
|
-
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
1242
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1243
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options);
|
|
1244
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1245
|
-
});
|
|
1246
|
-
},
|
|
1247
1198
|
/**
|
|
1248
1199
|
* delete payment account
|
|
1249
1200
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -1551,18 +1502,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1551
1502
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
1552
1503
|
.then((request) => request(axios, basePath));
|
|
1553
1504
|
},
|
|
1554
|
-
/**
|
|
1555
|
-
* Create new Payout instruction
|
|
1556
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
1557
|
-
* @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.
|
|
1558
|
-
* @param {*} [options] Override http request option.
|
|
1559
|
-
* @throws {RequiredError}
|
|
1560
|
-
*/
|
|
1561
|
-
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
1562
|
-
return localVarFp
|
|
1563
|
-
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1564
|
-
.then((request) => request(axios, basePath));
|
|
1565
|
-
},
|
|
1566
1505
|
/**
|
|
1567
1506
|
* delete payment account
|
|
1568
1507
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -1831,19 +1770,6 @@ class CustomerApi extends base_1.BaseAPI {
|
|
|
1831
1770
|
.createPaymentUser(createPaymentUserRequest, options)
|
|
1832
1771
|
.then((request) => request(this.axios, this.basePath));
|
|
1833
1772
|
}
|
|
1834
|
-
/**
|
|
1835
|
-
* Create new Payout instruction
|
|
1836
|
-
* @param {CreatePayoutInstructionRequest} createPayoutInstructionRequest request body for creating payout instruction
|
|
1837
|
-
* @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.
|
|
1838
|
-
* @param {*} [options] Override http request option.
|
|
1839
|
-
* @throws {RequiredError}
|
|
1840
|
-
* @memberof CustomerApi
|
|
1841
|
-
*/
|
|
1842
|
-
createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options) {
|
|
1843
|
-
return exports.CustomerApiFp(this.configuration)
|
|
1844
|
-
.createPayoutInstruction(createPayoutInstructionRequest, idempotencyKey, options)
|
|
1845
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1846
|
-
}
|
|
1847
1773
|
/**
|
|
1848
1774
|
* delete payment account
|
|
1849
1775
|
* @param {string} paymentAccountId The payment account id
|
|
@@ -2315,6 +2241,44 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2315
2241
|
options: localVarRequestOptions,
|
|
2316
2242
|
};
|
|
2317
2243
|
}),
|
|
2244
|
+
/**
|
|
2245
|
+
* Create a scheduled payout
|
|
2246
|
+
* @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.
|
|
2247
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
2248
|
+
* @param {*} [options] Override http request option.
|
|
2249
|
+
* @throws {RequiredError}
|
|
2250
|
+
*/
|
|
2251
|
+
createScheduledPayout: (idempotencyKey, createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2252
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
2253
|
+
common_1.assertParamExists('createScheduledPayout', 'idempotencyKey', idempotencyKey);
|
|
2254
|
+
// verify required parameter 'createScheduledPayoutRequest' is not null or undefined
|
|
2255
|
+
common_1.assertParamExists('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
|
|
2256
|
+
const localVarPath = `/payouts/scheduled`;
|
|
2257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2259
|
+
let baseOptions;
|
|
2260
|
+
if (configuration) {
|
|
2261
|
+
baseOptions = configuration.baseOptions;
|
|
2262
|
+
}
|
|
2263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2264
|
+
const localVarHeaderParameter = {};
|
|
2265
|
+
const localVarQueryParameter = {};
|
|
2266
|
+
// authentication Oauth2 required
|
|
2267
|
+
// oauth required
|
|
2268
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2269
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null) {
|
|
2270
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
2271
|
+
}
|
|
2272
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2273
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2274
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2275
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2276
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createScheduledPayoutRequest, localVarRequestOptions, configuration);
|
|
2277
|
+
return {
|
|
2278
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2279
|
+
options: localVarRequestOptions,
|
|
2280
|
+
};
|
|
2281
|
+
}),
|
|
2318
2282
|
/**
|
|
2319
2283
|
* Get a customer-specific list of institutions for Finverse Link
|
|
2320
2284
|
* @param {*} [options] Override http request option.
|
|
@@ -2668,6 +2632,19 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
2668
2632
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2669
2633
|
});
|
|
2670
2634
|
},
|
|
2635
|
+
/**
|
|
2636
|
+
* Create a scheduled payout
|
|
2637
|
+
* @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.
|
|
2638
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
2639
|
+
* @param {*} [options] Override http request option.
|
|
2640
|
+
* @throws {RequiredError}
|
|
2641
|
+
*/
|
|
2642
|
+
createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
|
|
2643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2644
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options);
|
|
2645
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2646
|
+
});
|
|
2647
|
+
},
|
|
2671
2648
|
/**
|
|
2672
2649
|
* Get a customer-specific list of institutions for Finverse Link
|
|
2673
2650
|
* @param {*} [options] Override http request option.
|
|
@@ -2842,6 +2819,18 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2842
2819
|
.createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
|
|
2843
2820
|
.then((request) => request(axios, basePath));
|
|
2844
2821
|
},
|
|
2822
|
+
/**
|
|
2823
|
+
* Create a scheduled payout
|
|
2824
|
+
* @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.
|
|
2825
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
2826
|
+
* @param {*} [options] Override http request option.
|
|
2827
|
+
* @throws {RequiredError}
|
|
2828
|
+
*/
|
|
2829
|
+
createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
|
|
2830
|
+
return localVarFp
|
|
2831
|
+
.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
|
|
2832
|
+
.then((request) => request(axios, basePath));
|
|
2833
|
+
},
|
|
2845
2834
|
/**
|
|
2846
2835
|
* Get a customer-specific list of institutions for Finverse Link
|
|
2847
2836
|
* @param {*} [options] Override http request option.
|
|
@@ -3020,6 +3009,19 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3020
3009
|
.createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
|
|
3021
3010
|
.then((request) => request(this.axios, this.basePath));
|
|
3022
3011
|
}
|
|
3012
|
+
/**
|
|
3013
|
+
* Create a scheduled payout
|
|
3014
|
+
* @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.
|
|
3015
|
+
* @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
|
|
3016
|
+
* @param {*} [options] Override http request option.
|
|
3017
|
+
* @throws {RequiredError}
|
|
3018
|
+
* @memberof DefaultApi
|
|
3019
|
+
*/
|
|
3020
|
+
createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
|
|
3021
|
+
return exports.DefaultApiFp(this.configuration)
|
|
3022
|
+
.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
|
|
3023
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3024
|
+
}
|
|
3023
3025
|
/**
|
|
3024
3026
|
* Get a customer-specific list of institutions for Finverse Link
|
|
3025
3027
|
* @param {*} [options] Override http request option.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.181",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^4.3.
|
|
24
|
+
"@types/chai": "^4.3.8",
|
|
25
25
|
"@types/mocha": "^10.0.2",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|