Pax batch examples (pax-*.json)

Each pax-*.json file pins one passenger-mix + class-of-service combination and runs it across every carrier combo supported by the bot. Use these to answer "does booking X type of passenger work on every route?" - they exercise each carrier in turn so regressions show up on the carriers they actually affect.

All files share the same destination list (es, er, sncf, sncb, db, db-ret, par-bru, par-ams, par-col, bru-ams, bru-col, ams-bru, ams-col) and the same dates: "14" / market: "uk-en" defaults - so the only thing that changes between files is pax and classes.

All files live in docs/examples/batch/pax/.

Files

File Passengers Class What it proves
1a-std.json 1a (1 adult) STD Baseline: a solo adult in Standard works across every carrier combo.
1a-plus.json 1a (1 adult) PLUS Same baseline at a higher class-of-service - good for catching PLUS availability / pricing regressions.
1a-premier.json 1a (1 adult) PREMIER Premier availability per carrier (not every route offers it equally).
2a-2c-std.json 2a,2c (family of 4) STD Multi-pax baseline: group fare breakdown + child pricing.
2a-2c-plus.json 2a,2c PLUS Family upgrade path.
2a-2c-premier.json 2a,2c PREMIER Family Premier seat allocation (tight inventory on some carriers).
wheelchair.json 1w (solo adult wheelchair) STD Wheelchair user travelling alone - simplest accessibility flow.
wheelchair-adult-comp.json 1w,1comp (adult wheelchair + companion) STD The most common accessibility booking: wheelchair user with a travelling companion.
wheelchair-child-comp.json 1cw,1comp (child wheelchair + companion) STD Child wheelchair variant - a different fare group from the adult wheelchair flow, historically carrier-sensitive.

Run one

bun book --batch docs/examples/batch/pax/1a-std.json

Each file produces 13 bookings (one per destination) and writes to a sibling CSV (1a-std.csv, etc.) next to the JSON.

Run them all

for f in docs/examples/batch/pax/*.json; do
  bun book --batch "$f"
done

→ 9 files × 13 destinations = 117 bookings across every supported carrier combo.

Passenger code reference

Used in the pax field:

Code Meaning
a adult
c child
s senior
y youth
i infant
w, wc, aw adult wheelchair user
cw, cwc child wheelchair user
comp, wcc wheelchair companion
gd guide dog

Examples: 1a (1 adult), 2a,2c (2 adults + 2 children), 1w,1comp (1 wheelchair user + 1 companion).

See also