Class: Xero::Models::Account

Inherits:
BaseModel show all
Defined in:
lib/xero/models/account.rb

Constant Summary collapse

TYPE =
{
  'CURRENT' =>        '',
  'FIXED' =>          '',
  'PREPAYMENT' =>     '',
  'EQUITY' =>         '',
  'DEPRECIATN' =>     '',
  'DIRECTCOSTS' =>    '',
  'EXPENSE' =>        '',
  'OVERHEADS' =>      '',
  'CURRLIAB' =>       '',
  'LIABILITY' =>      '',
  'TERMLIAB' =>       '',
  'OTHERINCOME' =>    '',
  'REVENUE' =>        '',
  'SALES' =>          ''
}
TAX_TYPE =
{
  'NONE' =>             'No GST',
  'EXEMPTINPUT' =>      'VAT on expenses exempt from VAT (UK only)',
  'INPUT' =>            'GST on expenses',
  'SRINPUT' =>          'VAT on expenses',
  'ZERORATEDINPUT' =>   'Expense purchased from overseas (UK only)',
  'RRINPUT' =>          'Reduced rate VAT on expenses (UK Only)', 
  'EXEMPTOUTPUT' =>     'VAT on sales exempt from VAT (UK only)',
  'ECZROUTPUT' =>       'EC Zero-rated output',
  'OUTPUT' =>           'OUTPUT (old rate)',
  'OUTPUT2' =>          'OUTPUT2',
  'SROUTPUT' =>         'SROUTPUT',
  'ZERORATEDOUTPUT' =>  'Sales made from overseas (UK only)',
  'RROUTPUT' =>         'Reduced rate VAT on sales (UK Only)',
  'ZERORATED' =>        'Zero-rated supplies/sales from overseas (NZ Only)'
}

Instance Attribute Summary

Attributes inherited from BaseModel

#client, #new_record

Method Summary

Methods inherited from BaseModel

#attributes=, #cleanup_hash, #initialize, #persisted?, #save, #xero_attributes

Constructor Details

This class inherits a constructor from Xero::Models::BaseModel