Class: NetSuite::Records::CustomerCreditCards

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::Records

#netsuite_type, netsuite_type, #record_type, #record_type_without_namespace, record_type_without_namespace, #refresh, #to_attributes!, #to_record

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 = {}) ⇒ CustomerCreditCards

Returns a new instance of CustomerCreditCards.



15
16
17
18
19
20
21
22
# File 'lib/netsuite/records/customer_credit_cards.rb', line 15

def initialize(attributes_or_record = {})
  case attributes_or_record
  when self.class
    initialize_from_record(attributes_or_record)
  when Hash
    initialize_from_attributes_hash(attributes_or_record)
  end
end

Instance Attribute Details

#internal_idObject (readonly)

Returns the value of attribute internal_id.



13
14
15
# File 'lib/netsuite/records/customer_credit_cards.rb', line 13

def internal_id
  @internal_id
end

Instance Method Details

#initialize_from_record(obj) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/netsuite/records/customer_credit_cards.rb', line 24

def initialize_from_record(obj)
  self.cc_default = obj.cc_default
  self.cc_expire_date = obj.cc_expire_date
  self.cc_memo = obj.cc_memo
  self.cc_name = obj.cc_name
  self.cc_number = obj.cc_number
  self.debitcard_issue_no = obj.debitcard_issue_no
  self.state_from = obj.state_from
  self.validfrom = obj.validfrom
end