Samir Boulahtit
4f379b472b
feat: complete billing module migration (Phase 5)
Migrates billing module to self-contained structure:
- Create app/modules/billing/services/ with subscription, stripe, admin services
- Create app/modules/billing/models/ re-exporting from central location
- Create app/modules/billing/schemas/ re-exporting from central location
- Create app/modules/billing/tasks/ with 4 scheduled Celery tasks
- Create app/modules/billing/exceptions.py with module-specific exceptions
- Update definition.py with is_self_contained=True and scheduled_tasks
Celery task migration:
- reset_period_counters -> billing module
- check_trial_expirations -> billing module
- sync_stripe_status -> billing module
- cleanup_stale_subscriptions -> billing module
- capture_capacity_snapshot remains in legacy (will go to monitoring)
Backward compatibility:
- Create re-exports in app/services/ for subscription, stripe, admin services
- Old import paths continue to work
- Update celery_config.py to use module-defined schedules
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 23:06:23 +01:00
..
2025-12-04 23:26:03 +01:00
2026-01-27 22:41:19 +01:00
2025-12-04 23:26:03 +01:00
2026-01-11 19:44:59 +01:00
2026-01-27 22:41:19 +01:00
2026-01-01 12:58:09 +01:00
2026-01-13 20:36:53 +01:00
2026-01-11 19:44:59 +01:00
2026-01-08 02:50:06 +01:00
2026-01-05 22:38:10 +01:00
2025-12-25 17:17:09 +01:00
2025-12-26 20:56:22 +01:00
2026-01-27 23:06:23 +01:00
2026-01-09 22:44:16 +01:00
2025-11-23 09:39:27 +01:00
2026-01-11 19:44:59 +01:00