mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
stripe: Use a common email template for internal billing notices.
This is a prep commit which replaces the 'invoice_overdue' and 'reminder_to_review_plan' email templates with 'internal_billing_notice'. This will help us to use the same template as we plan to send an email to sales when a remote realm with paid plan attached is locally deleted.
This commit is contained in:
committed by
Tim Abbott
parent
220c4cbdc2
commit
5d58a39087
@@ -4859,9 +4859,10 @@ def invoice_plans_as_needed(event_time: Optional[datetime] = None) -> None:
|
||||
"billing_entity": billing_session.billing_entity_display_name,
|
||||
"end_date": plan.end_date.strftime("%Y-%m-%d"),
|
||||
"support_url": billing_session.support_url(),
|
||||
"notice_reason": "fixed_price_plan_ends_soon",
|
||||
}
|
||||
send_email(
|
||||
"zerver/emails/reminder_to_review_plan",
|
||||
"zerver/emails/internal_billing_notice",
|
||||
to_emails=[BILLING_SUPPORT_EMAIL],
|
||||
from_address=FromAddress.tokenized_no_reply_address(),
|
||||
context=context,
|
||||
@@ -4881,9 +4882,10 @@ def invoice_plans_as_needed(event_time: Optional[datetime] = None) -> None:
|
||||
context = {
|
||||
"support_url": billing_session.support_url(),
|
||||
"last_audit_log_update": last_audit_log_update_string,
|
||||
"notice_reason": "invoice_overdue",
|
||||
}
|
||||
send_email(
|
||||
"zerver/emails/invoice_overdue",
|
||||
"zerver/emails/internal_billing_notice",
|
||||
to_emails=[BILLING_SUPPORT_EMAIL],
|
||||
from_address=FromAddress.tokenized_no_reply_address(),
|
||||
context=context,
|
||||
|
||||
Reference in New Issue
Block a user