85 lines
2.0 KiB
C#
85 lines
2.0 KiB
C#
using Nop.Core.Domain.Discounts;
|
|
using Nop.Core.Domain.Orders;
|
|
using Nop.Core.Domain.Shipping;
|
|
|
|
namespace Nop.Services.Orders;
|
|
|
|
/// <summary>
|
|
/// Parameters for the updating order totals
|
|
/// </summary>
|
|
public partial class UpdateOrderParameters
|
|
{
|
|
#region Ctor
|
|
|
|
public UpdateOrderParameters(Order updatedOrder, OrderItem updatedOrderItem)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(updatedOrder);
|
|
|
|
ArgumentNullException.ThrowIfNull(updatedOrderItem);
|
|
|
|
UpdatedOrder = updatedOrder;
|
|
UpdatedOrderItem = updatedOrderItem;
|
|
}
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// The updated order
|
|
/// </summary>
|
|
public Order UpdatedOrder { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The updated order item
|
|
/// </summary>
|
|
public OrderItem UpdatedOrderItem { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The price of item with tax
|
|
/// </summary>
|
|
public decimal PriceInclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// The price of item without tax
|
|
/// </summary>
|
|
public decimal PriceExclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// The quantity
|
|
/// </summary>
|
|
public int Quantity { get; set; }
|
|
|
|
/// <summary>
|
|
/// The amount of discount with tax
|
|
/// </summary>
|
|
public decimal DiscountAmountInclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// The amount of discount without tax
|
|
/// </summary>
|
|
public decimal DiscountAmountExclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// Subtotal of item with tax
|
|
/// </summary>
|
|
public decimal SubTotalInclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// Subtotal of item without tax
|
|
/// </summary>
|
|
public decimal SubTotalExclTax { get; set; }
|
|
|
|
/// <summary>
|
|
/// Warnings
|
|
/// </summary>
|
|
public List<string> Warnings { get; } = new List<string>();
|
|
|
|
/// <summary>
|
|
/// Applied discounts
|
|
/// </summary>
|
|
public List<Discount> AppliedDiscounts { get; } = new List<Discount>();
|
|
|
|
/// <summary>
|
|
/// Pickup point
|
|
/// </summary>
|
|
public PickupPoint PickupPoint { get; set; }
|
|
} |