raises ValueError for invalid discount type