Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

UpdateOrderParameters.cs

using Nop.Core.Domain.Discounts;
using Nop.Core.Domain.Orders;
using Nop.Core.Domain.Shipping;

namespace Nop.Services.Orders;

/// 
/// Parameters for the updating order totals
/// 
public partial class UpdateOrderParameters
{
    #region Ctor

    public UpdateOrderParameters(Order updatedOrder, OrderItem updatedOrderItem)
    {
        ArgumentNullException.ThrowIfNull(updatedOrder);

        ArgumentNullException.ThrowIfNull(updatedOrderItem);

        UpdatedOrder = updatedOrder;
        UpdatedOrderItem = updatedOrderItem;
    }

    #endregion

    /// 
    /// The updated order
    /// 
    public Order UpdatedOrder { get; protected set; }

    /// 
    /// The updated order item
    /// 
    public OrderItem UpdatedOrderItem { get; protected set; }

    /// 
    /// The price of item with tax
    /// 
    public decimal PriceInclTax { get; set; }

    /// 
    /// The price of item without tax
    /// 
    public decimal PriceExclTax { get; set; }

    /// 
    /// The quantity
    /// 
    public int Quantity { get; set; }

    /// 
    /// The amount of discount with tax
    /// 
    public decimal DiscountAmountInclTax { get; set; }

    /// 
    /// The amount of discount without tax
    /// 
    public decimal DiscountAmountExclTax { get; set; }

    /// 
    /// Subtotal of item with tax
    /// 
    public decimal SubTotalInclTax { get; set; }

    /// 
    /// Subtotal of item without tax
    /// 
    public decimal SubTotalExclTax { get; set; }

    /// 
    /// Warnings
    /// 
    public List Warnings { get; } = new List();

    /// 
    /// Applied discounts
    /// 
    public List AppliedDiscounts { get; } = new List();

    /// 
    /// Pickup point
    /// 
    public PickupPoint PickupPoint { get; set; }
}