Sha256: 1765872c68ba488d8291e0bfc48b728afba41659aa720190a2c14c74ae921aab

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

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

      fields :available_to_partners, :created_date, :description, :include_children, :is_inactive, :item_id, :last_modified_date

      record_refs :custom_form, :department, :issue_product, :klass, :location
      
      field :custom_field_list, CustomFieldList
      field :subsidiary_list, RecordRefList
      field :translations_list, TranslationList

      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

      def self.search_class_name
        "Item"
      end
    end
  end
end
		

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.8.11 lib/netsuite/records/subtotal_item.rb