Module: AccountComponent::Controls::Commands::Deposit

Defined in:
lib/account_component/controls/commands/deposit.rb

Class Method Summary collapse

Class Method Details

.example(id: nil, account_id: nil, amount: nil) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/account_component/controls/commands/deposit.rb', line 5

def self.example(id: nil, account_id: nil, amount: nil)
  id ||= ID.example
   ||= Account.id
  amount ||= Money.example

  deposit = AccountComponent::Messages::Commands::Deposit.build

  deposit.deposit_id = id
  deposit. = 
  deposit.amount = amount
  deposit.time = Controls::Time::Effective.example

  deposit..global_position = Position.example

  deposit
end