mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
This is a preparatory commit for using isort for sorting all of our imports, merging changes to files where we can easily review the changes as something we're happy with. These are also files with relatively little active development, which means we don't expect much merge conflict risk from these changes.
16 lines
429 B
Python
16 lines
429 B
Python
from typing import Any
|
|
|
|
from django.conf import settings
|
|
|
|
from zerver.lib.management import ZulipBaseCommand
|
|
|
|
if settings.BILLING_ENABLED:
|
|
from corporate.lib.stripe import invoice_plans_as_needed
|
|
|
|
class Command(ZulipBaseCommand):
|
|
help = """Generates invoices for customers if needed."""
|
|
|
|
def handle(self, *args: Any, **options: Any) -> None:
|
|
if settings.BILLING_ENABLED:
|
|
invoice_plans_as_needed()
|