/* tslint:disable */ /* eslint-disable */ /** * OpenAPI definition * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface ApiErrorDto */ export interface ApiErrorDto { /** * * @type {string} * @memberof ApiErrorDto */ error?: string; /** * * @type {string} * @memberof ApiErrorDto */ traceId?: string; /** * * @type {Date} * @memberof ApiErrorDto */ timestamp?: Date; /** * * @type {string} * @memberof ApiErrorDto */ messageName?: string; /** * * @type {number} * @memberof ApiErrorDto */ messageCode?: number; /** * * @type {string} * @memberof ApiErrorDto */ messageClassification?: ApiErrorDtoMessageClassificationEnum; } /** * @export * @enum {string} */ export enum ApiErrorDtoMessageClassificationEnum { InterfaceError = 'INTERFACE_ERROR', AuthenticationError = 'AUTHENTICATION_ERROR', AuthorizationError = 'AUTHORIZATION_ERROR', BusinessLogicError = 'BUSINESS_LOGIC_ERROR' } export function ApiErrorDtoFromJSON(json: any): ApiErrorDto { return ApiErrorDtoFromJSONTyped(json, false); } export function ApiErrorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiErrorDto { if ((json === undefined) || (json === null)) { return json; } return { 'error': !exists(json, 'error') ? undefined : json['error'], 'traceId': !exists(json, 'traceId') ? undefined : json['traceId'], 'timestamp': !exists(json, 'timestamp') ? undefined : (new Date(json['timestamp'])), 'messageName': !exists(json, 'messageName') ? undefined : json['messageName'], 'messageCode': !exists(json, 'messageCode') ? undefined : json['messageCode'], 'messageClassification': !exists(json, 'messageClassification') ? undefined : json['messageClassification'], }; } export function ApiErrorDtoToJSON(value?: ApiErrorDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'error': value.error, 'traceId': value.traceId, 'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()), 'messageName': value.messageName, 'messageCode': value.messageCode, 'messageClassification': value.messageClassification, }; }