Skip to content

Commit

Permalink
add FE claimant email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Aug 30, 2024
1 parent 20d8780 commit 90f5fb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,39 @@ class ApplicationMailer < Mail::Notify::Mailer
CLAIM_UPDATE_AFTER_THREE_WEEKS_NOTIFY_TEMPLATE_ID: "c43bac94-67ff-4440-8f26-506eb4c232e8".freeze,
CLAIM_REJECTED_NOTIFY_TEMPLATE_ID: "f719237d-6b2a-42d6-98f2-3d5b6585f32b".freeze
}

EARLY_CAREER_PAYMENTS = {
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: "cb319af7-a769-42e4-8f01-5cbb9fc24846".freeze,
CLAIM_APPROVED_NOTIFY_TEMPLATE_ID: "3974db1c-c7dd-44cf-97b9-bb96d211a996".freeze,
CLAIM_UPDATE_AFTER_THREE_WEEKS_NOTIFY_TEMPLATE_ID: "0ef1e702-ea64-43a5-a084-330f2f51836e".freeze,
CLAIM_REJECTED_NOTIFY_TEMPLATE_ID: "b78ffea4-a3d7-4c4a-b0f7-066744c6e79f".freeze
}

LEVELLING_UP_PREMIUM_PAYMENTS = {
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: "0158e1c4-ffa2-4b5e-86f9-0dead4e68587".freeze,
CLAIM_APPROVED_NOTIFY_TEMPLATE_ID: "78e4bf4a-5d4b-4328-9384-116c08183a77".freeze,
CLAIM_UPDATE_AFTER_THREE_WEEKS_NOTIFY_TEMPLATE_ID: "a10322ed-7829-44b2-95c6-d5cc686d2c04".freeze,
CLAIM_REJECTED_NOTIFY_TEMPLATE_ID: "c20e8d85-ef71-4395-8f8b-90fcbd824b86".freeze
}

INTERNATIONAL_RELOCATION_PAYMENTS = {
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: "316d6c56-2354-4cb7-9d1d-3b61bc7e8c59".freeze,
CLAIM_APPROVED_NOTIFY_TEMPLATE_ID: "5cf5287f-3bdf-4d0b-b999-b61987b9c39f".freeze,
CLAIM_UPDATE_AFTER_THREE_WEEKS_NOTIFY_TEMPLATE_ID: "967cc72f-e2e4-4c42-a07f-dd8b8375716e".freeze,
CLAIM_REJECTED_NOTIFY_TEMPLATE_ID: "1edc468c-a1bf-4bea-bb79-042740cd8547".freeze
}

FURTHER_EDUCATION_PAYMENTS = {
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: "bfceb21c-4051-4ab2-91de-850467931d1b".freeze,
CLAIM_APPROVED_NOTIFY_TEMPLATE_ID: "5817d7c4-ccf4-4e6e-9fe4-8321be725fc5".freeze,
CLAIM_UPDATE_AFTER_THREE_WEEKS_NOTIFY_TEMPLATE_ID: "95c11ee0-c9a9-4c6e-a040-54b1e1907b2c".freeze,
CLAIM_REJECTED_NOTIFY_TEMPLATE_ID: "a1bb5f64-585f-4b03-b9db-0b20ad801b34".freeze,

CLAIM_PROVIDER_VERIFICATION_EMAIL_TEMPLATE_ID: "9a25fe46-2ee4-4a5c-8d47-0f04f058a87d".freeze
}

EARLY_YEARS_PAYMENTS = {
CLAIM_PROVIDER_EMAIL_TEMPLATE_ID: "e0b78a08-601b-40ba-a97f-61fb00a7c951".freeze,
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: "149c5999-12fb-4b99-aff5-23a7c3302783".freeze
}
FURTHER_EDUCATION_PAYMENTS = {
CLAIM_PROVIDER_VERIFICATION_EMAIL_TEMPLATE_ID: "9a25fe46-2ee4-4a5c-8d47-0f04f058a87d".freeze,
# FIXME this is just a place holder - it's an empty template
# Correct copy will be added as part of LUPEYALPHA-848
CLAIM_RECEIVED_NOTIFY_TEMPLATE_ID: NOTIFY_TEMPLATE_ID
}
end
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
click_on "Accept and send"
end.to change { Claim.count }.by(1)
.and change { Policies::FurtherEducationPayments::Eligibility.count }.by(1)
.and have_enqueued_mail(ClaimMailer, :submitted).with(Claim.last)

claim = Claim.last

Expand Down

0 comments on commit 90f5fb0

Please sign in to comment.