lib/octobat/invoice.rb in octobat-2.0.0 vs lib/octobat/invoice.rb in octobat-2.0.1
- old
+ new
@@ -31,11 +31,11 @@
def send_by_email(email_data = {})
response, api_key = Octobat.request(:post, send_url, @api_key, email_data)
refresh_from(response, api_key)
end
- def confirm
- response, api_key = Octobat.request(:patch, confirm_url, @api_key)
+ def confirm(confirmation_data = {})
+ response, api_key = Octobat.request(:patch, confirm_url, @api_key, confirmation_data)
refresh_from(response, api_key)
end
def cancel
response, api_key = Octobat.request(:patch, cancel_url, @api_key)