Class: XeroKiwi::Accounting::CreditNote

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/xero_kiwi/accounting/credit_note.rb

Overview

Represents a Xero Credit Note returned by the Accounting API.

See: developer.xero.com/documentation/api/accounting/creditnotes

Instance Method Summary collapse

Methods included from Resource

#==, #hash, included, #initialize, #inspect, #reference?, #to_h

Instance Method Details

#accounts_payable?Boolean

Returns:

  • (Boolean)


39
# File 'lib/xero_kiwi/accounting/credit_note.rb', line 39

def accounts_payable? = type == "ACCPAYCREDIT"

#accounts_receivable?Boolean

Returns:

  • (Boolean)


37
# File 'lib/xero_kiwi/accounting/credit_note.rb', line 37

def accounts_receivable? = type == "ACCRECCREDIT"