Class: OnlinePayments::SDK::Domain::LoanRecipient
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::LoanRecipient
- Defined in:
- lib/onlinepayments/sdk/domain/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 OnlinePayments::SDK::DataObject
Instance Attribute Details
#account_number ⇒ String
Returns the current value of account_number.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 14 def account_number @account_number end |
#date_of_birth ⇒ String
Returns the current value of date_of_birth.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 14 def date_of_birth @date_of_birth end |
#partial_pan ⇒ String
Returns the current value of partial_pan.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 14 def partial_pan @partial_pan end |
#surname ⇒ String
Returns the current value of surname.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 14 def surname @surname end |
#zip ⇒ String
Returns the current value of zip.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 14 def zip @zip end |
Instance Method Details
#from_hash(hash) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 32 def from_hash(hash) super @account_number = hash['accountNumber'] if hash.key? 'accountNumber' @date_of_birth = hash['dateOfBirth'] if hash.key? 'dateOfBirth' @partial_pan = hash['partialPan'] if hash.key? 'partialPan' @surname = hash['surname'] if hash.key? 'surname' @zip = hash['zip'] if hash.key? 'zip' end |
#to_h ⇒ Hash
22 23 24 25 26 27 28 29 30 |
# File 'lib/onlinepayments/sdk/domain/loan_recipient.rb', line 22 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 |