Interface BillingEventPricingService<P extends BillingEventDTO,Q extends BillingEvent,R extends BillingEventAdjustment,S extends BillingEventItemWithTaxDetails,T extends BillingEventPaymentWithTransaction>

All Known Implementing Classes:
DefaultBillingEventPricingService

public interface BillingEventPricingService<P extends BillingEventDTO,Q extends BillingEvent,R extends BillingEventAdjustment,S extends BillingEventItemWithTaxDetails,T extends BillingEventPaymentWithTransaction>
  • Method Summary

    Modifier and Type
    Method
    Description
    Responsible for setting all the totals correctly on the new billing event based on the state of the passed in event (i.e.
    executePricing(P event, boolean ignoreTaxes)
    Responsible for setting all the totals correctly on the new billing event based on the state of the passed in event.
    void
    recalculatePricing(Q event, List<R> billingEventAdjustments, List<S> billingEventItemWithTaxDetailsList, List<T> billingEventPaymentWithTransactionList)
    Responsible for re-setting all the totals on an existing billing event.
  • Method Details

    • executePricing

      P executePricing(P event)
      Responsible for setting all the totals correctly on the new billing event based on the state of the passed in event (i.e. assumes all necessary tax details have already been applied and set on the new billing event).
    • executePricing

      P executePricing(P event, boolean ignoreTaxes)
      Responsible for setting all the totals correctly on the new billing event based on the state of the passed in event. Will ignore tax totalling if ignoreTaxes is true
    • recalculatePricing

      void recalculatePricing(Q event, List<R> billingEventAdjustments, List<S> billingEventItemWithTaxDetailsList, List<T> billingEventPaymentWithTransactionList)
      Responsible for re-setting all the totals on an existing billing event. e.g. if the billing event is passed to the taxing engine to re-calculate the latest tax for the provided billing items.