class Payment implements FxConvertible<Payment>, ImmutableBean, Serializable {

  public static Payment of(Currency currency, double amount, LocalDate date) {
    return new Payment(CurrencyAmount.of(currency, amount), date);
  }

  private  Payment(
      CurrencyAmount value,
      LocalDate date);

}