Skip to content
Discussion options

You must be logged in to vote

Estate Management

Transaction Completed Event domain event handler

if (type is logon) then ignore
else then add a new event to merchant statement aggregate

Flow

  1. Transaction Completed arrives
  2. merchant is rehydrated
  3. Work out the next statement date (how is this done), do we feed statement generated events back into the merchant to update the statement date? Statements will be monthly!!
  4. Check if this statement exists already (use date to guid) (StatementCreatedEvent)
    4.1) If statement doesnt exist then create (MerchantStatementAggregate-GUID)
  5. Add transaction to statement (ensure same transaction is not added more than once)
  6. Every day statement generator process runs, closes off the statemen…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by StuartFerguson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant