Packages

Implements the free document signing API provided by pandadoc.com

Current section

Files

Jump to
pandadoc lib panda_doc model recipient.ex
Raw

lib/panda_doc/model/recipient.ex

defmodule PandaDoc.Model.Recipient do
@moduledoc """
Structure holding information about a Document signer/recipient.
"""
@derive [Poison.Encoder]
defstruct [
:email,
:first_name,
:last_name,
:role
]
@type t :: %__MODULE__{
:email => String.t(),
:first_name => String.t(),
:last_name => String.t(),
:role => String.t()
}
end
defimpl Poison.Decoder, for: PandaDoc.Model.Recipient do
@moduledoc "Deserialization Helper for Poison."
def decode(value, _options) do
value
end
end