Class CustomerCreatedEvent
java.lang.Object
com.brodygaudel.bank.common.event.BaseEvent<String>
com.brodygaudel.bank.common.event.customer.CustomerCreatedEvent
Event representing the creation of a customer in the system.
This event is triggered when a new customer is successfully created. It includes details such as the customer's unique identifier, personal information, and creation timestamp.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomerCreatedEvent(String id, String nic, String firstname, String name, String placeOfBirth, LocalDate dateOfBirth, String nationality, Sex sex, LocalDateTime creation) Constructs a new CustomerCreatedEvent with the specified details. -
Method Summary
-
Constructor Details
-
CustomerCreatedEvent
public CustomerCreatedEvent(String id, String nic, String firstname, String name, String placeOfBirth, LocalDate dateOfBirth, String nationality, Sex sex, LocalDateTime creation) Constructs a new CustomerCreatedEvent with the specified details.- Parameters:
id- The unique identifier associated with the event.nic- The National Identity Card (NIC) of the customer.firstname- The first name of the customer.name- The last name of the customer.placeOfBirth- The place of birth of the customer.dateOfBirth- The date of birth of the customer.nationality- The nationality of the customer.sex- The gender/sex of the customer.creation- The timestamp representing the creation of the customer.
-