AccountState

open class AccountState

The account's state: mutable, evolved by its public onSourcing methods, one per event. Its getters are what Jackson serializes (snapshots, the test DSL's purity check).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val balance: Long
Link copied to clipboard
open val owner: String

Functions

Link copied to clipboard
open fun onSourcing(event: AccountOpened)
open fun onSourcing(event: Deposited)
open fun onSourcing(event: Withdrawn)