The atg.commerce.pricing.QualifiedItem
class holds information about a CommerceItem
that qualifies for a discount. The information includes the names of the items that qualify and their quantity. QualifiedItems
are returned from the Qualifier.findQualifyingItems
method. Refer to Extending the ItemDiscountCalculator for more in formation on the uses of this class.
The QualifiedItem
class contains the following properties:
item
: the item that qualified for a discount.quantityQualified
: Specifies how many of theCommerceItem
qualified for a discount.timesAllItemsQualify
: Specifies how many times all of the items qualified for the discount. This number is useful in ensuring that thequantityQualified
is not greater than the quantity ofCommerceItem
.