@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
76 lines (65 loc) • 2.24 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';
/**
* Represents a routing destination within a site.
* @export
* @interface SiteDestination
*/
export interface SiteDestination {
/**
* Human-readable name of the destination.
* @type {string}
* @memberof SiteDestination
*/
name: string;
/**
* System code for the destination (e.g., menu:id, device:id, voicemailbox:id, ring_group:id, forward:id, extension:id, user:id).
* @type {string}
* @memberof SiteDestination
*/
code: string;
}
/**
* Check if a given object implements the SiteDestination interface.
*/
export function instanceOfSiteDestination(value: object): value is SiteDestination {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('code' in value) || value['code'] === undefined) return false;
return true;
}
export function SiteDestinationFromJSON(json: any): SiteDestination {
return SiteDestinationFromJSONTyped(json, false);
}
export function SiteDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteDestination {
if (json == null) {
return json;
}
return {
'name': json['name'],
'code': json['code'],
};
}
export function SiteDestinationToJSON(json: any): SiteDestination {
return SiteDestinationToJSONTyped(json, false);
}
export function SiteDestinationToJSONTyped(value?: SiteDestination | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'code': value['code'],
};
}