lib/mail_slurp_api/model/sent_email_dto.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule MailSlurpAPI.Model.SentEmailDto do
  @moduledoc """
  Sent email details
  """

  @derive [Poison.Encoder]
  defstruct [
    :"id",
    :"userId",
    :"inboxId",
    :"domainId",
    :"to",
    :"from",
    :"replyTo",
    :"cc",
    :"bcc",
    :"attachments",
    :"subject",
    :"bodyMD5Hash",
    :"body",
    :"toContacts",
    :"toGroup",
    :"charset",
    :"isHTML",
    :"sentAt",
    :"pixelIds",
    :"messageId",
    :"messageIds",
    :"virtualSend",
    :"templateId",
    :"templateVariables",
    :"html"
  ]

  @type t :: %__MODULE__{
    :"id" => String.t,
    :"userId" => String.t,
    :"inboxId" => String.t,
    :"domainId" => String.t | nil,
    :"to" => [String.t] | nil,
    :"from" => String.t | nil,
    :"replyTo" => String.t | nil,
    :"cc" => [String.t] | nil,
    :"bcc" => [String.t] | nil,
    :"attachments" => [String.t] | nil,
    :"subject" => String.t | nil,
    :"bodyMD5Hash" => String.t | nil,
    :"body" => String.t | nil,
    :"toContacts" => [String.t] | nil,
    :"toGroup" => String.t | nil,
    :"charset" => String.t | nil,
    :"isHTML" => boolean() | nil,
    :"sentAt" => DateTime.t,
    :"pixelIds" => [String.t] | nil,
    :"messageId" => String.t | nil,
    :"messageIds" => [String.t] | nil,
    :"virtualSend" => boolean() | nil,
    :"templateId" => String.t | nil,
    :"templateVariables" => %{optional(String.t) => Map} | nil,
    :"html" => boolean() | nil
  }
end

defimpl Poison.Decoder, for: MailSlurpAPI.Model.SentEmailDto do
  def decode(value, _options) do
    value
  end
end