class Octobat::Customer

Public Instance Methods

credit_notes(params = {}, opts = {}) click to toggle source
# File lib/octobat/customer.rb, line 12
def credit_notes(params = {}, opts = {})
  CreditNote.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts))
end
customer_balance_transactions(params = {}, opts = {}) click to toggle source
# File lib/octobat/customer.rb, line 20
def customer_balance_transactions(params = {}, opts = {})
  CustomerBalanceTransaction.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts))
end
invoices(params = {}, opts = {}) click to toggle source
# File lib/octobat/customer.rb, line 8
def invoices(params = {}, opts = {})
  Invoice.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts))
end
payment_sources(params = {}, opts = {}) click to toggle source
# File lib/octobat/customer.rb, line 16
def payment_sources(params = {}, opts = {})
  PaymentSource.list(params.merge({ :customer => id }), {api_key: @api_key}.merge(opts))
end