public static function consumeDiscount($discountCode)
    {
        $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
        $engine = $discount->get_engine();
        $engine->consumeDiscount($discount);
        return $discount;
    }
public static function consumeDiscount($discountCode)
    {
        $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
        $engine = $discount->get_engine();
        $engine->consumeDiscount($discount);
        return $discount;
    }
public static function consumeDiscount ( $ discountCode ) { $ discount = Discount_Shortcuts_GetDiscountByCodeOr404 ( $ discountCode ) ; $ engine = $ discount -> get_engine ( ) ; $ engine -> consumeDiscount ( $ discount ) ; return $ discount ; }
Decrease one unit of given discount.
If discount is one-time-use it will be invalid after this function.

@param string $discountCode
@return Discount_Discount
Decrease one unit of given discount . If discount is one - time - use it will be invalid after this function .