for (Entry entry : person.getPayments()) {
String amount = entry.getOriginalAmount().getAmountAsString();
String name = entry.getPaymentMode().getName();
String description = entry.getDescription().toString(provider);
String date = formatDay.print(entry.getWhenRegistered());
payed.add(new PaymentEvent(amount, name, description, date));
}
List<Event> notPayedEvents = calculateNotPayedEvents(person);
List<PendingEvent> notPayed = new ArrayList<>();