lib/octobat/invoice.rb in octobat-2.0.23 vs lib/octobat/invoice.rb in octobat-2.0.24

- old
+ new

@@ -41,10 +41,15 @@ def set_payment_terms(params = {}, opts = {}) response, api_key = Octobat.request(:patch, set_payment_terms_url, @api_key, params, opts) refresh_from(response, api_key) end + def mark_uncollectible(params = {}, opts = {}) + response, api_key = Octobat.request(:patch, mark_uncollectible_url, @api_key, params, opts) + refresh_from(response, api_key) + end + def cancel(params = {}, opts = {}) response, api_key = Octobat.request(:patch, cancel_url, @api_key, params, opts) refresh_from(response, api_key) end @@ -74,9 +79,13 @@ url + '/send' end def confirm_url url + '/confirm' + end + + def mark_uncollectible_url + url + '/mark_uncollectible' end def set_payment_terms_url url + '/set_payment_terms' end