use of net.petafuel.styx.core.xs2a.utils.sepa.camt052.AccountReport11 in project styx by petafuel.
the class Camt052Converter method processReport.
public TransactionContainer processReport(String xmlData) throws SEPAParsingException {
BankToCustomerAccountReportV02 originalReport = parseReport(xmlData);
TransactionContainer transactionContainer = new TransactionContainer();
transactionContainer.setTransactions(new AccountReport());
transactionContainer.getTransactions().setBooked(new ArrayList<>());
transactionContainer.getTransactions().setPending(new ArrayList<>());
transactionContainer.getTransactions().setInformation(new ArrayList<>());
for (AccountReport11 generalInfoAndTXNs : originalReport.getRpt()) {
for (ReportEntry2 transactionInfo : generalInfoAndTXNs.getNtry()) {
convertTransaction(transactionContainer.getTransactions(), transactionInfo);
}
}
return transactionContainer;
}
Aggregations