baseAmount, amountPerUnit, amountPerPage, maximumAmount);
}
@Override
protected Money subtractFromExemptions(Event event, DateTime when, boolean applyDiscount, Money amountToPay) {
final DegreeFinalizationCertificateRequestEvent requestEvent = (DegreeFinalizationCertificateRequestEvent) event;
if (requestEvent.hasAcademicEventExemption()) {
return amountToPay.subtract(requestEvent.getAcademicEventExemption().getValue());
}
if (amountToPay.isNegative()) {
return Money.ZERO;
}