Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
populate_billing_realms: Add invoice-payment customer.
Aman Agrawal07990ad8f153
diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.pyindex 3f23d2b3ad5..3bb31c2d3f2 100644--- a/zilencer/management/commands/populate_billing_realms.py+++ b/zilencer/management/commands/populate_billing_realms.py@@ -28,6 +28,7 @@ class CustomerProfile:sponsorship_pending: bool = Falseis_sponsored: bool = Falsecard: str = ""+ charge_automatically: bool = Trueclass Command(BaseCommand):@@ -86,6 +87,12 @@ class Command(BaseCommand):tier=CustomerPlan.STANDARD,card="pm_card_visa",),+ CustomerProfile(+ unique_id="standard-invoice-payment",+ billing_schedule=CustomerPlan.MONTHLY,+ tier=CustomerPlan.STANDARD,+ charge_automatically=False,+ ),CustomerProfile(unique_id="sponsored",is_sponsored=True,@@ -193,7 +200,7 @@ class Command(BaseCommand):price_per_license=3,automanage_licenses=customer_profile.automanage_licenses,status=customer_profile.status,- charge_automatically=True,+ charge_automatically=customer_profile.charge_automatically,next_invoice_date=next_invoice_date,)