module NetSuite module Records class Transaction include Support::Fields include Support::RecordRefs include Support::Records include Support::Actions include Namespaces::TranSales actions :get, :search, :search_more_with_id, :initialize, :add, :delete 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.custom_soap_advanced_search_record_type 'tranSales:TransactionSearchAdvanced' end def to_record rec = super if rec["#{record_namespace}:customFieldList"] rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList") end rec end end end end