Class: Fintoc::V2::Managers::SimulateManager

Inherits:
Object
  • Object
show all
Defined in:
lib/fintoc/v2/managers/simulate_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SimulateManager



7
8
9
# File 'lib/fintoc/v2/managers/simulate_manager.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#receive_transfer(account_number_id:, amount:, currency:, idempotency_key: nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/fintoc/v2/managers/simulate_manager.rb', line 11

def receive_transfer(account_number_id:, amount:, currency:, idempotency_key: nil)
  data = _simulate_receive_transfer(
    account_number_id:, amount:, currency:, idempotency_key:
  )
  build_transfer(data)
end