UNPKG

@ringer-tel/telique

Version:
92 lines (81 loc) 2.75 kB
/* 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 CICRORResponse */ export interface CICRORResponse { /** * Carrier Identification Code * @type {string} * @memberof CICRORResponse */ carrier: string; /** * Responsible Organization * @type {string} * @memberof CICRORResponse */ ror: string; /** * Additional data from the interpretation * @type {object} * @memberof CICRORResponse */ data?: object; /** * Interpretation result data structure * @type {object} * @memberof CICRORResponse */ ir?: object; } /** * Check if a given object implements the CICRORResponse interface. */ export function instanceOfCICRORResponse(value: object): value is CICRORResponse { if (!('carrier' in value) || value['carrier'] === undefined) return false; if (!('ror' in value) || value['ror'] === undefined) return false; return true; } export function CICRORResponseFromJSON(json: any): CICRORResponse { return CICRORResponseFromJSONTyped(json, false); } export function CICRORResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CICRORResponse { if (json == null) { return json; } return { 'carrier': json['carrier'], 'ror': json['ror'], 'data': json['data'] == null ? undefined : json['data'], 'ir': json['ir'] == null ? undefined : json['ir'], }; } export function CICRORResponseToJSON(json: any): CICRORResponse { return CICRORResponseToJSONTyped(json, false); } export function CICRORResponseToJSONTyped(value?: CICRORResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'carrier': value['carrier'], 'ror': value['ror'], 'data': value['data'], 'ir': value['ir'], }; }