Created
January 4, 2020 19:35
-
-
Save justinhj/488cb5596f241e90d2f75e4d90f9e583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait BankAccountCommand | |
case class DepositCmd(time: Instant, amount: Int) extends BankAccountCommand | |
case class PurchaseCmd(time: Instant, amount: Int) extends BankAccountCommand | |
case class AssignAccountHolderCmd(time: Instant, accountHolder: String) extends BankAccountCommand | |
sealed trait BankAccountEvent | |
case class DepositEvt(time: Instant, amount: Int) extends BankAccountEvent | |
case class PurchaseEvt(time: Instant, amount: Int) extends BankAccountEvent | |
case class AssignAccountHolderEvt(time: Instant, accountHolder: String) extends BankAccountEvent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment