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

- old
+ new

@@ -65,11 +65,12 @@ def get_signature_requests(opts={}) path = '/signature_request/list' opts[:query] = create_search_string(opts[:query]) if opts[:query] query = create_query_string(opts, [:page, :page_size, :ux_version, :query]) path += query - HelloSign::Resource::ResourceArray.new get(path, opts), 'signature_requests', HelloSign::Resource::SignatureRequest + HelloSign::Resource::ResourceArray.new get(path, opts), 'signature_requests', HelloSign::Resource::SignatureRequest + end # # Creates and sends a new SignatureRequest with the submitted documents. # If form_fields_per_document is not specified, a signature page will be affixed at the end @@ -231,9 +232,19 @@ # # @example # @client.cancel_signature_request :signature_request_id => '75cdf7dc8b323d43b347e4a3614d1f822bd09491' def cancel_signature_request(opts) post("/signature_request/cancel/#{opts[:signature_request_id]}", :body => opts) + end + + # + # Removes your access to a completed a SignatureRequest. + # @option opts [String] signature_request_id The id of the SignatureRequest to remove. + # + # @example + # @client.remove_signature_request :signature_request_id => '75cdf7dc8b323d43b347e4a3614d1f822bd09491' + def remove_signature_request(opts) + post("/signature_request/remove/#{opts[:signature_request_id]}", :body => opts) end # # Download the PDF copy of the current documents specified by the signature_request_id parameter. # @option opts [String] file_type Either 'pdf' or 'zip' depending on the file type desired. Defaults to pdf.