zulip/analytics
Lauryn Menard ee19a9c274 corporate: Move attach_realm_discount to BillingSession class.
This moves the logic for `attach_realm_discount`, which is used in
the support view, to be in the BillingSession class.

Updates the function name to be `attach_discount_to_customer` so
that the context is generalized vs realm specific.

Updates RealmBillingSession implementation to account for actions
that are initiated by a support admin user.

Also moves the helper function `get_discount_for_realm` that is
only used in support views to `corporate/lib/support.py`.
2023-11-04 17:20:49 -07:00
..
lib zilencer: Add new LoggingCountStat mobile_pushes_forwarded. 2023-11-01 17:26:10 -07:00
management user_groups: Move constants for system group names to a new class. 2023-11-01 10:42:56 -07:00
migrations models: Convert deprecated index_together option to indexes. 2023-07-12 07:12:43 -07:00
tests zilencer: Add new LoggingCountStat mobile_pushes_forwarded. 2023-11-01 17:26:10 -07:00
views corporate: Move attach_realm_discount to BillingSession class. 2023-11-04 17:20:49 -07:00
__init__.py Create "analytics" app with activity reports. 2013-11-06 12:07:32 -05:00
models.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
urls.py stats: Support fetching StreamCount based on stream_id. 2023-10-16 15:10:14 -07:00