lib/octobat/credit_note.rb in octobat-2.0.0 vs lib/octobat/credit_note.rb in octobat-2.0.1
- old
+ new
@@ -7,11 +7,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 items(params = {})
Item.list(params.merge({ :invoice => id }), @api_key)