Renamed the discount object field maxQuantity to threshold.