/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * Search criteria for advanced phone provisioning * @export * @interface SearchAvailablePhoneNumbersOptions */ export interface SearchAvailablePhoneNumbersOptions { /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ phoneCountry: SearchAvailablePhoneNumbersOptionsPhoneCountryEnum; /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ phoneVariant?: SearchAvailablePhoneNumbersOptionsPhoneVariantEnum; /** * Quality filter for advanced phone provisioning search * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ qualityFilter?: SearchAvailablePhoneNumbersOptionsQualityFilterEnum; /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ lineType?: string | null; /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ carrierName?: string | null; /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ mobileCountryCode?: string | null; /** * * @type {string} * @memberof SearchAvailablePhoneNumbersOptions */ mobileNetworkCode?: string | null; /** * * @type {Array} * @memberof SearchAvailablePhoneNumbersOptions */ providerLabels?: Array | null; /** * * @type {number} * @memberof SearchAvailablePhoneNumbersOptions */ limit?: number | null; } /** * @export * @enum {string} */ export enum SearchAvailablePhoneNumbersOptionsPhoneCountryEnum { US = 'US', GB = 'GB', AU = 'AU', CA = 'CA', EE = 'EE', HK = 'HK', PL = 'PL', PT = 'PT', NL = 'NL', IL = 'IL', FI = 'FI', SE = 'SE', } /** * @export * @enum {string} */ export enum SearchAvailablePhoneNumbersOptionsPhoneVariantEnum { LOCAL = 'LOCAL', MOBILE = 'MOBILE', TOLL_FREE = 'TOLL_FREE', } /** * @export * @enum {string} */ export enum SearchAvailablePhoneNumbersOptionsQualityFilterEnum { OTP = 'OTP', NON_VOIP = 'NON_VOIP', MOBILE_ONLY = 'MOBILE_ONLY', ANY = 'ANY', } export function SearchAvailablePhoneNumbersOptionsFromJSON( json: any ): SearchAvailablePhoneNumbersOptions { return SearchAvailablePhoneNumbersOptionsFromJSONTyped(json, false); } export function SearchAvailablePhoneNumbersOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): SearchAvailablePhoneNumbersOptions { if (json === undefined || json === null) { return json; } return { phoneCountry: json['phoneCountry'], phoneVariant: !exists(json, 'phoneVariant') ? undefined : json['phoneVariant'], qualityFilter: !exists(json, 'qualityFilter') ? undefined : json['qualityFilter'], lineType: !exists(json, 'lineType') ? undefined : json['lineType'], carrierName: !exists(json, 'carrierName') ? undefined : json['carrierName'], mobileCountryCode: !exists(json, 'mobileCountryCode') ? undefined : json['mobileCountryCode'], mobileNetworkCode: !exists(json, 'mobileNetworkCode') ? undefined : json['mobileNetworkCode'], providerLabels: !exists(json, 'providerLabels') ? undefined : json['providerLabels'], limit: !exists(json, 'limit') ? undefined : json['limit'], }; } export function SearchAvailablePhoneNumbersOptionsToJSON( value?: SearchAvailablePhoneNumbersOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { phoneCountry: value.phoneCountry, phoneVariant: value.phoneVariant, qualityFilter: value.qualityFilter, lineType: value.lineType, carrierName: value.carrierName, mobileCountryCode: value.mobileCountryCode, mobileNetworkCode: value.mobileNetworkCode, providerLabels: value.providerLabels, limit: value.limit, }; }