Skip to main content

lib/docusign/model/authentication.ex

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.

defmodule DocuSign.Model.Authentication do
  @moduledoc """
  Authentication and login
  """

  @derive [Poison.Encoder]
  defstruct [
    :apiPassword,
    :loginAccounts
  ]

  @type t :: %__MODULE__{
          :apiPassword => String.t(),
          :loginAccounts => [LoginAccount]
        }
end

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

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