Class DebitAccountCommand
java.lang.Object
com.brodygaudel.bank.common.command.BaseCommand<String>
com.brodygaudel.bank.common.command.account.DebitAccountCommand
Command to debit an amount from an account.
This command is used to initiate a debit operation on an account. It includes the unique identifier of the account, the amount to be debited, a description of the transaction, and the timestamp of the last update inherited from the BaseCommand class.
- See Also:
-
Constructor Summary
ConstructorDescriptionDebitAccountCommand
(String id, BigDecimal amount, String description, LocalDateTime lastUpdate) Constructs a new instance of DebitAccountCommand with the specified parameters. -
Method Summary
-
Constructor Details
-
DebitAccountCommand
public DebitAccountCommand(String id, BigDecimal amount, String description, LocalDateTime lastUpdate) Constructs a new instance of DebitAccountCommand with the specified parameters.- Parameters:
id
- The unique identifier of the account to be debited.amount
- The amount to be debited from the account.description
- A description of the debit transaction.lastUpdate
- The timestamp indicating when the debit operation occurred.
-