Current section

Files

Jump to
docusign lib docusign model envelope_document.ex
Raw

lib/docusign/model/envelope_document.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.EnvelopeDocument do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:attachmentTabId,
:authoritativeCopy,
:availableDocumentTypes,
:containsPdfFormFields,
:display,
:documentFields,
:documentGroup,
:documentId,
:errorDetails,
:includeInDownload,
:name,
:order,
:pages,
:signerMustAcknowledge,
:type,
:uri
]
@type t :: %__MODULE__{
:attachmentTabId => String.t(),
:authoritativeCopy => String.t(),
:availableDocumentTypes => [SignatureType],
:containsPdfFormFields => String.t(),
:display => String.t(),
:documentFields => [NameValue],
:documentGroup => String.t(),
:documentId => String.t(),
:errorDetails => ErrorDetails,
:includeInDownload => String.t(),
:name => String.t(),
:order => String.t(),
:pages => String.t(),
:signerMustAcknowledge => String.t(),
:type => String.t(),
:uri => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.EnvelopeDocument do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:availableDocumentTypes, :list, DocuSign.Model.SignatureType, options)
|> deserialize(:documentFields, :list, DocuSign.Model.NameValue, options)
|> deserialize(:errorDetails, :struct, DocuSign.Model.ErrorDetails, options)
end
end