Class: Worldline::Connect::SDK::V1::Domain::TrustlyBankAccount
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::TrustlyBankAccount
- Defined in:
- lib/worldline/connect/sdk/v1/domain/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 Domain::DataObject
Instance Attribute Details
#account_last_digits ⇒ String
Returns the current value of account_last_digits.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16 def account_last_digits @account_last_digits end |
#bank_name ⇒ String
Returns the current value of bank_name.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16 def bank_name @bank_name end |
#clearinghouse ⇒ String
Returns the current value of clearinghouse.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16 def clearinghouse @clearinghouse end |
#person_identification_number ⇒ String
Returns the current value of person_identification_number.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16 def person_identification_number @person_identification_number end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 36 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
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 27 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 |