UNPKG

@portone/browser-sdk

Version:

PortOne SDK for browser

26 lines (25 loc) 1.24 kB
import { PortOneError } from './index.js'; import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js'; import { GrpcErrorCode } from './GrpcErrorCode.js'; import { TxServiceIdentityVerificationErrorCode } from './TxServiceIdentityVerificationErrorCode.js'; export type IdentityVerificationErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIdentityVerificationErrorCode; export declare function isIdentityVerificationError(error: unknown): error is IdentityVerificationError; export declare class IdentityVerificationError extends Error implements PortOneError { static [Symbol.hasInstance](instance: unknown): boolean; __portOneErrorType: string; transactionType: "IDENTITY_VERIFICATION"; code: IdentityVerificationErrorCode; message: string; identityVerificationId?: string; identityVerificationTxId?: string; pgCode?: string; pgMessage?: string; constructor({ code, message, identityVerificationId, identityVerificationTxId, pgCode, pgMessage, }: { code: IdentityVerificationErrorCode; message: string; identityVerificationId?: string; identityVerificationTxId?: string; pgCode?: string; pgMessage?: string; }); }