Package de.adorsys.psd2.xs2a.service.ais
Class TransactionService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.ais.TransactionService
-
@Service public class TransactionService extends Object
-
-
Constructor Summary
Constructors Constructor Description TransactionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseObject<Xs2aTransactionsDownloadResponse>downloadTransactions(String consentId, String accountId, String downloadId)Gets stream with transaction list by consent ID, account ID and download IDResponseObject<Transactions>getTransactionDetails(String consentId, String accountId, String transactionId, String requestUri)Gets transaction details by transaction IDResponseObject<Xs2aTransactionsReport>getTransactionsReportByPeriod(Xs2aTransactionsReportByPeriodRequest request)Read Transaction reports of a given account addressed by "account-id", depending on the steering parameter "bookingStatus" together with balances.
-
-
-
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 AccountConsent identificationaccountId- String representing a PSU`s Account at ASPSPtransactionId- String representing the ASPSP identification of transactionrequestUri- 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 AccountConsent identificationaccountId- String representing a PSU`s Account at ASPSPdownloadId- String representing the download identifier- Returns:
- Response with transaction list stream.
-
-