Projection Types
CustomerOrderHistory
The properties the projection declares — the shape folding its stream leaves it in, and the shape it is stored and read back as. These belong to the type; the values one stored instance holds are reached through an identifier on the identifiers tab.
| Property | Type |
|---|---|
| Bought | IReadOnlyDictionary<string, int> |
| CustomerId | string |
| FirstOrderOn | DateTimeOffset? |
| LastOrderOn | DateTimeOffset? |
| LifetimeSpend | decimal |
| OpenOrders | IReadOnlyList<string> |
| OrdersCancelled | int |
| OrdersDelivered | int |
| OrdersPlaced | int |
| Refunded | decimal |
StateLens Demo