wallee
Version:
TypeScript/JavaScript client for wallee
48 lines (47 loc) • 1.74 kB
TypeScript
/**
*
* @export
* @interface RestApiErrorResponse
*/
export interface RestApiErrorResponse {
/**
* The date and time when the error occurred.
* @type {Date}
* @memberof RestApiErrorResponse
*/
readonly date?: Date;
/**
* A brief explanation of the error that can be used to programmatically handle it.
* @type {string}
* @memberof RestApiErrorResponse
*/
readonly code?: string;
/**
* The unique identifier of the error.
* @type {string}
* @memberof RestApiErrorResponse
*/
readonly id?: string;
/**
* A human-readable message providing more details about the error.
* @type {string}
* @memberof RestApiErrorResponse
*/
readonly message?: string;
/**
* A map of errors where the key represents the error identifier (such as field name or error context) and the value contains the detailed error message.
* @type {{ [key: string]: string; }}
* @memberof RestApiErrorResponse
*/
readonly errors?: {
[key: string]: string;
};
}
/**
* Check if a given object implements the RestApiErrorResponse interface.
*/
export declare function instanceOfRestApiErrorResponse(value: object): value is RestApiErrorResponse;
export declare function RestApiErrorResponseFromJSON(json: any): RestApiErrorResponse;
export declare function RestApiErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestApiErrorResponse;
export declare function RestApiErrorResponseToJSON(json: any): RestApiErrorResponse;
export declare function RestApiErrorResponseToJSONTyped(value?: Omit<RestApiErrorResponse, 'date' | 'code' | 'id' | 'message' | 'errors'> | null, ignoreDiscriminator?: boolean): any;