@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
27 lines (26 loc) • 620 B
TypeScript
/**
* Result of authorization process
*/
export declare class ApiAuthorizationResult {
/**
* Whether authorization was successful
*/
isAuthorized: boolean;
/**
* Error message if authorization failed
*/
error?: string;
/**
* Creates a new successful authorization result
*
* @returns Authorization result
*/
static success(): ApiAuthorizationResult;
/**
* Creates a new failed authorization result
*
* @param error Error message
* @returns Authorization result
*/
static failure(error: string): ApiAuthorizationResult;
}