lib/quickbooks/model/transaction_tax_detail.rb



module Quickbooks
  module Model
    class TransactionTaxDetail < BaseModel
      xml_accessor :txn_tax_code_ref, :from => 'TxnTaxCodeRef', :as => BaseReference
      xml_accessor :total_tax, :from => 'TotalTax', :as => BigDecimal, :to_xml => to_xml_big_decimal
      xml_accessor :total_tax_specified, :from => 'TotalTaxSpecified'
      xml_accessor :lines, :from => 'TaxLine', :as => [TaxLine]

      reference_setters :txn_tax_code_ref
    end
  end
end