Module: HelloSign::Api::UnclaimedDraft
- Included in:
- Client
- Defined in:
- lib/hello_sign/api/unclaimed_draft.rb
Overview
Contains all the API calls for the UnclaimedDraft resource. Take a look at our API documentation for creating UnclaimedDrafts (app.hellosign.com/api/reference#UnclaimedDraft) for more information about this.
Instance Method Summary collapse
-
#create_embedded_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Embedded UnclaimedDraft that can be opened in an embedded iFrame.
-
#create_embedded_unclaimed_draft_with_template(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Embedded UnclaimedDraft from a Template that can be opened in an embedded iFrame.
-
#create_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new UnclaimedDraft that can be claimed using the claim_url.
-
#edit_and_resend_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new SignatureRequest from an Embedded UnclaimedDraft.
Instance Method Details
#create_embedded_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Embedded UnclaimedDraft that can be opened in an embedded iFrame.
215 216 217 218 219 220 221 222 223 224 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 215 def (opts) opts[:client_id] ||= self.client_id prepare_files opts prepare_signers opts prepare_form_fields opts prepare_custom_fields opts opts HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded', body: opts) end |
#create_embedded_unclaimed_draft_with_template(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Embedded UnclaimedDraft from a Template that can be opened in an embedded iFrame.
293 294 295 296 297 298 299 300 301 302 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 293 def (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 |
#create_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new UnclaimedDraft that can be claimed using the claim_url. The first authenticated user to access the claim_url claims the Draft and will be shown either the “Sign and send” or the “Request signature” page with the Draft loaded. Subsequent access to the claim_url will result in a 404 not found error.
121 122 123 124 125 126 127 128 129 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 121 def create_unclaimed_draft opts prepare_files opts prepare_signers opts prepare_form_fields opts prepare_custom_fields opts opts HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create', body: opts) end |
#edit_and_resend_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new SignatureRequest from an Embedded UnclaimedDraft.
320 321 322 323 324 325 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 320 def edit_and_resend_unclaimed_draft(opts) signature_request_id = opts.delete(:signature_request_id) path = "/unclaimed_draft/edit_and_resend/#{signature_request_id}" HelloSign::Resource::UnclaimedDraft.new post(path, body: opts) end |