Class OrderCharge

    • Constructor Detail

      • OrderCharge

        public OrderCharge​(AbstractAmount amount)
        Creates a new order level charge with a specific amount.
    • Method Detail

      • getTotal

        public Money getTotal​(Order context)
        Calculates the total for this charge within the given order context. Actually this is just delegating to Order.getTotalCharges().
        Specified by:
        getTotal in interface Taxable
        Parameters:
        context - the order within the tax is being calculated
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object