function toBookingItems
toBookingItems(intent: CheckoutIntent): BookingItem[]

Convert registration line items to compact, edge-tagged booking items (v2). Each package member line carries ITS OWN package edge (k:"p", r=its group id) so the webhook can revalidate each line's nodeKey — an order can book several packages, so the edge is per line, never order-wide; folded children (in allocations) and standalone lines stay untagged. See signed-metadata.ts.

Parameters

Return Type

Usage

import { toBookingItems } from "docs/payments.ts";