class DiscountingPaymentPricer {

  public CurrencyAmount currentCash(Payment payment, BaseProvider provider) {
    if (payment.getDate().isEqual(provider.getValuationDate())) {
      return payment.getValue();
    }
    return CurrencyAmount.zero(payment.getCurrency());
  }

  public  DiscountingPaymentPricer();

}