@ringer-tel/telique
Version:
TypeScript SDK for Ringer APIs
67 lines (56 loc) • 1.97 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Telique API
* The Ringer Telique API provides access to telecommunications data, including caller name (CNAM) data, line type information, and more. The API also includes services for checking phone numbers against Do Not Originate (DNO) and Do Not Call (DNC) databases, as well as STIR/SHAKEN call authentication validation. ## Authentication This API uses IP whitelist authentication. Your server\'s IP address must be registered with Ringer before making API calls. Contact support@ringer.tel to register your IP address.
*
* The version of the OpenAPI document: 1.0.18
* 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';
/**
*
* @export
* @interface RORResponse
*/
export interface RORResponse {
/**
* Responsible Organization
* @type {string}
* @memberof RORResponse
*/
ror: string;
}
/**
* Check if a given object implements the RORResponse interface.
*/
export function instanceOfRORResponse(value: object): value is RORResponse {
if (!('ror' in value) || value['ror'] === undefined) return false;
return true;
}
export function RORResponseFromJSON(json: any): RORResponse {
return RORResponseFromJSONTyped(json, false);
}
export function RORResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RORResponse {
if (json == null) {
return json;
}
return {
'ror': json['ror'],
};
}
export function RORResponseToJSON(json: any): RORResponse {
return RORResponseToJSONTyped(json, false);
}
export function RORResponseToJSONTyped(value?: RORResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'ror': value['ror'],
};
}