Sha256: 2e95c18e04a384351b4341e3aca3e9794ff9500232963d88a931116f6004d6b7
Contents?: true
Size: 842 Bytes
Versions: 6
Compression:
Stored size: 842 Bytes
Contents
module Octobat class Customer < APIResource extend Octobat::APIOperations::List include Octobat::APIOperations::Create include Octobat::APIOperations::Update include Octobat::APIOperations::Delete def invoices(params = {}, opts = {}) Invoice.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts)) end def credit_notes(params = {}, opts = {}) CreditNote.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts)) end def payment_sources(params = {}, opts = {}) PaymentSource.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts)) end def customer_balance_transactions(params = {}, opts = {}) CustomerBalanceTransaction.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts)) end end end
Version data entries
6 entries across 6 versions & 1 rubygems