lib/hello_sign/api/signature_request.rb in hellosign-ruby-sdk-3.3.0 vs lib/hello_sign/api/signature_request.rb in hellosign-ruby-sdk-3.4.0

- old
+ new

@@ -25,11 +25,11 @@ module HelloSign module Api # # Contains all the api about the SignatureRequest resource. - # Take a look at our {https://www.hellosign.com/api/reference#SignatureRequest signature request api document} + # Take a look at our {https://app.hellosign.com/api/reference#SignatureRequest signature request api document} # for more information about this. # # @author [hellosign] # module SignatureRequest @@ -272,11 +272,11 @@ # # Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. # If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. # Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on HelloSign. # @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 [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://www.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter. + # @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://app.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter. # @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. # @option opts [Array<String>] file_urls Use file_urls to have HelloSign download the file(s) to send for signature. Currently we only support use of either the files parameter or file_urls parameter, not both. # @option opts [String] title The title you want to assign to the SignatureRequest. # @option opts [String] subject The subject in the email that will be sent to the signers. # @option opts [String] message The custom message in the email that will be sent to the signers. @@ -327,11 +327,11 @@ # # Creates a new SignatureRequest based on the given Template to be signed in an embedded iFrame. # Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on HelloSign. # @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 [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://www.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter. + # @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://app.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter. # @option opts [String] template_id The id of the Template to use when creating the SignatureRequest. # @option opts [String] title The title you want to assign to the SignatureRequest. # @option opts [String] subject The subject in the email that will be sent to the signers. # @option opts [String] message The custom message in the email that will be sent to the signers. # @option opts [String] signing_redirect_url The URL you want the signer redirected to after they successfully sign. (optional) @@ -385,9 +385,15 @@ prepare_ccs opts prepare_templates opts prepare_custom_fields opts HelloSign::Resource::SignatureRequest.new post('/signature_request/create_embedded_with_template', :body => opts) + end + + def update_signature_request(opts) + signature_request_id = opts.delete(:signature_request_id) + path = "/signature_request/update/#{signature_request_id}" + HelloSign::Resource::SignatureRequest.new post(path, :body => opts) end end end end