Jun 28 - Implement payment functions (Stripe)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user