@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
90 lines (78 loc) • 2.93 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 { SchemasCallBlockResponseData } from './SchemasCallBlockResponseData';
import {
SchemasCallBlockResponseDataFromJSON,
SchemasCallBlockResponseDataFromJSONTyped,
SchemasCallBlockResponseDataToJSON,
SchemasCallBlockResponseDataToJSONTyped,
} from './SchemasCallBlockResponseData';
import type { Link } from './Link';
import {
LinkFromJSON,
LinkFromJSONTyped,
LinkToJSON,
LinkToJSONTyped,
} from './Link';
/**
*
* @export
* @interface SchemasCallBlockResponse
*/
export interface SchemasCallBlockResponse {
/**
*
* @type {SchemasCallBlockResponseData}
* @memberof SchemasCallBlockResponse
*/
data: SchemasCallBlockResponseData;
/**
* An object containing various HATEOAS links, where each key is the link relation type.
* @type {{ [key: string]: Link; }}
* @memberof SchemasCallBlockResponse
*/
links?: { [key: string]: Link; };
}
/**
* Check if a given object implements the SchemasCallBlockResponse interface.
*/
export function instanceOfSchemasCallBlockResponse(value: object): value is SchemasCallBlockResponse {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function SchemasCallBlockResponseFromJSON(json: any): SchemasCallBlockResponse {
return SchemasCallBlockResponseFromJSONTyped(json, false);
}
export function SchemasCallBlockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemasCallBlockResponse {
if (json == null) {
return json;
}
return {
'data': SchemasCallBlockResponseDataFromJSON(json['data']),
'links': json['links'] == null ? undefined : (mapValues(json['links'], LinkFromJSON)),
};
}
export function SchemasCallBlockResponseToJSON(json: any): SchemasCallBlockResponse {
return SchemasCallBlockResponseToJSONTyped(json, false);
}
export function SchemasCallBlockResponseToJSONTyped(value?: SchemasCallBlockResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'data': SchemasCallBlockResponseDataToJSON(value['data']),
'links': value['links'] == null ? undefined : (mapValues(value['links'], LinkToJSON)),
};
}