stripe: Add a CustomerPlan for self hosted sponsored customers.

This commit is contained in:
Aman Agrawal
2023-12-18 20:09:33 +00:00
committed by Tim Abbott
parent d4a852e97c
commit b2faa5c5bb
3 changed files with 78 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
{% endif %}
<b>Plan name</b>: {{ plan_data.current_plan.name }}<br />
<b>Status</b>: {{ plan_data.current_plan.get_plan_status_as_text() }}<br />
{% if plan_data.current_plan.tier == plan_data.current_plan.TIER_SELF_HOSTED_COMMUNITY %}
<!-- Any data below doesn't makes sense for sponsored organizations. -->
{% else %}
{% if plan_data.is_legacy_plan %}
<b>End date</b>: {{ plan_data.current_plan.end_date.strftime('%d %B %Y') }}<br />
{% else %}
@@ -19,3 +22,4 @@
{% endif %}
<b>Next invoice date</b>: {{ plan_data.current_plan.next_invoice_date.strftime('%d %B %Y') }}<br />
{% endif %}
{% endif %}