Class SuspendAccountCommand

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

public class SuspendAccountCommand extends BaseCommand<String>
Command to suspend an account.

This command is used to initiate the suspension of an account. It includes the unique identifier of the account, the new status (AccountStatus.SUSPENDED), and the timestamp of the last update inherited from the BaseCommand class.

See Also:
  • Constructor Details

    • SuspendAccountCommand

      public SuspendAccountCommand(String id, AccountStatus status, LocalDateTime lastUpdate)
      Constructs a new instance of SuspendAccountCommand with the specified parameters.
      Parameters:
      id - The unique identifier of the account to be suspended.
      status - The new status of the account after suspension (AccountStatus.SUSPENDED).
      lastUpdate - The timestamp indicating when the account suspension operation occurred.