lib/octobat/customer.rb in octobat-0.0.12 vs lib/octobat/customer.rb in octobat-2.0.0

- old
+ new

@@ -1,12 +1,20 @@ module Octobat class Customer < APIResource extend Octobat::APIOperations::List include Octobat::APIOperations::Create include Octobat::APIOperations::Update - + def invoices(params = {}) Invoice.all(params.merge({ :customer => id }), @api_key) end - + + def credit_notes(params = {}) + CreditNote.all(params.merge({ :customer => id }), @api_key) + end + + def payment_sources(params = {}) + PaymentSource.all(params.merge({ :customer => id }), @api_key) + end + end end