lib/docusign/model/bcc_email_archive.ex

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

defmodule DocuSign.Model.BccEmailArchive do
  @moduledoc """
  The `EmailArchive` resource provides methods for managing your email archive configuration, which consists of the BCC email address or addresses that you want to use to archive DocuSign emails. Each account can use up to five BCC email addresses for archiving purposes.
  """

  @derive [Poison.Encoder]
  defstruct [
    :bccEmailArchiveHistory,
    :endPosition,
    :nextUri,
    :previousUri,
    :resultSetSize,
    :startPosition,
    :totalSetSize
  ]

  @type t :: %__MODULE__{
          :bccEmailArchiveHistory => [DocuSign.Model.BccEmailArchiveHistory.t()] | nil,
          :endPosition => String.t() | nil,
          :nextUri => String.t() | nil,
          :previousUri => String.t() | nil,
          :resultSetSize => String.t() | nil,
          :startPosition => String.t() | nil,
          :totalSetSize => String.t() | nil
        }
end

defimpl Poison.Decoder, for: DocuSign.Model.BccEmailArchive do
  import DocuSign.Deserializer

  def decode(value, options) do
    value
    |> deserialize(:bccEmailArchiveHistory, :list, DocuSign.Model.BccEmailArchiveHistory, options)
  end
end