type alias ListingBooking

A single listing booking within a multi-listing attendee creation

Properties

listingId: number
optional
quantity: number
optional
pricePaid: number
optional
date: string | null
optional
durationDays: number

Booking duration in days (defaults to 1 for 1-day bookings). Only meaningful when date is set.

optional
orderToken: string

Shared per-order token written on every row of one checkout (defaults to "" — legacy/parent-less bookings). Set once per create, not per caller.

optional
parentListingId: number

The parent listing this row was folded under when it is a chosen child (defaults to 0 — not a folded child).

optional
packageGroupId: number | undefined

The package this row was booked through (defaults to 0 — not part of any package). Stamped per row by the caller (stampBookingPackages) — an order can carry several packages — so tickets/emails group each line under the right bundle by this id.

Usage

import { type ListingBooking } from "docs/database.ts";