Class AccountSuspendedEvent
java.lang.Object
com.brodygaudel.bank.common.event.BaseEvent<String>
com.brodygaudel.bank.common.event.account.AccountSuspendedEvent
Event representing the suspension of an account in the system.
This event is triggered when an account is suspended, changing its status to indicate that it is temporarily inactive. It includes the unique identifier of the account, the new status after suspension, and the timestamp of the last update.
- See Also:
-
Constructor Summary
ConstructorDescriptionAccountSuspendedEvent
(String id, AccountStatus status, LocalDateTime lastUpdate) Constructs a new AccountSuspendedEvent with the specified details. -
Method Summary
-
Constructor Details
-
AccountSuspendedEvent
Constructs a new AccountSuspendedEvent with the specified details.- Parameters:
id
- The unique identifier associated with the event, representing the suspended account.status
- The new status of the account after suspension.lastUpdate
- The timestamp of the last update, indicating when the account suspension occurred.
-