@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
85 lines (74 loc) • 2.64 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Ringer Business API
* This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions.
*
* The version of the OpenAPI document: 1.0.5
* Contact: support@ringer.tel
*
* 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';
/**
* Standard error response format.
* @export
* @interface TimezonesComponentsSchemasError
*/
export interface TimezonesComponentsSchemasError {
/**
*
* @type {string}
* @memberof TimezonesComponentsSchemasError
*/
status: string;
/**
*
* @type {string}
* @memberof TimezonesComponentsSchemasError
*/
error: string;
/**
*
* @type {string}
* @memberof TimezonesComponentsSchemasError
*/
errorCode: string;
}
/**
* Check if a given object implements the TimezonesComponentsSchemasError interface.
*/
export function instanceOfTimezonesComponentsSchemasError(value: object): value is TimezonesComponentsSchemasError {
if (!('status' in value) || value['status'] === undefined) return false;
if (!('error' in value) || value['error'] === undefined) return false;
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
return true;
}
export function TimezonesComponentsSchemasErrorFromJSON(json: any): TimezonesComponentsSchemasError {
return TimezonesComponentsSchemasErrorFromJSONTyped(json, false);
}
export function TimezonesComponentsSchemasErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimezonesComponentsSchemasError {
if (json == null) {
return json;
}
return {
'status': json['status'],
'error': json['error'],
'errorCode': json['error_code'],
};
}
export function TimezonesComponentsSchemasErrorToJSON(json: any): TimezonesComponentsSchemasError {
return TimezonesComponentsSchemasErrorToJSONTyped(json, false);
}
export function TimezonesComponentsSchemasErrorToJSONTyped(value?: TimezonesComponentsSchemasError | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'status': value['status'],
'error': value['error'],
'error_code': value['errorCode'],
};
}