@finverse/sdk-typescript 0.0.241 → 0.0.243

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 CHANGED
@@ -1367,6 +1367,138 @@ export declare const CreatePaymentLinkRequestModeEnum: {
1367
1367
  readonly Setup: "SETUP";
1368
1368
  };
1369
1369
  export declare type CreatePaymentLinkRequestModeEnum = (typeof CreatePaymentLinkRequestModeEnum)[keyof typeof CreatePaymentLinkRequestModeEnum];
1370
+ /**
1371
+ *
1372
+ * @export
1373
+ * @interface CreatePaymentMethodRequest
1374
+ */
1375
+ export interface CreatePaymentMethodRequest {
1376
+ /**
1377
+ *
1378
+ * @type {CreatePaymentMethodRequestCard}
1379
+ * @memberof CreatePaymentMethodRequest
1380
+ */
1381
+ card: CreatePaymentMethodRequestCard;
1382
+ /**
1383
+ *
1384
+ * @type {CreatePaymentMethodRequestIntegrationMetadata}
1385
+ * @memberof CreatePaymentMethodRequest
1386
+ */
1387
+ integration_metadata: CreatePaymentMethodRequestIntegrationMetadata;
1388
+ /**
1389
+ *
1390
+ * @type {string}
1391
+ * @memberof CreatePaymentMethodRequest
1392
+ */
1393
+ payment_method_type: CreatePaymentMethodRequestPaymentMethodTypeEnum;
1394
+ /**
1395
+ *
1396
+ * @type {string}
1397
+ * @memberof CreatePaymentMethodRequest
1398
+ */
1399
+ recipient_account_id: string;
1400
+ }
1401
+ export declare const CreatePaymentMethodRequestPaymentMethodTypeEnum: {
1402
+ readonly Card: "CARD";
1403
+ };
1404
+ export declare type CreatePaymentMethodRequestPaymentMethodTypeEnum = (typeof CreatePaymentMethodRequestPaymentMethodTypeEnum)[keyof typeof CreatePaymentMethodRequestPaymentMethodTypeEnum];
1405
+ /**
1406
+ *
1407
+ * @export
1408
+ * @interface CreatePaymentMethodRequestCard
1409
+ */
1410
+ export interface CreatePaymentMethodRequestCard {
1411
+ /**
1412
+ *
1413
+ * @type {CreatePaymentMethodRequestCardCardDetails}
1414
+ * @memberof CreatePaymentMethodRequestCard
1415
+ */
1416
+ card_details: CreatePaymentMethodRequestCardCardDetails;
1417
+ /**
1418
+ *
1419
+ * @type {string}
1420
+ * @memberof CreatePaymentMethodRequestCard
1421
+ */
1422
+ status: CreatePaymentMethodRequestCardStatusEnum;
1423
+ }
1424
+ export declare const CreatePaymentMethodRequestCardStatusEnum: {
1425
+ readonly Succeeded: "SUCCEEDED";
1426
+ };
1427
+ export declare type CreatePaymentMethodRequestCardStatusEnum = (typeof CreatePaymentMethodRequestCardStatusEnum)[keyof typeof CreatePaymentMethodRequestCardStatusEnum];
1428
+ /**
1429
+ *
1430
+ * @export
1431
+ * @interface CreatePaymentMethodRequestCardCardDetails
1432
+ */
1433
+ export interface CreatePaymentMethodRequestCardCardDetails {
1434
+ /**
1435
+ *
1436
+ * @type {string}
1437
+ * @memberof CreatePaymentMethodRequestCardCardDetails
1438
+ */
1439
+ brand: string;
1440
+ /**
1441
+ *
1442
+ * @type {string}
1443
+ * @memberof CreatePaymentMethodRequestCardCardDetails
1444
+ */
1445
+ last4: string;
1446
+ }
1447
+ /**
1448
+ *
1449
+ * @export
1450
+ * @interface CreatePaymentMethodRequestIntegrationMetadata
1451
+ */
1452
+ export interface CreatePaymentMethodRequestIntegrationMetadata {
1453
+ /**
1454
+ *
1455
+ * @type {string}
1456
+ * @memberof CreatePaymentMethodRequestIntegrationMetadata
1457
+ */
1458
+ integration_id: CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum;
1459
+ /**
1460
+ *
1461
+ * @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadata}
1462
+ * @memberof CreatePaymentMethodRequestIntegrationMetadata
1463
+ */
1464
+ stripe_metadata: CreatePaymentMethodRequestIntegrationMetadataStripeMetadata;
1465
+ }
1466
+ export declare const CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum: {
1467
+ readonly Stripe: "STRIPE";
1468
+ };
1469
+ export declare type CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum = (typeof CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum)[keyof typeof CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum];
1470
+ /**
1471
+ *
1472
+ * @export
1473
+ * @interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
1474
+ */
1475
+ export interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadata {
1476
+ /**
1477
+ *
1478
+ * @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer}
1479
+ * @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
1480
+ */
1481
+ customer: CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer;
1482
+ /**
1483
+ *
1484
+ * @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer}
1485
+ * @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
1486
+ */
1487
+ payment_method: CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer;
1488
+ }
1489
+ /**
1490
+ *
1491
+ * @export
1492
+ * @interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer
1493
+ */
1494
+ export interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer {
1495
+ /**
1496
+ *
1497
+ * @type {string}
1498
+ * @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer
1499
+ */
1500
+ id: string;
1501
+ }
1370
1502
  /**
1371
1503
  *
1372
1504
  * @export
@@ -7869,6 +8001,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
7869
8001
  * @throws {RequiredError}
7870
8002
  */
7871
8003
  createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8004
+ /**
8005
+ * Create a Payment Method for a user
8006
+ * @param {string} paymentUserId Payment User ID
8007
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
8008
+ * @param {*} [options] Override http request option.
8009
+ * @throws {RequiredError}
8010
+ */
8011
+ createPaymentMethod: (paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7872
8012
  /**
7873
8013
  * Create a scheduled payout
7874
8014
  * @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.
@@ -8053,6 +8193,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
8053
8193
  * @throws {RequiredError}
8054
8194
  */
8055
8195
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
8196
+ /**
8197
+ * Create a Payment Method for a user
8198
+ * @param {string} paymentUserId Payment User ID
8199
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
8200
+ * @param {*} [options] Override http request option.
8201
+ * @throws {RequiredError}
8202
+ */
8203
+ createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodResponse>>;
8056
8204
  /**
8057
8205
  * Create a scheduled payout
8058
8206
  * @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.
@@ -8237,6 +8385,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
8237
8385
  * @throws {RequiredError}
8238
8386
  */
8239
8387
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
8388
+ /**
8389
+ * Create a Payment Method for a user
8390
+ * @param {string} paymentUserId Payment User ID
8391
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
8392
+ * @param {*} [options] Override http request option.
8393
+ * @throws {RequiredError}
8394
+ */
8395
+ createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: any): AxiosPromise<PaymentMethodResponse>;
8240
8396
  /**
8241
8397
  * Create a scheduled payout
8242
8398
  * @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.
@@ -8432,6 +8588,15 @@ export interface DefaultApiInterface {
8432
8588
  * @memberof DefaultApiInterface
8433
8589
  */
8434
8590
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
8591
+ /**
8592
+ * Create a Payment Method for a user
8593
+ * @param {string} paymentUserId Payment User ID
8594
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
8595
+ * @param {*} [options] Override http request option.
8596
+ * @throws {RequiredError}
8597
+ * @memberof DefaultApiInterface
8598
+ */
8599
+ createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodResponse>;
8435
8600
  /**
8436
8601
  * Create a scheduled payout
8437
8602
  * @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.
@@ -8641,6 +8806,15 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
8641
8806
  * @memberof DefaultApi
8642
8807
  */
8643
8808
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
8809
+ /**
8810
+ * Create a Payment Method for a user
8811
+ * @param {string} paymentUserId Payment User ID
8812
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
8813
+ * @param {*} [options] Override http request option.
8814
+ * @throws {RequiredError}
8815
+ * @memberof DefaultApi
8816
+ */
8817
+ createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodResponse>>;
8644
8818
  /**
8645
8819
  * Create a scheduled payout
8646
8820
  * @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.
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.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = 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.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = 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.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CardFvLinkResponseStatusEnum = 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.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = 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.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = 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.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum = exports.CreatePaymentMethodRequestCardStatusEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CardFvLinkResponseStatusEnum = 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
@@ -104,6 +104,15 @@ exports.CreatePaymentLinkRequestModeEnum = {
104
104
  Payment: 'PAYMENT',
105
105
  Setup: 'SETUP',
106
106
  };
107
+ exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = {
108
+ Card: 'CARD',
109
+ };
110
+ exports.CreatePaymentMethodRequestCardStatusEnum = {
111
+ Succeeded: 'SUCCEEDED',
112
+ };
113
+ exports.CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum = {
114
+ Stripe: 'STRIPE',
115
+ };
107
116
  exports.CreatePaymentUserRequestUserTypeEnum = {
108
117
  Individual: 'INDIVIDUAL',
109
118
  Business: 'BUSINESS',
@@ -2198,6 +2207,41 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2198
2207
  options: localVarRequestOptions,
2199
2208
  };
2200
2209
  }),
2210
+ /**
2211
+ * Create a Payment Method for a user
2212
+ * @param {string} paymentUserId Payment User ID
2213
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
2214
+ * @param {*} [options] Override http request option.
2215
+ * @throws {RequiredError}
2216
+ */
2217
+ createPaymentMethod: (paymentUserId, createPaymentMethodRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2218
+ // verify required parameter 'paymentUserId' is not null or undefined
2219
+ common_1.assertParamExists('createPaymentMethod', 'paymentUserId', paymentUserId);
2220
+ // verify required parameter 'createPaymentMethodRequest' is not null or undefined
2221
+ common_1.assertParamExists('createPaymentMethod', 'createPaymentMethodRequest', createPaymentMethodRequest);
2222
+ const localVarPath = `/payment_users/{paymentUserId}/payment_methods`.replace(`{${'paymentUserId'}}`, encodeURIComponent(String(paymentUserId)));
2223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2224
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2225
+ let baseOptions;
2226
+ if (configuration) {
2227
+ baseOptions = configuration.baseOptions;
2228
+ }
2229
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2230
+ const localVarHeaderParameter = {};
2231
+ const localVarQueryParameter = {};
2232
+ // authentication Oauth2 required
2233
+ // oauth required
2234
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2235
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2236
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2239
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentMethodRequest, localVarRequestOptions, configuration);
2240
+ return {
2241
+ url: common_1.toPathString(localVarUrlObj),
2242
+ options: localVarRequestOptions,
2243
+ };
2244
+ }),
2201
2245
  /**
2202
2246
  * Create a scheduled payout
2203
2247
  * @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.
@@ -2814,6 +2858,19 @@ exports.DefaultApiFp = function (configuration) {
2814
2858
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2815
2859
  });
2816
2860
  },
2861
+ /**
2862
+ * Create a Payment Method for a user
2863
+ * @param {string} paymentUserId Payment User ID
2864
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
2865
+ * @param {*} [options] Override http request option.
2866
+ * @throws {RequiredError}
2867
+ */
2868
+ createPaymentMethod(paymentUserId, createPaymentMethodRequest, options) {
2869
+ return __awaiter(this, void 0, void 0, function* () {
2870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentMethod(paymentUserId, createPaymentMethodRequest, options);
2871
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2872
+ });
2873
+ },
2817
2874
  /**
2818
2875
  * Create a scheduled payout
2819
2876
  * @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.
@@ -3094,6 +3151,18 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3094
3151
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
3095
3152
  .then((request) => request(axios, basePath));
3096
3153
  },
3154
+ /**
3155
+ * Create a Payment Method for a user
3156
+ * @param {string} paymentUserId Payment User ID
3157
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
3158
+ * @param {*} [options] Override http request option.
3159
+ * @throws {RequiredError}
3160
+ */
3161
+ createPaymentMethod(paymentUserId, createPaymentMethodRequest, options) {
3162
+ return localVarFp
3163
+ .createPaymentMethod(paymentUserId, createPaymentMethodRequest, options)
3164
+ .then((request) => request(axios, basePath));
3165
+ },
3097
3166
  /**
3098
3167
  * Create a scheduled payout
3099
3168
  * @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.
@@ -3367,6 +3436,19 @@ class DefaultApi extends base_1.BaseAPI {
3367
3436
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
3368
3437
  .then((request) => request(this.axios, this.basePath));
3369
3438
  }
3439
+ /**
3440
+ * Create a Payment Method for a user
3441
+ * @param {string} paymentUserId Payment User ID
3442
+ * @param {CreatePaymentMethodRequest} createPaymentMethodRequest
3443
+ * @param {*} [options] Override http request option.
3444
+ * @throws {RequiredError}
3445
+ * @memberof DefaultApi
3446
+ */
3447
+ createPaymentMethod(paymentUserId, createPaymentMethodRequest, options) {
3448
+ return exports.DefaultApiFp(this.configuration)
3449
+ .createPaymentMethod(paymentUserId, createPaymentMethodRequest, options)
3450
+ .then((request) => request(this.axios, this.basePath));
3451
+ }
3370
3452
  /**
3371
3453
  * Create a scheduled payout
3372
3454
  * @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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [