UNPKG

@ringer-tel/ivy

Version:
82 lines (70 loc) 2.29 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'; import type { Link } from './Link'; import { LinkFromJSON, LinkFromJSONTyped, LinkToJSON, LinkToJSONTyped, } from './Link'; /** * * @export * @interface SipTrunkStatus */ export interface SipTrunkStatus { /** * Array of login names for registered sip trunks * @type {Array<string>} * @memberof SipTrunkStatus */ sipTrunks?: Array<string>; /** * * @type {Array<Link>} * @memberof SipTrunkStatus */ links?: Array<Link>; } /** * Check if a given object implements the SipTrunkStatus interface. */ export function instanceOfSipTrunkStatus(value: object): value is SipTrunkStatus { return true; } export function SipTrunkStatusFromJSON(json: any): SipTrunkStatus { return SipTrunkStatusFromJSONTyped(json, false); } export function SipTrunkStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SipTrunkStatus { if (json == null) { return json; } return { 'sipTrunks': json['sip_trunks'] == null ? undefined : json['sip_trunks'], 'links': json['links'] == null ? undefined : ((json['links'] as Array<any>).map(LinkFromJSON)), }; } export function SipTrunkStatusToJSON(json: any): SipTrunkStatus { return SipTrunkStatusToJSONTyped(json, false); } export function SipTrunkStatusToJSONTyped(value?: SipTrunkStatus | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sip_trunks': value['sipTrunks'], 'links': value['links'] == null ? undefined : ((value['links'] as Array<any>).map(LinkToJSON)), }; }