feat(go/M2.3+M2.4): port domain/fees.CalculateFee and CalculateJuniorFee #6
Reference in New Issue
Block a user
Delete Branch "feat/m2-3-m2-4-domain-fees"
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?
Summary
calculate_fee(adults) andcalculate_junior_fee(juniors) fromscripts/attendance.pyinto a newgo/internal/domain/feespackage.Expected{Value int; Unknown bool}for the junior"?"sentinel — strictly typed instead ofstr|int.AdultFeeMonthlyRate,JuniorFeeMonthlyRate, fallback defaults) are exported so M5 handlers can read them.-race;golangci-lintclean.Ticks M2.3 and M2.4 in docs/plans/2026-05-03-2349-go-backend-rewrite-progress.md.
Test plan
make go-testpasses (all 20 new subtests green)make go-lintcleanmake go-buildsucceeds