@finverse/sdk-typescript 0.0.330 → 0.0.331
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 +108 -0
- package/dist/api.js +91 -2
- package/package.json +1 -1
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,61 @@ 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
|
+
*
|
|
8130
|
+
* @type {PaymentMethodProvider}
|
|
8131
|
+
* @memberof SelectPaymentMethodRequest
|
|
8132
|
+
*/
|
|
8133
|
+
payment_method_provider?: PaymentMethodProvider;
|
|
8134
|
+
/**
|
|
8135
|
+
*
|
|
8136
|
+
* @type {string}
|
|
8137
|
+
* @memberof SelectPaymentMethodRequest
|
|
8138
|
+
*/
|
|
8139
|
+
user_type?: SelectPaymentMethodRequestUserTypeEnum;
|
|
8140
|
+
/**
|
|
8141
|
+
* Whether the user is on mobile device (only makes a difference if payment_method_provider is KCP)
|
|
8142
|
+
* @type {boolean}
|
|
8143
|
+
* @memberof SelectPaymentMethodRequest
|
|
8144
|
+
*/
|
|
8145
|
+
is_mobile?: boolean;
|
|
8146
|
+
}
|
|
8147
|
+
export declare const SelectPaymentMethodRequestUserTypeEnum: {
|
|
8148
|
+
readonly Individual: "INDIVIDUAL";
|
|
8149
|
+
readonly Business: "BUSINESS";
|
|
8150
|
+
};
|
|
8151
|
+
export type SelectPaymentMethodRequestUserTypeEnum = (typeof SelectPaymentMethodRequestUserTypeEnum)[keyof typeof SelectPaymentMethodRequestUserTypeEnum];
|
|
8152
|
+
/**
|
|
8153
|
+
*
|
|
8154
|
+
* @export
|
|
8155
|
+
* @interface SelectPaymentMethodResponse
|
|
8156
|
+
*/
|
|
8157
|
+
export interface SelectPaymentMethodResponse {
|
|
8158
|
+
/**
|
|
8159
|
+
* Token for the selected payment method
|
|
8160
|
+
* @type {string}
|
|
8161
|
+
* @memberof SelectPaymentMethodResponse
|
|
8162
|
+
*/
|
|
8163
|
+
token?: string;
|
|
8164
|
+
/**
|
|
8165
|
+
* URL to redirect to for making the card payment
|
|
8166
|
+
* @type {string}
|
|
8167
|
+
* @memberof SelectPaymentMethodResponse
|
|
8168
|
+
*/
|
|
8169
|
+
card_processor_redirect_uri?: string;
|
|
8170
|
+
}
|
|
8100
8171
|
/**
|
|
8101
8172
|
*
|
|
8102
8173
|
* @export
|
|
@@ -10158,6 +10229,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10158
10229
|
* @throws {RequiredError}
|
|
10159
10230
|
*/
|
|
10160
10231
|
refreshPaymentAttempt: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10232
|
+
/**
|
|
10233
|
+
* Select a payment method for payment link
|
|
10234
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10235
|
+
* @param {*} [options] Override http request option.
|
|
10236
|
+
* @throws {RequiredError}
|
|
10237
|
+
*/
|
|
10238
|
+
selectPaymentMethodPaymentLink: (selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10161
10239
|
/**
|
|
10162
10240
|
* Set autopay consent for payment user
|
|
10163
10241
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -10431,6 +10509,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
10431
10509
|
* @throws {RequiredError}
|
|
10432
10510
|
*/
|
|
10433
10511
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshPaymentAttemptResponse>>;
|
|
10512
|
+
/**
|
|
10513
|
+
* Select a payment method for payment link
|
|
10514
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10515
|
+
* @param {*} [options] Override http request option.
|
|
10516
|
+
* @throws {RequiredError}
|
|
10517
|
+
*/
|
|
10518
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SelectPaymentMethodResponse>>;
|
|
10434
10519
|
/**
|
|
10435
10520
|
* Set autopay consent for payment user
|
|
10436
10521
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -10704,6 +10789,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
10704
10789
|
* @throws {RequiredError}
|
|
10705
10790
|
*/
|
|
10706
10791
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<RefreshPaymentAttemptResponse>;
|
|
10792
|
+
/**
|
|
10793
|
+
* Select a payment method for payment link
|
|
10794
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
10795
|
+
* @param {*} [options] Override http request option.
|
|
10796
|
+
* @throws {RequiredError}
|
|
10797
|
+
*/
|
|
10798
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SelectPaymentMethodResponse>;
|
|
10707
10799
|
/**
|
|
10708
10800
|
* Set autopay consent for payment user
|
|
10709
10801
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -11009,6 +11101,14 @@ export interface DefaultApiInterface {
|
|
|
11009
11101
|
* @memberof DefaultApiInterface
|
|
11010
11102
|
*/
|
|
11011
11103
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): AxiosPromise<RefreshPaymentAttemptResponse>;
|
|
11104
|
+
/**
|
|
11105
|
+
* Select a payment method for payment link
|
|
11106
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
11107
|
+
* @param {*} [options] Override http request option.
|
|
11108
|
+
* @throws {RequiredError}
|
|
11109
|
+
* @memberof DefaultApiInterface
|
|
11110
|
+
*/
|
|
11111
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SelectPaymentMethodResponse>;
|
|
11012
11112
|
/**
|
|
11013
11113
|
* Set autopay consent for payment user
|
|
11014
11114
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -11317,6 +11417,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
11317
11417
|
* @memberof DefaultApi
|
|
11318
11418
|
*/
|
|
11319
11419
|
refreshPaymentAttempt(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RefreshPaymentAttemptResponse, any, {}>>;
|
|
11420
|
+
/**
|
|
11421
|
+
* Select a payment method for payment link
|
|
11422
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
11423
|
+
* @param {*} [options] Override http request option.
|
|
11424
|
+
* @throws {RequiredError}
|
|
11425
|
+
* @memberof DefaultApi
|
|
11426
|
+
*/
|
|
11427
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest: SelectPaymentMethodRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SelectPaymentMethodResponse, any, {}>>;
|
|
11320
11428
|
/**
|
|
11321
11429
|
* Set autopay consent for payment user
|
|
11322
11430
|
* @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.ListDetokenizedMandatesStatusesEnum = 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.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 = 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,10 @@ exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = {
|
|
|
455
470
|
AutoRedirect: 'auto_redirect',
|
|
456
471
|
Standalone: 'standalone',
|
|
457
472
|
};
|
|
473
|
+
exports.SelectPaymentMethodRequestUserTypeEnum = {
|
|
474
|
+
Individual: 'INDIVIDUAL',
|
|
475
|
+
Business: 'BUSINESS',
|
|
476
|
+
};
|
|
458
477
|
exports.SenderDetailDetailsTypeEnum = {
|
|
459
478
|
HkId: 'HK_ID',
|
|
460
479
|
Passport: 'PASSPORT',
|
|
@@ -3510,6 +3529,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
3510
3529
|
options: localVarRequestOptions,
|
|
3511
3530
|
};
|
|
3512
3531
|
}),
|
|
3532
|
+
/**
|
|
3533
|
+
* Select a payment method for payment link
|
|
3534
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
3535
|
+
* @param {*} [options] Override http request option.
|
|
3536
|
+
* @throws {RequiredError}
|
|
3537
|
+
*/
|
|
3538
|
+
selectPaymentMethodPaymentLink: (selectPaymentMethodRequest_1, ...args_1) => __awaiter(this, [selectPaymentMethodRequest_1, ...args_1], void 0, function* (selectPaymentMethodRequest, options = {}) {
|
|
3539
|
+
// verify required parameter 'selectPaymentMethodRequest' is not null or undefined
|
|
3540
|
+
(0, common_1.assertParamExists)('selectPaymentMethodPaymentLink', 'selectPaymentMethodRequest', selectPaymentMethodRequest);
|
|
3541
|
+
const localVarPath = `/payment_links/fvlink/select_payment_method`;
|
|
3542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3544
|
+
let baseOptions;
|
|
3545
|
+
if (configuration) {
|
|
3546
|
+
baseOptions = configuration.baseOptions;
|
|
3547
|
+
}
|
|
3548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3549
|
+
const localVarHeaderParameter = {};
|
|
3550
|
+
const localVarQueryParameter = {};
|
|
3551
|
+
// authentication Oauth2 required
|
|
3552
|
+
// oauth required
|
|
3553
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3554
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3558
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(selectPaymentMethodRequest, localVarRequestOptions, configuration);
|
|
3559
|
+
return {
|
|
3560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3561
|
+
options: localVarRequestOptions,
|
|
3562
|
+
};
|
|
3563
|
+
}),
|
|
3513
3564
|
/**
|
|
3514
3565
|
* Set autopay consent for payment user
|
|
3515
3566
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4087,6 +4138,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
4087
4138
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4088
4139
|
});
|
|
4089
4140
|
},
|
|
4141
|
+
/**
|
|
4142
|
+
* Select a payment method for payment link
|
|
4143
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
*/
|
|
4147
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
4148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4149
|
+
var _a, _b, _c;
|
|
4150
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options);
|
|
4151
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4152
|
+
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;
|
|
4153
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4154
|
+
});
|
|
4155
|
+
},
|
|
4090
4156
|
/**
|
|
4091
4157
|
* Set autopay consent for payment user
|
|
4092
4158
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4470,6 +4536,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4470
4536
|
refreshPaymentAttempt(options) {
|
|
4471
4537
|
return localVarFp.refreshPaymentAttempt(options).then((request) => request(axios, basePath));
|
|
4472
4538
|
},
|
|
4539
|
+
/**
|
|
4540
|
+
* Select a payment method for payment link
|
|
4541
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4542
|
+
* @param {*} [options] Override http request option.
|
|
4543
|
+
* @throws {RequiredError}
|
|
4544
|
+
*/
|
|
4545
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
4546
|
+
return localVarFp
|
|
4547
|
+
.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options)
|
|
4548
|
+
.then((request) => request(axios, basePath));
|
|
4549
|
+
},
|
|
4473
4550
|
/**
|
|
4474
4551
|
* Set autopay consent for payment user
|
|
4475
4552
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|
|
@@ -4910,6 +4987,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4910
4987
|
.refreshPaymentAttempt(options)
|
|
4911
4988
|
.then((request) => request(this.axios, this.basePath));
|
|
4912
4989
|
}
|
|
4990
|
+
/**
|
|
4991
|
+
* Select a payment method for payment link
|
|
4992
|
+
* @param {SelectPaymentMethodRequest} selectPaymentMethodRequest request body for selecting a payment method
|
|
4993
|
+
* @param {*} [options] Override http request option.
|
|
4994
|
+
* @throws {RequiredError}
|
|
4995
|
+
* @memberof DefaultApi
|
|
4996
|
+
*/
|
|
4997
|
+
selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options) {
|
|
4998
|
+
return (0, exports.DefaultApiFp)(this.configuration)
|
|
4999
|
+
.selectPaymentMethodPaymentLink(selectPaymentMethodRequest, options)
|
|
5000
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5001
|
+
}
|
|
4913
5002
|
/**
|
|
4914
5003
|
* Set autopay consent for payment user
|
|
4915
5004
|
* @param {SetAutopayConsentRequest} setAutopayConsentRequest
|