@finverse/sdk-typescript 0.0.240 → 0.0.242
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 +180 -0
- package/dist/api.js +83 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1367,6 +1367,132 @@ 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
|
+
export declare const CreatePaymentMethodRequestPaymentMethodTypeEnum: {
|
|
1396
|
+
readonly Card: "CARD";
|
|
1397
|
+
};
|
|
1398
|
+
export declare type CreatePaymentMethodRequestPaymentMethodTypeEnum = (typeof CreatePaymentMethodRequestPaymentMethodTypeEnum)[keyof typeof CreatePaymentMethodRequestPaymentMethodTypeEnum];
|
|
1399
|
+
/**
|
|
1400
|
+
*
|
|
1401
|
+
* @export
|
|
1402
|
+
* @interface CreatePaymentMethodRequestCard
|
|
1403
|
+
*/
|
|
1404
|
+
export interface CreatePaymentMethodRequestCard {
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* @type {CreatePaymentMethodRequestCardCardDetails}
|
|
1408
|
+
* @memberof CreatePaymentMethodRequestCard
|
|
1409
|
+
*/
|
|
1410
|
+
card_details: CreatePaymentMethodRequestCardCardDetails;
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof CreatePaymentMethodRequestCard
|
|
1415
|
+
*/
|
|
1416
|
+
status: CreatePaymentMethodRequestCardStatusEnum;
|
|
1417
|
+
}
|
|
1418
|
+
export declare const CreatePaymentMethodRequestCardStatusEnum: {
|
|
1419
|
+
readonly Succeeded: "SUCCEEDED";
|
|
1420
|
+
};
|
|
1421
|
+
export declare type CreatePaymentMethodRequestCardStatusEnum = (typeof CreatePaymentMethodRequestCardStatusEnum)[keyof typeof CreatePaymentMethodRequestCardStatusEnum];
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @export
|
|
1425
|
+
* @interface CreatePaymentMethodRequestCardCardDetails
|
|
1426
|
+
*/
|
|
1427
|
+
export interface CreatePaymentMethodRequestCardCardDetails {
|
|
1428
|
+
/**
|
|
1429
|
+
*
|
|
1430
|
+
* @type {string}
|
|
1431
|
+
* @memberof CreatePaymentMethodRequestCardCardDetails
|
|
1432
|
+
*/
|
|
1433
|
+
brand: string;
|
|
1434
|
+
/**
|
|
1435
|
+
*
|
|
1436
|
+
* @type {string}
|
|
1437
|
+
* @memberof CreatePaymentMethodRequestCardCardDetails
|
|
1438
|
+
*/
|
|
1439
|
+
last4: string;
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
*
|
|
1443
|
+
* @export
|
|
1444
|
+
* @interface CreatePaymentMethodRequestIntegrationMetadata
|
|
1445
|
+
*/
|
|
1446
|
+
export interface CreatePaymentMethodRequestIntegrationMetadata {
|
|
1447
|
+
/**
|
|
1448
|
+
*
|
|
1449
|
+
* @type {string}
|
|
1450
|
+
* @memberof CreatePaymentMethodRequestIntegrationMetadata
|
|
1451
|
+
*/
|
|
1452
|
+
integration_id: CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum;
|
|
1453
|
+
/**
|
|
1454
|
+
*
|
|
1455
|
+
* @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadata}
|
|
1456
|
+
* @memberof CreatePaymentMethodRequestIntegrationMetadata
|
|
1457
|
+
*/
|
|
1458
|
+
stripe_metadata: CreatePaymentMethodRequestIntegrationMetadataStripeMetadata;
|
|
1459
|
+
}
|
|
1460
|
+
export declare const CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum: {
|
|
1461
|
+
readonly Stripe: "STRIPE";
|
|
1462
|
+
};
|
|
1463
|
+
export declare type CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum = (typeof CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum)[keyof typeof CreatePaymentMethodRequestIntegrationMetadataIntegrationIdEnum];
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @export
|
|
1467
|
+
* @interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
|
|
1468
|
+
*/
|
|
1469
|
+
export interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadata {
|
|
1470
|
+
/**
|
|
1471
|
+
*
|
|
1472
|
+
* @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer}
|
|
1473
|
+
* @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
|
|
1474
|
+
*/
|
|
1475
|
+
customer: CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer;
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @type {CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer}
|
|
1479
|
+
* @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadata
|
|
1480
|
+
*/
|
|
1481
|
+
payment_method: CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @export
|
|
1486
|
+
* @interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer
|
|
1487
|
+
*/
|
|
1488
|
+
export interface CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer {
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @type {string}
|
|
1492
|
+
* @memberof CreatePaymentMethodRequestIntegrationMetadataStripeMetadataCustomer
|
|
1493
|
+
*/
|
|
1494
|
+
id: string;
|
|
1495
|
+
}
|
|
1370
1496
|
/**
|
|
1371
1497
|
*
|
|
1372
1498
|
* @export
|
|
@@ -1450,6 +1576,18 @@ export interface CreatePaymentUserRequest {
|
|
|
1450
1576
|
metadata?: {
|
|
1451
1577
|
[key: string]: string;
|
|
1452
1578
|
};
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @type {boolean}
|
|
1582
|
+
* @memberof CreatePaymentUserRequest
|
|
1583
|
+
*/
|
|
1584
|
+
autopay_consent?: boolean;
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @type {IntegrationMetadataRequest}
|
|
1588
|
+
* @memberof CreatePaymentUserRequest
|
|
1589
|
+
*/
|
|
1590
|
+
integration_metadata?: IntegrationMetadataRequest;
|
|
1453
1591
|
}
|
|
1454
1592
|
export declare const CreatePaymentUserRequestUserTypeEnum: {
|
|
1455
1593
|
readonly Individual: "INDIVIDUAL";
|
|
@@ -7857,6 +7995,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
7857
7995
|
* @throws {RequiredError}
|
|
7858
7996
|
*/
|
|
7859
7997
|
createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7998
|
+
/**
|
|
7999
|
+
* Create a Payment Method for a user
|
|
8000
|
+
* @param {string} paymentUserId Payment User ID
|
|
8001
|
+
* @param {CreatePaymentMethodRequest} createPaymentMethodRequest
|
|
8002
|
+
* @param {*} [options] Override http request option.
|
|
8003
|
+
* @throws {RequiredError}
|
|
8004
|
+
*/
|
|
8005
|
+
createPaymentMethod: (paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7860
8006
|
/**
|
|
7861
8007
|
* Create a scheduled payout
|
|
7862
8008
|
* @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.
|
|
@@ -8041,6 +8187,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8041
8187
|
* @throws {RequiredError}
|
|
8042
8188
|
*/
|
|
8043
8189
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
|
|
8190
|
+
/**
|
|
8191
|
+
* Create a Payment Method for a user
|
|
8192
|
+
* @param {string} paymentUserId Payment User ID
|
|
8193
|
+
* @param {CreatePaymentMethodRequest} createPaymentMethodRequest
|
|
8194
|
+
* @param {*} [options] Override http request option.
|
|
8195
|
+
* @throws {RequiredError}
|
|
8196
|
+
*/
|
|
8197
|
+
createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodResponse>>;
|
|
8044
8198
|
/**
|
|
8045
8199
|
* Create a scheduled payout
|
|
8046
8200
|
* @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.
|
|
@@ -8225,6 +8379,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8225
8379
|
* @throws {RequiredError}
|
|
8226
8380
|
*/
|
|
8227
8381
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
8382
|
+
/**
|
|
8383
|
+
* Create a Payment Method for a user
|
|
8384
|
+
* @param {string} paymentUserId Payment User ID
|
|
8385
|
+
* @param {CreatePaymentMethodRequest} createPaymentMethodRequest
|
|
8386
|
+
* @param {*} [options] Override http request option.
|
|
8387
|
+
* @throws {RequiredError}
|
|
8388
|
+
*/
|
|
8389
|
+
createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: any): AxiosPromise<PaymentMethodResponse>;
|
|
8228
8390
|
/**
|
|
8229
8391
|
* Create a scheduled payout
|
|
8230
8392
|
* @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.
|
|
@@ -8420,6 +8582,15 @@ export interface DefaultApiInterface {
|
|
|
8420
8582
|
* @memberof DefaultApiInterface
|
|
8421
8583
|
*/
|
|
8422
8584
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
|
|
8585
|
+
/**
|
|
8586
|
+
* Create a Payment Method for a user
|
|
8587
|
+
* @param {string} paymentUserId Payment User ID
|
|
8588
|
+
* @param {CreatePaymentMethodRequest} createPaymentMethodRequest
|
|
8589
|
+
* @param {*} [options] Override http request option.
|
|
8590
|
+
* @throws {RequiredError}
|
|
8591
|
+
* @memberof DefaultApiInterface
|
|
8592
|
+
*/
|
|
8593
|
+
createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodResponse>;
|
|
8423
8594
|
/**
|
|
8424
8595
|
* Create a scheduled payout
|
|
8425
8596
|
* @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.
|
|
@@ -8629,6 +8800,15 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
8629
8800
|
* @memberof DefaultApi
|
|
8630
8801
|
*/
|
|
8631
8802
|
createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
|
|
8803
|
+
/**
|
|
8804
|
+
* Create a Payment Method for a user
|
|
8805
|
+
* @param {string} paymentUserId Payment User ID
|
|
8806
|
+
* @param {CreatePaymentMethodRequest} createPaymentMethodRequest
|
|
8807
|
+
* @param {*} [options] Override http request option.
|
|
8808
|
+
* @throws {RequiredError}
|
|
8809
|
+
* @memberof DefaultApi
|
|
8810
|
+
*/
|
|
8811
|
+
createPaymentMethod(paymentUserId: string, createPaymentMethodRequest: CreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentMethodResponse>>;
|
|
8632
8812
|
/**
|
|
8633
8813
|
* Create a scheduled payout
|
|
8634
8814
|
* @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.
|