Class: Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb
Instance Attribute Summary collapse
-
#account_last_digits ⇒ String
The current value of account_last_digits.
-
#bank_name ⇒ String
The current value of bank_name.
-
#clearinghouse ⇒ String
The current value of clearinghouse.
-
#person_identification_number ⇒ String
The current value of person_identification_number.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#account_last_digits ⇒ String
Returns the current value of account_last_digits.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15 def account_last_digits @account_last_digits end |
#bank_name ⇒ String
Returns the current value of bank_name.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15 def bank_name @bank_name end |
#clearinghouse ⇒ String
Returns the current value of clearinghouse.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15 def clearinghouse @clearinghouse end |
#person_identification_number ⇒ String
Returns the current value of person_identification_number.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15 def person_identification_number @person_identification_number end |
Instance Method Details
#from_hash(hash) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 35 def from_hash(hash) super if hash.has_key? 'accountLastDigits' @account_last_digits = hash['accountLastDigits'] end if hash.has_key? 'bankName' @bank_name = hash['bankName'] end if hash.has_key? 'clearinghouse' @clearinghouse = hash['clearinghouse'] end if hash.has_key? 'personIdentificationNumber' @person_identification_number = hash['personIdentificationNumber'] end end |
#to_h ⇒ Hash
26 27 28 29 30 31 32 33 |
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 26 def to_h hash = super hash['accountLastDigits'] = @account_last_digits unless @account_last_digits.nil? hash['bankName'] = @bank_name unless @bank_name.nil? hash['clearinghouse'] = @clearinghouse unless @clearinghouse.nil? hash['personIdentificationNumber'] = @person_identification_number unless @person_identification_number.nil? hash end |