@ringer-tel/telique
Version:
TypeScript SDK for Ringer APIs
85 lines (74 loc) • 2.71 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 DncUpdateReportInner
*/
export interface DncUpdateReportInner {
/**
* Area code (NPA)
* @type {number}
* @memberof DncUpdateReportInner
*/
npa: number;
/**
* Previous count of numbers in this NPA
* @type {number}
* @memberof DncUpdateReportInner
*/
oldCount: number;
/**
* Current count of numbers in this NPA
* @type {number}
* @memberof DncUpdateReportInner
*/
newCount: number;
}
/**
* Check if a given object implements the DncUpdateReportInner interface.
*/
export function instanceOfDncUpdateReportInner(value: object): value is DncUpdateReportInner {
if (!('npa' in value) || value['npa'] === undefined) return false;
if (!('oldCount' in value) || value['oldCount'] === undefined) return false;
if (!('newCount' in value) || value['newCount'] === undefined) return false;
return true;
}
export function DncUpdateReportInnerFromJSON(json: any): DncUpdateReportInner {
return DncUpdateReportInnerFromJSONTyped(json, false);
}
export function DncUpdateReportInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DncUpdateReportInner {
if (json == null) {
return json;
}
return {
'npa': json['npa'],
'oldCount': json['oldCount'],
'newCount': json['newCount'],
};
}
export function DncUpdateReportInnerToJSON(json: any): DncUpdateReportInner {
return DncUpdateReportInnerToJSONTyped(json, false);
}
export function DncUpdateReportInnerToJSONTyped(value?: DncUpdateReportInner | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'npa': value['npa'],
'oldCount': value['oldCount'],
'newCount': value['newCount'],
};
}