UNPKG

@ringer-tel/ivy

Version:
76 lines (65 loc) 2.34 kB
/* 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'; /** * Represents a potential call destination or failover point. * @export * @interface ExtensionCoreDestination */ export interface ExtensionCoreDestination { /** * A human-readable name for the destination. * @type {string} * @memberof ExtensionCoreDestination */ name: string; /** * A system-usable code or identifier for the destination. * @type {string} * @memberof ExtensionCoreDestination */ code: string; } /** * Check if a given object implements the ExtensionCoreDestination interface. */ export function instanceOfExtensionCoreDestination(value: object): value is ExtensionCoreDestination { if (!('name' in value) || value['name'] === undefined) return false; if (!('code' in value) || value['code'] === undefined) return false; return true; } export function ExtensionCoreDestinationFromJSON(json: any): ExtensionCoreDestination { return ExtensionCoreDestinationFromJSONTyped(json, false); } export function ExtensionCoreDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtensionCoreDestination { if (json == null) { return json; } return { 'name': json['name'], 'code': json['code'], }; } export function ExtensionCoreDestinationToJSON(json: any): ExtensionCoreDestination { return ExtensionCoreDestinationToJSONTyped(json, false); } export function ExtensionCoreDestinationToJSONTyped(value?: ExtensionCoreDestination | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'code': value['code'], }; }