-
Notifications
You must be signed in to change notification settings - Fork 166
LG-15000: Add idv_please_call email #11604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,6 +248,20 @@ def account_verified(profile:) | |
| end | ||
| end | ||
|
|
||
| def idv_please_call(**) | ||
| with_user_locale(user) do | ||
| @hide_title = true | ||
|
|
||
| mail( | ||
| to: email_address.email, | ||
| subject: t('user_mailer.idv_please_call.subject', app_name: APP_NAME), | ||
| template_name: 'idv_please_call', | ||
| ) | ||
| end | ||
| end | ||
|
|
||
| alias_method :in_person_please_call, :idv_please_call | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👏🏻 |
||
|
|
||
| def in_person_completion_survey | ||
| with_user_locale(user) do | ||
| @header = t('user_mailer.in_person_completion_survey.header') | ||
|
|
@@ -373,21 +387,6 @@ def in_person_failed_fraud(enrollment:, visited_location_name: nil) | |
| end | ||
| end | ||
|
|
||
| def in_person_please_call(enrollment:, visited_location_name: nil) | ||
| with_user_locale(user) do | ||
| @presenter = Idv::InPerson::VerificationResultsEmailPresenter.new( | ||
| enrollment: enrollment, | ||
| url_options: url_options, | ||
| visited_location_name: visited_location_name, | ||
| ) | ||
| @hide_title = true | ||
| mail( | ||
| to: email_address.email, | ||
| subject: t('user_mailer.in_person_please_call.subject', app_name: APP_NAME), | ||
| ) | ||
| end | ||
| end | ||
|
|
||
| def account_rejected | ||
| with_user_locale(user) do | ||
| mail( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1875,6 +1875,10 @@ user_mailer.email_deleted.header: An email address was deleted from your %{app_n | |
| user_mailer.email_deleted.help_html: If you did not want to delete this email address, please visit the %{app_name_html} %{help_link_html} or %{contact_link_html}. | ||
| user_mailer.email_deleted.subject: Email address deleted | ||
| user_mailer.help_link_text: Help Center | ||
| user_mailer.idv_please_call.body.contact_message_html: Call <strong>%{contact_number}</strong> and provide them with the error code <strong>%{support_code}</strong>. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💪🏻 |
||
| user_mailer.idv_please_call.body.intro_html: Call our contact center by <strong>%{date}</strong> to continue verifying your identity. | ||
| user_mailer.idv_please_call.header: Please give us a call | ||
| user_mailer.idv_please_call.subject: Call %{app_name} to continue with your identity verification | ||
| user_mailer.in_person_completion_survey.body.cta.callout: Click the button below to get started. | ||
| user_mailer.in_person_completion_survey.body.cta.label: Take our survey | ||
| user_mailer.in_person_completion_survey.body.greeting: Hello, | ||
|
|
@@ -1900,10 +1904,6 @@ user_mailer.in_person_failed.intro: Your identity could not be verified at the % | |
| user_mailer.in_person_failed.subject: Your identity could not be verified in person | ||
| user_mailer.in_person_failed.verifying_identity: 'When verifying your identity:' | ||
| user_mailer.in_person_failed.verifying_step_not_expired: Your state‑issued ID or driver’s license must not be expired. We do not currently accept any other forms of identification, such as passports and military IDs. | ||
| user_mailer.in_person_please_call.body.contact_message_html: Call <strong>%{contact_number}</strong> and provide them with the error code <strong>%{support_code}</strong>. | ||
| user_mailer.in_person_please_call.body.intro_html: Call our contact center by <strong>%{date}</strong> to continue verifying your identity. | ||
| user_mailer.in_person_please_call.header: Please give us a call | ||
| user_mailer.in_person_please_call.subject: Call %{app_name} to continue with your identity verification | ||
| user_mailer.in_person_ready_to_verify_reminder.greeting: Hello, | ||
| user_mailer.in_person_ready_to_verify_reminder.heading.one: You have %{count} day left to verify your identity in person | ||
| user_mailer.in_person_ready_to_verify_reminder.heading.other: You have %{count} days left to verify your identity in person | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| require_relative './user_mailer_preview' | ||
|
|
||
| RSpec.describe UserMailerPreview do | ||
| it_behaves_like 'a mailer preview' | ||
| it_behaves_like 'a mailer preview', preview_methods_that_can_be_missing: [:in_person_please_call] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this meant to be temporary until we're fully moved over to the new name?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes |
||
|
|
||
| it 'uses user and email records that cannot be saved' do | ||
| expect(User.count).to eq(0) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.