collect_leg_booking_detail

passengersim.callbacks.booking_detail.collect_leg_booking_detail(leg_ids: set[int]) → collections.abc.Callable[[CallbackMixin, int], dict | None][source]

Build a daily callback that records cumulative sales for selected legs.

Parameters:
leg_ids : collection of int

The legs to record.

Returns:

Callable – A daily callback returning {"leg-<id>-sold": sold} for each selected leg, or None during burn-in samples.