Class: XeroKiwi::Accounting::Invoice

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

Overview

Represents a Xero Invoice returned by the Accounting API.

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

Instance Method Summary collapse

Methods included from Resource

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

Instance Method Details

#accounts_payable?Boolean

Returns:

  • (Boolean)


52
# File 'lib/xero_kiwi/accounting/invoice.rb', line 52

def accounts_payable? = type == "ACCPAY"

#accounts_receivable?Boolean

Returns:

  • (Boolean)


50
# File 'lib/xero_kiwi/accounting/invoice.rb', line 50

def accounts_receivable? = type == "ACCREC"