feat(api): age group on products #89
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/kws!89
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/age-group"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #88 (the wallet ledger): this PR's base is
feat/wallet-ledgerbecause both add a migration (#88 owns 0010, this is 0011). When #88 merges I will rebase ontomainand retarget this PR, so the diff you review now is only the age-group change.What
age_group(adult, child, infant) on products, a structured field instead of a magic name.Legacy found "the adult ticket" by matching the string
"Adult"(the park page's "from" price, the park email's fee table) and"Children"; renaming a product silently broke them. Now:products.age_groupwith a CHECK. Null for vehicle fees, extras and master tickets.age_group(null when none), so clients group tickets without matching names.adult; the TypeScript compile-time check rejectsage_group: "senior".Why now
Both checkout (#26) and limited-seat products need to know what an "adult" or "child" is, and a seat cap may count people by age group.
Open question for the project owner [verify]
Rules that depend on age or group size are not modelled: the children's age limit, free infants, and the T&C rule that non-residents equalling or outnumbering citizens pay the non-resident fee. Also: should every park-entry ticket be required to have an age group? It is optional for now because legacy may have park-entry products that are neither (annual passes).
Standards review (docs/development-standards.md)
make lint0 issues. Both generated clients compile. Security scans run onmainafter merge.🤖 Generated with Claude Code
feat(api): age group on products (stacked on #88)to feat(api): age group on products96f3b09bd5ef0696cd1e