Sha256: e7bfcf31d13659643f6bf5800707754fa1ffd75c5cc397bc8f95923e64eb809e

Contents?: true

Size: 814 Bytes

Versions: 8

Compression:

Stored size: 814 Bytes

Contents

module Xeroizer
  module Record
    
    class TaxRateModel < BaseModel
            
      set_permissions :read
      
      # TaxRates can be created using either POST or PUT.
      # POST will also silently update the tax, which can
      # be unexpected.  PUT is only for create.
      def create_method
        :http_put
      end
    end
    
    class TaxRate < Base
      set_primary_key :name
      set_possible_primary_keys :tax_type, :name

      string  :name
      string  :tax_type
      string  :status
      boolean :can_apply_to_assets
      boolean :can_apply_to_equity
      boolean :can_apply_to_expenses
      boolean :can_apply_to_liabilities
      boolean :can_apply_to_revenue
      decimal :display_tax_rate
      decimal :effective_rate

      has_many :tax_components
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xeroizer-2.16.5 lib/xeroizer/models/tax_rate.rb
xeroizer-2.16.4 lib/xeroizer/models/tax_rate.rb
xeroizer-2.16.3 lib/xeroizer/models/tax_rate.rb
xeroizer-2.16.1 lib/xeroizer/models/tax_rate.rb
xeroizer-2.16.0 lib/xeroizer/models/tax_rate.rb
xeroizer-2.15.9 lib/xeroizer/models/tax_rate.rb
xeroizer-2.15.8 lib/xeroizer/models/tax_rate.rb
xeroizer-2.15.7 lib/xeroizer/models/tax_rate.rb