billing: Add PLUS as a plan_type to Realm.

This commit is contained in:
Vishnu KS
2021-09-16 19:35:26 +05:30
committed by Tim Abbott
parent a86ab18a7b
commit aff52722a7
8 changed files with 39 additions and 3 deletions

View File

@@ -4625,7 +4625,11 @@ def do_change_plan_type(
extra_data={"old_value": old_value, "new_value": plan_type},
)
if plan_type == Realm.STANDARD:
if plan_type == Realm.PLUS:
realm.max_invites = Realm.INVITES_STANDARD_REALM_DAILY_MAX
realm.message_visibility_limit = None
realm.upload_quota_gb = Realm.UPLOAD_QUOTA_STANDARD
elif plan_type == Realm.STANDARD:
realm.max_invites = Realm.INVITES_STANDARD_REALM_DAILY_MAX
realm.message_visibility_limit = None
realm.upload_quota_gb = Realm.UPLOAD_QUOTA_STANDARD