lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.5.1 vs lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.5.2
- old
+ new
@@ -176,10 +176,11 @@
# :test_mode => 1,
# :subject => 'The NDA we talked about',
# :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'
# },
# :signers => [
@@ -203,10 +204,10 @@
def create_embedded_unclaimed_draft_with_template(opts)
opts[:client_id] ||= self.client_id
prepare_signers opts
prepare_ccs opts
prepare_templates opts
- prepare_custom_fields opts
+ prepare_files opts
HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded_with_template', :body => opts)
end
def edit_and_resend_unclaimed_draft(opts)
signature_request_id = opts.delete(:signature_request_id)