lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.6.3 vs lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.6.4

- old
+ new

@@ -53,10 +53,11 @@ # * :name (String) Sender' name # * :email_address (String) Sender's email address # * :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. + # @option opts [Array<Hash>] custom_fields An array of custom merge fields, representing those present on the document with Text Tags. # @option opts [String] form_fields_per_document # # @return [HelloSign::Resource::UnclaimedDraft] a UnclaimedDraft object # # @example send_document @@ -89,10 +90,12 @@ # ) # def create_unclaimed_draft opts prepare_files opts prepare_form_fields opts + prepare_custom_fields opts + if opts[:type] == 'request_signature' prepare_signers opts end HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create', :body => opts) @@ -114,10 +117,11 @@ # * :name (String) Sender' name # * :email_address (String) Sender's email address # * :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. + # @option opts [Array<Hash>] custom_fields An array of custom merge fields, representing those present on the document with Text Tags. # # @return [HelloSign::Resource::UnclaimedDraft] a UnclaimedDraft object # # @example request_signature # unclaimed_draft = @client.create_embedded_unclaimed_draft( @@ -145,9 +149,11 @@ # ) # def create_embedded_unclaimed_draft(opts) opts[:client_id] ||= self.client_id prepare_files opts + prepare_custom_fields opts + if opts[:type] == 'request_signature' || opts[:type] == 'send_document' prepare_signers opts end HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded', :body => opts)