lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.0.3 vs lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.0.4
- old
+ new
@@ -67,11 +67,10 @@
end
HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create', :body => opts)
end
-
#
# Creates a new embedded unclaimed draft object that can be launched in an iframe using the claim URL.
# @option opts [Integer] test_mode (0) Whether this is a test, the signature request will not be legally binding if set to 1.
# @option opts [Integer] is_for_embedded_signing set this to 1 to to mix embedded requesting and embedded signing.
# @option opts [Array<String>] files Use files to indicate the uploaded file(s) to send for signature. Currently we only support use of either the files parameter or file_urls parameter, not both.
@@ -88,11 +87,11 @@
# * :order (Integer) The order the signer is required to sign in (optional)
# * :pin (Integer) The 4-digit code that will secure this signer's signature page. You must have a business plan to use this feature. (optional)
# @option opts [Array<String>] cc_email_addresses The email addresses that should be CCed.
#
# @return [HelloSign::Resource::UnclaimedDraft] a UnclaimedDraft object
-
+ #
# @example request_signature
# unclaimed_draft = @client.create_embedded_unclaimed_draft(
# :test_mode => 1,
# :type => 'request_signature',
# :subject => 'The NDA we talked about',
@@ -110,18 +109,17 @@
# ],
# :cc_email_addresses => ['lawyer@example.com', 'lawyer@example2.com'],
# :files => ['NDA.pdf', 'AppendixA.pdf']
# )
#
- def create_embedded_unclaimed_draft opts
+ def create_embedded_unclaimed_draft(opts)
opts[:client_id] ||= self.client_id
prepare_files opts
if opts[:type] == 'request_signature'
prepare_signers opts
end
HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded', :body => opts)
end
-
end
end
end