/* 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'; /** * Optional test toggles for email intelligence scoring. * @export * @interface EmailIntelligenceTestsOptions */ export interface EmailIntelligenceTestsOptions { /** * Check local-part randomness for email inputs. * @type {boolean} * @memberof EmailIntelligenceTestsOptions */ checkRandomLocalPart?: boolean | null; /** * Check if domain is a known free email provider. * @type {boolean} * @memberof EmailIntelligenceTestsOptions */ checkFreeProvider?: boolean | null; /** * Check if the domain has a reachable HTTPS website. * @type {boolean} * @memberof EmailIntelligenceTestsOptions */ checkHttpsWebsite?: boolean | null; /** * Check DNS records (A, MX, SOA) for the domain. * @type {boolean} * @memberof EmailIntelligenceTestsOptions */ checkDns?: boolean | null; /** * Derive a domain age hint from DNS SOA serial when possible. * @type {boolean} * @memberof EmailIntelligenceTestsOptions */ checkDomainAgeHint?: boolean | null; } export function EmailIntelligenceTestsOptionsFromJSON( json: any ): EmailIntelligenceTestsOptions { return EmailIntelligenceTestsOptionsFromJSONTyped(json, false); } export function EmailIntelligenceTestsOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EmailIntelligenceTestsOptions { if (json === undefined || json === null) { return json; } return { checkRandomLocalPart: !exists(json, 'checkRandomLocalPart') ? undefined : json['checkRandomLocalPart'], checkFreeProvider: !exists(json, 'checkFreeProvider') ? undefined : json['checkFreeProvider'], checkHttpsWebsite: !exists(json, 'checkHttpsWebsite') ? undefined : json['checkHttpsWebsite'], checkDns: !exists(json, 'checkDns') ? undefined : json['checkDns'], checkDomainAgeHint: !exists(json, 'checkDomainAgeHint') ? undefined : json['checkDomainAgeHint'], }; } export function EmailIntelligenceTestsOptionsToJSON( value?: EmailIntelligenceTestsOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { checkRandomLocalPart: value.checkRandomLocalPart, checkFreeProvider: value.checkFreeProvider, checkHttpsWebsite: value.checkHttpsWebsite, checkDns: value.checkDns, checkDomainAgeHint: value.checkDomainAgeHint, }; }