The atg.commerce.pricing.PricingTools class performs a variety of pricing functions for different types of pricing engines. It also has a number of static, currency-related methods for use by all pricing engines.

The PricingTools class is the main way that business-layer logic interacts with the pricing engines and the other classes in the atg.commerce.pricing package. In ATG Commerce, the classes that extend the ItemPricingDroplet class (PriceItemDroplet and PriceEachItemDroplet) use PricingTools to interface with all the ATG Commerce pricing engines.

When a store using ATG Commerce needs a price for items, orders, shipping, or tax, PricingTools can be consulted to return the price. In addition, PricingTools contains translation functions that identify which currencyCode goes with which locale.

The properties of PricingTools are as follows:

PricingTools includes methods that can be called to produce prices. These methods consult the configured pricing engines.

PricingTools also has some currency and locale properties and methods:

loading table of contents...