Class CreditAccountCommand

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

public class CreditAccountCommand extends BaseCommand<String>
Command to credit an amount to an account.

This command is used to initiate a credit operation on an account. It includes the unique identifier of the account, the amount to be credited, a description of the transaction, and the timestamp of the last update inherited from the BaseCommand class.

See Also:
  • Constructor Details

    • CreditAccountCommand

      public CreditAccountCommand(String id, BigDecimal amount, String description, LocalDateTime lastUpdate)
      Constructs a new instance of CreditAccountCommand with the specified parameters.
      Parameters:
      id - The unique identifier of the account to be credited.
      amount - The amount to be credited to the account.
      description - A description of the credit transaction.
      lastUpdate - The timestamp indicating when the credit operation occurred.