ResolvedCartContext
Represents the resolved context associated with a cart session. This may be an event, venue, or organizer, and is used to enrich the cart with metadata needed for UI rendering and pricing logic without requiring repeated DB lookups.
Typically stored in cart.meta.resolvedContext.
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | Unique identifier of the context entity. Typically matches the cart’s contextId (e.g., “evt_abc123”). |
title | string | ✓ | Human-readable title or name of the context entity. Used for display in headers, summaries, and confirmations. |
location | object | Optional physical or virtual location of the event or venue. Can include address, coordinates, or virtual link. | |
logo | object | Optional logo, banner, or primary image representing the context. Used in UI to visually identify the entity during checkout. | |
start | string | ✓ | Optional start time of the event or context. Used for scheduling and display purposes. |
end | string | Optional start time of the event or context. Used for scheduling and display purposes. | |
offerings | object | A map of offerings relevant to this context (e.g., ticket types, merch). Stored as a record keyed by offering ID to allow fast lookup. Each value is a partial offering object, intended for display, validation, or pricing. | |
config | unknown | ✓ |
Field Examples
Section titled “Field Examples”id:
"evt_abc123"title:
"Downtown Comedy Night"start:
"2023-10-01T18:00:00Z"end:
"2023-10-01T19:00:00Z"offerings:
\{"off_123abc": \{ path: "events/ev_1234/tickets/tkt_567", offering: \{ name: "VIP Ticket", price: 3000 \}),"off_456def": \{ path: "events/ev_1234/tickets/tkt_567", offering: \{ name: "T-Shirt", price: 2000 \}\}\}