lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.4.0 vs lib/hello_sign/api/unclaimed_draft.rb in hellosign-ruby-sdk-3.5.0

- old
+ new

@@ -1,10 +1,10 @@ # # The MIT License (MIT) -# +# # Copyright (C) 2014 hellosign.com -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is @@ -204,9 +204,15 @@ opts[:client_id] ||= self.client_id prepare_signers opts prepare_ccs opts prepare_templates opts HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded_with_template', :body => opts) + end + + 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 end end end