Interface TransactionService
- All Known Implementing Classes:
TransactionServiceImpl
public interface TransactionService
-
Method Summary
Modifier and TypeMethodDescriptionaddTransaction(TransactionDto transactionDto) Adds a transaction.getTransaction(String accountId) Retrieves a list of transaction requests for a given account ID.getTransactionByTransactionReference(String transactionReference) Retrieves a list of transaction requests by transaction reference.internalTransaction(List<TransactionDto> transactionDtos, String transactionReference) Process an internal transaction.
-
Method Details
-
addTransaction
Adds a transaction.- Parameters:
transactionDto- The transaction to add.- Returns:
- The response indicating whether the transaction was successfully added.
-
internalTransaction
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
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
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.
-