Skip to content

Commit

Permalink
Fyst 1736 update email and sms notifications copy (#5510)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinchoi03 authored Feb 12, 2025
1 parent cdad4df commit 17fe03a
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 105 deletions.
10 changes: 5 additions & 5 deletions app/controllers/hub/state_file/automated_messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def get_intake
)
end

def message_params
def message_params(locale)
intake = get_intake
state_code = intake.state_code
locale = intake.locale || "en"
locale = locale || I18n.locale
submitted_key = intake.efile_submissions.count > 1 ? "resubmitted" : "submitted"
{
primary_first_name: intake.primary_first_name,
Expand All @@ -47,10 +47,10 @@ def message_params

def email_message(message_class, locale)
replaced_body = message_class.new.email_body(
**{locale: locale}.update(message_params)
**{locale: locale}.update(message_params(locale))
).gsub('<<', '&lt;&lt;').gsub('>>', '&gt;&gt;')
subject = message_class.new.email_subject(
**{locale: locale}.update(message_params)
**{locale: locale}.update(message_params(locale))
)
email = StateFileNotificationEmail.new(to: "[email protected]",
body: replaced_body,
Expand All @@ -64,7 +64,7 @@ def email_message(message_class, locale)

def sms_body(message_class, locale)
message_class.new.sms_body(
**{locale: locale}.update(message_params)
**{locale: locale}.update(message_params(locale))
)
end
end
Expand Down
114 changes: 70 additions & 44 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1524,29 +1524,38 @@ en:
body: |
Hi %{primary_first_name},
%{state_name} accepted your state tax return! Make sure to pay your state taxes by April 15 at %{state_pay_taxes_link} if you have not paid via direct debit while filing your return.
Your %{state_name} state tax return has been <strong>accepted and a payment is due</strong>.
<strong>If you have not already paid via direct debit while filing your return, please submit your payment by April 15 at %{state_pay_taxes_link}</strong>. Any amount not paid by the filing deadline could add extra penalties and fees.
Download your return at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
Questions? Reply to this email.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: 'FileYourStateTaxes Update: %{state_name} State Return Accepted'
sms: "Hi %{primary_first_name} - %{state_name} accepted your state tax return! Make sure to pay your state taxes by April 15 at %{state_pay_taxes_link} if you have not paid via direct deposit or check. \n\nDownload your return at %{return_status_link}\n\nQuestions? Email us at [email protected].\n"
subject: "%{state_name} State Return Accepted- Payment Due"
sms: |
Hi %{primary_first_name} - Your %{state_name} state tax return has been accepted and a payment is due.
If you haven't submited your payment via direct debit, please do so by April 15 at %{state_pay_taxes_link}. Any amount not paid by the filing deadline could add extra penalties and fees.
Download your return at %{return_status_link}
Need help? Email us at [email protected]
accepted_refund:
email:
body: |
Hi %{primary_first_name},
%{state_name} accepted your state tax return! You can expect to receive your refund as soon as %{state_name} approves your refund amount.
Your %{state_name} state return has been <strong>accepted</strong>!
Download your return and check your refund status at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
Best,
The FileYourStateTaxes team
subject: 'FileYourStateTaxes Update: %{state_name} State Return Accepted'
sms: "Hi %{primary_first_name} - %{state_name} accepted your state tax return! You can expect to receive your refund as soon as %{state_name} approves your refund amount. \n\nDownload your return and check your refund status at %{return_status_link}\n\nNeed help? Email us at [email protected].\n"
subject: "%{state_name} State Return Accepted"
sms: "Hi %{primary_first_name} - Good news, %{state_name} accepted your state tax return! \n\nDownload your return and check your refund status at %{return_status_link}\n\nNeed help? Email us at [email protected].\n"
df_transfer_issue_message:
email:
body: |
Expand All @@ -1567,17 +1576,21 @@ en:
body: |
Hi %{primary_first_name},
You haven't submitted your state tax return yet. As a reminder, state taxes are due by April 15.
You haven't submitted your state tax return yet. State taxes are due by April 15.
Go to <a target="_blank" rel="noopener nofollow" href="https://fileyourstatetaxes.org">fileyourstatetaxes.org</a> to finish them now.
Go to <a target="_blank" rel="noopener nofollow" href="https://www.fileyourstatetaxes.org/en/login-options">fileyourstatetaxes.org/en/login-options</a> to finish them now.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: Don't forget to finish your state tax return!
subject: Remember to finish your state tax return
sms: |
Hi %{primary_first_name} - You haven't submitted your state tax return yet. As a reminder, state taxes are due by April 15. Go to fileyourstatetaxes.org to finish them now.
Hi %{primary_first_name} - You haven't submitted your state tax return yet.
State taxes are due by April 15.
Go to www.fileyourstatetaxes.org/en/login-options to finish them now.
Need help? Email us at [email protected].
issue_resolved:
Expand All @@ -1593,21 +1606,31 @@ en:
body: |-
Hi %{primary_first_name},
We noticed that you have not submitted a state tax return yet with the account associated with this email address. If you submitted your state return another way, or you submitted your return under a different email address, you can disregard this message.
You haven't submitted your state tax return yet. As a reminder, state taxes were due by April 15. Make sure to submit your state tax return as soon as possible in order to avoid late filing fees from %{state_name}.
This is a reminder that state taxes were due by April 15, but it's still not too late to file! Go to https://www.fileyourstatetaxes.org/en/login-options to check your return status or finish your return now. We encourage you to submit your return as soon as possible in order to avoid late filings fees from %{state_name}. Our services will be closing for the year on April 25. After this date, you will no longer be able to file through FileYourStateTaxes.
Go to <a target="_blank" rel="noopener nofollow" href="https://www.fileyourstatetaxes.org/en/login-options">fileyourstatetaxes.org/en/login-options</a> to finish them now.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: 'Final Reminder: FileYourStateTaxes closes April 25.'
subject: Make sure to finish filing your state taxes as soon as possible
sms: |
Hi %{primary_first_name} - You haven't submitted your state tax return yet. Make sure to submit your state taxes as soon as possible to avoid late filing fees. Go to fileyourstatetaxes.org/en/login-options to finish them now. FileYourStateTaxes will be closing its services for the year on April 25.
Hi %{primary_first_name} - You haven't submitted your state tax return yet. Make sure to submit your state taxes as soon as possible to avoid late filing fees. Go to fileyourstatetaxes.org/en/login-options to finish them now.
Need help? Email us at [email protected].
pre_deadline_reminder:
email:
body: "Hi %{primary_first_name},\n\nYou haven't submitted your state tax return yet. As a reminder, state taxes are due by April 15. Make sure to submit your state tax return by April 15 in order to avoid late filing fees from %{state_name}. \n\nGo to fileyourstatetaxes.org/en/login-options to finish them now.\n\nNeed help? Reply to this email.\n\nBest,\nThe FileYourStateTaxes team\n"
body: |
Hi %{primary_first_name},
You haven't submitted your state tax return yet. As a reminder, state taxes are due by April 15. Make sure to submit your state tax return by April 15 in order to avoid late filing fees from %{state_name}.
Go to <a target="_blank" rel="noopener nofollow" href="https://www.fileyourstatetaxes.org/en/login-options">fileyourstatetaxes.org/en/login-options</a> to finish them now.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: Don't forget to finish your state tax return by April 15!
sms: |
Hi %{primary_first_name} - You haven't submitted your state tax return yet. Make sure to submit your state taxes by April 15 in order to avoid late filing fees. Go to fileyourstatetaxes.org/en/login-options to finish them now.
Expand All @@ -1617,58 +1640,63 @@ en:
body: |
Hi %{primary_first_name},
As a reminder, %{state_name} rejected your state tax return. Don't worry! We can help you fix and resubmit it at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>. Make sure to take action on your rejected return as soon as possible in order to avoid late filing fees from %{state_name} state.
A reminder that your %{state_name} state tax return was rejected. Dont worry! You can fix and resubmit it at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
FileYourStateTaxes will be closing its services for the year on April 25.
<strong>Please take action as soon as possible to avoid late filing fees from %{state_name}.</strong>
Questions? Reply to this email.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: Take action on your rejected %{state_name} state return.
sms: Hi %{primary_first_name} - This is a reminder that %{state_name} rejected your state tax return. We can help you fix and resubmit it at %{return_status_link}. Make sure to take action as soon as possible in order to avoid late filing fees. FileYourStateTaxes will be closing its services for the year on April 25. Questions? Email us at [email protected].
sms: |
Hi %{primary_first_name} - This is a reminder that %{state_name} rejected your state tax return. We can help you fix and resubmit it at %{return_status_link}. Make sure to take action as soon as possible in order to avoid late filing fees.
Need help? Email us at [email protected].
rejected:
email:
body: |
Hi %{primary_first_name},
Unfortunately, %{state_name} rejected your state tax return. Don't worry! We can help you fix and resubmit it at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
Questions? Reply to this email.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: 'FileYourStateTaxes Update: %{state_name} State Return Rejected. Action Needed'
subject: 'Action Needed: %{state_name} State Return Rejected'
sms: |
Hi %{primary_first_name} - Unfortunately, %{state_name} rejected your state tax return. Don't worry! We can help you fix and resubmit it at %{return_status_link}.
Questions? Email us at [email protected].
Need help? Email us at [email protected].
still_processing:
email:
body: |
Hi %{primary_first_name},
It's taking longer than expected to process your state tax return. Don't worry! We'll let you know as soon as we know your return status. You don't need to do anything right now.
It's taking longer than expected to process your state tax return. Don't worry! <strong>No action is needed right now</strong>. We'll update you as we know your return status.
Questions? Reply to this email.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: 'FileYourStateTaxes Update: Your %{state_name} state tax return is taking longer than expected'
sms: Hi %{primary_first_name} - It's taking longer than expected to process your state tax return. Don't worry! We'll let you know as soon as we know your return status. You don't need to do anything right now. Questions? Email us at [email protected].
subject: Your %{state_name} state tax return is taking longer than expected
sms: Hi %{primary_first_name} - It's taking longer than expected to process your state tax return. Don't worry! We'll let you know as soon as we know your return status. You don't need to do anything right now. Need help? Email us at [email protected].
successful_submission:
email:
body: |
Hi %{primary_first_name},
You successfully %{submitted_or_resubmitted} your %{state_name} state tax return! We'll update you in 1-2 days on the status of your return. You can download your return and check the status at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
You successfully %{submitted_or_resubmitted} your %{state_name} state tax return! We'll update you in 1-2 business days on the status of your return.
You can download your return and check the status at <a href="%{return_status_link}" target="_blank" rel="noopener nofollow">%{return_status_link}</a>.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
resubmitted: resubmitted
subject: 'FileYourStateTaxes Update: %{state_name} State Return Submitted'
subject: "%{state_name} State Return Submitted"
submitted: submitted
sms: Hi %{primary_first_name} - You successfully %{submitted_or_resubmitted} your %{state_name} state tax return! We'll update you in 1-2 days on the status of your return. You can download your return and check the status at %{return_status_link}. Need help? Email us at [email protected].
survey_notification:
Expand All @@ -1683,42 +1711,40 @@ en:
Best,
The FileYourStateTaxes team
subject: Your feedback on FileYourStateTaxes
sms: |
Hi %{primary_first_name} - Thank you for submitting your taxes with FileYourStateTaxes! We would love feedback on your experience so we can improve! Could you tell us about how it went? Take our 5 minute survey here: %{survey_link}
Best,
The FileYourStateTaxes team
sms: 'Hi %{primary_first_name} - Thank you for submitting your taxes with FileYourStateTaxes! We would love feedback on your experience so we can improve! Could you tell us about how it went? Take our 5 minute survey here: %{survey_link}'
terminal_rejected:
email:
body: |
Hi %{primary_first_name},
Unfortunately, %{state_name} rejected your state tax return due to an issue that cannot be resolved on our tool. Don't worry! We can help provide guidance on next steps. You can chat with us at %{return_status_link}.
Unfortunately, %{state_name} rejected your state tax return due to an issue that cannot be resolved on our service. Don't worry! We can help provide guidance on next steps. Chat with us at %{return_status_link}.
Questions? Reply to this email.
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: 'FileYourStateTaxes Update: %{state_name} State Return Rejected.'
sms: "Hi %{primary_first_name} - Unfortunately, %{state_name} rejected your state tax return for an issue that cannot be resolved on our tool. Don't worry! We can help provide guidance on next steps. Chat with us at %{return_status_link}. \n\nQuestions? Reply to this text.\n"
subject: "%{state_name} State Return Rejected."
sms: "Hi %{primary_first_name} - Unfortunately, %{state_name} rejected your state tax return for an issue that cannot be resolved on our service. Don't worry! We can help provide guidance on next steps. Chat with us at %{return_status_link}. \n\nNeed help? Email us at [email protected].\n"
welcome:
email:
body: |
Welcome!
Hi,
We successfully created your FileYourStateTaxes account! We'll send you updates on your state tax return status once you submit it. While you are filing, your responses will be saved as you go. If you need a break, you can come back and log in to your account at fileyourstatetaxes.org.
Your FileYourStateTaxes account is ready to use! We'll send updates once you submit your state tax return. Your progress is saved as you go, and you can log back in anytime at <a target="_blank" rel="noopener nofollow" href="https://www.fileyourstatetaxes.org/en/login-options">fileyourstatetaxes.org</a>.
Your Client ID is %{intake_id}. This is an important piece of account information that you may need when talking to our support team. Please keep track of this number and do not delete this message.
<strong>Your Client ID is %{intake_id}. Keep it handy for support.</strong>
Need help? Reply to this email.
Best,
The FileYourStateTaxes team
subject: Welcome to FileYourStateTaxes
sms: |
Welcome! We successfully created your FileYourStateTaxes account! We'll send you updates on your state tax return status once you submit it. While you are filing, your responses will be saved as you go. If you need a break, you can come back and log in to your account at fileyourstatetaxes.org
Hi! Your FileYourStateTaxes account is ready to use. We'll send updates when you submit your state tax return. Your progress is saved as you go, so you can log back in anytime.
Your Client ID is %{intake_id}. Keep it handy for support.
Need help? Email us at [email protected]. Text "STOP" to unsubscribe.
Need help? Email us at [email protected] Text "STOP" to opt out of notifications.
successful_submission_drop_off:
email:
body: |
Expand Down Expand Up @@ -2267,7 +2293,7 @@ en:
step_description: 'Section %{current_step} of %{total_steps}: '
notification_mailer:
user_message:
unsubscribe: If you would like to unsubscribe from emails, click <a href="%{unsubscribe_link}">here</a>.
unsubscribe: To unsubscribe from emails, <a href="%{unsubscribe_link}">click here</a>.
notifications_settings:
unsubscribe_from_emails:
help_text_html: If you change your mind and would like to opt in later, <a class="open-intercom">chat with us</a> or email us at <a href="mailto:[email protected]">[email protected].</a>
Expand Down
Loading

0 comments on commit 17fe03a

Please sign in to comment.