Class: Worldline::Connect::SDK::V1::Domain::BankAccountBbanRefund
- Inherits:
-
BankAccountBban
- Object
- Domain::DataObject
- BankAccount
- BankAccountBban
- Worldline::Connect::SDK::V1::Domain::BankAccountBbanRefund
- Defined in:
- lib/worldline/connect/sdk/v1/domain/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 BankAccountBban
#account_number, #bank_code, #bank_name, #branch_code, #check_digit, #country_code
Attributes inherited from BankAccount
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bank_city ⇒ String
Returns the current value of bank_city.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15 def bank_city @bank_city end |
#patronymic_name ⇒ String
Returns the current value of patronymic_name.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15 def patronymic_name @patronymic_name end |
#swift_code ⇒ String
Returns the current value of swift_code.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15 def swift_code @swift_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 32 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
24 25 26 27 28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 24 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 |