Sha256: f3ba4f6a2fe0d1154bfbc4ea4aac5bcd642ab53252f9eef8605f7621e7990d67
Contents?: true
Size: 551 Bytes
Versions: 15
Compression:
Stored size: 551 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 = {}) 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
15 entries across 15 versions & 1 rubygems