Class AccountCreditedEvent
java.lang.Object
com.brodygaudel.bank.common.event.BaseEvent<String>
com.brodygaudel.bank.common.event.account.AccountCreditedEvent
Event representing the crediting of an account in the system.
This event is triggered when an account is successfully credited with a certain amount. It includes the unique identifier of the account, the credited amount, a description of the credit operation, and the timestamp of the last update.
- See Also:
-
Constructor Summary
ConstructorDescriptionAccountCreditedEvent
(String id, BigDecimal amount, String description, LocalDateTime lastUpdate) Constructs a new AccountCreditedEvent with the specified details. -
Method Summary
-
Constructor Details
-
AccountCreditedEvent
public AccountCreditedEvent(String id, BigDecimal amount, String description, LocalDateTime lastUpdate) Constructs a new AccountCreditedEvent with the specified details.- Parameters:
id
- The unique identifier associated with the event, representing the credited account.amount
- The amount credited to the account.description
- A description of the credit operation.lastUpdate
- The timestamp of the last update, indicating when the credit operation occurred.
-