lib/mail_slurp_api/model/inbox_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.InboxDto do
  @moduledoc """
  Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts. `SMTP` inboxes use a custom mail server at `mx.mailslurp.com` and can only receive emails - they  are best used for public facing email addresses. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching. Inboxes can be private or allow team access. Team access enabled inboxes can be seen by other members of an organization. 
  """

  @derive [Poison.Encoder]
  defstruct [
    :"id",
    :"userId",
    :"createdAt",
    :"name",
    :"description",
    :"emailAddress",
    :"expiresAt",
    :"favourite",
    :"tags",
    :"inboxType",
    :"readOnly"
  ]

  @type t :: %__MODULE__{
    :"id" => String.t,
    :"userId" => String.t | nil,
    :"createdAt" => DateTime.t,
    :"name" => String.t | nil,
    :"description" => String.t | nil,
    :"emailAddress" => String.t,
    :"expiresAt" => String.t | nil,
    :"favourite" => boolean(),
    :"tags" => [String.t] | nil,
    :"inboxType" => String.t | nil,
    :"readOnly" => boolean()
  }
end

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