Class: Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountOutput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountOutput
- Defined in:
- lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb
Instance Attribute Summary collapse
-
#checks ⇒ Array<Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountCheck>
The current value of checks.
-
#new_bank_name ⇒ String
The current value of new_bank_name.
-
#reformatted_account_number ⇒ String
The current value of reformatted_account_number.
-
#reformatted_bank_code ⇒ String
The current value of reformatted_bank_code.
-
#reformatted_branch_code ⇒ String
The current value of reformatted_branch_code.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#checks ⇒ Array<Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountCheck>
Returns the current value of checks.
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 17 def checks @checks end |
#new_bank_name ⇒ String
Returns the current value of new_bank_name.
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 17 def new_bank_name @new_bank_name end |
#reformatted_account_number ⇒ String
Returns the current value of reformatted_account_number.
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 17 def reformatted_account_number @reformatted_account_number end |
#reformatted_bank_code ⇒ String
Returns the current value of reformatted_bank_code.
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 17 def reformatted_bank_code @reformatted_bank_code end |
#reformatted_branch_code ⇒ String
Returns the current value of reformatted_branch_code.
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 17 def reformatted_branch_code @reformatted_branch_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 40 def from_hash(hash) super if hash.has_key? 'checks' raise TypeError, "value '%s' is not an Array" % [hash['checks']] unless hash['checks'].is_a? Array @checks = [] hash['checks'].each do |e| @checks << Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountCheck.new_from_hash(e) end end if hash.has_key? 'newBankName' @new_bank_name = hash['newBankName'] end if hash.has_key? 'reformattedAccountNumber' @reformatted_account_number = hash['reformattedAccountNumber'] end if hash.has_key? 'reformattedBankCode' @reformatted_bank_code = hash['reformattedBankCode'] end if hash.has_key? 'reformattedBranchCode' @reformatted_branch_code = hash['reformattedBranchCode'] end end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 |
# File 'lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb', line 30 def to_h hash = super hash['checks'] = @checks.collect{|val| val.to_h} unless @checks.nil? hash['newBankName'] = @new_bank_name unless @new_bank_name.nil? hash['reformattedAccountNumber'] = @reformatted_account_number unless @reformatted_account_number.nil? hash['reformattedBankCode'] = @reformatted_bank_code unless @reformatted_bank_code.nil? hash['reformattedBranchCode'] = @reformatted_branch_code unless @reformatted_branch_code.nil? hash end |