Package angry3vilbot.bankingapp
Class DepositRequest
java.lang.Object
angry3vilbot.bankingapp.DepositRequest
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 Summary
FieldsModifier and TypeFieldDescriptionprivate BigDecimalAmount to be depositedprivate intID of the deposit requestprivate StringName of the user that made the requestprivate BigDecimalAccount number to deposit into -
Constructor Summary
ConstructorsConstructorDescriptionDepositRequest(int id, String name, BigDecimal amount, BigDecimal target) Constructs a DepositRequest object with the specified ID, name, amount, and target. -
Method Summary
-
Field Details
-
id
private int idID of the deposit request -
name
Name of the user that made the request -
amount
Amount to be deposited -
target
Account number to deposit into
-
-
Constructor Details
-
DepositRequest
Constructs a DepositRequest object with the specified ID, name, amount, and target.- Parameters:
id- ID of the deposit requestname- Name of the user that made the requestamount- Amount to be depositedtarget- 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
Gets the name of the user that made the request.- Returns:
- Name of the user that made the request
-
getAmount
Gets the amount to be deposited.- Returns:
- Amount to be deposited
-
getTarget
Gets the account number to deposit into.- Returns:
- Account number to deposit into
-