@portone/browser-sdk 0.0.10 → 0.0.11
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/v2/entity/PgProvider.d.ts +50 -0
- package/dist/v2/entity/bypass/payment/Hyphen.d.ts +1 -1
- package/dist/v2/entity/index.d.ts +1 -0
- package/dist/v2/loadPaymentUI.d.ts +1 -0
- package/dist/v2/requestIdentityVerification.d.ts +3 -1
- package/dist/v2/requestIssueBillingKey.d.ts +2 -0
- package/dist/v2/requestIssueBillingKeyAndPay.d.ts +2 -0
- package/dist/v2/requestPayment.d.ts +3 -1
- package/dist/v2.cjs +2 -0
- package/dist/v2.js +2 -0
- package/package.json +1 -1
|
@@ -44,3 +44,53 @@ export declare const PgProvider: {
|
|
|
44
44
|
readonly HYPHEN: "PG_PROVIDER_HYPHEN";
|
|
45
45
|
};
|
|
46
46
|
export type PgProvider = typeof PgProvider[keyof typeof PgProvider];
|
|
47
|
+
type InversionMap<T extends Record<keyof T, keyof any>> = {
|
|
48
|
+
[K in keyof T as T[K]]: K;
|
|
49
|
+
};
|
|
50
|
+
export declare const InversionPgProvider: InversionMap<{
|
|
51
|
+
readonly HTML5_INICIS: "PG_PROVIDER_HTML5_INICIS";
|
|
52
|
+
readonly PAYPAL: "PG_PROVIDER_PAYPAL";
|
|
53
|
+
readonly INICIS: "PG_PROVIDER_INICIS";
|
|
54
|
+
readonly DANAL: "PG_PROVIDER_DANAL";
|
|
55
|
+
readonly NICE: "PG_PROVIDER_NICE";
|
|
56
|
+
readonly DANAL_TPAY: "PG_PROVIDER_DANAL_TPAY";
|
|
57
|
+
readonly UPLUS: "PG_PROVIDER_UPLUS";
|
|
58
|
+
readonly NAVERPAY: "PG_PROVIDER_NAVERPAY";
|
|
59
|
+
readonly SETTLE: "PG_PROVIDER_SETTLE";
|
|
60
|
+
readonly KCP: "PG_PROVIDER_KCP";
|
|
61
|
+
readonly MOBILIANS: "PG_PROVIDER_MOBILIANS";
|
|
62
|
+
readonly KAKAOPAY: "PG_PROVIDER_KAKAOPAY";
|
|
63
|
+
readonly NAVERCO: "PG_PROVIDER_NAVERCO";
|
|
64
|
+
readonly KICC: "PG_PROVIDER_KICC";
|
|
65
|
+
readonly EXIMBAY: "PG_PROVIDER_EXIMBAY";
|
|
66
|
+
readonly SMILEPAY: "PG_PROVIDER_SMILEPAY";
|
|
67
|
+
readonly PAYCO: "PG_PROVIDER_PAYCO";
|
|
68
|
+
readonly KCP_BILLING: "PG_PROVIDER_KCP_BILLING";
|
|
69
|
+
readonly ALIPAY: "PG_PROVIDER_ALIPAY";
|
|
70
|
+
readonly CHAI: "PG_PROVIDER_CHAI";
|
|
71
|
+
readonly BLUEWALNUT: "PG_PROVIDER_BLUEWALNUT";
|
|
72
|
+
readonly SMARTRO: "PG_PROVIDER_SMARTRO";
|
|
73
|
+
readonly PAYMENTWALL: "PG_PROVIDER_PAYMENTWALL";
|
|
74
|
+
readonly TOSSPAYMENTS: "PG_PROVIDER_TOSSPAYMENTS";
|
|
75
|
+
readonly KCP_QUICK: "PG_PROVIDER_KCP_QUICK";
|
|
76
|
+
readonly DAOU: "PG_PROVIDER_DAOU";
|
|
77
|
+
readonly GALAXIA: "PG_PROVIDER_GALAXIA";
|
|
78
|
+
readonly TOSSPAY: "PG_PROVIDER_TOSSPAY";
|
|
79
|
+
readonly KCP_DIRECT: "PG_PROVIDER_KCP_DIRECT";
|
|
80
|
+
readonly SETTLE_ACC: "PG_PROVIDER_SETTLE_ACC";
|
|
81
|
+
readonly SETTLE_FIRM: "PG_PROVIDER_SETTLE_FIRM";
|
|
82
|
+
readonly INICIS_UNIFIED: "PG_PROVIDER_INICIS_UNIFIED";
|
|
83
|
+
readonly KSNET: "PG_PROVIDER_KSNET";
|
|
84
|
+
readonly PAYPAL_V2: "PG_PROVIDER_PAYPAL_V2";
|
|
85
|
+
readonly SMARTRO_V2: "PG_PROVIDER_SMARTRO_V2";
|
|
86
|
+
readonly NICE_V2: "PG_PROVIDER_NICE_V2";
|
|
87
|
+
readonly TOSS_BRANDPAY: "PG_PROVIDER_TOSS_BRANDPAY";
|
|
88
|
+
readonly WELCOME: "PG_PROVIDER_WELCOME";
|
|
89
|
+
readonly TOSSPAY_V2: "PG_PROVIDER_TOSSPAY_V2";
|
|
90
|
+
readonly INICIS_V2: "PG_PROVIDER_INICIS_V2";
|
|
91
|
+
readonly KPN: "PG_PROVIDER_KPN";
|
|
92
|
+
readonly KCP_V2: "PG_PROVIDER_KCP_V2";
|
|
93
|
+
readonly HYPHEN: "PG_PROVIDER_HYPHEN";
|
|
94
|
+
}>;
|
|
95
|
+
export type InversionPgProvider = typeof InversionPgProvider[keyof typeof InversionPgProvider];
|
|
96
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export { WindowType } from './WindowType.js';
|
|
|
15
15
|
export { LoadableUIType } from './LoadableUIType.js';
|
|
16
16
|
export { PaymentUIType } from './PaymentUIType.js';
|
|
17
17
|
export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js';
|
|
18
|
+
export { InversionPgProvider } from './PgProvider.js';
|
|
18
19
|
export type { Address } from './Address.js';
|
|
19
20
|
export type { CashReceiptType } from './CashReceiptType.js';
|
|
20
21
|
export type { Customer } from './Customer.js';
|
|
@@ -18,8 +18,10 @@ export type IdentityVerificationRequest = {
|
|
|
18
18
|
*/
|
|
19
19
|
export type IdentityVerificationResponse = {
|
|
20
20
|
transactionType: typeof Entity.TransactionType.IDENTITY_VERIFICATION;
|
|
21
|
-
identityVerificationId
|
|
21
|
+
identityVerificationId: string;
|
|
22
22
|
identityVerificationTxId: string;
|
|
23
23
|
code?: string;
|
|
24
24
|
message?: string;
|
|
25
|
+
pgCode?: string;
|
|
26
|
+
pgMessage?: string;
|
|
25
27
|
};
|
|
@@ -38,6 +38,8 @@ export type IssueBillingKeyAndPayResponse = {
|
|
|
38
38
|
billingKey: string;
|
|
39
39
|
code?: string;
|
|
40
40
|
message?: string;
|
|
41
|
+
pgCode?: string;
|
|
42
|
+
pgMessage?: string;
|
|
41
43
|
};
|
|
42
44
|
type BillingKeyAndPayMethodOptions<Method extends Entity.BillingKeyAndPayMethod, T> = {
|
|
43
45
|
billingKeyAndPayMethod: Method;
|
|
@@ -38,10 +38,12 @@ export type PaymentRequest = {
|
|
|
38
38
|
*/
|
|
39
39
|
export type PaymentResponse = {
|
|
40
40
|
transactionType: typeof Entity.TransactionType.PAYMENT;
|
|
41
|
+
paymentId: string;
|
|
41
42
|
txId: string;
|
|
42
|
-
paymentId?: string;
|
|
43
43
|
code?: string;
|
|
44
44
|
message?: string;
|
|
45
|
+
pgCode?: string;
|
|
46
|
+
pgMessage?: string;
|
|
45
47
|
};
|
|
46
48
|
type PayMethodOptions<Method extends Entity.PayMethod, T> = {
|
|
47
49
|
payMethod: Method;
|
package/dist/v2.cjs
CHANGED
|
@@ -748,6 +748,7 @@ const PgProvider = {
|
|
|
748
748
|
KCP_V2: 'PG_PROVIDER_KCP_V2',
|
|
749
749
|
HYPHEN: 'PG_PROVIDER_HYPHEN',
|
|
750
750
|
};
|
|
751
|
+
const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
|
|
751
752
|
|
|
752
753
|
/**
|
|
753
754
|
* 트랜잭션 유형
|
|
@@ -794,6 +795,7 @@ var index$1 = {
|
|
|
794
795
|
EasyPayProvider: EasyPayProvider,
|
|
795
796
|
Gender: Gender,
|
|
796
797
|
GiftCertificateType: GiftCertificateType,
|
|
798
|
+
InversionPgProvider: InversionPgProvider,
|
|
797
799
|
IssueBillingKeyUIType: IssueBillingKeyUIType,
|
|
798
800
|
Locale: Locale,
|
|
799
801
|
PaymentUIType: PaymentUIType,
|
package/dist/v2.js
CHANGED
|
@@ -744,6 +744,7 @@ const PgProvider = {
|
|
|
744
744
|
KCP_V2: 'PG_PROVIDER_KCP_V2',
|
|
745
745
|
HYPHEN: 'PG_PROVIDER_HYPHEN',
|
|
746
746
|
};
|
|
747
|
+
const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
|
|
747
748
|
|
|
748
749
|
/**
|
|
749
750
|
* 트랜잭션 유형
|
|
@@ -790,6 +791,7 @@ var index$1 = {
|
|
|
790
791
|
EasyPayProvider: EasyPayProvider,
|
|
791
792
|
Gender: Gender,
|
|
792
793
|
GiftCertificateType: GiftCertificateType,
|
|
794
|
+
InversionPgProvider: InversionPgProvider,
|
|
793
795
|
IssueBillingKeyUIType: IssueBillingKeyUIType,
|
|
794
796
|
Locale: Locale,
|
|
795
797
|
PaymentUIType: PaymentUIType,
|