Class ActiveAccountCommand

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

public class ActiveAccountCommand extends BaseCommand<String>
Command to activate an account.

This command is used to initiate the activation of an account. It includes the unique identifier, the desired account status, and the timestamp of the last update inherited from the BaseCommand class.

See Also:
  • Constructor Details

    • ActiveAccountCommand

      public ActiveAccountCommand(String id, AccountStatus status, LocalDateTime lastUpdate)
      Constructs a new instance of ActiveAccountCommand with the specified parameters.
      Parameters:
      id - The unique identifier for the account to be activated.
      status - The status to set the account to after activation.
      lastUpdate - The timestamp of the last update associated with the activation.