Module: Telleroo::API::BankTransfers

Included in:
Telleroo::API
Defined in:
lib/telleroo/api/bank_transfers.rb

Overview

Telleroo Transfers. These are bank transfers from your Source Account to Recipient

Instance Method Summary collapse

Instance Method Details

#create_adhoc_transfer(params) ⇒ Hash

Returns:

  • (Hash)


82
83
84
# File 'lib/telleroo/api/bank_transfers.rb', line 82

def create_adhoc_transfer(params)
  post('adhoc_bank_transfers', params)
end

#create_transfer(account_id: nil, currency_code: nil, amount: nil, recipient_id: nil, idempotent_key: nil, options: {}) ⇒ Hash

Returns:

  • (Hash)


45
46
47
48
49
50
51
52
53
54
55
# File 'lib/telleroo/api/bank_transfers.rb', line 45

def create_transfer(account_id: nil, currency_code: nil, amount: nil, recipient_id: nil, idempotent_key: nil, options: {})
  params = {
    account_id: ,
    currency_code: currency_code,
    amount: amount,
    recipient_id: recipient_id,
    idempotent_key: idempotent_key
  }.merge(options)

  post('bank_transfers', params)
end