Class CreateAccountCommand

java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<String>
com.brodygaudel.bank.common.command.account.CreateAccountCommand

public class CreateAccountCommand extends BaseCommand<String>
Command to create a new account.

This command is used to initiate the creation of a new account. It includes the unique identifier, initial balance, desired account status, creation timestamp, and the customer ID inherited from the BaseCommand class.

See Also:
  • Constructor Details

    • CreateAccountCommand

      public CreateAccountCommand(String id, BigDecimal balance, AccountStatus status, LocalDateTime creation, String customerId)
      Constructs a new instance of CreateAccountCommand with the specified parameters.
      Parameters:
      id - The unique identifier for the new account.
      balance - The initial balance of the new account.
      status - The status to set for the new account.
      creation - The timestamp indicating when the account is created.
      customerId - The unique identifier of the customer associated with the new account.