Class CartReviewOrderlineViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Lightweight review orderline model used for cart validation responses.
public class CartReviewOrderlineViewModel : CartOrderlineViewModel
- Inheritance
-
CartReviewOrderlineViewModel
- Inherited Members
- Extension Methods
Remarks
This is intentionally based on CartOrderlineViewModel so review payloads follow the same shape as cart payloads. Product details should later be resolved by clients through the optional ProductViewModelEndpoint.
Properties
ErrorType
Gets or sets the primary error type for this orderline.
public CartErrorType ErrorType { get; set; }
Property Value
Remarks
Uses None when no validation error is present. For failed lines with multiple errors, this is the first reported error.
ProductViewModelEndpoint
Gets or sets an optional endpoint that can be used to fetch full product view model data.
public string? ProductViewModelEndpoint { get; set; }