lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.5.4 vs lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.6

- old
+ new

@@ -145,11 +145,11 @@ # ) # def create_embedded_unclaimed_draft(opts) opts[:client_id] ||= self.client_id prepare_files opts - if opts[:type] == 'request_signature' + if opts[:type] == 'request_signature' || opts[:type] == 'send_document' prepare_signers opts end HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded', :body => opts) end @@ -203,9 +203,10 @@ # ) # def create_embedded_unclaimed_draft_with_template(opts) opts[:client_id] ||= self.client_id prepare_signers opts + prepare_custom_fields opts prepare_ccs opts prepare_templates opts prepare_files opts HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded_with_template', :body => opts) end