Current section

Files

Jump to
docusign lib docusign model envelope_template_definition.ex
Raw

lib/docusign/model/envelope_template_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.EnvelopeTemplateDefinition do
@moduledoc """
A complex element containing the following information: templateId: Unique identifier of the template. If this is not provided, DocuSign will generate a value. name: Name of the template. Maximum length: 100 characters. shared: When set to **true**, the template is shared with the Everyone group in the account. If false, the template is only shared with the Administrator group. password: Password, if the template is locked. description: Description of the template. Maximum Length: 500 characters. pageCount: Number of document pages in the template. folderName: The name of the folder the template is located in. folderId: The ID for the folder. owner: The userName, email, userId, userType, and userStatus for the template owner.
"""
@derive [Poison.Encoder]
defstruct [
:created,
:description,
:folderId,
:folderName,
:folderUri,
:lastModified,
:lastModifiedBy,
:name,
:newPassword,
:owner,
:pageCount,
:parentFolderUri,
:password,
:shared,
:templateId,
:uri
]
@type t :: %__MODULE__{
:created => String.t(),
:description => String.t(),
:folderId => String.t(),
:folderName => String.t(),
:folderUri => String.t(),
:lastModified => String.t(),
:lastModifiedBy => UserInfo,
:name => String.t(),
:newPassword => String.t(),
:owner => UserInfo,
:pageCount => integer(),
:parentFolderUri => String.t(),
:password => String.t(),
:shared => String.t(),
:templateId => String.t(),
:uri => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.EnvelopeTemplateDefinition do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:lastModifiedBy, :struct, DocuSign.Model.UserInfo, options)
|> deserialize(:owner, :struct, DocuSign.Model.UserInfo, options)
end
end