Last active
December 17, 2019 06:47
-
-
Save justinhj/fc4471240f9f3548d79e0f6e903c1d80 to your computer and use it in GitHub Desktop.
This file contains 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[R] extends ReplyType[R] | |
case class DepositCmd(time: Instant, description: String, amount: Int) | |
extends BankAccountCommand[Int] | |
case class WithdrawCmd(time: Instant, description: String, amount: Int) | |
extends BankAccountCommand[WithdrawalResponse] | |
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