@portone/browser-sdk 0.0.8 → 0.0.10
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/bypass/identityVerification/InicisUnified.d.ts +18 -0
- package/dist/v2/entity/bypass/identityVerification/index.d.ts +2 -0
- package/dist/v2/exception/IdentityVerificationError.d.ts +5 -1
- package/dist/v2/exception/IssueBillingKeyAndPayError.d.ts +5 -1
- package/dist/v2/exception/IssueBillingKeyError.d.ts +5 -1
- package/dist/v2/exception/PaymentError.d.ts +5 -1
- package/dist/v2/requestPayment.d.ts +1 -0
- package/dist/v2.cjs +12 -4
- package/dist/v2.js +12 -4
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type InicisUnifiedIdentityVerificationBypass = {
|
|
2
|
+
/**
|
|
3
|
+
* 인증 대상 정보를 미리 지정할지 여부
|
|
4
|
+
*/
|
|
5
|
+
flgFixedUser: 'Y' | 'N';
|
|
6
|
+
/**
|
|
7
|
+
* DI를 생성할 때 사용할 salt
|
|
8
|
+
*/
|
|
9
|
+
DI_CODE?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 인증 화면 좌측 상단에, PG사 로고 대신 표시할 로고의 URL
|
|
12
|
+
*/
|
|
13
|
+
logoUrl?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 인증 업체를 미리 선택할 경우, 인증 업체 코드
|
|
16
|
+
*/
|
|
17
|
+
directAgency?: 'PAYCO' | 'PASS' | 'TOSS' | 'KFTC' | 'KAKAO' | 'NAVER' | 'SAMSUNG' | 'SHINHAN' | 'KB' | 'HANA' | 'WOORI' | 'NH' | 'KAKAOBANK' | 'SMS';
|
|
18
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { DanalIdentityVerificationBypass } from './Danal.js';
|
|
2
|
+
import { InicisUnifiedIdentityVerificationBypass } from './InicisUnified.js';
|
|
2
3
|
export type IdentityVerificationBypass = {
|
|
3
4
|
danal?: DanalIdentityVerificationBypass;
|
|
5
|
+
inicisUnified?: InicisUnifiedIdentityVerificationBypass;
|
|
4
6
|
};
|
|
@@ -12,10 +12,14 @@ export declare class IdentityVerificationError extends Error implements PortOneE
|
|
|
12
12
|
message: string;
|
|
13
13
|
identityVerificationId?: string;
|
|
14
14
|
identityVerificationTxId?: string;
|
|
15
|
-
|
|
15
|
+
pgCode?: string;
|
|
16
|
+
pgMessage?: string;
|
|
17
|
+
constructor({ code, message, identityVerificationId, identityVerificationTxId, pgCode, pgMessage, }: {
|
|
16
18
|
code: IdentityVerificationErrorCode;
|
|
17
19
|
message: string;
|
|
18
20
|
identityVerificationId?: string;
|
|
19
21
|
identityVerificationTxId?: string;
|
|
22
|
+
pgCode?: string;
|
|
23
|
+
pgMessage?: string;
|
|
20
24
|
});
|
|
21
25
|
}
|
|
@@ -14,12 +14,16 @@ export declare class IssueBillingKeyAndPayError extends Error implements PortOne
|
|
|
14
14
|
billingKey?: string;
|
|
15
15
|
code: IssueBillingKeyAndPayErrorCode;
|
|
16
16
|
message: string;
|
|
17
|
-
|
|
17
|
+
pgCode?: string;
|
|
18
|
+
pgMessage?: string;
|
|
19
|
+
constructor({ txId, paymentId, billingKey, code, message, pgCode, pgMessage, }: {
|
|
18
20
|
txId?: string;
|
|
19
21
|
paymentId?: string;
|
|
20
22
|
billingKey?: string;
|
|
21
23
|
code: IssueBillingKeyAndPayErrorCode;
|
|
22
24
|
message: string;
|
|
25
|
+
pgCode?: string;
|
|
26
|
+
pgMessage?: string;
|
|
23
27
|
});
|
|
24
28
|
}
|
|
25
29
|
export default IssueBillingKeyAndPayError;
|
|
@@ -11,10 +11,14 @@ export declare class IssueBillingKeyError extends Error implements PortOneError
|
|
|
11
11
|
code: IssueBillingKeyErrorCode;
|
|
12
12
|
message: string;
|
|
13
13
|
billingKey?: string;
|
|
14
|
-
|
|
14
|
+
pgCode?: string;
|
|
15
|
+
pgMessage?: string;
|
|
16
|
+
constructor({ code, message, billingKey, pgCode, pgMessage, }: {
|
|
15
17
|
code: IssueBillingKeyErrorCode;
|
|
16
18
|
message: string;
|
|
17
19
|
billingKey?: string;
|
|
20
|
+
pgCode?: string;
|
|
21
|
+
pgMessage?: string;
|
|
18
22
|
});
|
|
19
23
|
}
|
|
20
24
|
export default IssueBillingKeyError;
|
|
@@ -12,10 +12,14 @@ export declare class PaymentError extends Error implements PortOneError {
|
|
|
12
12
|
message: string;
|
|
13
13
|
txId?: string;
|
|
14
14
|
paymentId?: string;
|
|
15
|
-
|
|
15
|
+
pgCode?: string;
|
|
16
|
+
pgMessage?: string;
|
|
17
|
+
constructor({ code, message, txId, paymentId, pgCode, pgMessage, }: {
|
|
16
18
|
code: PaymentErrorCode;
|
|
17
19
|
message: string;
|
|
18
20
|
txId?: string;
|
|
19
21
|
paymentId?: string;
|
|
22
|
+
pgCode?: string;
|
|
23
|
+
pgMessage?: string;
|
|
20
24
|
});
|
|
21
25
|
}
|
|
@@ -30,6 +30,7 @@ export type PaymentRequest = {
|
|
|
30
30
|
bypass?: Entity.PaymentBypass;
|
|
31
31
|
country?: Entity.Country;
|
|
32
32
|
shippingAddress?: Entity.Address;
|
|
33
|
+
promotionId?: string;
|
|
33
34
|
} & (PayMethodOptions<'CARD', Card> | PayMethodOptions<'VIRTUAL_ACCOUNT', VirtualAccount> | PayMethodOptions<'TRANSFER', Transfer> | PayMethodOptions<'MOBILE', Mobile> | PayMethodOptions<'GIFT_CERTIFICATE', GiftCertificate> | PayMethodOptions<'EASY_PAY', EasyPay> | PayMethodOptions<'PAYPAL', Paypal> | PayMethodOptions<'ALIPAY', Alipay>);
|
|
34
35
|
/**
|
|
35
36
|
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
package/dist/v2.cjs
CHANGED
|
@@ -810,7 +810,7 @@ class IdentityVerificationError extends Error {
|
|
|
810
810
|
static [Symbol.hasInstance](instance) {
|
|
811
811
|
return isIdentityVerificationError(instance);
|
|
812
812
|
}
|
|
813
|
-
constructor({ code, message, identityVerificationId, identityVerificationTxId, }) {
|
|
813
|
+
constructor({ code, message, identityVerificationId, identityVerificationTxId, pgCode, pgMessage, }) {
|
|
814
814
|
super(message);
|
|
815
815
|
this.__portOneErrorType = 'IdentityVerificationError';
|
|
816
816
|
this.transactionType = TransactionType.IDENTITY_VERIFICATION;
|
|
@@ -818,6 +818,8 @@ class IdentityVerificationError extends Error {
|
|
|
818
818
|
this.message = message;
|
|
819
819
|
this.identityVerificationId = identityVerificationId;
|
|
820
820
|
this.identityVerificationTxId = identityVerificationTxId;
|
|
821
|
+
this.pgCode = pgCode;
|
|
822
|
+
this.pgMessage = pgMessage;
|
|
821
823
|
}
|
|
822
824
|
}
|
|
823
825
|
|
|
@@ -829,7 +831,7 @@ class IssueBillingKeyAndPayError extends Error {
|
|
|
829
831
|
static [Symbol.hasInstance](instance) {
|
|
830
832
|
return isIssueBillingKeyAndPayError(instance);
|
|
831
833
|
}
|
|
832
|
-
constructor({ txId, paymentId, billingKey, code, message, }) {
|
|
834
|
+
constructor({ txId, paymentId, billingKey, code, message, pgCode, pgMessage, }) {
|
|
833
835
|
super(message);
|
|
834
836
|
this.__portOneErrorType = 'IssueBillingKeyAndPayError';
|
|
835
837
|
this.transactionType = TransactionType.ISSUE_BILLING_KEY_AND_PAY;
|
|
@@ -838,6 +840,8 @@ class IssueBillingKeyAndPayError extends Error {
|
|
|
838
840
|
this.billingKey = billingKey;
|
|
839
841
|
this.code = code;
|
|
840
842
|
this.message = message;
|
|
843
|
+
this.pgCode = pgCode;
|
|
844
|
+
this.pgMessage = pgMessage;
|
|
841
845
|
}
|
|
842
846
|
}
|
|
843
847
|
|
|
@@ -848,13 +852,15 @@ class IssueBillingKeyError extends Error {
|
|
|
848
852
|
static [Symbol.hasInstance](instance) {
|
|
849
853
|
return isIssueBillingKeyError(instance);
|
|
850
854
|
}
|
|
851
|
-
constructor({ code, message, billingKey, }) {
|
|
855
|
+
constructor({ code, message, billingKey, pgCode, pgMessage, }) {
|
|
852
856
|
super(message);
|
|
853
857
|
this.__portOneErrorType = 'IssueBillingKeyError';
|
|
854
858
|
this.transactionType = TransactionType.ISSUE_BILLING_KEY;
|
|
855
859
|
this.code = code;
|
|
856
860
|
this.message = message;
|
|
857
861
|
this.billingKey = billingKey;
|
|
862
|
+
this.pgCode = pgCode;
|
|
863
|
+
this.pgMessage = pgMessage;
|
|
858
864
|
}
|
|
859
865
|
}
|
|
860
866
|
|
|
@@ -880,7 +886,7 @@ class PaymentError extends Error {
|
|
|
880
886
|
static [Symbol.hasInstance](instance) {
|
|
881
887
|
return isPaymentError(instance);
|
|
882
888
|
}
|
|
883
|
-
constructor({ code, message, txId, paymentId, }) {
|
|
889
|
+
constructor({ code, message, txId, paymentId, pgCode, pgMessage, }) {
|
|
884
890
|
super(message);
|
|
885
891
|
this.__portOneErrorType = 'PaymentError';
|
|
886
892
|
this.transactionType = TransactionType.PAYMENT;
|
|
@@ -888,6 +894,8 @@ class PaymentError extends Error {
|
|
|
888
894
|
this.message = message;
|
|
889
895
|
this.txId = txId;
|
|
890
896
|
this.paymentId = paymentId;
|
|
897
|
+
this.pgCode = pgCode;
|
|
898
|
+
this.pgMessage = pgMessage;
|
|
891
899
|
}
|
|
892
900
|
}
|
|
893
901
|
|
package/dist/v2.js
CHANGED
|
@@ -806,7 +806,7 @@ class IdentityVerificationError extends Error {
|
|
|
806
806
|
static [Symbol.hasInstance](instance) {
|
|
807
807
|
return isIdentityVerificationError(instance);
|
|
808
808
|
}
|
|
809
|
-
constructor({ code, message, identityVerificationId, identityVerificationTxId, }) {
|
|
809
|
+
constructor({ code, message, identityVerificationId, identityVerificationTxId, pgCode, pgMessage, }) {
|
|
810
810
|
super(message);
|
|
811
811
|
this.__portOneErrorType = 'IdentityVerificationError';
|
|
812
812
|
this.transactionType = TransactionType.IDENTITY_VERIFICATION;
|
|
@@ -814,6 +814,8 @@ class IdentityVerificationError extends Error {
|
|
|
814
814
|
this.message = message;
|
|
815
815
|
this.identityVerificationId = identityVerificationId;
|
|
816
816
|
this.identityVerificationTxId = identityVerificationTxId;
|
|
817
|
+
this.pgCode = pgCode;
|
|
818
|
+
this.pgMessage = pgMessage;
|
|
817
819
|
}
|
|
818
820
|
}
|
|
819
821
|
|
|
@@ -825,7 +827,7 @@ class IssueBillingKeyAndPayError extends Error {
|
|
|
825
827
|
static [Symbol.hasInstance](instance) {
|
|
826
828
|
return isIssueBillingKeyAndPayError(instance);
|
|
827
829
|
}
|
|
828
|
-
constructor({ txId, paymentId, billingKey, code, message, }) {
|
|
830
|
+
constructor({ txId, paymentId, billingKey, code, message, pgCode, pgMessage, }) {
|
|
829
831
|
super(message);
|
|
830
832
|
this.__portOneErrorType = 'IssueBillingKeyAndPayError';
|
|
831
833
|
this.transactionType = TransactionType.ISSUE_BILLING_KEY_AND_PAY;
|
|
@@ -834,6 +836,8 @@ class IssueBillingKeyAndPayError extends Error {
|
|
|
834
836
|
this.billingKey = billingKey;
|
|
835
837
|
this.code = code;
|
|
836
838
|
this.message = message;
|
|
839
|
+
this.pgCode = pgCode;
|
|
840
|
+
this.pgMessage = pgMessage;
|
|
837
841
|
}
|
|
838
842
|
}
|
|
839
843
|
|
|
@@ -844,13 +848,15 @@ class IssueBillingKeyError extends Error {
|
|
|
844
848
|
static [Symbol.hasInstance](instance) {
|
|
845
849
|
return isIssueBillingKeyError(instance);
|
|
846
850
|
}
|
|
847
|
-
constructor({ code, message, billingKey, }) {
|
|
851
|
+
constructor({ code, message, billingKey, pgCode, pgMessage, }) {
|
|
848
852
|
super(message);
|
|
849
853
|
this.__portOneErrorType = 'IssueBillingKeyError';
|
|
850
854
|
this.transactionType = TransactionType.ISSUE_BILLING_KEY;
|
|
851
855
|
this.code = code;
|
|
852
856
|
this.message = message;
|
|
853
857
|
this.billingKey = billingKey;
|
|
858
|
+
this.pgCode = pgCode;
|
|
859
|
+
this.pgMessage = pgMessage;
|
|
854
860
|
}
|
|
855
861
|
}
|
|
856
862
|
|
|
@@ -876,7 +882,7 @@ class PaymentError extends Error {
|
|
|
876
882
|
static [Symbol.hasInstance](instance) {
|
|
877
883
|
return isPaymentError(instance);
|
|
878
884
|
}
|
|
879
|
-
constructor({ code, message, txId, paymentId, }) {
|
|
885
|
+
constructor({ code, message, txId, paymentId, pgCode, pgMessage, }) {
|
|
880
886
|
super(message);
|
|
881
887
|
this.__portOneErrorType = 'PaymentError';
|
|
882
888
|
this.transactionType = TransactionType.PAYMENT;
|
|
@@ -884,6 +890,8 @@ class PaymentError extends Error {
|
|
|
884
890
|
this.message = message;
|
|
885
891
|
this.txId = txId;
|
|
886
892
|
this.paymentId = paymentId;
|
|
893
|
+
this.pgCode = pgCode;
|
|
894
|
+
this.pgMessage = pgMessage;
|
|
887
895
|
}
|
|
888
896
|
}
|
|
889
897
|
|