Class: Ingenico::Connect::SDK::Domain::Refund::BankAccountBbanRefund
- Inherits:
-
Definitions::BankAccountBban
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::BankAccount
- Definitions::BankAccountBban
- Ingenico::Connect::SDK::Domain::Refund::BankAccountBbanRefund
- Defined in:
- lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb
Instance Attribute Summary collapse
-
#bank_city ⇒ String
The current value of bank_city.
-
#patronymic_name ⇒ String
The current value of patronymic_name.
-
#swift_code ⇒ String
The current value of swift_code.
Attributes inherited from Definitions::BankAccountBban
#account_number, #bank_code, #bank_name, #branch_code, #check_digit, #country_code
Attributes inherited from Definitions::BankAccount
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#bank_city ⇒ String
Returns the current value of bank_city.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14 def bank_city @bank_city end |
#patronymic_name ⇒ String
Returns the current value of patronymic_name.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14 def patronymic_name @patronymic_name end |
#swift_code ⇒ String
Returns the current value of swift_code.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14 def swift_code @swift_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 31 def from_hash(hash) super if hash.has_key? 'bankCity' @bank_city = hash['bankCity'] end if hash.has_key? 'patronymicName' @patronymic_name = hash['patronymicName'] end if hash.has_key? 'swiftCode' @swift_code = hash['swiftCode'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 23 def to_h hash = super hash['bankCity'] = @bank_city unless @bank_city.nil? hash['patronymicName'] = @patronymic_name unless @patronymic_name.nil? hash['swiftCode'] = @swift_code unless @swift_code.nil? hash end |