@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
75 lines (63 loc) • 2.31 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.6
* 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 { CountryCode } from './CountryCode';
import {
CountryCodeFromJSON,
CountryCodeFromJSONTyped,
CountryCodeToJSON,
CountryCodeToJSONTyped,
} from './CountryCode';
/**
* A list of available country codes.
* @export
* @interface CountryCodeListResponse
*/
export interface CountryCodeListResponse {
/**
*
* @type {Array<CountryCode>}
* @memberof CountryCodeListResponse
*/
countryCodes: Array<CountryCode>;
}
/**
* Check if a given object implements the CountryCodeListResponse interface.
*/
export function instanceOfCountryCodeListResponse(value: object): value is CountryCodeListResponse {
if (!('countryCodes' in value) || value['countryCodes'] === undefined) return false;
return true;
}
export function CountryCodeListResponseFromJSON(json: any): CountryCodeListResponse {
return CountryCodeListResponseFromJSONTyped(json, false);
}
export function CountryCodeListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountryCodeListResponse {
if (json == null) {
return json;
}
return {
'countryCodes': ((json['country_codes'] as Array<any>).map(CountryCodeFromJSON)),
};
}
export function CountryCodeListResponseToJSON(json: any): CountryCodeListResponse {
return CountryCodeListResponseToJSONTyped(json, false);
}
export function CountryCodeListResponseToJSONTyped(value?: CountryCodeListResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'country_codes': ((value['countryCodes'] as Array<any>).map(CountryCodeToJSON)),
};
}