From 4c8aab42cc125762edafa7536eb9f77994cadc71 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 23 Sep 2024 10:57:32 +0100 Subject: [PATCH] add IRP rejection reason for previous residency --- app/models/policies/international_relocation_payments.rb | 3 ++- config/locales/en.yml | 1 + spec/mailers/claim_mailer_spec.rb | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/policies/international_relocation_payments.rb b/app/models/policies/international_relocation_payments.rb index 882bb5b290..1fab9ff267 100644 --- a/app/models/policies/international_relocation_payments.rb +++ b/app/models/policies/international_relocation_payments.rb @@ -18,7 +18,8 @@ module InternationalRelocationPayments :ineligible_employment_terms, :no_response_from_school, :suspected_fraud, - :information_mismatch_new_details_needed + :information_mismatch_new_details_needed, + :ineligible_previous_residency ] # Attributes to delete from claims submitted before the current academic diff --git a/config/locales/en.yml b/config/locales/en.yml index 2b5f3502df..bdcd210ae9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -809,6 +809,7 @@ en: no_response_from_school: No response from school suspected_fraud: Suspected fraud information_mismatch_new_details_needed: "Information mismatch - new details needed" + ineligible_previous_residency: Ineligible previous residency eligibility_answers: nationality: "Nationality" passport_number: "Passport number" diff --git a/spec/mailers/claim_mailer_spec.rb b/spec/mailers/claim_mailer_spec.rb index 758411f75a..e5a7064d3e 100644 --- a/spec/mailers/claim_mailer_spec.rb +++ b/spec/mailers/claim_mailer_spec.rb @@ -227,7 +227,8 @@ class SomePolicy; end reason_ineligible_employment_terms: "no", reason_no_response_from_school: "no", reason_suspected_fraud: "no", - reason_information_mismatch_new_details_needed: "no" + reason_information_mismatch_new_details_needed: "no", + reason_ineligible_previous_residency: "no" } end