UNPKG

mailslurp-client

Version:

Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.

93 lines (88 loc) 2.47 kB
/* 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 EmailHeaderReceivedHop */ export interface EmailHeaderReceivedHop { /** * * @type {string} * @memberof EmailHeaderReceivedHop */ from?: string; /** * * @type {string} * @memberof EmailHeaderReceivedHop */ by?: string; /** * * @type {string} * @memberof EmailHeaderReceivedHop */ withValue?: string; /** * * @type {string} * @memberof EmailHeaderReceivedHop */ timestamp?: string; /** * * @type {number} * @memberof EmailHeaderReceivedHop */ delayMs?: number; } export function EmailHeaderReceivedHopFromJSON( json: any ): EmailHeaderReceivedHop { return EmailHeaderReceivedHopFromJSONTyped(json, false); } export function EmailHeaderReceivedHopFromJSONTyped( json: any, ignoreDiscriminator: boolean ): EmailHeaderReceivedHop { if (json === undefined || json === null) { return json; } return { from: !exists(json, 'from') ? undefined : json['from'], by: !exists(json, 'by') ? undefined : json['by'], withValue: !exists(json, 'withValue') ? undefined : json['withValue'], timestamp: !exists(json, 'timestamp') ? undefined : json['timestamp'], delayMs: !exists(json, 'delayMs') ? undefined : json['delayMs'], }; } export function EmailHeaderReceivedHopToJSON( value?: EmailHeaderReceivedHop | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { from: value.from, by: value.by, withValue: value.withValue, timestamp: value.timestamp, delayMs: value.delayMs, }; }