@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
122 lines (111 loc) • 3.64 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';
/**
* Fields that can be updated for an existing device. Login is typically not updatable.
* @export
* @interface DeviceUpdateRequest
*/
export interface DeviceUpdateRequest {
/**
*
* @type {string}
* @memberof DeviceUpdateRequest
*/
name?: string;
/**
*
* @type {boolean}
* @memberof DeviceUpdateRequest
*/
active?: boolean;
/**
*
* @type {number}
* @memberof DeviceUpdateRequest
*/
channelLimit?: number;
/**
*
* @type {number}
* @memberof DeviceUpdateRequest
*/
timeout?: number;
/**
*
* @type {string}
* @memberof DeviceUpdateRequest
*/
callerIdName?: string | null;
/**
*
* @type {string}
* @memberof DeviceUpdateRequest
*/
callerIdNumber?: string | null;
/**
*
* @type {string}
* @memberof DeviceUpdateRequest
*/
acl?: string | null;
/**
*
* @type {string}
* @memberof DeviceUpdateRequest
*/
failOverDestinationCode?: string | null;
}
/**
* Check if a given object implements the DeviceUpdateRequest interface.
*/
export function instanceOfDeviceUpdateRequest(value: object): value is DeviceUpdateRequest {
return true;
}
export function DeviceUpdateRequestFromJSON(json: any): DeviceUpdateRequest {
return DeviceUpdateRequestFromJSONTyped(json, false);
}
export function DeviceUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceUpdateRequest {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'active': json['active'] == null ? undefined : json['active'],
'channelLimit': json['channel_limit'] == null ? undefined : json['channel_limit'],
'timeout': json['timeout'] == null ? undefined : json['timeout'],
'callerIdName': json['caller_id_name'] == null ? undefined : json['caller_id_name'],
'callerIdNumber': json['caller_id_number'] == null ? undefined : json['caller_id_number'],
'acl': json['acl'] == null ? undefined : json['acl'],
'failOverDestinationCode': json['fail_over_destination_code'] == null ? undefined : json['fail_over_destination_code'],
};
}
export function DeviceUpdateRequestToJSON(json: any): DeviceUpdateRequest {
return DeviceUpdateRequestToJSONTyped(json, false);
}
export function DeviceUpdateRequestToJSONTyped(value?: DeviceUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'active': value['active'],
'channel_limit': value['channelLimit'],
'timeout': value['timeout'],
'caller_id_name': value['callerIdName'],
'caller_id_number': value['callerIdNumber'],
'acl': value['acl'],
'fail_over_destination_code': value['failOverDestinationCode'],
};
}