Class: XeroKiwi::Accounting::Overpayment

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

Overview

Represents a Xero Overpayment returned by the Accounting API.

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

Instance Method Summary collapse

Methods included from Resource

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

Instance Method Details

#receive?Boolean

Returns:

  • (Boolean)


33
# File 'lib/xero_kiwi/accounting/overpayment.rb', line 33

def receive? = type == "RECEIVE-OVERPAYMENT"

#spend?Boolean

Returns:

  • (Boolean)


35
# File 'lib/xero_kiwi/accounting/overpayment.rb', line 35

def spend? = type == "SPEND-OVERPAYMENT"