lib/hello_sign/api/signature_request.rb in hellosign-ruby-sdk-3.5.1 vs lib/hello_sign/api/signature_request.rb in hellosign-ruby-sdk-3.5.2
- old
+ new
@@ -179,10 +179,11 @@
# :allow_decline => 0,
# :template_id => 'c26b8a16784a872da37ea946b9ddec7c1e11dff6',
# :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'
# },
# :signers => [
@@ -207,10 +208,11 @@
def send_signature_request_with_template(opts)
prepare_signers 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
#
@@ -357,10 +359,11 @@
# :client_id => 'b6b8e7deaf8f0b95c029dca049356d4a2cf9710a',
# :template_id => 'c26b8a16784a872da37ea946b9ddec7c1e11dff6',
# :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'
# },
# :signers => [
@@ -385,9 +388,10 @@
opts[:client_id] ||= self.client_id
prepare_signers 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
def update_signature_request(opts)