UNPKG

@ringer-tel/ivy

Version:
75 lines (63 loc) 2.58 kB
/* 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 { AvailablePhoneNumber } from './AvailablePhoneNumber'; import { AvailablePhoneNumberFromJSON, AvailablePhoneNumberFromJSONTyped, AvailablePhoneNumberToJSON, AvailablePhoneNumberToJSONTyped, } from './AvailablePhoneNumber'; /** * A list of available or contextually relevant phone numbers. * @export * @interface AvailablePhoneNumberListResponse */ export interface AvailablePhoneNumberListResponse { /** * * @type {Array<AvailablePhoneNumber>} * @memberof AvailablePhoneNumberListResponse */ phoneNumbers: Array<AvailablePhoneNumber>; } /** * Check if a given object implements the AvailablePhoneNumberListResponse interface. */ export function instanceOfAvailablePhoneNumberListResponse(value: object): value is AvailablePhoneNumberListResponse { if (!('phoneNumbers' in value) || value['phoneNumbers'] === undefined) return false; return true; } export function AvailablePhoneNumberListResponseFromJSON(json: any): AvailablePhoneNumberListResponse { return AvailablePhoneNumberListResponseFromJSONTyped(json, false); } export function AvailablePhoneNumberListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailablePhoneNumberListResponse { if (json == null) { return json; } return { 'phoneNumbers': ((json['phone_numbers'] as Array<any>).map(AvailablePhoneNumberFromJSON)), }; } export function AvailablePhoneNumberListResponseToJSON(json: any): AvailablePhoneNumberListResponse { return AvailablePhoneNumberListResponseToJSONTyped(json, false); } export function AvailablePhoneNumberListResponseToJSONTyped(value?: AvailablePhoneNumberListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'phone_numbers': ((value['phoneNumbers'] as Array<any>).map(AvailablePhoneNumberToJSON)), }; }