@finverse/sdk-typescript 0.0.178 → 0.0.180

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 +227 -85
  2. package/dist/api.js +67 -74
  3. package/package.json +2 -2
package/dist/api.d.ts CHANGED
@@ -725,10 +725,10 @@ export interface CardAccount {
725
725
  minimum_payment_due?: CurrencyAmount;
726
726
  /**
727
727
  *
728
- * @type {GenericAmount}
728
+ * @type {Array<GenericAmount>}
729
729
  * @memberof CardAccount
730
730
  */
731
- rewards_points_balance?: GenericAmount;
731
+ rewards_balances?: Array<GenericAmount>;
732
732
  /**
733
733
  *
734
734
  * @type {string}
@@ -799,10 +799,10 @@ export interface CardTotal {
799
799
  minimum_payment_due?: CurrencyAmount;
800
800
  /**
801
801
  *
802
- * @type {GenericAmount}
802
+ * @type {Array<GenericAmount>}
803
803
  * @memberof CardTotal
804
804
  */
805
- rewards_points_balance?: GenericAmount;
805
+ rewards_balances?: Array<GenericAmount>;
806
806
  /**
807
807
  *
808
808
  * @type {string}
@@ -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,153 @@ 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
+ transaction_reference_id?: string;
5268
+ /**
5269
+ *
5270
+ * @type {string}
5271
+ * @memberof PayoutSnapshotResponse
5272
+ */
5273
+ status?: string;
5274
+ /**
5275
+ *
5276
+ * @type {string}
5277
+ * @memberof PayoutSnapshotResponse
5278
+ */
5279
+ payout_type?: string;
5280
+ /**
5281
+ *
5282
+ * @type {string}
5283
+ * @memberof PayoutSnapshotResponse
5284
+ */
5285
+ created_at?: string;
5286
+ /**
5287
+ *
5288
+ * @type {string}
5289
+ * @memberof PayoutSnapshotResponse
5290
+ */
5291
+ updated_at?: string;
5292
+ /**
5293
+ *
5294
+ * @type {string}
5295
+ * @memberof PayoutSnapshotResponse
5296
+ */
5297
+ scheduled_date?: string;
5298
+ /**
5299
+ *
5300
+ * @type {string}
5301
+ * @memberof PayoutSnapshotResponse
5302
+ */
5303
+ transaction_date?: string;
5304
+ /**
5305
+ *
5306
+ * @type {PayoutSnapshotDetails}
5307
+ * @memberof PayoutSnapshotResponse
5308
+ */
5309
+ payout_details?: PayoutSnapshotDetails;
5310
+ /**
5311
+ *
5312
+ * @type {number}
5313
+ * @memberof PayoutSnapshotResponse
5314
+ */
5315
+ amount?: number;
5316
+ /**
5317
+ *
5318
+ * @type {string}
5319
+ * @memberof PayoutSnapshotResponse
5320
+ */
5321
+ currency?: string;
5322
+ /**
5323
+ *
5324
+ * @type {string}
5325
+ * @memberof PayoutSnapshotResponse
5326
+ */
5327
+ description?: string;
5328
+ /**
5329
+ *
5330
+ * @type {PayoutSnapshotPaymentAccount}
5331
+ * @memberof PayoutSnapshotResponse
5332
+ */
5333
+ recipient?: PayoutSnapshotPaymentAccount;
5334
+ /**
5335
+ *
5336
+ * @type {PayoutSnapshotPaymentAccount}
5337
+ * @memberof PayoutSnapshotResponse
5338
+ */
5339
+ sender?: PayoutSnapshotPaymentAccount;
5340
+ }
5194
5341
  /**
5195
5342
  *
5196
5343
  * @export
@@ -6104,14 +6251,6 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
6104
6251
  * @throws {RequiredError}
6105
6252
  */
6106
6253
  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
6254
  /**
6116
6255
  * delete payment account
6117
6256
  * @param {string} paymentAccountId The payment account id
@@ -6298,14 +6437,6 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
6298
6437
  * @throws {RequiredError}
6299
6438
  */
6300
6439
  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
6440
  /**
6310
6441
  * delete payment account
6311
6442
  * @param {string} paymentAccountId The payment account id
@@ -6492,14 +6623,6 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6492
6623
  * @throws {RequiredError}
6493
6624
  */
6494
6625
  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
6626
  /**
6504
6627
  * delete payment account
6505
6628
  * @param {string} paymentAccountId The payment account id
@@ -6694,15 +6817,6 @@ export interface CustomerApiInterface {
6694
6817
  * @memberof CustomerApiInterface
6695
6818
  */
6696
6819
  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
6820
  /**
6707
6821
  * delete payment account
6708
6822
  * @param {string} paymentAccountId The payment account id
@@ -6916,15 +7030,6 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6916
7030
  * @memberof CustomerApi
6917
7031
  */
6918
7032
  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
7033
  /**
6929
7034
  * delete payment account
6930
7035
  * @param {string} paymentAccountId The payment account id
@@ -7131,6 +7236,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7131
7236
  * @throws {RequiredError}
7132
7237
  */
7133
7238
  createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7239
+ /**
7240
+ * Create a scheduled payout
7241
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7242
+ * @param {*} [options] Override http request option.
7243
+ * @throws {RequiredError}
7244
+ */
7245
+ createScheduledPayout: (createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7134
7246
  /**
7135
7247
  * Get a customer-specific list of institutions for Finverse Link
7136
7248
  * @param {*} [options] Override http request option.
@@ -7248,6 +7360,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
7248
7360
  * @throws {RequiredError}
7249
7361
  */
7250
7362
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
7363
+ /**
7364
+ * Create a scheduled payout
7365
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7366
+ * @param {*} [options] Override http request option.
7367
+ * @throws {RequiredError}
7368
+ */
7369
+ createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
7251
7370
  /**
7252
7371
  * Get a customer-specific list of institutions for Finverse Link
7253
7372
  * @param {*} [options] Override http request option.
@@ -7365,6 +7484,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
7365
7484
  * @throws {RequiredError}
7366
7485
  */
7367
7486
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
7487
+ /**
7488
+ * Create a scheduled payout
7489
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7490
+ * @param {*} [options] Override http request option.
7491
+ * @throws {RequiredError}
7492
+ */
7493
+ createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
7368
7494
  /**
7369
7495
  * Get a customer-specific list of institutions for Finverse Link
7370
7496
  * @param {*} [options] Override http request option.
@@ -7491,6 +7617,14 @@ export interface DefaultApiInterface {
7491
7617
  * @memberof DefaultApiInterface
7492
7618
  */
7493
7619
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
7620
+ /**
7621
+ * Create a scheduled payout
7622
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7623
+ * @param {*} [options] Override http request option.
7624
+ * @throws {RequiredError}
7625
+ * @memberof DefaultApiInterface
7626
+ */
7627
+ createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
7494
7628
  /**
7495
7629
  * Get a customer-specific list of institutions for Finverse Link
7496
7630
  * @param {*} [options] Override http request option.
@@ -7624,6 +7758,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
7624
7758
  * @memberof DefaultApi
7625
7759
  */
7626
7760
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
7761
+ /**
7762
+ * Create a scheduled payout
7763
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
7764
+ * @param {*} [options] Override http request option.
7765
+ * @throws {RequiredError}
7766
+ * @memberof DefaultApi
7767
+ */
7768
+ createScheduledPayout(createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
7627
7769
  /**
7628
7770
  * Get a customer-specific list of institutions for Finverse Link
7629
7771
  * @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,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2315
2241
  options: localVarRequestOptions,
2316
2242
  };
2317
2243
  }),
2244
+ /**
2245
+ * Create a scheduled payout
2246
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ */
2250
+ createScheduledPayout: (createScheduledPayoutRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2251
+ // verify required parameter 'createScheduledPayoutRequest' is not null or undefined
2252
+ common_1.assertParamExists('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
2253
+ const localVarPath = `/payouts/scheduled`;
2254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2255
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2256
+ let baseOptions;
2257
+ if (configuration) {
2258
+ baseOptions = configuration.baseOptions;
2259
+ }
2260
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2261
+ const localVarHeaderParameter = {};
2262
+ const localVarQueryParameter = {};
2263
+ // authentication Oauth2 required
2264
+ // oauth required
2265
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2267
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2269
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2270
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createScheduledPayoutRequest, localVarRequestOptions, configuration);
2271
+ return {
2272
+ url: common_1.toPathString(localVarUrlObj),
2273
+ options: localVarRequestOptions,
2274
+ };
2275
+ }),
2318
2276
  /**
2319
2277
  * Get a customer-specific list of institutions for Finverse Link
2320
2278
  * @param {*} [options] Override http request option.
@@ -2668,6 +2626,18 @@ exports.DefaultApiFp = function (configuration) {
2668
2626
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2669
2627
  });
2670
2628
  },
2629
+ /**
2630
+ * Create a scheduled payout
2631
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2632
+ * @param {*} [options] Override http request option.
2633
+ * @throws {RequiredError}
2634
+ */
2635
+ createScheduledPayout(createScheduledPayoutRequest, options) {
2636
+ return __awaiter(this, void 0, void 0, function* () {
2637
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(createScheduledPayoutRequest, options);
2638
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2639
+ });
2640
+ },
2671
2641
  /**
2672
2642
  * Get a customer-specific list of institutions for Finverse Link
2673
2643
  * @param {*} [options] Override http request option.
@@ -2842,6 +2812,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
2842
2812
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
2843
2813
  .then((request) => request(axios, basePath));
2844
2814
  },
2815
+ /**
2816
+ * Create a scheduled payout
2817
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
2818
+ * @param {*} [options] Override http request option.
2819
+ * @throws {RequiredError}
2820
+ */
2821
+ createScheduledPayout(createScheduledPayoutRequest, options) {
2822
+ return localVarFp
2823
+ .createScheduledPayout(createScheduledPayoutRequest, options)
2824
+ .then((request) => request(axios, basePath));
2825
+ },
2845
2826
  /**
2846
2827
  * Get a customer-specific list of institutions for Finverse Link
2847
2828
  * @param {*} [options] Override http request option.
@@ -3020,6 +3001,18 @@ class DefaultApi extends base_1.BaseAPI {
3020
3001
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
3021
3002
  .then((request) => request(this.axios, this.basePath));
3022
3003
  }
3004
+ /**
3005
+ * Create a scheduled payout
3006
+ * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
3007
+ * @param {*} [options] Override http request option.
3008
+ * @throws {RequiredError}
3009
+ * @memberof DefaultApi
3010
+ */
3011
+ createScheduledPayout(createScheduledPayoutRequest, options) {
3012
+ return exports.DefaultApiFp(this.configuration)
3013
+ .createScheduledPayout(createScheduledPayoutRequest, options)
3014
+ .then((request) => request(this.axios, this.basePath));
3015
+ }
3023
3016
  /**
3024
3017
  * Get a customer-specific list of institutions for Finverse Link
3025
3018
  * @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.178",
3
+ "version": "0.0.180",
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.7",
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",