Class: K2ConnectRuby::K2Entity::K2FinancialEntities::TransferAccount::MerchantBankAccount

Inherits:
TransferAccountRequest
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb

Instance Attribute Summary collapse

Attributes inherited from TransferAccountRequest

#nickname, #type

Instance Method Summary collapse

Methods inherited from TransferAccountRequest

#initialize

Constructor Details

This class inherits a constructor from K2ConnectRuby::K2Entity::K2FinancialEntities::TransferAccount::TransferAccountRequest

Instance Attribute Details

#account_nameObject

Returns the value of attribute account_name.



10
11
12
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 10

def 
  @account_name
end

#account_numberObject

Returns the value of attribute account_number.



10
11
12
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 10

def 
  @account_number
end

#bank_branch_refObject

Returns the value of attribute bank_branch_ref.



10
11
12
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 10

def bank_branch_ref
  @bank_branch_ref
end

#settlement_methodObject

Returns the value of attribute settlement_method.



10
11
12
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 10

def settlement_method
  @settlement_method
end

Instance Method Details

#endpointObject



18
19
20
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 18

def endpoint
  K2ConnectRuby::K2Utilities::Config::K2Config.endpoint("settlement_bank_account")
end

#request_bodyObject



22
23
24
25
26
27
28
29
30
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/transfer_account/merchant_bank_account.rb', line 22

def request_body
  {
    nickname: nickname,
    account_name: ,
    account_number: ,
    bank_branch_ref: bank_branch_ref,
    settlement_method: settlement_method,
  }
end