The atg.commerce.pricing.DiscountCalculatorService class is an extension of GenericService. DiscountCalculatorService computes a price based on the type of discount, the discount amount, and the current price. It holds information common to all the discount calculators, which can extend this class to eliminate redundant configuration code.

The adjust method can be used as a quick way to apply a discount. It calculates a price based on an existing price, the discount type, and the discount amount. This functionality is used by all discount calculators.

The DiscountCalculatorService also includes getAdjuster() and getDiscountType() methods, which make it easy to override the default means of determining the adjuster and discount types.

The following list describes important properties in the DiscountCalculatorService class: