/* 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 DomainRegionInformation */ export interface DomainRegionInformation { /** * * @type {string} * @memberof DomainRegionInformation */ domainName: string; /** * * @type {boolean} * @memberof DomainRegionInformation */ verified: boolean; /** * Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. * @type {string} * @memberof DomainRegionInformation */ domainType: DomainRegionInformationDomainTypeEnum; /** * * @type {string} * @memberof DomainRegionInformation */ accountRegion?: DomainRegionInformationAccountRegionEnum; /** * * @type {boolean} * @memberof DomainRegionInformation */ creationEnabled: boolean; /** * * @type {boolean} * @memberof DomainRegionInformation */ sendingEnabled: boolean; /** * * @type {boolean} * @memberof DomainRegionInformation */ active: boolean; } /** * @export * @enum {string} */ export enum DomainRegionInformationDomainTypeEnum { HTTP_INBOX = 'HTTP_INBOX', SMTP_DOMAIN = 'SMTP_DOMAIN', } /** * @export * @enum {string} */ export enum DomainRegionInformationAccountRegionEnum { US_WEST_2_ACCOUNT_STAGING = 'US_WEST_2_ACCOUNT_STAGING', US_EAST_1_ACCOUNT_STAGING = 'US_EAST_1_ACCOUNT_STAGING', EU_WEST_1_ACCOUNT_STAGING = 'EU_WEST_1_ACCOUNT_STAGING', US_WEST_2_ACCOUNT_SES_1 = 'US_WEST_2_ACCOUNT_SES_1', EU_WEST_1_ACCOUNT_SES_1 = 'EU_WEST_1_ACCOUNT_SES_1', US_WEST_2_ACCOUNT_SES_2 = 'US_WEST_2_ACCOUNT_SES_2', EU_WEST_1_ACCOUNT_SES_2 = 'EU_WEST_1_ACCOUNT_SES_2', US_WEST_2_ACCOUNT_BYTEWISE = 'US_WEST_2_ACCOUNT_BYTEWISE', EU_WEST_1_ACCOUNT_BYTEWISE = 'EU_WEST_1_ACCOUNT_BYTEWISE', US_WEST_2 = 'US_WEST_2', EU_WEST_1 = 'EU_WEST_1', US_EAST_1 = 'US_EAST_1', } export function DomainRegionInformationFromJSON( json: any ): DomainRegionInformation { return DomainRegionInformationFromJSONTyped(json, false); } export function DomainRegionInformationFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DomainRegionInformation { if (json === undefined || json === null) { return json; } return { domainName: json['domainName'], verified: json['verified'], domainType: json['domainType'], accountRegion: !exists(json, 'accountRegion') ? undefined : json['accountRegion'], creationEnabled: json['creationEnabled'], sendingEnabled: json['sendingEnabled'], active: json['active'], }; } export function DomainRegionInformationToJSON( value?: DomainRegionInformation | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { domainName: value.domainName, verified: value.verified, domainType: value.domainType, accountRegion: value.accountRegion, creationEnabled: value.creationEnabled, sendingEnabled: value.sendingEnabled, active: value.active, }; }