Class CreateCustomerCommand

java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<String>
com.brodygaudel.bank.common.command.customer.CreateCustomerCommand

public class CreateCustomerCommand extends BaseCommand<String>
Command to create a new customer.

This command is used to initiate the creation of a new 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 creation timestamp. The unique identifier for the customer is inherited from the BaseCommand class.

See Also:
  • Constructor Details

    • CreateCustomerCommand

      public CreateCustomerCommand(String id, String nic, String firstname, String name, String placeOfBirth, LocalDate dateOfBirth, String nationality, Sex sex, LocalDateTime creation)
      Constructs a new instance of CreateCustomerCommand 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.
      creation - The timestamp indicating when the customer was created.