Jun 28 - Implement payment functions (Stripe)

This commit is contained in:
2026-06-28 12:01:25 -04:00
parent 61ede27093
commit f292c8fb7b
21 changed files with 1112 additions and 18 deletions
+5
View File
@@ -11,6 +11,7 @@ gates.py can read them from g.tenant without a second control-DB round-trip.
"""
from dataclasses import dataclass
from datetime import datetime
from typing import Optional
@@ -36,3 +37,7 @@ class TenantContext:
allow_scheduled_reports: bool = True
allow_branding: bool = True
allow_custom_domain: bool = True
# MT-8: billing state (None = billing not configured / legacy tenant)
subscription_status: Optional[str] = None # trial|active|past_due|cancelled
trial_ends_at: Optional[datetime] = None