Sha256: fc849642b74978d9835d5f8578100588d4aa3b69c3196fd2cea07040185722d3

Contents?: true

Size: 940 Bytes

Versions: 4

Compression:

Stored size: 940 Bytes

Contents

module Xeroizer
  module Record
    
    class OrganisationModel < BaseModel
    
      set_api_controller_name 'Organisation'
      set_permissions :read
      
    end
    
    class Organisation < Base
      
      string    :api_key, :api_name => 'APIKey'
      string    :name
      string    :legal_name
      string    :short_code
      boolean   :pays_tax
      string    :version
      string    :organisation_type
      string    :base_currency
      string    :country_code
      boolean   :is_demo_company
      string    :organisation_status
      integer   :financial_year_end_day
      integer   :financial_year_end_month
      date      :period_lock_date
      date      :end_of_year_lock_date
      string    :tax_number
      string    :registration_number
      string    :timezone
      datetime  :created_date_utc, :api_name => 'CreatedDateUTC'

      has_many :addresses
      has_many :phones

    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xeroizer-2.15.9 lib/xeroizer/models/organisation.rb
xeroizer-2.15.8 lib/xeroizer/models/organisation.rb
xeroizer-2.15.7 lib/xeroizer/models/organisation.rb
xeroizer-2.15.6 lib/xeroizer/models/organisation.rb