UNPKG

@ringer-tel/ivy

Version:
79 lines (69 loc) 2.76 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.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 type { DomesticNumbersAndLocations } from './DomesticNumbersAndLocations'; import { instanceOfDomesticNumbersAndLocations, DomesticNumbersAndLocationsFromJSON, DomesticNumbersAndLocationsFromJSONTyped, DomesticNumbersAndLocationsToJSON, } from './DomesticNumbersAndLocations'; import type { InternationalNumberGroup } from './InternationalNumberGroup'; import { instanceOfInternationalNumberGroup, InternationalNumberGroupFromJSON, InternationalNumberGroupFromJSONTyped, InternationalNumberGroupToJSON, } from './InternationalNumberGroup'; /** * @type SearchPhoneNumbers200Response * * @export */ export type SearchPhoneNumbers200Response = DomesticNumbersAndLocations | InternationalNumberGroup; export function SearchPhoneNumbers200ResponseFromJSON(json: any): SearchPhoneNumbers200Response { return SearchPhoneNumbers200ResponseFromJSONTyped(json, false); } export function SearchPhoneNumbers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchPhoneNumbers200Response { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if (instanceOfDomesticNumbersAndLocations(json)) { return DomesticNumbersAndLocationsFromJSONTyped(json, true); } if (instanceOfInternationalNumberGroup(json)) { return InternationalNumberGroupFromJSONTyped(json, true); } return {} as any; } export function SearchPhoneNumbers200ResponseToJSON(json: any): any { return SearchPhoneNumbers200ResponseToJSONTyped(json, false); } export function SearchPhoneNumbers200ResponseToJSONTyped(value?: SearchPhoneNumbers200Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if (instanceOfDomesticNumbersAndLocations(value)) { return DomesticNumbersAndLocationsToJSON(value as DomesticNumbersAndLocations); } if (instanceOfInternationalNumberGroup(value)) { return InternationalNumberGroupToJSON(value as InternationalNumberGroup); } return {}; }