UNPKG

@ringer-tel/ivy

Version:
124 lines (112 loc) 3.59 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'; import type { TemplateFeature } from './TemplateFeature'; import { TemplateFeatureFromJSON, TemplateFeatureFromJSONTyped, TemplateFeatureToJSON, TemplateFeatureToJSONTyped, } from './TemplateFeature'; import type { SchemasLink } from './SchemasLink'; import { SchemasLinkFromJSON, SchemasLinkFromJSONTyped, SchemasLinkToJSON, SchemasLinkToJSONTyped, } from './SchemasLink'; /** * * @export * @interface TemplateResponse */ export interface TemplateResponse { /** * * @type {string} * @memberof TemplateResponse */ name: string; /** * * @type {TemplateFeature} * @memberof TemplateResponse */ features: TemplateFeature; /** * * @type {number} * @memberof TemplateResponse */ id: number; /** * * @type {string} * @memberof TemplateResponse */ lastUpdatedBy?: string | null; /** * * @type {string} * @memberof TemplateResponse */ owner?: string | null; /** * * @type {Array<SchemasLink>} * @memberof TemplateResponse */ links?: Array<SchemasLink> | null; } /** * Check if a given object implements the TemplateResponse interface. */ export function instanceOfTemplateResponse(value: object): value is TemplateResponse { if (!('name' in value) || value['name'] === undefined) return false; if (!('features' in value) || value['features'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; return true; } export function TemplateResponseFromJSON(json: any): TemplateResponse { return TemplateResponseFromJSONTyped(json, false); } export function TemplateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemplateResponse { if (json == null) { return json; } return { 'name': json['name'], 'features': TemplateFeatureFromJSON(json['features']), 'id': json['id'], 'lastUpdatedBy': json['last_updated_by'] == null ? undefined : json['last_updated_by'], 'owner': json['owner'] == null ? undefined : json['owner'], 'links': json['links'] == null ? undefined : ((json['links'] as Array<any>).map(SchemasLinkFromJSON)), }; } export function TemplateResponseToJSON(json: any): TemplateResponse { return TemplateResponseToJSONTyped(json, false); } export function TemplateResponseToJSONTyped(value?: TemplateResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'features': TemplateFeatureToJSON(value['features']), 'id': value['id'], 'last_updated_by': value['lastUpdatedBy'], 'owner': value['owner'], 'links': value['links'] == null ? undefined : ((value['links'] as Array<any>).map(SchemasLinkToJSON)), }; }