Sha256: 2d5c370911f51797f87af2d3d124a19aaedaf9e7c822e65a4d4a569331dc6234

Contents?: true

Size: 1.78 KB

Versions: 3

Compression:

Stored size: 1.78 KB

Contents

module Xeroizer
  module Record
    module Payroll
    
      class TaxDeclarationModel < PayrollBaseModel
        set_xml_node_name 'TaxDeclaration'
      end
      
      class TaxDeclaration < PayrollBase
        
        EMPLOYMENT_BASIS = {
          'FULLTIME' => '',
          'PARTTIME' => '',
          'CASUAL' => '',
          'LABOURHIRE' => '',
          'SUPERINCOMESTREAM' => ''
          
        } unless defined?(EMPLOYMENT_BASIS)

        TFN_EXEMPTION_TYPE = {
          'NOTQUOTED' => 'Employee has not provided a TFN.',
          'PENDING' => 'Employee has made a separate application or Enquiry to the ATO for a new or existing TFN.',
          'PENSIONER' => 'Employee is claiming that they are in receipt of a pension, benefit or allowance.',
          'UNDER18' => 'Employee is claiming an exemption as they are under the age of 18 and do not earn enough to pay tax.'
        } unless defined?(TFN_EXEMPTION_TYPE)

        string      :tax_file_number
        
        string      :tfn_exemption_type, :api_name => 'TFNExemptionType'
        string      :employment_basis

        boolean      :australian_resident_for_tax_purposes
        boolean      :tax_free_threshold_claimed
        boolean      :has_help_debt, :api_name => 'HasHELPDebt'
        boolean      :has_sfss_debt, :api_name => 'HasSFSSDebt'
        boolean      :eligible_to_receive_leave_loading

        decimal      :tax_offset_estimated_amount
        decimal      :upward_variation_tax_withholding_amount
        decimal      :approved_withholding_variation_percentage

        datetime_utc :updated_date_utc, :api_name => 'UpdatedDateUTC'
        
        validates_inclusion_of :employment_basis, :in => EMPLOYMENT_BASIS
        validates_inclusion_of :tfn_exemption_type, :in => EMPLOYMENT_BASIS
      end

    end 
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/models/payroll/tax_declaration.rb
xeroizer-3.0.0 lib/xeroizer/models/payroll/tax_declaration.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/payroll/tax_declaration.rb