module NetSuite
  module Records
    class InventoryTransfer
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranInvt

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

      fields :created_date, :last_modified_date, :tran_date, :tran_id, :memo

      field :inventory_list, InventoryTransferInventoryList

      record_refs :posting_period, :location, :transfer_location, :department,
        :subsidiary

      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

module NetSuite
  module Records
    class InventoryTransfer
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranInvt

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

      fields :created_date, :last_modified_date, :tran_date, :tran_id, :memo

      field :inventory_list, InventoryTransferInventoryList

      record_refs :posting_period, :location, :transfer_location, :department,
        :subsidiary

      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

--- 
+++ 
@@ -7,7 +7,7 @@
       include Support::Actions
       include Namespaces::TranInvt
 
-      actions :get, :add, :delete, :search, :update, :upsert
+      actions :get, :add, :delete, :search, :update, :upsert, :upsert_list
 
       fields :created_date, :last_modified_date, :tran_date, :tran_id, :memo
 
Add upsertList action to Inventory Transfer
