Skip to content

Instantly share code, notes, and snippets.

@emag
Created December 8, 2024 09:19
Show Gist options
  • Select an option

  • Save emag/ef939dc479e0df05cfab9afd387bd4bb to your computer and use it in GitHub Desktop.

Select an option

Save emag/ef939dc479e0df05cfab9afd387bd4bb to your computer and use it in GitHub Desktop.
ドメインイベント
enum BsEvent {
case Initialized(
assets: Map[AccountTitle, BigDecimal],
liabilities: Map[AccountTitle, BigDecimal]
)
case Journalized(journalEntry: JournalEntry)
}
enum BsRejection {
case NotReady
case AlreadyInitialized
case NegativeAmountJournalEntry
case NegativeBalance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment