class NetSuite::Records::ItemFulfillment

Attributes

external_id[RW]
internal_id[R]
search_joins[RW]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/netsuite/records/item_fulfillment.rb, line 35
def initialize(attributes = {})
  @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
  @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)

  if !attributes.empty? && attributes[:package_ups_list]
    attributes[:package_list] ||= {}
    attributes[:package_list].merge! attributes[:package_ups_list]
  end

  initialize_from_attributes_hash(attributes)
end
search_class_name() click to toggle source
# File lib/netsuite/records/item_fulfillment.rb, line 55
def self.search_class_name
  "Transaction"
end

Public Instance Methods

to_record() click to toggle source
Calls superclass method NetSuite::Support::Records#to_record
# File lib/netsuite/records/item_fulfillment.rb, line 47
def to_record
  rec = super
  if rec["#{record_namespace}:customFieldList"]
    rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList")
  end
  rec
end