Class Credit

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Credit
    extends BaseFee
    A credit, in currency units specified elsewhere in the xml, and with an optional description.
    • Constructor Detail

      • Credit

        public Credit()
    • Method Detail

      • create

        public static Credit create​(java.math.BigDecimal cost,
                                    BaseFee.FeeType type,
                                    java.lang.Object... descriptionArgs)
        Creates a Credit for the given amount and type with the default description.
      • createWithCustomDescription

        public static Credit createWithCustomDescription​(java.math.BigDecimal cost,
                                                         BaseFee.FeeType type,
                                                         java.lang.String description)
        Creates a Credit for the given amount and type with a custom description.