it0/packages/services/billing-service/src/interfaces/rest/controllers
hailin 60cf49432e feat(billing): add CNY overage rate field and auto-detect currency from locale
- Add overage_rate_fen_per_m_token_cny column (migration 006)
- Plan entity and seed updated with CNY overage rates (Pro ¥58, Enterprise ¥36)
- upsertSeedPlans now updates existing plans (not insert-only)
- Plan controller exposes overageRateCnyPerMToken
- Frontend: currency auto-selects from i18n locale (zh→CNY, en→USD)
- Frontend: Intl.NumberFormat for proper currency formatting
- Currency toggle redesigned as pill selector

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 02:18:25 -08:00
..
invoice.controller.ts fix(billing-service): remove stale invoice.items reference after OneToMany removal 2026-03-04 01:49:23 -08:00
payment-method.controller.ts feat: implement complete commercial monetization loop (Phases 1-4) 2026-03-03 21:09:17 -08:00
plan.controller.ts feat(billing): add CNY overage rate field and auto-detect currency from locale 2026-03-07 02:18:25 -08:00
subscription.controller.ts feat: implement complete commercial monetization loop (Phases 1-4) 2026-03-03 21:09:17 -08:00
webhook.controller.ts fix(billing-service): resolve all TypeScript compilation errors 2026-03-03 23:00:27 -08:00