Skip to content

Commit

Permalink
Merge pull request #13 from alexio49/add_use_hidden_tags_mapping_to_d…
Browse files Browse the repository at this point in the history
…ocument

Add use_hidden_tags property to Document
  • Loading branch information
alexkhalevine authored Jun 1, 2021
2 parents aa52286 + 4f4a6c3 commit d24aba7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/create_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
document.title = 'Tile goes here'
document.message = '[email protected]'
document.sandbox = 1 #enable or disable sandbox mode
document.use_hidden_tags = 1

recipient = Eversign::Models::Recipient.new(name='Test', email='[email protected]')

Expand Down
3 changes: 2 additions & 1 deletion lib/eversign/mappings/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class Document

property :document_hash, :template_id, :sandbox, :is_draft, :title, :message, :use_signer_order, :reminders, :require_all_signers,
:redirect, :redirect_decline, :client, :expires, :embedded_signing_enabled, :requester_email, :is_template,
:is_completed, :is_archived, :is_deleted, :is_trashed, :is_cancelled, :embedded, :in_person, :permission
:is_completed, :is_archived, :is_deleted, :is_trashed, :is_cancelled, :embedded, :in_person, :permission,
:use_hidden_tags
property :files, plural: true, include: File
property :signers, plural: true, include: Signer
property :recipients, plural: true, include: Recipient
Expand Down
2 changes: 1 addition & 1 deletion lib/eversign/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Document
attr_accessor :document_hash, :template_id, :sandbox, :is_draft, :title, :message, :use_signer_order, :reminders, :require_all_signers,
:redirect, :redirect_decline, :client, :expires, :embedded_signing_enabled, :requester_email, :is_template,
:is_completed, :is_archived, :is_deleted, :is_trashed, :is_cancelled, :embedded, :in_person, :permission,
:files, :signers, :recipients, :meta, :fields
:files, :signers, :recipients, :meta, :fields, :use_hidden_tags

def add_file(file)
self.files ||= []
Expand Down

0 comments on commit d24aba7

Please sign in to comment.