Class TransactionDTO

java.lang.Object
com.dada.banking_project.dtos.TransactionDTO

public class TransactionDTO extends Object
  • 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 transaction
      receiverAccountId - the ID of the account that is receiving the transaction
      primaryOrSecondaryOwnersName - the name of the primary or secondary owner of the account sending the transaction
      amount - the amount of the transaction
      transactionDate - the date and time the transaction occurred