Module: AccountComponent::Controls::Events::Withdrawn

Defined in:
lib/account_component/controls/events/withdrawn.rb

Class Method Summary collapse

Class Method Details

.exampleObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/account_component/controls/events/withdrawn.rb', line 5

def self.example
  withdrawn = AccountComponent::Messages::Events::Withdrawn.build

  withdrawn.withdrawal_id = ID.example
  withdrawn. = Account.id
  withdrawn.amount = Money.example
  withdrawn.time = Controls::Time::Effective.example
  withdrawn.processed_time = Controls::Time::Processed.example

  withdrawn.sequence = Sequence.example

  withdrawn
end