class AccountModelMapper {

    public abstract TransactionDetails mapToTransaction(Transactions transactions)@Mapping(target = "currencyExchange", expression = "java(mapToReportExchanges(transactions.getExchangeRate()))")
    @Mapping(target = "bankTransactionCode", source = "bankTransactionCodeCode.code")
    @Mapping(target = "transactionAmount", source = "amount")
    @Mapping(target = "links", ignore = true)
    @Mapping(target = "_links", ignore = true)
    public abstract TransactionDetails mapToTransaction(Transactions transactions);

}