Class: NetSuite::Records::CashRefundItem

Inherits:
Object
  • Object
show all
Includes:
Namespaces::TranCust, Support::Fields, Support::RecordRefs, Support::Records
Defined in:
lib/netsuite/records/cash_refund_item.rb

Instance Method Summary collapse

Methods included from Namespaces::TranCust

#record_namespace

Methods included from Support::Records

#record_type, #refresh, #to_attributes!

Methods included from Namespaces::PlatformCore

#record_namespace

Methods included from Support::Attributes

#attributes, #attributes=, #initialize_from_attributes_hash

Methods included from Support::RecordRefs

included

Methods included from Support::Fields

included

Constructor Details

#initialize(attributes_or_record = {}) ⇒ CashRefundItem

Returns a new instance of CashRefundItem.



14
15
16
# File 'lib/netsuite/records/cash_refund_item.rb', line 14

def initialize(attributes_or_record = {})
  initialize_from_attributes_hash(attributes_or_record)
end

Instance Method Details

#to_recordObject



18
19
20
21
22
23
24
# File 'lib/netsuite/records/cash_refund_item.rb', line 18

def to_record
  rec = super
  if rec["#{record_namespace}:customFieldList"]
    rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList")
  end
  rec
end