Class: LedgerSync::QuickBooksOnline::Account

Inherits:
Resource
  • Object
show all
Defined in:
lib/ledger_sync/quickbooks_online/account/searcher.rb,
lib/ledger_sync/quickbooks_online/resources/account.rb,
lib/ledger_sync/quickbooks_online/account/serializer.rb,
lib/ledger_sync/quickbooks_online/account/deserializer.rb,
lib/ledger_sync/quickbooks_online/account/operations/find.rb,
lib/ledger_sync/quickbooks_online/account/operations/create.rb,
lib/ledger_sync/quickbooks_online/account/operations/update.rb

Defined Under Namespace

Modules: Operations Classes: Deserializer, Searcher, Serializer

Constant Summary collapse

TYPES =
{
  'bank' => 'Bank',
  'other_current_assets' => 'Other Current Asset',
  'fixed_asset' => 'Fixed Asset',
  'other_asset' => 'Other Asset',
  'accounts_receivable' => 'Accounts Receivable',
  'equity' => 'Equity',
  'expense' => 'Expense',
  'other_expense' => 'Other Expense',
  'cost_of_goods_sold' => 'Cost of Goods Sold',
  'accounts_payable' => 'Accounts Payable',
  'credit_card' => 'Credit Card',
  'long_term_liability' => 'Long Term Liability',
  'other_current_liability' => 'Other Current Liability',
  'income' => 'Income',
  'other_income' => 'Other Income'
}.freeze
TYPES_TO_CLASSIFICATION_MAPPING =
{
  'bank' => 'asset',
  'other_current_assets' => 'asset',
  'fixed_asset' => 'asset',
  'other_asset' => 'asset',
  'accounts_receivable' => 'asset',
  'equity' => 'equity',
  'expense' => 'expense',
  'other_expense' => 'expense',
  'cost_of_goods_sold' => 'expense',
  'accounts_payable' => 'liability',
  'credit_card' => 'liability',
  'long_term_liability' => 'liability',
  'other_current_liability' => 'liability',
  'income' => 'revenue',
  'other_income' => 'revenue'
}.freeze
CLASSIFICATIONS =
{
  'asset' => 'Asset',
  'equity' => 'Equity',
  'expense' => 'Expense',
  'liability' => 'Liability',
  'revenue' => 'Revenue'
}.freeze

Instance Method Summary collapse

Instance Method Details

#nameObject



62
63
64
# File 'lib/ledger_sync/quickbooks_online/resources/account.rb', line 62

def name
  self.Name
end