kotanipay-sdk
Version:
Official Kotani Pay SDK for Node.js and Browser
31 lines • 931 B
TypeScript
export declare enum HttpStatus {
OK = 200,
CREATED = 201,
BAD_REQUEST = 400,
UNAUTHORIZED = 401,
FORBIDDEN = 403,
NOT_FOUND = 404,
INTERNAL_SERVER_ERROR = 500
}
export declare class KotaniPayException extends Error {
readonly status: HttpStatus;
readonly errorCode?: string;
readonly details?: any;
readonly timestamp: string;
constructor(message: string, status?: HttpStatus, errorCode?: string, details?: any);
toJSON(): {
name: string;
message: string;
status: HttpStatus;
errorCode: string | undefined;
details: any;
timestamp: string;
};
}
export declare class ValidationException extends KotaniPayException {
constructor(message: string, details?: any);
}
export declare class AuthenticationException extends KotaniPayException {
constructor(message?: string);
}
//# sourceMappingURL=kotani-pay.exception.d.ts.map