Package com.dada.banking_project.dtos
Class TransactionDTO
java.lang.Object
com.dada.banking_project.dtos.TransactionDTO
-
Constructor Summary
ConstructorDescriptionTransactionDTO
(Integer senderAccountId, Integer receiverAccountId, String primaryOrSecondaryOwnersName, BigDecimal amount, LocalDateTime transactionDate) Constructs a new TransactionDTO with the specified values. -
Method Summary
-
Constructor Details
-
TransactionDTO
public TransactionDTO(Integer senderAccountId, Integer receiverAccountId, String primaryOrSecondaryOwnersName, BigDecimal amount, LocalDateTime transactionDate) Constructs a new TransactionDTO with the specified values.- Parameters:
senderAccountId
- the ID of the account that is sending the transactionreceiverAccountId
- the ID of the account that is receiving the transactionprimaryOrSecondaryOwnersName
- the name of the primary or secondary owner of the account sending the transactionamount
- the amount of the transactiontransactionDate
- the date and time the transaction occurred
-