UNPKG

@ringer-tel/ivy

Version:
85 lines (74 loc) 2.77 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'; /** * Data required to create a new extension. * @export * @interface ExtensionCreateRequest */ export interface ExtensionCreateRequest { /** * Extension number (e.g., "1001", "*123"). Typically 2-12 digits. * @type {string} * @memberof ExtensionCreateRequest */ number: string; /** * A user-friendly name for the extension (e.g., "Sales Hotline", "John Doe"). * @type {string} * @memberof ExtensionCreateRequest */ name: string; /** * System code for the destination where calls to this extension are routed (e.g., "device:dev_xyz", "menu:ivr_main"). * @type {string} * @memberof ExtensionCreateRequest */ destinationCode: string; } /** * Check if a given object implements the ExtensionCreateRequest interface. */ export function instanceOfExtensionCreateRequest(value: object): value is ExtensionCreateRequest { if (!('number' in value) || value['number'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('destinationCode' in value) || value['destinationCode'] === undefined) return false; return true; } export function ExtensionCreateRequestFromJSON(json: any): ExtensionCreateRequest { return ExtensionCreateRequestFromJSONTyped(json, false); } export function ExtensionCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtensionCreateRequest { if (json == null) { return json; } return { 'number': json['number'], 'name': json['name'], 'destinationCode': json['destination_code'], }; } export function ExtensionCreateRequestToJSON(json: any): ExtensionCreateRequest { return ExtensionCreateRequestToJSONTyped(json, false); } export function ExtensionCreateRequestToJSONTyped(value?: ExtensionCreateRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'number': value['number'], 'name': value['name'], 'destination_code': value['destinationCode'], }; }