Class: LedgerSync::Adaptors::QuickBooksOnline::LedgerSerializerType::AccountType

Inherits:
LedgerSerializerType::MappingType show all
Defined in:
lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/account_type.rb

Constant Summary collapse

MAPPING =
{
  '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
TYPE_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'
}

Instance Attribute Summary

Attributes inherited from LedgerSerializerType::MappingType

#source, #value

Class Method Summary collapse

Methods inherited from LedgerSerializerType::MappingType

#convert_from_ledger, #convert_from_local

Methods inherited from LedgerSerializerType::ValueType

#convert_from_ledger, #convert_from_local

Class Method Details

.mappingObject



44
45
46
# File 'lib/ledger_sync/adaptors/quickbooks_online/ledger_serializer_type/account_type.rb', line 44

def self.mapping
  @mapping ||= MAPPING
end