Current section

Files

Jump to
docusign lib docusign model envelope_definition.ex
Raw

lib/docusign/model/envelope_definition.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.EnvelopeDefinition do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:accessibility,
:allowMarkup,
:allowReassign,
:allowRecipientRecursion,
:allowViewHistory,
:asynchronous,
:attachments,
:attachmentsUri,
:authoritativeCopy,
:authoritativeCopyDefault,
:autoNavigation,
:brandId,
:brandLock,
:certificateUri,
:completedDateTime,
:compositeTemplates,
:createdDateTime,
:customFields,
:customFieldsUri,
:declinedDateTime,
:deletedDateTime,
:deliveredDateTime,
:documents,
:documentsCombinedUri,
:documentsUri,
:emailBlurb,
:emailSettings,
:emailSubject,
:enableWetSign,
:enforceSignerVisibility,
:envelopeId,
:envelopeIdStamping,
:envelopeUri,
:eventNotification,
:initialSentDateTime,
:is21CFRPart11,
:isSignatureProviderEnvelope,
:lastModifiedDateTime,
:lockInformation,
:messageLock,
:notification,
:notificationUri,
:password,
:purgeState,
:recipients,
:recipientsLock,
:recipientsUri,
:sentDateTime,
:signerCanSignOnMobile,
:signingLocation,
:status,
:statusChangedDateTime,
:templateId,
:templateRoles,
:templatesUri,
:transactionId,
:useDisclosure,
:voidedDateTime,
:voidedReason
]
@type t :: %__MODULE__{
:accessibility => String.t(),
:allowMarkup => String.t(),
:allowReassign => String.t(),
:allowRecipientRecursion => String.t(),
:allowViewHistory => String.t(),
:asynchronous => String.t(),
:attachments => [Attachment],
:attachmentsUri => String.t(),
:authoritativeCopy => String.t(),
:authoritativeCopyDefault => String.t(),
:autoNavigation => String.t(),
:brandId => String.t(),
:brandLock => String.t(),
:certificateUri => String.t(),
:completedDateTime => String.t(),
:compositeTemplates => [CompositeTemplate],
:createdDateTime => String.t(),
:customFields => AccountCustomFields,
:customFieldsUri => String.t(),
:declinedDateTime => String.t(),
:deletedDateTime => String.t(),
:deliveredDateTime => String.t(),
:documents => [Document],
:documentsCombinedUri => String.t(),
:documentsUri => String.t(),
:emailBlurb => String.t(),
:emailSettings => EnvelopeEmailSettings,
:emailSubject => String.t(),
:enableWetSign => String.t(),
:enforceSignerVisibility => String.t(),
:envelopeId => String.t(),
:envelopeIdStamping => String.t(),
:envelopeUri => String.t(),
:eventNotification => EventNotification,
:initialSentDateTime => String.t(),
:is21CFRPart11 => String.t(),
:isSignatureProviderEnvelope => String.t(),
:lastModifiedDateTime => String.t(),
:lockInformation => EnvelopeLocks,
:messageLock => String.t(),
:notification => Notification,
:notificationUri => String.t(),
:password => String.t(),
:purgeState => String.t(),
:recipients => EnvelopeRecipients,
:recipientsLock => String.t(),
:recipientsUri => String.t(),
:sentDateTime => String.t(),
:signerCanSignOnMobile => String.t(),
:signingLocation => String.t(),
:status => String.t(),
:statusChangedDateTime => String.t(),
:templateId => String.t(),
:templateRoles => [TemplateRole],
:templatesUri => String.t(),
:transactionId => String.t(),
:useDisclosure => String.t(),
:voidedDateTime => String.t(),
:voidedReason => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.EnvelopeDefinition do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:attachments, :list, DocuSign.Model.Attachment, options)
|> deserialize(:compositeTemplates, :list, DocuSign.Model.CompositeTemplate, options)
|> deserialize(:customFields, :struct, DocuSign.Model.AccountCustomFields, options)
|> deserialize(:documents, :list, DocuSign.Model.Document, options)
|> deserialize(:emailSettings, :struct, DocuSign.Model.EnvelopeEmailSettings, options)
|> deserialize(:eventNotification, :struct, DocuSign.Model.EventNotification, options)
|> deserialize(:lockInformation, :struct, DocuSign.Model.EnvelopeLocks, options)
|> deserialize(:notification, :struct, DocuSign.Model.Notification, options)
|> deserialize(:recipients, :struct, DocuSign.Model.EnvelopeRecipients, options)
|> deserialize(:templateRoles, :list, DocuSign.Model.TemplateRole, options)
end
end