Class SuspendAccountCommand
java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<String>
com.brodygaudel.bank.common.command.account.SuspendAccountCommand
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 Summary
ConstructorDescriptionSuspendAccountCommand
(String id, AccountStatus status, LocalDateTime lastUpdate) Constructs a new instance of SuspendAccountCommand with the specified parameters. -
Method Summary
-
Constructor Details
-
SuspendAccountCommand
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.
-