class DiscountingPaymentPricer {

  public CashFlows cashFlows(Payment payment, BaseProvider provider) {
    if (provider.getValuationDate().isAfter(payment.getDate())) {
      return CashFlows.NONE;
    }
    double df = provider.discountFactor(payment.getCurrency(), payment.getDate());
    CashFlow flow = CashFlow.ofForecastValue(payment.getDate(), payment.getCurrency(), payment.getAmount(), df);
    return CashFlows.of(flow);
  }

  public  DiscountingPaymentPricer();

}