raises error with invalid discount types