[MM-43399] Cloud Delinquency Email Sequence (#20814)

* Add DelinquentSince to Subscription fields

* Stashing, migrating

* Adding file

* Adding many email templates

* Fix templates pipeline

* Fix translations

* Fix mocks

* Many changes

* Adjust mocks

* Update i18n/en.json

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* PR fixes

* Update string

* Update i18n/en.json

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* Update URL's for buttons to open the delinquency modal

* Update emails from mjml

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
Этот коммит содержится в:
Nick Misasi
2022-08-25 09:39:35 -04:00
коммит произвёл GitHub
родитель e9cc35122f
Коммит e8a45a8cf7
34 изменённых файлов: 3839 добавлений и 18 удалений

Просмотреть файл

@@ -471,6 +471,10 @@
"id": "api.cloud.cws_webhook_event_missing_error",
"translation": "Webhook event was not handled. Either it is missing or it is not valid."
},
{
"id": "api.cloud.delinquency_email.missing_email_to_trigger",
"translation": "Missing required fields to send delinquency email."
},
{
"id": "api.cloud.license_error",
"translation": "Your license does not support cloud requests."
@@ -3247,6 +3251,190 @@
"id": "api.templates.deactivate_subject",
"translation": "[{{ .SiteName }}] Your account at {{ .ServerURL }} has been deactivated"
},
{
"id": "api.templates.delinquency_14.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_14.subject",
"translation": "Payment is overdue for your Mattermost {{.Plan}}."
},
{
"id": "api.templates.delinquency_14.subtitle1",
"translation": "We weren't able to charge the credit card we have on file. This means your workspace is at risk of being downgraded to Cloud Starter."
},
{
"id": "api.templates.delinquency_14.subtitle2",
"translation": "Please contact your financial institution to resolve any issues. Then, update your payment details as needed."
},
{
"id": "api.templates.delinquency_14.title",
"translation": "Payment not received"
},
{
"id": "api.templates.delinquency_30.bullet.cards",
"translation": "Cards from your Boards"
},
{
"id": "api.templates.delinquency_30.bullet.files",
"translation": "Files"
},
{
"id": "api.templates.delinquency_30.bullet.message_history",
"translation": "Message history"
},
{
"id": "api.templates.delinquency_30.bullet.plugins",
"translation": "Active plugins and integrations"
},
{
"id": "api.templates.delinquency_30.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_30.limits_documentation",
"translation": "View all limits documentation."
},
{
"id": "api.templates.delinquency_30.subject",
"translation": "Act to keep your Mattermost {{.Plan}} Features"
},
{
"id": "api.templates.delinquency_30.subtitle1",
"translation": "You have time to keep your Mattermost {{.Plan}} active but you'll need to resolve issues with your payment method."
},
{
"id": "api.templates.delinquency_30.subtitle2",
"translation": "if no action is taken, your workspace will be downgraded and the following data may be archived:"
},
{
"id": "api.templates.delinquency_30.title",
"translation": "Your workspace will be downgraded soon"
},
{
"id": "api.templates.delinquency_45.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_45.subject",
"translation": "Notice: Your Mattermost {{.Plan}} will be downgraded soon"
},
{
"id": "api.templates.delinquency_45.subtitle1",
"translation": "We've been unable to collect payment for outstanding invoices dated {{.DelinquencyDate}}. Your workspace is at risk of being downgraded."
},
{
"id": "api.templates.delinquency_45.subtitle2",
"translation": "A downgraded workspace might negatively affect critical workflows, integrations and other business critical activities carried at your workspace."
},
{
"id": "api.templates.delinquency_45.subtitle3",
"translation": "Update your credit card information now."
},
{
"id": "api.templates.delinquency_45.title",
"translation": "Your workspace will be downgraded soon"
},
{
"id": "api.templates.delinquency_60.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_60.downgrade_to_starter",
"translation": "Downgrade to Cloud Starter"
},
{
"id": "api.templates.delinquency_60.subject",
"translation": "Action Required: Workspace will be downgraded in 30 days"
},
{
"id": "api.templates.delinquency_60.subtitle1",
"translation": "Please update your payment information soon to process your outstanding invoices."
},
{
"id": "api.templates.delinquency_60.subtitle2",
"translation": "We will downgrade your workspace automatically in 30 days if we are unable to process your payment."
},
{
"id": "api.templates.delinquency_60.subtitle3",
"translation": "Update your payment information now or downgrade to Cloud Starter below."
},
{
"id": "api.templates.delinquency_60.title",
"translation": "Your Mattermost workspace will be downgraded in 30 days"
},
{
"id": "api.templates.delinquency_7.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_7.subtitle1",
"translation": "We couldn't process your most recent payment"
},
{
"id": "api.templates.delinquency_7.subtitle2",
"translation": "To keep your {{.Plan}} plan active, please contact your financial institution as soon as possible. Then, update your payment details as needed."
},
{
"id": "api.templates.delinquency_7.title",
"translation": "Your payment wasn't completed"
},
{
"id": "api.templates.delinquency_75.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_75.downgrade_to_starter",
"translation": "Downgrade to Cloud Starter"
},
{
"id": "api.templates.delinquency_75.subject",
"translation": "Your Mattermost {{.Plan}} will be downgraded in 15 days"
},
{
"id": "api.templates.delinquency_75.subtitle1",
"translation": "This is a final reminder that we havent received payment for your Mattermost Cloud workspace since {{.DelinquencyDate}}"
},
{
"id": "api.templates.delinquency_75.subtitle2",
"translation": "Your workspace will be downgraded to Cloud Starter. Your {{.Plan}} features will be locked and some of your workspace data may be archived until your full outstanding balance is settled."
},
{
"id": "api.templates.delinquency_75.subtitle3",
"translation": "Update your payment information now, or downgrade to Cloud Starter."
},
{
"id": "api.templates.delinquency_75.title",
"translation": "Your workspace will be downgraded in 15 days"
},
{
"id": "api.templates.delinquency_90.button",
"translation": "Update payment"
},
{
"id": "api.templates.delinquency_90.secondary_action_button",
"translation": "View Plans & Pricing"
},
{
"id": "api.templates.delinquency_90.subject",
"translation": "Your Mattermost Cloud workspace has been downgraded"
},
{
"id": "api.templates.delinquency_90.subtitle1",
"translation": "If you use Cloud Professional or Enterprise features for important business operations, these will no longer be available and you'll experience degraded performance."
},
{
"id": "api.templates.delinquency_90.subtitle2",
"translation": "In addition, your data may have been archived due to Cloud Starter limitations."
},
{
"id": "api.templates.delinquency_90.subtitle3",
"translation": "To unarchive your data and keep paid features, update your payment information."
},
{
"id": "api.templates.delinquency_90.title",
"translation": "Your Mattermost workspace has been downgraded"
},
{
"id": "api.templates.email_change_body.info",
"translation": "Your email address for {{.TeamDisplayName}} has been changed to {{.NewEmail}}."
@@ -4651,6 +4839,18 @@
"id": "app.channel_member_history.log_leave_event.internal_error",
"translation": "Failed to record channel member history. Failed to update existing join record"
},
{
"id": "app.cloud.get_cloud_products.app_error",
"translation": "Couldn't retrieve cloud products"
},
{
"id": "app.cloud.get_subscription.app_error",
"translation": "Couldn't retrieve cloud subscription"
},
{
"id": "app.cloud.get_subscription_delinquency_date.app_error",
"translation": "Subscription is not delinquent"
},
{
"id": "app.command.createcommand.internal_error",
"translation": "Unable to save the command."