Class AccountDebitedEvent

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

public class AccountDebitedEvent extends BaseEvent<String>
Event representing the debiting of an account in the system.

This event is triggered when an account is successfully debited with a certain amount. It includes the unique identifier of the account, the debited amount, a description of the debit operation, and the timestamp of the last update.

See Also:
  • Constructor Details

    • AccountDebitedEvent

      public AccountDebitedEvent(String id, BigDecimal amount, String description, LocalDateTime lastUpdate)
      Constructs a new AccountDebitedEvent with the specified details.
      Parameters:
      id - The unique identifier associated with the event, representing the debited account.
      amount - The amount debited from the account.
      description - A description of the debit operation.
      lastUpdate - The timestamp of the last update, indicating when the debit operation occurred.