Class UpdateCustomerCommand
java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<String>
com.brodygaudel.bank.common.command.customer.UpdateCustomerCommand
Command to update an existing customer.
This command is used to initiate the update of an existing customer. It includes all the necessary information such as the National Identity Card (NIC), first name, last name, place of birth, date of birth, nationality, sex, and the timestamp of the last update. The unique identifier for the customer is inherited from the BaseCommand class.
- See Also:
-
Constructor Summary
ConstructorDescriptionUpdateCustomerCommand
(String id, String nic, String firstname, String name, String placeOfBirth, LocalDate dateOfBirth, String nationality, Sex sex, LocalDateTime lastUpdate) Constructs a new instance of UpdateCustomerCommand with the specified parameters. -
Method Summary
-
Constructor Details
-
UpdateCustomerCommand
public UpdateCustomerCommand(String id, String nic, String firstname, String name, String placeOfBirth, LocalDate dateOfBirth, String nationality, Sex sex, LocalDateTime lastUpdate) Constructs a new instance of UpdateCustomerCommand with the specified parameters.- Parameters:
id
- The unique identifier for the customer.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 sex of the customer.lastUpdate
- The timestamp indicating when the customer was last updated.
-