Threshold

case Threshold(product: Product, threshold: ThresholdQuantity, discount: DiscountPercentage) extends PromotionLine

This promotion line specifies the discounted product, the threshold and how much to discount it by.

Only the products above the threshold are discounted; the other ones are at full price.

Note:

For example, if a 100g casatella normally costs 100 cents and the promotion line specifies a 50% discount above 5 casatellas, the first 5 casatella will cost 100 cents, while from the 6th onwards they will cost 50 cents each.

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product