Class: K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::ExternalBankAccount
- Inherits:
-
DestinationRequest
- Object
- DestinationRequest
- K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::ExternalBankAccount
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#bank_branch_ref ⇒ Object
Returns the value of attribute bank_branch_ref.
Attributes inherited from DestinationRequest
#amount, #description, #favourite, #nickname, #type
Instance Method Summary collapse
Methods inherited from DestinationRequest
Constructor Details
This class inherits a constructor from K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
12 13 14 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb', line 12 def account_name @account_name end |
#account_number ⇒ Object
Returns the value of attribute account_number.
12 13 14 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb', line 12 def account_number @account_number end |
#bank_branch_ref ⇒ Object
Returns the value of attribute bank_branch_ref.
12 13 14 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb', line 12 def bank_branch_ref @bank_branch_ref end |
Instance Method Details
#destination_payload ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb', line 16 def destination_payload { type: type, nickname: nickname, account_name: account_name, account_number: account_number, bank_branch_ref: bank_branch_ref, amount: amount, description: description, favourite: ActiveModel::Type::Boolean.new.cast(favourite) } end |