UNPKG

@ringer-tel/ivy

Version:
90 lines (78 loc) 2.75 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.6 * 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 { SiteResponse } from './SiteResponse'; import { SiteResponseFromJSON, SiteResponseFromJSONTyped, SiteResponseToJSON, SiteResponseToJSONTyped, } from './SiteResponse'; import type { SchemasLink } from './SchemasLink'; import { SchemasLinkFromJSON, SchemasLinkFromJSONTyped, SchemasLinkToJSON, SchemasLinkToJSONTyped, } from './SchemasLink'; /** * A list of sites associated with an account. * @export * @interface SiteListResponse */ export interface SiteListResponse { /** * * @type {Array<SiteResponse>} * @memberof SiteListResponse */ sites: Array<SiteResponse>; /** * HATEOAS links related to this site. * @type {Array<SchemasLink>} * @memberof SiteListResponse */ links?: Array<SchemasLink> | null; } /** * Check if a given object implements the SiteListResponse interface. */ export function instanceOfSiteListResponse(value: object): value is SiteListResponse { if (!('sites' in value) || value['sites'] === undefined) return false; return true; } export function SiteListResponseFromJSON(json: any): SiteListResponse { return SiteListResponseFromJSONTyped(json, false); } export function SiteListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResponse { if (json == null) { return json; } return { 'sites': ((json['sites'] as Array<any>).map(SiteResponseFromJSON)), 'links': json['links'] == null ? undefined : ((json['links'] as Array<any>).map(SchemasLinkFromJSON)), }; } export function SiteListResponseToJSON(json: any): SiteListResponse { return SiteListResponseToJSONTyped(json, false); } export function SiteListResponseToJSONTyped(value?: SiteListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sites': ((value['sites'] as Array<any>).map(SiteResponseToJSON)), 'links': value['links'] == null ? undefined : ((value['links'] as Array<any>).map(SchemasLinkToJSON)), }; }