@payos-inc/payos-react 1.2.0-staging.94 → 1.2.0-staging.96
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.
|
@@ -33,7 +33,8 @@ export interface WalletUserResult {
|
|
|
33
33
|
export declare class ApiError extends Error {
|
|
34
34
|
status: number;
|
|
35
35
|
details?: string;
|
|
36
|
-
|
|
36
|
+
code?: string;
|
|
37
|
+
constructor(message: string, status: number, details?: string, code?: string);
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Send OTP verification code to a phone number
|
|
@@ -140,7 +140,7 @@ export interface SessionError {
|
|
|
140
140
|
message: string;
|
|
141
141
|
details?: Record<string, unknown>;
|
|
142
142
|
}
|
|
143
|
-
export type SessionErrorCode = 'SESSION_NOT_FOUND' | 'SESSION_EXPIRED' | 'VERIFICATION_FAILED' | 'INVALID_OTP' | 'OTP_EXPIRED' | 'RATE_LIMITED' | 'CARD_DECLINED' | 'CARD_NOT_FOUND' | 'NO_CARD_SELECTED' | 'CARD_SELECT_FAILED' | 'ISSUER_LIMIT_EXCEEDED' | 'CARD_ADD_FAILED' | 'CARD_DELETE_FAILED' | 'PAYMENT_FAILED' | 'PAYMENT_INTENT_ALREADY_PROCESSED' | 'PASSKEY_FAILED' | 'PASSKEY_REQUIRED' | 'AUTH_INVALID' | 'AUTH_EXPIRED' | 'CREDENTIAL_GENERATION_FAILED' | 'NETWORK_ERROR';
|
|
143
|
+
export type SessionErrorCode = 'SESSION_NOT_FOUND' | 'SESSION_EXPIRED' | 'SESSION_IDENTITY_MISMATCH' | 'VERIFICATION_FAILED' | 'INVALID_OTP' | 'OTP_EXPIRED' | 'RATE_LIMITED' | 'CARD_DECLINED' | 'CARD_NOT_FOUND' | 'NO_CARD_SELECTED' | 'CARD_SELECT_FAILED' | 'ISSUER_LIMIT_EXCEEDED' | 'CARD_ADD_FAILED' | 'CARD_DELETE_FAILED' | 'PAYMENT_FAILED' | 'PAYMENT_INTENT_ALREADY_PROCESSED' | 'PASSKEY_FAILED' | 'PASSKEY_REQUIRED' | 'AUTH_INVALID' | 'AUTH_EXPIRED' | 'CREDENTIAL_GENERATION_FAILED' | 'NETWORK_ERROR';
|
|
144
144
|
export interface VerificationInitResult {
|
|
145
145
|
success: boolean;
|
|
146
146
|
verificationId: string;
|
package/package.json
CHANGED