@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
76 lines (65 loc) • 2.15 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.6
* 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';
/**
*
* @export
* @interface FailoverAndDestination
*/
export interface FailoverAndDestination {
/**
*
* @type {string}
* @memberof FailoverAndDestination
*/
code: string;
/**
*
* @type {string}
* @memberof FailoverAndDestination
*/
name: string;
}
/**
* Check if a given object implements the FailoverAndDestination interface.
*/
export function instanceOfFailoverAndDestination(value: object): value is FailoverAndDestination {
if (!('code' in value) || value['code'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
return true;
}
export function FailoverAndDestinationFromJSON(json: any): FailoverAndDestination {
return FailoverAndDestinationFromJSONTyped(json, false);
}
export function FailoverAndDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FailoverAndDestination {
if (json == null) {
return json;
}
return {
'code': json['code'],
'name': json['name'],
};
}
export function FailoverAndDestinationToJSON(json: any): FailoverAndDestination {
return FailoverAndDestinationToJSONTyped(json, false);
}
export function FailoverAndDestinationToJSONTyped(value?: FailoverAndDestination | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'code': value['code'],
'name': value['name'],
};
}