-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add UK-specific API endpoints to the FastAPI backend.
Implementation
Update api/main.py and api/schemas.py with:
New Endpoints
POST /api/uk/calculate- Calculate UK tax impact of Gift Aid donationsPOST /api/uk/target-donation- Calculate required donation for target net incomeGET /api/uk/regions- Get list of UK regions (England, Scotland, Wales, NI)GET /api/uk/tax-programs- Get UK Gift Aid program information
New Schemas
UKIncomeInput- UK income sources (employment_income, self_employment_income, etc.)UKCalculateRequest- Request body for UK calculationsUKCalculateResponse- Response with Gift Aid metrics
Key Differences from US Endpoints
regioninstead ofstate_codegift_aidinstead ofcharitable_cash_donations- Include charity Gift Aid reclaim amount in response
- Include donor tax relief amount in response
Acceptance Criteria
- TDD: Tests written first
-
/api/uk/calculatereturns correct tax savings -
/api/uk/regionsreturns all 4 UK nations - Response includes both charity reclaim and donor relief
- Proper error handling for invalid inputs
Part of #59
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request