Sha256: d59fe9deb3984dd5f6ef5fb85ec158ecf6e0419c334ddb65dd17caced1899755

Contents?: true

Size: 885 Bytes

Versions: 35

Compression:

Stored size: 885 Bytes

Contents

module NetSuite
  module Records

    class Bin
      include Support::Records
      include Support::Fields
      include Support::RecordRefs
      include Support::Actions
      include Namespaces::ListAcct

      # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/bin.html?mode=package

      attr_reader   :internal_id
      attr_accessor :external_id

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

      fields :bin_number, :is_inactive, :location, :memo

      field :custom_field_list, NetSuite::Records::CustomFieldList

      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

35 entries across 35 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/bin.rb
netsuite-0.9.2 lib/netsuite/records/bin.rb
netsuite-0.9.1 lib/netsuite/records/bin.rb
netsuite-0.9.0 lib/netsuite/records/bin.rb
netsuite-0.8.12 lib/netsuite/records/bin.rb
netsuite-0.8.11 lib/netsuite/records/bin.rb
netsuite-0.8.10 lib/netsuite/records/bin.rb
netsuite-0.8.9 lib/netsuite/records/bin.rb
netsuite-0.8.8 lib/netsuite/records/bin.rb
netsuite-0.8.7 lib/netsuite/records/bin.rb
netsuite-0.8.6 lib/netsuite/records/bin.rb
netsuite-0.8.5 lib/netsuite/records/bin.rb
netsuite-0.8.4 lib/netsuite/records/bin.rb
netsuite-0.8.3 lib/netsuite/records/bin.rb
netsuite-0.8.2 lib/netsuite/records/bin.rb
netsuite-0.8.1 lib/netsuite/records/bin.rb
netsuite-0.8.0 lib/netsuite/records/bin.rb
netsuite-0.7.9 lib/netsuite/records/bin.rb
netsuite-0.7.8 lib/netsuite/records/bin.rb
netsuite-0.7.7 lib/netsuite/records/bin.rb