Sha256: 33a49f57846393a98db1da836f836c261a89acc71b74a511ceb07ead460ca6c6

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

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

      # NOTE `get_all` is not available API > 2017_1
      #      `search` is available API > 2016_2
      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

12 entries across 12 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/tax_group.rb
netsuite-0.9.2 lib/netsuite/records/tax_group.rb
netsuite-0.9.1 lib/netsuite/records/tax_group.rb
netsuite-0.9.0 lib/netsuite/records/tax_group.rb
netsuite-0.8.12 lib/netsuite/records/tax_group.rb
netsuite-0.8.11 lib/netsuite/records/tax_group.rb
netsuite-0.8.10 lib/netsuite/records/tax_group.rb
netsuite-0.8.9 lib/netsuite/records/tax_group.rb
netsuite-0.8.8 lib/netsuite/records/tax_group.rb
netsuite-0.8.7 lib/netsuite/records/tax_group.rb
netsuite-0.8.6 lib/netsuite/records/tax_group.rb
netsuite-0.8.5 lib/netsuite/records/tax_group.rb