Sha256: f5d98dd0179b7f8d2d58dde1b47f69479d1ab97435a5ffd3c916c2ca34c8bc1a

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

module NetSuite
  module Records
    class TaxGroup
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListAcct

      # NOTE search not available on TaxGroup!

      actions :get, :get_list, :add, :initialize, :delete, :update, :upsert, :search, :get_all

      fields :city, :county, :description, :include_children, :is_default, :is_inactive,
             :item_id, :piggyback, :rate, :state, :subsidiary_list, :unitprice1, :unitprice2,
             :zip

      record_refs :taxitem1, :taxitem2, :nexus_country, :tax_type

      # TODO
      # tax_item_list
      # subsidiary_list

      attr_reader :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
        initialize_from_attributes_hash(attributes)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netsuite-0.8.3 lib/netsuite/records/tax_group.rb
netsuite-0.8.2 lib/netsuite/records/tax_group.rb
netsuite-0.8.1 lib/netsuite/records/tax_group.rb