@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
84 lines (72 loc) • 2.29 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';
import type { TemplateFeature } from './TemplateFeature';
import {
TemplateFeatureFromJSON,
TemplateFeatureFromJSONTyped,
TemplateFeatureToJSON,
TemplateFeatureToJSONTyped,
} from './TemplateFeature';
/**
*
* @export
* @interface TemplateCore
*/
export interface TemplateCore {
/**
*
* @type {string}
* @memberof TemplateCore
*/
name: string;
/**
*
* @type {TemplateFeature}
* @memberof TemplateCore
*/
features: TemplateFeature;
}
/**
* Check if a given object implements the TemplateCore interface.
*/
export function instanceOfTemplateCore(value: object): value is TemplateCore {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('features' in value) || value['features'] === undefined) return false;
return true;
}
export function TemplateCoreFromJSON(json: any): TemplateCore {
return TemplateCoreFromJSONTyped(json, false);
}
export function TemplateCoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateCore {
if (json == null) {
return json;
}
return {
'name': json['name'],
'features': TemplateFeatureFromJSON(json['features']),
};
}
export function TemplateCoreToJSON(json: any): TemplateCore {
return TemplateCoreToJSONTyped(json, false);
}
export function TemplateCoreToJSONTyped(value?: TemplateCore | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'features': TemplateFeatureToJSON(value['features']),
};
}