Sha256: 500bbe6ad95b196636172c8a990785f0d1da364f1d04e4582ae05199bff87228
Contents?: true
Size: 509 Bytes
Versions: 3
Compression:
Stored size: 509 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
octobat-2.0.2 | lib/octobat/customer.rb |
octobat-2.0.1 | lib/octobat/customer.rb |
octobat-2.0.0 | lib/octobat/customer.rb |