Class: Ingenico::Connect::SDK::Domain::Payment::LoanRecipient
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::LoanRecipient
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb
Instance Attribute Summary collapse
-
#account_number ⇒ String
The current value of account_number.
-
#date_of_birth ⇒ String
The current value of date_of_birth.
-
#partial_pan ⇒ String
The current value of partial_pan.
-
#surname ⇒ String
The current value of surname.
-
#zip ⇒ String
The current value of zip.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#account_number ⇒ String
Returns the current value of account_number.
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 16 def account_number @account_number end |
#date_of_birth ⇒ String
Returns the current value of date_of_birth.
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 16 def date_of_birth @date_of_birth end |
#partial_pan ⇒ String
Returns the current value of partial_pan.
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 16 def partial_pan @partial_pan end |
#surname ⇒ String
Returns the current value of surname.
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 16 def surname @surname end |
#zip ⇒ String
Returns the current value of zip.
16 17 18 |
# File 'lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb', line 16 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# 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 ⇒ Hash
29 30 31 32 33 34 35 36 37 |
# 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 |