Class: K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::ExternalBankAccount

Inherits:
DestinationRequest
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_bank_account.rb

Instance Attribute Summary collapse

Attributes inherited from DestinationRequest

#amount, #description, #favourite, #nickname, #type

Instance Method Summary collapse

Methods inherited from DestinationRequest

#initialize

Constructor Details

This class inherits a constructor from K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest

Instance Attribute Details

#account_nameObject

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
end

#account_numberObject

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
end

#bank_branch_refObject

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_payloadObject



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_number: ,
    bank_branch_ref: bank_branch_ref,
    amount: amount,
    description: description,
    favourite: ActiveModel::Type::Boolean.new.cast(favourite)
  }
end