diff --git a/lib/hello_sign/api/signature_request.rb b/lib/hello_sign/api/signature_request.rb index ced710b..fe62351 100644 --- a/lib/hello_sign/api/signature_request.rb +++ b/lib/hello_sign/api/signature_request.rb @@ -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' @@ -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 @@ -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' @@ -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 diff --git a/lib/hello_sign/api/unclaimed_draft.rb b/lib/hello_sign/api/unclaimed_draft.rb index e04683e..294910b 100644 --- a/lib/hello_sign/api/unclaimed_draft.rb +++ b/lib/hello_sign/api/unclaimed_draft.rb @@ -178,6 +178,7 @@ def create_embedded_unclaimed_draft(opts) # :template_id => 'c26b8a16784a872da37ea946b9ddec7c1e11dff6', # :requester_email_address => requester@example.com", # :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' @@ -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 diff --git a/lib/hello_sign/version.rb b/lib/hello_sign/version.rb index ec1834b..57260a6 100644 --- a/lib/hello_sign/version.rb +++ b/lib/hello_sign/version.rb @@ -23,5 +23,5 @@ # module HelloSign - VERSION = '3.5.1' + VERSION = '3.5.2' end