Sha256: 61f7faac14f965197c0b2e5683ddff29905a7a93e85f6b73a8c2ce412bd15a21

Contents?: true

Size: 1.2 KB

Versions: 29

Compression:

Stored size: 1.2 KB

Contents

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

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

      fields :include_children, :is_inactive

      field :custom_field_list, CustomFieldList
      # field :class_translation_list
      field :subsidiary_list, RecordRefList

      record_refs :logo, :parent

      # API >= 2014_2
      field :main_address, Address
      field :return_address, Address

      # API < 2014_2
      fields :addr1, :addr2, :addr3, :addr_phone, :addr_text, :addressee, :attention, :city, :country,
        :make_inventory_available, :make_inventory_available_store, :name, :override, :state, :tran_prefix, :zip

      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

29 entries across 29 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/location.rb
netsuite-0.9.2 lib/netsuite/records/location.rb
netsuite-0.9.1 lib/netsuite/records/location.rb
netsuite-0.9.0 lib/netsuite/records/location.rb
netsuite-0.8.12 lib/netsuite/records/location.rb
netsuite-0.8.11 lib/netsuite/records/location.rb
netsuite-0.7.3 lib/netsuite/records/location.rb
netsuite-0.7.2 lib/netsuite/records/location.rb
netsuite-0.7.1 lib/netsuite/records/location.rb
netsuite-0.7.0 lib/netsuite/records/location.rb
netsuite-0.6.9 lib/netsuite/records/location.rb
netsuite-0.6.8 lib/netsuite/records/location.rb
netsuite-0.6.7 lib/netsuite/records/location.rb
netsuite-0.6.6 lib/netsuite/records/location.rb
netsuite-0.6.5 lib/netsuite/records/location.rb
netsuite-0.6.4 lib/netsuite/records/location.rb
netsuite-0.6.3 lib/netsuite/records/location.rb
netsuite-0.6.2 lib/netsuite/records/location.rb
netsuite-0.6.1 lib/netsuite/records/location.rb
netsuite-0.6.0 lib/netsuite/records/location.rb