Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upgrade: Remove demo_organization_scheduled_deletion_date page param.

Lauryn Menardb074288bac19
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 8231e5c099e..d758d4e4665 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -627,7 +627,6 @@ class BillingSessionAuditLogEventError(Exception):
class UpgradePageParams(TypedDict):
page_type: Literal["upgrade"]
annual_price: int
- demo_organization_scheduled_deletion_date: datetime | None
monthly_price: int
seat_count: int
billing_base_url: str
@@ -645,7 +644,6 @@ class UpgradePageSessionTypeSpecificContext(TypedDict):
customer_name: str
email: str
is_demo_organization: bool
- demo_organization_scheduled_deletion_date: datetime | None
is_self_hosting: bool
@@ -2831,9 +2829,6 @@ class BillingSession(ABC):
"page_params": {
"page_type": "upgrade",
"annual_price": annual_price,
- "demo_organization_scheduled_deletion_date": customer_specific_context[
- "demo_organization_scheduled_deletion_date"
- ],
"monthly_price": monthly_price,
"seat_count": seat_count,
"billing_base_url": self.billing_base_url,
@@ -4198,7 +4193,6 @@ class RealmBillingSession(BillingSession):
customer_name=self.realm.name,
email=self.get_email(),
is_demo_organization=self.realm.demo_organization_scheduled_deletion_date is not None,
- demo_organization_scheduled_deletion_date=self.realm.demo_organization_scheduled_deletion_date,
is_self_hosting=False,
)
@@ -4597,7 +4591,6 @@ class RemoteRealmBillingSession(BillingSession):
customer_name=self.remote_realm.host,
email=self.get_email(),
is_demo_organization=False,
- demo_organization_scheduled_deletion_date=None,
is_self_hosting=True,
)
@@ -5064,7 +5057,6 @@ class RemoteServerBillingSession(BillingSession):
customer_name=self.remote_server.hostname,
email=self.get_email(),
is_demo_organization=False,
- demo_organization_scheduled_deletion_date=None,
is_self_hosting=True,
)
diff --git a/web/src/base_page_params.ts b/web/src/base_page_params.ts
index f4de13654ca..3e75c304783 100644
--- a/web/src/base_page_params.ts
+++ b/web/src/base_page_params.ts
@@ -85,7 +85,6 @@ const team_params_schema = default_params_schema.extend({
const upgrade_params_schema = default_params_schema.extend({
page_type: z.literal("upgrade"),
annual_price: z.number(),
- demo_organization_scheduled_deletion_date: z.nullable(z.number()),
monthly_price: z.number(),
seat_count: z.number(),
billing_base_url: z.string(),