From 15aa24e17cf8bcdb22f4c25c436ce4039d7b00c1 Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 11:35:34 -0800 Subject: [PATCH 1/6] Add prepare_files method to template signature request methods --- lib/hello_sign/api/signature_request.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hello_sign/api/signature_request.rb b/lib/hello_sign/api/signature_request.rb index 03fa5e0..9155afa 100644 --- a/lib/hello_sign/api/signature_request.rb +++ b/lib/hello_sign/api/signature_request.rb @@ -208,6 +208,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 @@ -385,6 +386,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 From a23e17e875ddfede98ffcbfe66ae556e3a30a2fe Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 11:37:36 -0800 Subject: [PATCH 2/6] Update SDK version --- lib/hello_sign/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hello_sign/version.rb b/lib/hello_sign/version.rb index 84cd144..ec1834b 100644 --- a/lib/hello_sign/version.rb +++ b/lib/hello_sign/version.rb @@ -23,5 +23,5 @@ # module HelloSign - VERSION = '3.5.0' + VERSION = '3.5.1' end From 44c2ba78cce48726b5c27548b0c7e28526bd5222 Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 11:55:16 -0800 Subject: [PATCH 3/6] Add files to signature request with template examples --- lib/hello_sign/api/signature_request.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hello_sign/api/signature_request.rb b/lib/hello_sign/api/signature_request.rb index 9155afa..b9e1dcf 100644 --- a/lib/hello_sign/api/signature_request.rb +++ b/lib/hello_sign/api/signature_request.rb @@ -180,6 +180,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' @@ -358,6 +359,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' From 1ef1dd7633c8bb50e40390fdc28c8bb63c668966 Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 11:57:38 -0800 Subject: [PATCH 4/6] Version bump to 3.5.2 --- lib/hello_sign/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From cd75db16ec16a094f840343201ad668107006322 Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 13:32:58 -0800 Subject: [PATCH 5/6] Add prepare files method to unclaimed draft endpoint --- lib/hello_sign/api/unclaimed_draft.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hello_sign/api/unclaimed_draft.rb b/lib/hello_sign/api/unclaimed_draft.rb index e04683e..d0fdf0b 100644 --- a/lib/hello_sign/api/unclaimed_draft.rb +++ b/lib/hello_sign/api/unclaimed_draft.rb @@ -205,6 +205,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 From 5c5ff701a411acc28614efbc7c96bc53782e1de6 Mon Sep 17 00:00:00 2001 From: Jen Young Date: Mon, 27 Nov 2017 13:33:59 -0800 Subject: [PATCH 6/6] Add files parameter to example request --- lib/hello_sign/api/unclaimed_draft.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hello_sign/api/unclaimed_draft.rb b/lib/hello_sign/api/unclaimed_draft.rb index d0fdf0b..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'