Class: Ingenico::Connect::SDK::Domain::Payment::LoanRecipient Deprecated

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb

Overview

Deprecated.

No replacement

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#account_numberObject

Deprecated.

No replacement



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 18

def 
  @account_number
end

#date_of_birthObject

Deprecated.

No replacement



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 18

def date_of_birth
  @date_of_birth
end

#partial_panObject

Deprecated.

No replacement



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 18

def partial_pan
  @partial_pan
end

#surnameObject

Deprecated.

No replacement



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 18

def surname
  @surname
end

#zipObject

Deprecated.

No replacement



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 18

def zip
  @zip
end

Instance Method Details

#from_hash(hash) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 51

def from_hash(hash)
  super
  if hash.has_key? 'accountNumber'
    @account_number = hash['accountNumber']
  end
  if hash.has_key? 'dateOfBirth'
    @date_of_birth = hash['dateOfBirth']
  end
  if hash.has_key? 'partialPan'
    @partial_pan = hash['partialPan']
  end
  if hash.has_key? 'surname'
    @surname = hash['surname']
  end
  if hash.has_key? 'zip'
    @zip = hash['zip']
  end
end

#to_hHash



41
42
43
44
45
46
47
48
49
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 41

def to_h
  hash = super
  hash['accountNumber'] = @account_number unless @account_number.nil?
  hash['dateOfBirth'] = @date_of_birth unless @date_of_birth.nil?
  hash['partialPan'] = @partial_pan unless @partial_pan.nil?
  hash['surname'] = @surname unless @surname.nil?
  hash['zip'] = @zip unless @zip.nil?
  hash
end