Table of Contents

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

DateTime?

OrderCount

Gets the number of order lines containing this product.

public int OrderCount { get; init; }

Property Value

int

ProductId

Gets the product ID.

public required string ProductId { get; init; }

Property Value

string

Quantity

Gets the total quantity bought across all matching orders.

public double Quantity { get; init; }

Property Value

double

VariantId

Gets the variant ID. Empty string when the product has no variant.

public required string VariantId { get; init; }

Property Value

string

See Also

To top