lib/octobat/invoice.rb in octobat-0.0.6 vs lib/octobat/invoice.rb in octobat-0.0.7
- old
+ new
@@ -11,17 +11,27 @@
def send(enforce_errors = false)
response, api_key = Octobat.request(:post, send_url, @api_key, {enforce_errors: enforce_errors})
refresh_from(response, api_key)
end
+
+
+ def confirm
+ response, api_key = Octobat.request(:patch, confirm_url, @api_key)
+ refresh_from(response, api_key)
+ end
private
- def pay_url
- url + '/pay'
- end
+ def pay_url
+ url + '/pay'
+ end
- def send_url
- url + '/send'
- end
+ def send_url
+ url + '/send'
+ end
+
+ def confirm_url
+ url + '/confirm'
+ end
end
end