Class PurchasedProductAggregate
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Aggregated purchase data for a single product (and variant) from a user's order history.
public sealed class PurchasedProductAggregate
- Inheritance
-
PurchasedProductAggregate
- Inherited Members
Properties
LastOrdered
Gets the date of the most recent order containing this product.
public DateTime? LastOrdered { get; init; }
Property Value
OrderCount
Gets the number of order lines containing this product.
public int OrderCount { get; init; }
Property Value
ProductId
Gets the product ID.
public required string ProductId { get; init; }
Property Value
Quantity
Gets the total quantity bought across all matching orders.
public double Quantity { get; init; }
Property Value
VariantId
Gets the variant ID. Empty string when the product has no variant.
public required string VariantId { get; init; }