public function setDiscountOnItem(CartItem $item, $discountAmount)
{
if (!is_numeric($discountAmount)) {
throw new InvalidPrice('You must use a discount amount.');
}
$this->appliedToCart = false;
$item->code = $this->code;
$item->discount = $discountAmount;
$item->couponInfo = $this->options;
}