mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
billing: Downgrade small realms that are behind on payments.
An organization with at most 5 users that is behind on payments isn't worth spending time on investigating the situation. For larger organizations, we likely want somewhat different logic that at least does not void invoices.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from typing import Any
|
||||
|
||||
from corporate.lib.stripe import downgrade_small_realms_behind_on_payments_as_needed
|
||||
from zerver.lib.management import ZulipBaseCommand
|
||||
|
||||
|
||||
class Command(ZulipBaseCommand):
|
||||
help = "Downgrade small realms that are running behind on payments"
|
||||
|
||||
def handle(self, *args: Any, **options: Any) -> None:
|
||||
downgrade_small_realms_behind_on_payments_as_needed()
|
||||
Reference in New Issue
Block a user