@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
84 lines (73 loc) • 2.54 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';
/**
*
* @export
* @interface FaxMachineCore
*/
export interface FaxMachineCore {
/**
* A user-friendly name for the fax machine configuration.
* @type {string}
* @memberof FaxMachineCore
*/
name: string;
/**
* Comma-separated list of email addresses to which received faxes (as PDF) will be sent.
* @type {string}
* @memberof FaxMachineCore
*/
notificationEmails: string;
/**
* Identifier of the user primarily associated with this fax machine, if any.
* @type {number}
* @memberof FaxMachineCore
*/
userId?: number | null;
}
/**
* Check if a given object implements the FaxMachineCore interface.
*/
export function instanceOfFaxMachineCore(value: object): value is FaxMachineCore {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('notificationEmails' in value) || value['notificationEmails'] === undefined) return false;
return true;
}
export function FaxMachineCoreFromJSON(json: any): FaxMachineCore {
return FaxMachineCoreFromJSONTyped(json, false);
}
export function FaxMachineCoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): FaxMachineCore {
if (json == null) {
return json;
}
return {
'name': json['name'],
'notificationEmails': json['notification_emails'],
'userId': json['user_id'] == null ? undefined : json['user_id'],
};
}
export function FaxMachineCoreToJSON(json: any): FaxMachineCore {
return FaxMachineCoreToJSONTyped(json, false);
}
export function FaxMachineCoreToJSONTyped(value?: FaxMachineCore | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'notification_emails': value['notificationEmails'],
'user_id': value['userId'],
};
}