UNPKG

@ringer-tel/ivy

Version:
94 lines (83 loc) 2.97 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.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 provisioned feature within a seat. * @export * @interface SwitchableFeature */ export interface SwitchableFeature { /** * Unique identifier of this specific provisioned feature instance. * @type {number} * @memberof SwitchableFeature */ id: number; /** * The type of the provisioned feature (e.g., "device", "voicemailbox", "extension"). * @type {string} * @memberof SwitchableFeature */ featureType: string; /** * Identifier of the actual underlying feature resource (e.g., the ID of the voicemailbox). * @type {number} * @memberof SwitchableFeature */ featureId: number; /** * The name assigned to this provisioned feature (may be derived from template or user). * @type {string} * @memberof SwitchableFeature */ name: string; } /** * Check if a given object implements the SwitchableFeature interface. */ export function instanceOfSwitchableFeature(value: object): value is SwitchableFeature { if (!('id' in value) || value['id'] === undefined) return false; if (!('featureType' in value) || value['featureType'] === undefined) return false; if (!('featureId' in value) || value['featureId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function SwitchableFeatureFromJSON(json: any): SwitchableFeature { return SwitchableFeatureFromJSONTyped(json, false); } export function SwitchableFeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwitchableFeature { if (json == null) { return json; } return { 'id': json['id'], 'featureType': json['feature_type'], 'featureId': json['feature_id'], 'name': json['name'], }; } export function SwitchableFeatureToJSON(json: any): SwitchableFeature { return SwitchableFeatureToJSONTyped(json, false); } export function SwitchableFeatureToJSONTyped(value?: SwitchableFeature | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'feature_type': value['featureType'], 'feature_id': value['featureId'], 'name': value['name'], }; }