lib/mail_slurp_api/model/inbox_preview.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.InboxPreview do
  @moduledoc """
  Inbox data preview element.
  """

  @derive [Poison.Encoder]
  defstruct [
    :"id",
    :"domainId",
    :"emailAddress",
    :"createdAt",
    :"favourite",
    :"name",
    :"tags",
    :"teamAccess",
    :"inboxType",
    :"virtualInbox",
    :"expiresAt"
  ]

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

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