Class TransactionService


  • @Service
    public class TransactionService
    extends Object
    • Constructor Detail

      • TransactionService

        public TransactionService()
    • Method Detail

      • getTransactionsReportByPeriod

        public ResponseObject<Xs2aTransactionsReport> getTransactionsReportByPeriod​(Xs2aTransactionsReportByPeriodRequest request)
        Read Transaction reports of a given account addressed by "account-id", depending on the steering parameter "bookingStatus" together with balances. For a given account, additional parameters are e.g. the attributes "dateFrom" and "dateTo". The ASPSP might add balance information, if transaction lists without balances are not supported.
        Parameters:
        request - Xs2aTransactionsReportByPeriodRequest object which contains information for building Xs2aTransactionsReport
        Returns:
        TransactionsReport filled with appropriate transaction arrays Booked and Pending. For v1.1 balances sections is added
      • getTransactionDetails

        public ResponseObject<Transactions> getTransactionDetails​(String consentId,
                                                                  String accountId,
                                                                  String transactionId,
                                                                  String requestUri)
        Gets transaction details by transaction ID
        Parameters:
        consentId - String representing an Consent identification
        accountId - String representing a PSU`s Account at ASPSP
        transactionId - String representing the ASPSP identification of transaction
        requestUri - the URI of incoming request
        Returns:
        Transactions based on transaction ID.
      • downloadTransactions

        public ResponseObject<Xs2aTransactionsDownloadResponse> downloadTransactions​(String consentId,
                                                                                     String accountId,
                                                                                     String downloadId)
        Gets stream with transaction list by consent ID, account ID and download ID
        Parameters:
        consentId - String representing an Consent identification
        accountId - String representing a PSU`s Account at ASPSP
        downloadId - String representing the download identifier
        Returns:
        Response with transaction list stream.