class Ingenico::Connect::SDK::Domain::Payment::LoanRecipient
@attr [String] account_number
@attr [String] date_of_birth
@attr [String] partial_pan
@attr [String] surname @attr [String] zip
Attributes
account_number[RW]
date_of_birth[RW]
partial_pan[RW]
surname[RW]
zip[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb, line 39 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_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb, line 29 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