@finverse/sdk-typescript 0.0.315 → 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 +156 -0
- package/dist/api.js +81 -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
|
|
@@ -4119,6 +4234,7 @@ export declare const LinkTokenRequestLanguageEnum: {
|
|
|
4119
4234
|
readonly En: "en";
|
|
4120
4235
|
readonly Vi: "vi";
|
|
4121
4236
|
readonly Zh: "zh";
|
|
4237
|
+
readonly Ko: "ko";
|
|
4122
4238
|
};
|
|
4123
4239
|
export type LinkTokenRequestLanguageEnum = (typeof LinkTokenRequestLanguageEnum)[keyof typeof LinkTokenRequestLanguageEnum];
|
|
4124
4240
|
export declare const LinkTokenRequestAutomaticDataRefreshEnum: {
|
|
@@ -4838,6 +4954,7 @@ export declare const MandateAuthLinkCustomizationsLanguageEnum: {
|
|
|
4838
4954
|
readonly En: "en";
|
|
4839
4955
|
readonly Vi: "vi";
|
|
4840
4956
|
readonly Zh: "zh";
|
|
4957
|
+
readonly Ko: "ko";
|
|
4841
4958
|
};
|
|
4842
4959
|
export type MandateAuthLinkCustomizationsLanguageEnum = (typeof MandateAuthLinkCustomizationsLanguageEnum)[keyof typeof MandateAuthLinkCustomizationsLanguageEnum];
|
|
4843
4960
|
export declare const MandateAuthLinkCustomizationsUiModeEnum: {
|
|
@@ -6042,6 +6159,7 @@ export declare const PaymentLinkCustomizationsLanguageEnum: {
|
|
|
6042
6159
|
readonly En: "en";
|
|
6043
6160
|
readonly Vi: "vi";
|
|
6044
6161
|
readonly Zh: "zh";
|
|
6162
|
+
readonly Ko: "ko";
|
|
6045
6163
|
};
|
|
6046
6164
|
export type PaymentLinkCustomizationsLanguageEnum = (typeof PaymentLinkCustomizationsLanguageEnum)[keyof typeof PaymentLinkCustomizationsLanguageEnum];
|
|
6047
6165
|
export declare const PaymentLinkCustomizationsUiModeEnum: {
|
|
@@ -7724,6 +7842,7 @@ export declare const RefreshLoginIdentityLinkCustomizationsLanguageEnum: {
|
|
|
7724
7842
|
readonly En: "en";
|
|
7725
7843
|
readonly Vi: "vi";
|
|
7726
7844
|
readonly Zh: "zh";
|
|
7845
|
+
readonly Ko: "ko";
|
|
7727
7846
|
};
|
|
7728
7847
|
export type RefreshLoginIdentityLinkCustomizationsLanguageEnum = (typeof RefreshLoginIdentityLinkCustomizationsLanguageEnum)[keyof typeof RefreshLoginIdentityLinkCustomizationsLanguageEnum];
|
|
7729
7848
|
export declare const RefreshLoginIdentityLinkCustomizationsUiModeEnum: {
|
|
@@ -9669,6 +9788,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9669
9788
|
* @throws {RequiredError}
|
|
9670
9789
|
*/
|
|
9671
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>;
|
|
9672
9798
|
/**
|
|
9673
9799
|
* Submit manual payment confirmation
|
|
9674
9800
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -9928,6 +10054,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
9928
10054
|
* @throws {RequiredError}
|
|
9929
10055
|
*/
|
|
9930
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>>;
|
|
9931
10064
|
/**
|
|
9932
10065
|
* Submit manual payment confirmation
|
|
9933
10066
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10187,6 +10320,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
10187
10320
|
* @throws {RequiredError}
|
|
10188
10321
|
*/
|
|
10189
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>;
|
|
10190
10330
|
/**
|
|
10191
10331
|
* Submit manual payment confirmation
|
|
10192
10332
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10450,6 +10590,14 @@ export interface DefaultApiInterface {
|
|
|
10450
10590
|
* @memberof DefaultApiInterface
|
|
10451
10591
|
*/
|
|
10452
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>;
|
|
10453
10601
|
/**
|
|
10454
10602
|
* Submit manual payment confirmation
|
|
10455
10603
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -10742,6 +10890,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
10742
10890
|
* @memberof DefaultApi
|
|
10743
10891
|
*/
|
|
10744
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, {}>>;
|
|
10745
10901
|
/**
|
|
10746
10902
|
* Submit manual payment confirmation
|
|
10747
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
|
};
|
|
@@ -251,6 +255,7 @@ exports.LinkTokenRequestLanguageEnum = {
|
|
|
251
255
|
En: 'en',
|
|
252
256
|
Vi: 'vi',
|
|
253
257
|
Zh: 'zh',
|
|
258
|
+
Ko: 'ko',
|
|
254
259
|
};
|
|
255
260
|
exports.LinkTokenRequestAutomaticDataRefreshEnum = {
|
|
256
261
|
On: 'ON',
|
|
@@ -266,6 +271,7 @@ exports.MandateAuthLinkCustomizationsLanguageEnum = {
|
|
|
266
271
|
En: 'en',
|
|
267
272
|
Vi: 'vi',
|
|
268
273
|
Zh: 'zh',
|
|
274
|
+
Ko: 'ko',
|
|
269
275
|
};
|
|
270
276
|
exports.MandateAuthLinkCustomizationsUiModeEnum = {
|
|
271
277
|
Iframe: 'iframe',
|
|
@@ -321,6 +327,7 @@ exports.PaymentLinkCustomizationsLanguageEnum = {
|
|
|
321
327
|
En: 'en',
|
|
322
328
|
Vi: 'vi',
|
|
323
329
|
Zh: 'zh',
|
|
330
|
+
Ko: 'ko',
|
|
324
331
|
};
|
|
325
332
|
exports.PaymentLinkCustomizationsUiModeEnum = {
|
|
326
333
|
Iframe: 'iframe',
|
|
@@ -428,6 +435,7 @@ exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = {
|
|
|
428
435
|
En: 'en',
|
|
429
436
|
Vi: 'vi',
|
|
430
437
|
Zh: 'zh',
|
|
438
|
+
Ko: 'ko',
|
|
431
439
|
};
|
|
432
440
|
exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = {
|
|
433
441
|
Iframe: 'iframe',
|
|
@@ -2459,6 +2467,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2459
2467
|
options: localVarRequestOptions,
|
|
2460
2468
|
};
|
|
2461
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
|
+
}),
|
|
2462
2502
|
/**
|
|
2463
2503
|
* Submit manual payment confirmation
|
|
2464
2504
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -3547,6 +3587,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
3547
3587
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3548
3588
|
});
|
|
3549
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
|
+
},
|
|
3550
3605
|
/**
|
|
3551
3606
|
* Submit manual payment confirmation
|
|
3552
3607
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -4040,6 +4095,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4040
4095
|
changePaymentMethodPaymentLink(options) {
|
|
4041
4096
|
return localVarFp.changePaymentMethodPaymentLink(options).then((request) => request(axios, basePath));
|
|
4042
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
|
+
},
|
|
4043
4109
|
/**
|
|
4044
4110
|
* Submit manual payment confirmation
|
|
4045
4111
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|
|
@@ -4402,6 +4468,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4402
4468
|
.changePaymentMethodPaymentLink(options)
|
|
4403
4469
|
.then((request) => request(this.axios, this.basePath));
|
|
4404
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
|
+
}
|
|
4405
4483
|
/**
|
|
4406
4484
|
* Submit manual payment confirmation
|
|
4407
4485
|
* @param {ManualPaymentConfirmationRequest} manualPaymentIdentifiers Request body containing information to identify manual payment
|