Class AccountSuspendedEvent

java.lang.Object
com.brodygaudel.bank.common.event.BaseEvent<String>
com.brodygaudel.bank.common.event.account.AccountSuspendedEvent

public class AccountSuspendedEvent extends BaseEvent<String>
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 Details

    • AccountSuspendedEvent

      public AccountSuspendedEvent(String id, AccountStatus status, LocalDateTime lastUpdate)
      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.