Interface TransactionService

All Known Implementing Classes:
TransactionServiceImpl

public interface TransactionService
  • Method Details

    • addTransaction

      Response addTransaction(TransactionDto transactionDto)
      Adds a transaction.
      Parameters:
      transactionDto - The transaction to add.
      Returns:
      The response indicating whether the transaction was successfully added.
    • internalTransaction

      Response internalTransaction(List<TransactionDto> transactionDtos, String transactionReference)
      Process an internal transaction.
      Parameters:
      transactionDtos - The list of transaction DTOs to process.
      transactionReference - The transaction reference.
      Returns:
      The response of the internal transaction.
    • getTransaction

      List<TransactionRequest> getTransaction(String accountId)
      Retrieves a list of transaction requests for a given account ID.
      Parameters:
      accountId - the ID of the account
      Returns:
      a list of transaction requests
    • getTransactionByTransactionReference

      List<TransactionRequest> getTransactionByTransactionReference(String transactionReference)
      Retrieves a list of transaction requests by transaction reference.
      Parameters:
      transactionReference - The transaction reference to search for.
      Returns:
      A list of transaction requests matching the given transaction reference.