Class: Worldline::Connect::SDK::V1::Domain::RiskAssessmentBankAccount
- Inherits:
-
RiskAssessment
- Object
- Domain::DataObject
- RiskAssessment
- Worldline::Connect::SDK::V1::Domain::RiskAssessmentBankAccount
- Defined in:
- lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb
Instance Attribute Summary collapse
-
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
The current value of bank_account_bban.
-
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
The current value of bank_account_iban.
Attributes inherited from RiskAssessment
#fraud_fields, #merchant, #order, #payment_product_id
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
Returns the current value of bank_account_bban.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb', line 16 def bank_account_bban @bank_account_bban end |
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
Returns the current value of bank_account_iban.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb', line 16 def bank_account_iban @bank_account_iban end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb', line 30 def from_hash(hash) super if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Worldline::Connect::SDK::V1::Domain::BankAccountBban.new_from_hash(hash['bankAccountBban']) end if hash.has_key? 'bankAccountIban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban']) end end |
#to_h ⇒ Hash
23 24 25 26 27 28 |
# File 'lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb', line 23 def to_h hash = super hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil? hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil? hash end |