module AccountComponent::Controls::Events::Withdrawn

Public Class Methods

example() click to toggle source
# 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 = 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