@finverse/sdk-typescript 0.0.330 → 0.0.332
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 +121 -0
- package/dist/api.js +97 -2
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -6720,6 +6720,22 @@ export interface PaymentMethodOverview {
|
|
|
6720
6720
|
*/
|
|
6721
6721
|
supported_currencies?: Array<string>;
|
|
6722
6722
|
}
|
|
6723
|
+
/**
|
|
6724
|
+
* The payment method provider.
|
|
6725
|
+
* @export
|
|
6726
|
+
* @enum {string}
|
|
6727
|
+
*/
|
|
6728
|
+
export declare const PaymentMethodProvider: {
|
|
6729
|
+
readonly HkEdda: "HK_EDDA";
|
|
6730
|
+
readonly SgEgiro: "SG_EGIRO";
|
|
6731
|
+
readonly Stripe: "STRIPE";
|
|
6732
|
+
readonly Cybersource: "CYBERSOURCE";
|
|
6733
|
+
readonly Adyen: "ADYEN";
|
|
6734
|
+
readonly Kcp: "KCP";
|
|
6735
|
+
readonly HkFps: "HK_FPS";
|
|
6736
|
+
readonly SgPaynow: "SG_PAYNOW";
|
|
6737
|
+
};
|
|
6738
|
+
export type PaymentMethodProvider = (typeof PaymentMethodProvider)[keyof typeof PaymentMethodProvider];
|
|
6723
6739
|
/**
|
|
6724
6740
|
*
|
|
6725
6741
|
* @export
|
|
@@ -8097,6 +8113,74 @@ export interface RelinkRequest {
|
|
|
8097
8113
|
*/
|
|
8098
8114
|
consent?: boolean | null;
|
|
8099
8115
|
}
|
|
8116
|
+
/**
|
|
8117
|
+
*
|
|
8118
|
+
* @export
|
|
8119
|
+
* @interface SelectPaymentMethodRequest
|
|
8120
|
+
*/
|
|
8121
|
+
export interface SelectPaymentMethodRequest {
|
|
8122
|
+
/**
|
|
8123
|
+
* The payment account ID of the selected payment method
|
|
8124
|
+
* @type {string}
|
|
8125
|
+
* @memberof SelectPaymentMethodRequest
|
|
8126
|
+
*/
|
|
8127
|
+
payment_account_id: string;
|
|
8128
|
+
/**
|
|
8129
|
+
* The type of payment method to select
|
|
8130
|
+
* @type {string}
|
|
8131
|
+
* @memberof SelectPaymentMethodRequest
|
|
8132
|
+
*/
|
|
8133
|
+
payment_method_type: SelectPaymentMethodRequestPaymentMethodTypeEnum;
|
|
8134
|
+
/**
|
|
8135
|
+
*
|
|
8136
|
+
* @type {PaymentMethodProvider}
|
|
8137
|
+
* @memberof SelectPaymentMethodRequest
|
|
8138
|
+
*/
|
|
8139
|
+
payment_method_provider?: PaymentMethodProvider;
|
|
8140
|
+
/**
|
|
8141
|
+
*
|
|
8142
|
+
* @type {string}
|
|
8143
|
+
* @memberof SelectPaymentMethodRequest
|
|
8144
|
+
*/
|
|
8145
|
+
user_type?: SelectPaymentMethodRequestUserTypeEnum;
|
|
8146
|
+
/**
|
|
8147
|
+
* Whether the user is on mobile device (only makes a difference if payment_method_provider is KCP)
|
|
8148
|
+
* @type {boolean}
|
|
8149
|
+
* @memberof SelectPaymentMethodRequest
|
|
8150
|
+
*/
|
|
8151
|
+
is_mobile?: boolean;
|
|
8152
|
+
}
|
|
8153
|
+
export declare const SelectPaymentMethodRequestPaymentMethodTypeEnum: {
|
|
8154
|
+
readonly Mandate: "MANDATE";
|
|
8155
|
+
readonly Single: "SINGLE";
|
|
8156
|
+
readonly Card: "CARD";
|
|
8157
|
+
readonly Manual: "MANUAL";
|
|
8158
|
+
};
|
|
8159
|
+
export type SelectPaymentMethodRequestPaymentMethodTypeEnum = (typeof SelectPaymentMethodRequestPaymentMethodTypeEnum)[keyof typeof SelectPaymentMethodRequestPaymentMethodTypeEnum];
|
|
8160
|
+
export declare const SelectPaymentMethodRequestUserTypeEnum: {
|
|
8161
|
+
readonly Individual: "INDIVIDUAL";
|
|
8162
|
+
readonly Business: "BUSINESS";
|
|
8163
|
+
};
|
|
8164
|
+
export type SelectPaymentMethodRequestUserTypeEnum = (typeof SelectPaymentMethodRequestUserTypeEnum)[keyof typeof SelectPaymentMethodRequestUserTypeEnum];
|
|
8165
|
+
/**
|
|
8166
|
+
*
|
|
8167
|
+
* @export
|
|
8168
|
+
* @interface SelectPaymentMethodResponse
|
|
8169
|
+
*/
|
|
8170
|
+
export interface SelectPaymentMethodResponse {
|
|
8171
|
+
/**
|
|
8172
|
+
* Token for the selected payment method
|
|
8173
|
+
* @type {string}
|
|
8174
|
+
* @memberof SelectPaymentMethodResponse
|
|
8175
|
+
*/
|
|
8176
|
+
token?: string;
|
|
8177
|
+
/**
|
|
8178
|
+
* URL to redirect to for making the card payment
|
|
8179
|
+
* @type {string}
|
|
8180
|
+
* @memberof SelectPaymentMethodResponse
|
|
8181
|
+
*/
|
|
8182
|
+
card_processor_redirect_uri?: string;
|
|
8183
|
+
}
|
|
8100
8184
|
/**
|
|
8101
8185
|
*
|
|
8102
8186
|
* @export
|
|
@@ -10158,6 +10242,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10158
10242
|
* @throws {RequiredError}
|
|
10159
10243
|
*/
|
|
10160
10244
|
refreshPaymentAttempt: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10245
|
+
/**
|
|
10246
|
+
* Select a payment method for payment link
|
|
10247
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10248
|
+
* @param {*} [options] Override http request option.
|
|
10249
|
+
* @throws {RequiredError}
|
|
10250
|
+
*/
|
|
10251
|
+
selectPaymentMethodPaymentLink: (selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10161
10252
|
/**
|
|
10162
10253
|
* Set autopay consent for payment user
|
|
10163
10254
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -10431,6 +10522,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
10431
10522
|
* @throws {RequiredError}
|
|
10432
10523
|
*/
|
|
10433
10524
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshPaymentAttemptResponse>>;
|
|
10525
|
+
/**
|
|
10526
|
+
* Select a payment method for payment link
|
|
10527
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10528
|
+
* @param {*} [options] Override http request option.
|
|
10529
|
+
* @throws {RequiredError}
|
|
10530
|
+
*/
|
|
10531
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SelectPaymentMethodResponse>>;
|
|
10434
10532
|
/**
|
|
10435
10533
|
* Set autopay consent for payment user
|
|
10436
10534
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -10704,6 +10802,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
10704
10802
|
* @throws {RequiredError}
|
|
10705
10803
|
*/
|
|
10706
10804
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<RefreshPaymentAttemptResponse>;
|
|
10805
|
+
/**
|
|
10806
|
+
* Select a payment method for payment link
|
|
10807
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10808
|
+
* @param {*} [options] Override http request option.
|
|
10809
|
+
* @throws {RequiredError}
|
|
10810
|
+
*/
|
|
10811
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SelectPaymentMethodResponse>;
|
|
10707
10812
|
/**
|
|
10708
10813
|
* Set autopay consent for payment user
|
|
10709
10814
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -11009,6 +11114,14 @@ export interface DefaultApiInterface {
|
|
|
11009
11114
|
* @memberof DefaultApiInterface
|
|
11010
11115
|
*/
|
|
11011
11116
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<RefreshPaymentAttemptResponse>;
|
|
11117
|
+
/**
|
|
11118
|
+
* Select a payment method for payment link
|
|
11119
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
11120
|
+
* @param {*} [options] Override http request option.
|
|
11121
|
+
* @throws {RequiredError}
|
|
11122
|
+
* @memberof DefaultApiInterface
|
|
11123
|
+
*/
|
|
11124
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SelectPaymentMethodResponse>;
|
|
11012
11125
|
/**
|
|
11013
11126
|
* Set autopay consent for payment user
|
|
11014
11127
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -11317,6 +11430,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
11317
11430
|
* @memberof DefaultApi
|
|
11318
11431
|
*/
|
|
11319
11432
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RefreshPaymentAttemptResponse, any, {}>>;
|
|
11433
|
+
/**
|
|
11434
|
+
* Select a payment method for payment link
|
|
11435
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
11436
|
+
* @param {*} [options] Override http request option.
|
|
11437
|
+
* @throws {RequiredError}
|
|
11438
|
+
* @memberof DefaultApi
|
|
11439
|
+
*/
|
|
11440
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SelectPaymentMethodResponse, any, {}>>;
|
|
11320
11441
|
/**
|
|
11321
11442
|
* Set autopay consent for payment user
|
|
11322
11443
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
package/dist/api.js
CHANGED
|
@@ -23,8 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = 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.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardDetailsFundingEnum = exports.FVCardStatusEnum = exports.DisputeResponseDisputeStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestStatusEnum = exports.CompleteKcpPaymentRequestCardPointUseEnum = exports.CardFvLinkResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AutopayEnrollmentConfigurationEnrollmentPrefillValueEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = void 0;
|
|
26
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListInstitutionsInstitutionTypeEnum = exports.GetLineItemsForDisplayPaymentTypeEnum = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsResponsePeriodEnum = exports.TransactionLimitsRequestPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.SelectPaymentMethodRequestUserTypeEnum = exports.SelectPaymentMethodRequestPaymentMethodTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutSnapshotResponseTypeEnum = exports.PayoutSnapshotResponseStatusEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsRequestPaymentMethodTypesEnum = exports.PaymentSetupOptionsRequestFuturePaymentsEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodProvider = exports.PaymentMethodIntegrationMetadataAdyenMetadataRecurringProcessingModelEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseTypeEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = void 0;
|
|
27
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -368,6 +368,21 @@ exports.PaymentMethodIntegrationMetadataAdyenMetadataRecurringProcessingModelEnu
|
|
|
368
368
|
UnscheduledCardOnFile: 'UnscheduledCardOnFile',
|
|
369
369
|
Subscription: 'Subscription',
|
|
370
370
|
};
|
|
371
|
+
/**
|
|
372
|
+
* The payment method provider.
|
|
373
|
+
* @export
|
|
374
|
+
* @enum {string}
|
|
375
|
+
*/
|
|
376
|
+
exports.PaymentMethodProvider = {
|
|
377
|
+
HkEdda: 'HK_EDDA',
|
|
378
|
+
SgEgiro: 'SG_EGIRO',
|
|
379
|
+
Stripe: 'STRIPE',
|
|
380
|
+
Cybersource: 'CYBERSOURCE',
|
|
381
|
+
Adyen: 'ADYEN',
|
|
382
|
+
Kcp: 'KCP',
|
|
383
|
+
HkFps: 'HK_FPS',
|
|
384
|
+
SgPaynow: 'SG_PAYNOW',
|
|
385
|
+
};
|
|
371
386
|
exports.PaymentResponseTypeEnum = {
|
|
372
387
|
Mandate: 'MANDATE',
|
|
373
388
|
Single: 'SINGLE',
|
|
@@ -455,6 +470,16 @@ exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = {
|
|
|
455
470
|
AutoRedirect: 'auto_redirect',
|
|
456
471
|
Standalone: 'standalone',
|
|
457
472
|
};
|
|
473
|
+
exports.SelectPaymentMethodRequestPaymentMethodTypeEnum = {
|
|
474
|
+
Mandate: 'MANDATE',
|
|
475
|
+
Single: 'SINGLE',
|
|
476
|
+
Card: 'CARD',
|
|
477
|
+
Manual: 'MANUAL',
|
|
478
|
+
};
|
|
479
|
+
exports.SelectPaymentMethodRequestUserTypeEnum = {
|
|
480
|
+
Individual: 'INDIVIDUAL',
|
|
481
|
+
Business: 'BUSINESS',
|
|
482
|
+
};
|
|
458
483
|
exports.SenderDetailDetailsTypeEnum = {
|
|
459
484
|
HkId: 'HK_ID',
|
|
460
485
|
Passport: 'PASSPORT',
|
|
@@ -3510,6 +3535,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
3510
3535
|
options: localVarRequestOptions,
|
|
3511
3536
|
};
|
|
3512
3537
|
}),
|
|
3538
|
+
/**
|
|
3539
|
+
* Select a payment method for payment link
|
|
3540
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
3541
|
+
* @param {*} [options] Override http request option.
|
|
3542
|
+
* @throws {RequiredError}
|
|
3543
|
+
*/
|
|
3544
|
+
selectPaymentMethodPaymentLink: (selectPaymentMethodRequest_1, ...args_1) => __awaiter(this, [selectPaymentMethodRequest_1, ...args_1], void 0, function* (selectPaymentMethodRequest, options = {}) {
|
|
3545
|
+
// verify required parameter 'selectPaymentMethodRequest' is not null or undefined
|
|
3546
|
+
(0, common_1.assertParamExists)('selectPaymentMethodPaymentLink', 'selectPaymentMethodRequest', selectPaymentMethodRequest);
|
|
3547
|
+
const localVarPath = `/payment_links/fvlink/select_payment_method`;
|
|
3548
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3549
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3550
|
+
let baseOptions;
|
|
3551
|
+
if (configuration) {
|
|
3552
|
+
baseOptions = configuration.baseOptions;
|
|
3553
|
+
}
|
|
3554
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3555
|
+
const localVarHeaderParameter = {};
|
|
3556
|
+
const localVarQueryParameter = {};
|
|
3557
|
+
// authentication Oauth2 required
|
|
3558
|
+
// oauth required
|
|
3559
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3560
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3561
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3563
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3564
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(selectPaymentMethodRequest, localVarRequestOptions, configuration);
|
|
3565
|
+
return {
|
|
3566
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3567
|
+
options: localVarRequestOptions,
|
|
3568
|
+
};
|
|
3569
|
+
}),
|
|
3513
3570
|
/**
|
|
3514
3571
|
* Set autopay consent for payment user
|
|
3515
3572
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4087,6 +4144,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
4087
4144
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4088
4145
|
});
|
|
4089
4146
|
},
|
|
4147
|
+
/**
|
|
4148
|
+
* Select a payment method for payment link
|
|
4149
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4150
|
+
* @param {*} [options] Override http request option.
|
|
4151
|
+
* @throws {RequiredError}
|
|
4152
|
+
*/
|
|
4153
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
4154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4155
|
+
var _a, _b, _c;
|
|
4156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options);
|
|
4157
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4158
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.selectPaymentMethodPaymentLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4159
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4160
|
+
});
|
|
4161
|
+
},
|
|
4090
4162
|
/**
|
|
4091
4163
|
* Set autopay consent for payment user
|
|
4092
4164
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4470,6 +4542,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4470
4542
|
refreshPaymentAttempt(options) {
|
|
4471
4543
|
return localVarFp.refreshPaymentAttempt(options).then((request) => request(axios, basePath));
|
|
4472
4544
|
},
|
|
4545
|
+
/**
|
|
4546
|
+
* Select a payment method for payment link
|
|
4547
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4548
|
+
* @param {*} [options] Override http request option.
|
|
4549
|
+
* @throws {RequiredError}
|
|
4550
|
+
*/
|
|
4551
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
4552
|
+
return localVarFp
|
|
4553
|
+
.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options)
|
|
4554
|
+
.then((request) => request(axios, basePath));
|
|
4555
|
+
},
|
|
4473
4556
|
/**
|
|
4474
4557
|
* Set autopay consent for payment user
|
|
4475
4558
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4910,6 +4993,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4910
4993
|
.refreshPaymentAttempt(options)
|
|
4911
4994
|
.then((request) => request(this.axios, this.basePath));
|
|
4912
4995
|
}
|
|
4996
|
+
/**
|
|
4997
|
+
* Select a payment method for payment link
|
|
4998
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4999
|
+
* @param {*} [options] Override http request option.
|
|
5000
|
+
* @throws {RequiredError}
|
|
5001
|
+
* @memberof DefaultApi
|
|
5002
|
+
*/
|
|
5003
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
5004
|
+
return (0, exports.DefaultApiFp)(this.configuration)
|
|
5005
|
+
.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options)
|
|
5006
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5007
|
+
}
|
|
4913
5008
|
/**
|
|
4914
5009
|
* Set autopay consent for payment user
|
|
4915
5010
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.332",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@types/mocha": "^10.0.10",
|
|
32
32
|
"@types/node": "12.11.5 - 12.20.42",
|
|
33
33
|
"axios-mock-adapter": "^1.21.2",
|
|
34
|
-
"chai": "^6.2.
|
|
34
|
+
"chai": "^6.2.1",
|
|
35
35
|
"mocha": "^11.7.5",
|
|
36
36
|
"ts-node": "^10.9.2",
|
|
37
37
|
"typescript": "^4.0 || ^5.0"
|