@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
75 lines (63 loc) • 2.28 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 { ThinClient } from './ThinClient';
import {
ThinClientFromJSON,
ThinClientFromJSONTyped,
ThinClientToJSON,
ThinClientToJSONTyped,
} from './ThinClient';
/**
* A list of available Thin Clients.
* @export
* @interface ThinClientListResponse
*/
export interface ThinClientListResponse {
/**
*
* @type {Array<ThinClient>}
* @memberof ThinClientListResponse
*/
thinClients: Array<ThinClient>;
}
/**
* Check if a given object implements the ThinClientListResponse interface.
*/
export function instanceOfThinClientListResponse(value: object): value is ThinClientListResponse {
if (!('thinClients' in value) || value['thinClients'] === undefined) return false;
return true;
}
export function ThinClientListResponseFromJSON(json: any): ThinClientListResponse {
return ThinClientListResponseFromJSONTyped(json, false);
}
export function ThinClientListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThinClientListResponse {
if (json == null) {
return json;
}
return {
'thinClients': ((json['thin_clients'] as Array<any>).map(ThinClientFromJSON)),
};
}
export function ThinClientListResponseToJSON(json: any): ThinClientListResponse {
return ThinClientListResponseToJSONTyped(json, false);
}
export function ThinClientListResponseToJSONTyped(value?: ThinClientListResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'thin_clients': ((value['thinClients'] as Array<any>).map(ThinClientToJSON)),
};
}