Class AbstractCharge

    • Constructor Detail

      • AbstractCharge

        public AbstractCharge​(AbstractAmount amount)
        Default constructor requiring a spcific amount.
    • Method Detail

      • isDisabled

        public boolean isDisabled()
        Returns:
        true if this charge will be ignored for calculation.
      • setDisabled

        public void setDisabled​(boolean disabled)
        Marks this charge as disabled, which means that it will be ignored during calculation.
      • setChargeType

        public void setChargeType​(AbstractCharge.ChargeType chargeType)
        Sets the kind of this additional charge. Can be null.
      • getChargeType

        public AbstractCharge.ChargeType getChargeType()
        Returns the kind of this additional charge.
        Returns:
        null if nothing is set.