Skip to content
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

Update Winter Fuel Payment information in benefits if you live abroad #6978

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 61 additions & 3 deletions app/flows/uk_benefits_abroad_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def define
end

next_node do |response|
if %w[winter_fuel_payment maternity_benefits child_benefit ssp bereavement_benefits jsa].include?(response)
if %w[maternity_benefits child_benefit ssp bereavement_benefits jsa].include?(response)
question :which_country?
elsif response == "iidb"
question :iidb_already_claiming?
Expand All @@ -55,6 +55,8 @@ def define
question :db_how_long_abroad?
elsif response == "tax_credits"
question :eligible_for_tax_credits?
elsif response == "winter_fuel_payment"
outcome :wfp_not_eligible_outcome
elsif calculator.going_abroad
case response
when "pension"
Expand Down Expand Up @@ -579,7 +581,7 @@ def define
when "jsa"
outcome :jsa_eea_going_abroad_maybe_outcome
when "winter_fuel_payment"
outcome :wfp_going_abroad_eea_maybe_outcome
question :born_before_23_September_1958?
when "esa"
outcome(calculator.going_abroad ? :esa_going_abroad_eea_outcome : :esa_already_abroad_eea_outcome)
when "disability_benefits"
Expand All @@ -603,7 +605,7 @@ def define
when "jsa"
outcome :jsa_eea_going_abroad_maybe_outcome
when "winter_fuel_payment"
outcome :wfp_going_abroad_eea_maybe_outcome
question :born_before_23_September_1958?
when "esa"
outcome(calculator.going_abroad ? :esa_going_abroad_eea_outcome : :esa_already_abroad_eea_outcome)
when "disability_benefits"
Expand All @@ -624,6 +626,62 @@ def define
end
end

radio :born_before_23_September_1958? do
option :yes
option :no

next_node do |response|
case response
when "yes"
question :you_or_partner_get_a_benefit_in_the_country?
when "no"
outcome :wfp_not_eligible_outcome
end
end
end

radio :you_or_partner_get_a_benefit_in_the_country? do
option :yes
option :no

next_node do |response|
case response
when "yes"
outcome :wfp_not_eligible_outcome
when "no"
question :you_or_partner_pay_contributions_to_the_country?
end
end
end

radio :you_or_partner_pay_contributions_to_the_country? do
option :yes
option :no

next_node do |response|
case response
when "yes"
outcome :wfp_not_eligible_outcome
when "no"
question :you_or_partner_get_a_means_tested_benefit_in_the_country?
end
end
end

radio :you_or_partner_get_a_means_tested_benefit_in_the_country? do
option :yes
option :no

next_node do |response|
case response
when "yes"
outcome :wfp_maybe_outcome
when "no"
outcome :wfp_not_eligible_outcome
end
end
end

radio :is_british_or_irish? do
option :yes
option :no
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<% govspeak_for :body do %>
You might be eligible for Winter Fuel Payment.
Find out [how to apply for Winter Fuel Payment if you live abroad](https://www.gov.uk/winter-fuel-payment/if-you-live-abroad).
<% end %>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% govspeak_for :body do %>
You cannot get a [Winter Fuel Payment](/winter-fuel-payment).
You cannot get a [Winter Fuel Payment](/winter-fuel-payment) abroad.
<% end %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% text_for :title do %>
Were you born before 23 September 1958?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% text_for :title do %>
Do you or your partner get a pension or a benefit based on your work contributions in the country you are living in?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<% text_for :title do %>
Did you or your partner get a means-tested benefit in the country you are living in between 16 and 22 September 2024?
<% end %>

<% govspeak_for :body do %>
You must have been getting a benefit from the country you live in that’s equivalent to:
Pension Credit
Universal Credit
income-related Employment and Support Allowance (ESA)
income-based Jobseeker’s Allowance (JSA)
Income Support
Working Tax Credit
Child Tax Credit
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% text_for :title do %>
Do you or your partner work or pay contributions (similar to [National Insurance](https://www.gov.uk/national-insurance)) to the country you are living in?
<% end %>

<% options(
"yes": "Yes",
"no": "No"
) %>
Loading