Kona.Model.Order.RepriceItems C# (CSharp) Method

RepriceItems() public method

Reprices all items in the cart to reflect update item prices.
/// Throws an InvalidOperationException if the cart /// has been checked out. ///
public RepriceItems ( ) : bool
return bool
        public virtual bool RepriceItems()
        {
            if (Status != OrderStatus.NotCheckoutOut)
            {
                throw new InvalidOperationException("Order may not be repriced once checked out.");
            }

            decimal startingTotal = Total;
            return startingTotal != Total;
        }