@finverse/sdk-typescript 0.0.316 → 0.0.317
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 +152 -0
- package/dist/api.js +77 -3
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -970,6 +970,121 @@ export interface ChangePaymentMethodFvLinkResponse {
|
|
|
970
970
|
*/
|
|
971
971
|
redirect_url?: string;
|
|
972
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @export
|
|
976
|
+
* @interface CompleteKcpPaymentRequest
|
|
977
|
+
*/
|
|
978
|
+
export interface CompleteKcpPaymentRequest {
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof CompleteKcpPaymentRequest
|
|
983
|
+
*/
|
|
984
|
+
lang?: string;
|
|
985
|
+
/**
|
|
986
|
+
* Result code, \"0000\" if the payment is successful
|
|
987
|
+
* @type {string}
|
|
988
|
+
* @memberof CompleteKcpPaymentRequest
|
|
989
|
+
*/
|
|
990
|
+
res_cd?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Result message
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof CompleteKcpPaymentRequest
|
|
995
|
+
*/
|
|
996
|
+
res_msg?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Buyer\'s mail
|
|
999
|
+
* @type {string}
|
|
1000
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1001
|
+
*/
|
|
1002
|
+
buyr_mail: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* Transaction code
|
|
1005
|
+
* @type {string}
|
|
1006
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1007
|
+
*/
|
|
1008
|
+
tran_cd: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* Trace number
|
|
1011
|
+
* @type {string}
|
|
1012
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1013
|
+
*/
|
|
1014
|
+
trace_no: string;
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1019
|
+
*/
|
|
1020
|
+
ret_pay_method?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1025
|
+
*/
|
|
1026
|
+
use_pay_method?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1031
|
+
*/
|
|
1032
|
+
enc_data: string;
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1037
|
+
*/
|
|
1038
|
+
enc_info: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* FV Payment ID
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1043
|
+
*/
|
|
1044
|
+
ordr_idxx: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* Card payment method
|
|
1047
|
+
* @type {string}
|
|
1048
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1049
|
+
*/
|
|
1050
|
+
card_pay_method: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* If card point is used
|
|
1053
|
+
* @type {string}
|
|
1054
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1055
|
+
*/
|
|
1056
|
+
card_point_use: CompleteKcpPaymentRequestCardPointUseEnum;
|
|
1057
|
+
/**
|
|
1058
|
+
* KCP select card code
|
|
1059
|
+
* @type {string}
|
|
1060
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1061
|
+
*/
|
|
1062
|
+
kcp_select_card_code: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* In the format of \"[FV Payment ID] | [Amount]\"
|
|
1065
|
+
* @type {string}
|
|
1066
|
+
* @memberof CompleteKcpPaymentRequest
|
|
1067
|
+
*/
|
|
1068
|
+
ordr_chk: string;
|
|
1069
|
+
}
|
|
1070
|
+
export declare const CompleteKcpPaymentRequestCardPointUseEnum: {
|
|
1071
|
+
readonly Y: "Y";
|
|
1072
|
+
readonly N: "N";
|
|
1073
|
+
};
|
|
1074
|
+
export type CompleteKcpPaymentRequestCardPointUseEnum = (typeof CompleteKcpPaymentRequestCardPointUseEnum)[keyof typeof CompleteKcpPaymentRequestCardPointUseEnum];
|
|
1075
|
+
/**
|
|
1076
|
+
*
|
|
1077
|
+
* @export
|
|
1078
|
+
* @interface CompleteKcpPaymentResponse
|
|
1079
|
+
*/
|
|
1080
|
+
export interface CompleteKcpPaymentResponse {
|
|
1081
|
+
/**
|
|
1082
|
+
* retryUrl from the token\'s claims
|
|
1083
|
+
* @type {string}
|
|
1084
|
+
* @memberof CompleteKcpPaymentResponse
|
|
1085
|
+
*/
|
|
1086
|
+
redirect: string;
|
|
1087
|
+
}
|
|
973
1088
|
/**
|
|
974
1089
|
*
|
|
975
1090
|
* @export
|
|
@@ -9673,6 +9788,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9673
9788
|
* @throws {RequiredError}
|
|
9674
9789
|
*/
|
|
9675
9790
|
changePaymentMethodPaymentLink: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9791
|
+
/**
|
|
9792
|
+
* Complete a KCP payment
|
|
9793
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
9794
|
+
* @param {*} [options] Override http request option.
|
|
9795
|
+
* @throws {RequiredError}
|
|
9796
|
+
*/
|
|
9797
|
+
completeKcpPayment: (completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9676
9798
|
/**
|
|
9677
9799
|
* Submit manual payment confirmation
|
|
9678
9800
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -9932,6 +10054,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
9932
10054
|
* @throws {RequiredError}
|
|
9933
10055
|
*/
|
|
9934
10056
|
changePaymentMethodPaymentLink(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePaymentMethodFvLinkResponse>>;
|
|
10057
|
+
/**
|
|
10058
|
+
* Complete a KCP payment
|
|
10059
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
10060
|
+
* @param {*} [options] Override http request option.
|
|
10061
|
+
* @throws {RequiredError}
|
|
10062
|
+
*/
|
|
10063
|
+
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteKcpPaymentResponse>>;
|
|
9935
10064
|
/**
|
|
9936
10065
|
* Submit manual payment confirmation
|
|
9937
10066
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10191,6 +10320,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
10191
10320
|
* @throws {RequiredError}
|
|
10192
10321
|
*/
|
|
10193
10322
|
changePaymentMethodPaymentLink(options?: RawAxiosRequestConfig): AxiosPromise<ChangePaymentMethodFvLinkResponse>;
|
|
10323
|
+
/**
|
|
10324
|
+
* Complete a KCP payment
|
|
10325
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
10326
|
+
* @param {*} [options] Override http request option.
|
|
10327
|
+
* @throws {RequiredError}
|
|
10328
|
+
*/
|
|
10329
|
+
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
10194
10330
|
/**
|
|
10195
10331
|
* Submit manual payment confirmation
|
|
10196
10332
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10454,6 +10590,14 @@ export interface DefaultApiInterface {
|
|
|
10454
10590
|
* @memberof DefaultApiInterface
|
|
10455
10591
|
*/
|
|
10456
10592
|
changePaymentMethodPaymentLink(options?: RawAxiosRequestConfig): AxiosPromise<ChangePaymentMethodFvLinkResponse>;
|
|
10593
|
+
/**
|
|
10594
|
+
* Complete a KCP payment
|
|
10595
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
10596
|
+
* @param {*} [options] Override http request option.
|
|
10597
|
+
* @throws {RequiredError}
|
|
10598
|
+
* @memberof DefaultApiInterface
|
|
10599
|
+
*/
|
|
10600
|
+
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompleteKcpPaymentResponse>;
|
|
10457
10601
|
/**
|
|
10458
10602
|
* Submit manual payment confirmation
|
|
10459
10603
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10746,6 +10890,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
10746
10890
|
* @memberof DefaultApi
|
|
10747
10891
|
*/
|
|
10748
10892
|
changePaymentMethodPaymentLink(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChangePaymentMethodFvLinkResponse, any, {}>>;
|
|
10893
|
+
/**
|
|
10894
|
+
* Complete a KCP payment
|
|
10895
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
10896
|
+
* @param {*} [options] Override http request option.
|
|
10897
|
+
* @throws {RequiredError}
|
|
10898
|
+
* @memberof DefaultApi
|
|
10899
|
+
*/
|
|
10900
|
+
completeKcpPayment(completeKcpPaymentRequest: CompleteKcpPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteKcpPaymentResponse, any, {}>>;
|
|
10749
10901
|
/**
|
|
10750
10902
|
* Submit manual payment confirmation
|
|
10751
10903
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
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 = void 0;
|
|
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.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = 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.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.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = 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 = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -88,6 +88,10 @@ exports.CardFvLinkResponseStatusEnum = {
|
|
|
88
88
|
Cancelled: 'CANCELLED',
|
|
89
89
|
Failed: 'FAILED',
|
|
90
90
|
};
|
|
91
|
+
exports.CompleteKcpPaymentRequestCardPointUseEnum = {
|
|
92
|
+
Y: 'Y',
|
|
93
|
+
N: 'N',
|
|
94
|
+
};
|
|
91
95
|
exports.CreateCardRequestStatusEnum = {
|
|
92
96
|
Succeeded: 'SUCCEEDED',
|
|
93
97
|
};
|
|
@@ -2463,6 +2467,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2463
2467
|
options: localVarRequestOptions,
|
|
2464
2468
|
};
|
|
2465
2469
|
}),
|
|
2470
|
+
/**
|
|
2471
|
+
* Complete a KCP payment
|
|
2472
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
2473
|
+
* @param {*} [options] Override http request option.
|
|
2474
|
+
* @throws {RequiredError}
|
|
2475
|
+
*/
|
|
2476
|
+
completeKcpPayment: (completeKcpPaymentRequest_1, ...args_1) => __awaiter(this, [completeKcpPaymentRequest_1, ...args_1], void 0, function* (completeKcpPaymentRequest, options = {}) {
|
|
2477
|
+
// verify required parameter 'completeKcpPaymentRequest' is not null or undefined
|
|
2478
|
+
(0, common_1.assertParamExists)('completeKcpPayment', 'completeKcpPaymentRequest', completeKcpPaymentRequest);
|
|
2479
|
+
const localVarPath = `/payment_links/kcp/payment`;
|
|
2480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2482
|
+
let baseOptions;
|
|
2483
|
+
if (configuration) {
|
|
2484
|
+
baseOptions = configuration.baseOptions;
|
|
2485
|
+
}
|
|
2486
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2487
|
+
const localVarHeaderParameter = {};
|
|
2488
|
+
const localVarQueryParameter = {};
|
|
2489
|
+
// authentication Oauth2 required
|
|
2490
|
+
// oauth required
|
|
2491
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2492
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2495
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2496
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeKcpPaymentRequest, localVarRequestOptions, configuration);
|
|
2497
|
+
return {
|
|
2498
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2499
|
+
options: localVarRequestOptions,
|
|
2500
|
+
};
|
|
2501
|
+
}),
|
|
2466
2502
|
/**
|
|
2467
2503
|
* Submit manual payment confirmation
|
|
2468
2504
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -3551,6 +3587,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
3551
3587
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3552
3588
|
});
|
|
3553
3589
|
},
|
|
3590
|
+
/**
|
|
3591
|
+
* Complete a KCP payment
|
|
3592
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
3593
|
+
* @param {*} [options] Override http request option.
|
|
3594
|
+
* @throws {RequiredError}
|
|
3595
|
+
*/
|
|
3596
|
+
completeKcpPayment(completeKcpPaymentRequest, options) {
|
|
3597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3598
|
+
var _a, _b, _c;
|
|
3599
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeKcpPayment(completeKcpPaymentRequest, options);
|
|
3600
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3601
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.completeKcpPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3602
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3603
|
+
});
|
|
3604
|
+
},
|
|
3554
3605
|
/**
|
|
3555
3606
|
* Submit manual payment confirmation
|
|
3556
3607
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -4044,6 +4095,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4044
4095
|
changePaymentMethodPaymentLink(options) {
|
|
4045
4096
|
return localVarFp.changePaymentMethodPaymentLink(options).then((request) => request(axios, basePath));
|
|
4046
4097
|
},
|
|
4098
|
+
/**
|
|
4099
|
+
* Complete a KCP payment
|
|
4100
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
4101
|
+
* @param {*} [options] Override http request option.
|
|
4102
|
+
* @throws {RequiredError}
|
|
4103
|
+
*/
|
|
4104
|
+
completeKcpPayment(completeKcpPaymentRequest, options) {
|
|
4105
|
+
return localVarFp
|
|
4106
|
+
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
4107
|
+
.then((request) => request(axios, basePath));
|
|
4108
|
+
},
|
|
4047
4109
|
/**
|
|
4048
4110
|
* Submit manual payment confirmation
|
|
4049
4111
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -4406,6 +4468,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4406
4468
|
.changePaymentMethodPaymentLink(options)
|
|
4407
4469
|
.then((request) => request(this.axios, this.basePath));
|
|
4408
4470
|
}
|
|
4471
|
+
/**
|
|
4472
|
+
* Complete a KCP payment
|
|
4473
|
+
* @param {CompleteKcpPaymentRequest} completeKcpPaymentRequest Parameters from the KCP SDK callback to complete the payment
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
* @memberof DefaultApi
|
|
4477
|
+
*/
|
|
4478
|
+
completeKcpPayment(completeKcpPaymentRequest, options) {
|
|
4479
|
+
return (0, exports.DefaultApiFp)(this.configuration)
|
|
4480
|
+
.completeKcpPayment(completeKcpPaymentRequest, options)
|
|
4481
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4482
|
+
}
|
|
4409
4483
|
/**
|
|
4410
4484
|
* Submit manual payment confirmation
|
|
4411
4485
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|