Class DepositRequest

java.lang.Object
angry3vilbot.bankingapp.DepositRequest

public class DepositRequest extends Object
This class represents a deposit request. It contains the ID, name of the user that made the request, the amount to be deposited, and the account number to deposit into. It provides a constructor to initialize these fields and getter methods to access them.
  • Field Details

    • id

      private int id
      ID of the deposit request
    • name

      private String name
      Name of the user that made the request
    • amount

      private BigDecimal amount
      Amount to be deposited
    • target

      private BigDecimal target
      Account number to deposit into
  • Constructor Details

    • DepositRequest

      public DepositRequest(int id, String name, BigDecimal amount, BigDecimal target)
      Constructs a DepositRequest object with the specified ID, name, amount, and target.
      Parameters:
      id - ID of the deposit request
      name - Name of the user that made the request
      amount - Amount to be deposited
      target - Account number to deposit into
  • Method Details

    • getId

      public int getId()
      Gets the ID of the deposit request.
      Returns:
      ID of the deposit request
    • getName

      public String getName()
      Gets the name of the user that made the request.
      Returns:
      Name of the user that made the request
    • getAmount

      public BigDecimal getAmount()
      Gets the amount to be deposited.
      Returns:
      Amount to be deposited
    • getTarget

      public BigDecimal getTarget()
      Gets the account number to deposit into.
      Returns:
      Account number to deposit into