93 lines
2.4 KiB
TypeScript
93 lines
2.4 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* @fastify/swagger
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 9.6.1
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface StatusOtp400Response
|
|
*/
|
|
export interface StatusOtp400Response {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof StatusOtp400Response
|
|
*/
|
|
kind: StatusOtp400ResponseKindEnum;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof StatusOtp400Response
|
|
*/
|
|
msg: StatusOtp400ResponseMsgEnum;
|
|
}
|
|
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const StatusOtp400ResponseKindEnum = {
|
|
Failure: 'failure'
|
|
} as const;
|
|
export type StatusOtp400ResponseKindEnum = typeof StatusOtp400ResponseKindEnum[keyof typeof StatusOtp400ResponseKindEnum];
|
|
|
|
/**
|
|
* @export
|
|
*/
|
|
export const StatusOtp400ResponseMsgEnum = {
|
|
StatusOtpFailureGuest: 'statusOtp.failure.guest'
|
|
} as const;
|
|
export type StatusOtp400ResponseMsgEnum = typeof StatusOtp400ResponseMsgEnum[keyof typeof StatusOtp400ResponseMsgEnum];
|
|
|
|
|
|
/**
|
|
* Check if a given object implements the StatusOtp400Response interface.
|
|
*/
|
|
export function instanceOfStatusOtp400Response(value: object): value is StatusOtp400Response {
|
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function StatusOtp400ResponseFromJSON(json: any): StatusOtp400Response {
|
|
return StatusOtp400ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function StatusOtp400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp400Response {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'kind': json['kind'],
|
|
'msg': json['msg'],
|
|
};
|
|
}
|
|
|
|
export function StatusOtp400ResponseToJSON(json: any): StatusOtp400Response {
|
|
return StatusOtp400ResponseToJSONTyped(json, false);
|
|
}
|
|
|
|
export function StatusOtp400ResponseToJSONTyped(value?: StatusOtp400Response | null, ignoreDiscriminator: boolean = false): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
|
|
'kind': value['kind'],
|
|
'msg': value['msg'],
|
|
};
|
|
}
|
|
|