Sha256: 4bcdc98a48f9b2f97357268c2ed5381fb2098f792f4d7149dae26039dc23d8c4

Contents?: true

Size: 995 Bytes

Versions: 24

Compression:

Stored size: 995 Bytes

Contents

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

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

      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

24 entries across 24 versions & 1 rubygems

Version Path
netsuite-0.8.0 lib/netsuite/records/tax_group.rb
netsuite-0.7.9 lib/netsuite/records/tax_group.rb
netsuite-0.7.8 lib/netsuite/records/tax_group.rb
netsuite-0.7.7 lib/netsuite/records/tax_group.rb
netsuite-0.7.6 lib/netsuite/records/tax_group.rb
netsuite-0.7.5 lib/netsuite/records/tax_group.rb
netsuite-0.7.4 lib/netsuite/records/tax_group.rb
netsuite-0.7.3 lib/netsuite/records/tax_group.rb
netsuite-0.7.2 lib/netsuite/records/tax_group.rb
netsuite-0.7.1 lib/netsuite/records/tax_group.rb
netsuite-0.7.0 lib/netsuite/records/tax_group.rb
netsuite-0.6.9 lib/netsuite/records/tax_group.rb
netsuite-0.6.8 lib/netsuite/records/tax_group.rb
netsuite-0.6.7 lib/netsuite/records/tax_group.rb
netsuite-0.6.6 lib/netsuite/records/tax_group.rb
netsuite-0.6.5 lib/netsuite/records/tax_group.rb
netsuite-0.6.4 lib/netsuite/records/tax_group.rb
netsuite-0.6.3 lib/netsuite/records/tax_group.rb
netsuite-0.6.2 lib/netsuite/records/tax_group.rb
netsuite-0.6.1 lib/netsuite/records/tax_group.rb