Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #70 from HelloFax/File-Support
Browse files Browse the repository at this point in the history
File support - addresses #68
  • Loading branch information
radhack committed Nov 27, 2017
2 parents ed73f80 + 5c5ff70 commit 5b225da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/hello_sign/api/signature_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def send_signature_request(opts)
# :title => 'Purchase Order',
# :subject => 'Purchase Order',
# :message => 'Glad we could come to an agreement.',
# :files => ['NDA.pdf', 'AppendixA.pdf'],
# :metadata => {
# :client_id => '1234',
# :custom_text => 'NDA #9'
Expand Down Expand Up @@ -209,6 +210,7 @@ def send_signature_request_with_template(opts)
prepare_ccs opts
prepare_templates opts
prepare_custom_fields opts
prepare_files opts

HelloSign::Resource::SignatureRequest.new post('/signature_request/send_with_template', :body => opts)
end
Expand Down Expand Up @@ -359,6 +361,7 @@ def create_embedded_signature_request(opts)
# :title => 'Purchase Order',
# :subject => 'Purchase Order',
# :message => 'Glad we could come to an agreement.',
# :files => ['NDA.pdf', 'AppendixA.pdf'],
# :metadata => {
# :client_id => '1234',
# :custom_text => 'NDA #9'
Expand Down Expand Up @@ -387,6 +390,7 @@ def create_embedded_signature_request_with_template(opts)
prepare_ccs opts
prepare_templates opts
prepare_custom_fields opts
prepare_files opts

HelloSign::Resource::SignatureRequest.new post('/signature_request/create_embedded_with_template', :body => opts)
end
Expand Down
2 changes: 2 additions & 0 deletions lib/hello_sign/api/unclaimed_draft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def create_embedded_unclaimed_draft(opts)
# :template_id => 'c26b8a16784a872da37ea946b9ddec7c1e11dff6',
# :requester_email_address => [email protected]",
# :message => 'Please sign this NDA and then we can discuss more. Let me know if you have any questions.',
# :files => ['NDA.pdf', 'AppendixA.pdf'],
# :metadata => {
# :client_id => '1234',
# :custom_text => 'NDA #9'
Expand Down Expand Up @@ -205,6 +206,7 @@ def create_embedded_unclaimed_draft_with_template(opts)
prepare_signers opts
prepare_ccs opts
prepare_templates opts
prepare_files opts
HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded_with_template', :body => opts)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/hello_sign/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
#

module HelloSign
VERSION = '3.5.1'
VERSION = '3.5.2'
end

0 comments on commit 5b225da

Please sign in to comment.