feat: add education indicator
This commit is contained in:
parent
badedc70ce
commit
3a8cb8e1dd
@ -10,6 +10,7 @@ from services.enterprise.enterprise_service import EnterpriseService
|
|||||||
class SubscriptionModel(BaseModel):
|
class SubscriptionModel(BaseModel):
|
||||||
plan: str = "sandbox"
|
plan: str = "sandbox"
|
||||||
interval: str = ""
|
interval: str = ""
|
||||||
|
education: bool = False
|
||||||
|
|
||||||
|
|
||||||
class BillingModel(BaseModel):
|
class BillingModel(BaseModel):
|
||||||
@ -119,6 +120,7 @@ class FeatureService:
|
|||||||
features.billing.enabled = billing_info["enabled"]
|
features.billing.enabled = billing_info["enabled"]
|
||||||
features.billing.subscription.plan = billing_info["subscription"]["plan"]
|
features.billing.subscription.plan = billing_info["subscription"]["plan"]
|
||||||
features.billing.subscription.interval = billing_info["subscription"]["interval"]
|
features.billing.subscription.interval = billing_info["subscription"]["interval"]
|
||||||
|
features.billing.subscription.education = billing_info["subscription"]["education"]
|
||||||
|
|
||||||
if "members" in billing_info:
|
if "members" in billing_info:
|
||||||
features.members.size = billing_info["members"]["size"]
|
features.members.size = billing_info["members"]["size"]
|
||||||
|
Loading…
Reference in New Issue
Block a user