Class Payment.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<Payment>
    Enclosing class:
    Payment

    public static final class Payment.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Payment>
    The bean-builder for Payment.
    • Method Detail

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<Payment>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Payment>
      • set

        public Payment.Builder set​(org.joda.beans.MetaProperty<?> property,
                                   Object value)
        Specified by:
        set in interface org.joda.beans.BeanBuilder<Payment>
        Overrides:
        set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Payment>
      • value

        public Payment.Builder value​(CurrencyAmount value)
        Sets the amount of the payment.

        The amount is signed. A negative value indicates the amount is to be paid while a positive value indicates the amount is received.

        Parameters:
        value - the new value, not null
        Returns:
        this, for chaining, not null
      • date

        public Payment.Builder date​(LocalDate date)
        Sets the date that the payment is made.

        This date should normally be a valid business day.

        Parameters:
        date - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Payment>