public double getDiscountedPrice(double originalPrice){
		if(originalPrice <= 0) throw new IllegalArgumentException("The starting price cannot be 0 or below.");
		
		double newPrice = 0;
		
		switch(typeFlag){
			case PERCENTAGE:
				newPrice = originalPrice * (1 - discountValue);
			break;
			case ABSOLUTE:
				newPrice = originalPrice - discountValue;
			break;
			default:
				throw new IllegalStateException("The discount-type has not been defined.");
		}
		
		return newPrice;
	}