Class AccountCreatedEvent
java.lang.Object
com.brodygaudel.bank.common.event.BaseEvent<String>
com.brodygaudel.bank.common.event.account.AccountCreatedEvent
Event representing the creation of an account in the system.
This event is triggered when a new account is successfully created. It includes the unique identifier of the account, the initial balance, the status, the timestamp of creation, and the associated customer's identifier.
- See Also:
-
Constructor Summary
ConstructorDescriptionAccountCreatedEvent
(String id, BigDecimal balance, AccountStatus status, LocalDateTime creation, String customerId) Constructs a new AccountCreatedEvent with the specified details. -
Method Summary
-
Constructor Details
-
AccountCreatedEvent
public AccountCreatedEvent(String id, BigDecimal balance, AccountStatus status, LocalDateTime creation, String customerId) Constructs a new AccountCreatedEvent with the specified details.- Parameters:
id
- The unique identifier associated with the event, representing the newly created account.balance
- The initial balance of the account.status
- The status of the account after creation.creation
- The timestamp of the account creation.customerId
- The unique identifier of the associated customer.
-