use of com.github.robozonky.api.remote.entities.sanitized.Investment in project robozonky by RoboZonky.
the class InvestmentPurchasedEventListener method getData.
@Override
protected Map<String, Object> getData(final InvestmentPurchasedEvent event) {
final Investment i = event.getInvestment();
final Map<String, Object> result = super.getData(event);
result.put("yield", FinancialCalculator.expectedInterestAfterFees(i, event.getPortfolioOverview()));
final BigDecimal interestRate = FinancialCalculator.expectedInterestRateAfterFees(i, event.getPortfolioOverview());
result.put("relativeYield", interestRate);
return result;
}
use of com.github.robozonky.api.remote.entities.sanitized.Investment in project robozonky by RoboZonky.
the class InvestmentSoldEventListener method getSubject.
@Override
String getSubject(final InvestmentSoldEvent event) {
final Investment i = event.getInvestment();
final BigDecimal remaining = i.getRemainingPrincipal();
return "Participace prodána - " + remaining.intValue() + ",- Kč, půjčka " + Util.identifyLoan(event);
}
Aggregations