Sha256: b5bc4c76cb77dc4aad494720b8340de16e497a4c41b0f4f72055c5f08b63ebcd

Contents?: true

Size: 1.31 KB

Versions: 22

Compression:

Stored size: 1.31 KB

Contents

module NetSuite
  module Records
    class ItemGroup
      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, :display_name, :include_children, :include_start_end_lines,
             :is_inactive, :is_vsoe_bundle, :item_id, :last_modified_date, :print_items, :upc_code, :vendor_name

      record_refs :custom_form, :default_item_ship_method, :department, :issue_product, :item_ship_method_list, :klass, :location, :parent
      
      field :custom_field_list, CustomFieldList
      # TODO field :item_carrier, ShippingCarrier
      field :member_list, ItemMemberList
      field :subsidiary_list, RecordRefList
      # TODO 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

22 entries across 22 versions & 1 rubygems

Version Path
netsuite-0.8.10 lib/netsuite/records/item_group.rb
netsuite-0.8.9 lib/netsuite/records/item_group.rb
netsuite-0.8.8 lib/netsuite/records/item_group.rb
netsuite-0.8.7 lib/netsuite/records/item_group.rb
netsuite-0.8.6 lib/netsuite/records/item_group.rb
netsuite-0.8.5 lib/netsuite/records/item_group.rb
netsuite-0.8.4 lib/netsuite/records/item_group.rb
netsuite-0.8.3 lib/netsuite/records/item_group.rb
netsuite-0.8.2 lib/netsuite/records/item_group.rb
netsuite-0.8.1 lib/netsuite/records/item_group.rb
netsuite-0.8.0 lib/netsuite/records/item_group.rb
netsuite-0.7.9 lib/netsuite/records/item_group.rb
netsuite-0.7.8 lib/netsuite/records/item_group.rb
netsuite-0.7.7 lib/netsuite/records/item_group.rb
netsuite-0.7.6 lib/netsuite/records/item_group.rb
netsuite-0.7.5 lib/netsuite/records/item_group.rb
netsuite-0.7.4 lib/netsuite/records/item_group.rb
netsuite-0.7.3 lib/netsuite/records/item_group.rb
netsuite-0.7.2 lib/netsuite/records/item_group.rb
netsuite-0.7.1 lib/netsuite/records/item_group.rb