/* 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'; /** * * @export * @interface AvailablePhoneNumberDto */ export interface AvailablePhoneNumberDto { /** * * @type {string} * @memberof AvailablePhoneNumberDto */ phoneNumber: string; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ phoneCountry: AvailablePhoneNumberDtoPhoneCountryEnum; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ phoneVariant?: AvailablePhoneNumberDtoPhoneVariantEnum; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ lineType?: string; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ carrierName?: string; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ mobileCountryCode?: string; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ mobileNetworkCode?: string; /** * * @type {string} * @memberof AvailablePhoneNumberDto */ providerLabel?: string; } /** * @export * @enum {string} */ export enum AvailablePhoneNumberDtoPhoneCountryEnum { 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 AvailablePhoneNumberDtoPhoneVariantEnum { LOCAL = 'LOCAL', MOBILE = 'MOBILE', TOLL_FREE = 'TOLL_FREE', } export function AvailablePhoneNumberDtoFromJSON( json: any ): AvailablePhoneNumberDto { return AvailablePhoneNumberDtoFromJSONTyped(json, false); } export function AvailablePhoneNumberDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): AvailablePhoneNumberDto { if (json === undefined || json === null) { return json; } return { phoneNumber: json['phoneNumber'], phoneCountry: json['phoneCountry'], phoneVariant: !exists(json, 'phoneVariant') ? undefined : json['phoneVariant'], 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'], providerLabel: !exists(json, 'providerLabel') ? undefined : json['providerLabel'], }; } export function AvailablePhoneNumberDtoToJSON( value?: AvailablePhoneNumberDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { phoneNumber: value.phoneNumber, phoneCountry: value.phoneCountry, phoneVariant: value.phoneVariant, lineType: value.lineType, carrierName: value.carrierName, mobileCountryCode: value.mobileCountryCode, mobileNetworkCode: value.mobileNetworkCode, providerLabel: value.providerLabel, }; }