Skip to content

Commit

Permalink
Update payer information from "ESFA" to "payer"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kizr committed Jan 23, 2025
1 parent c206eae commit 39d4b6d
Show file tree
Hide file tree
Showing 31 changed files with 85 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def new
def create
Claims::Payment::CreateAndDeliver.call(current_user:)

redirect_to claims_support_claims_payments_path, flash: { success: true, heading: "Claims sent to ESFA" }
redirect_to claims_support_claims_payments_path, flash: { success: true, heading: "Claims sent to payer" }
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/views/claims/schools/_grant_conditions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

<h2 class="govuk-heading-m" id="payments">6. Payments</h2>
<p class="govuk-body">Payments will be made in arrears from September 2025. Schools will be able to submit a claim via a new GOV.UK service. The service will open in May 2025 and schools will be able to submit their claims once their mentors have completed their training.</p>
<p class="govuk-body">Schools must complete their claims by the end of July to receive payment from the Educational and Skills Funding Agency (ESFA) in late September/early October. If schools miss the payment window, they will be able to submit a claim in September, with payment being made in December 2025.</p>
<p class="govuk-body">Schools must complete their claims by the end of July to receive payment from the payer in late September/early October. If schools miss the payment window, they will be able to submit a claim in September, with payment being made in December 2025.</p>
<p class="govuk-body">DfE will begin communicating details of this new service to schools and providers from September 2024.</p>
<p class="govuk-body">If you would like additional information about the payments email <%= govuk_mail_to(t("claims.support_email")) %>.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ date: 2024-08-26
start_page: true
---

Claims submitted before 20 July are being reviewed and processed by the Education and Skills Funding Agency (ESFA). Payments are due before the end of October 2024. Depending on the type of your educational organisation, you will either be paid directly by ESFA, or your local authority.
Claims submitted before 20 July are being reviewed and processed by the payer. Payments are due before the end of October 2024. Depending on the type of your educational organisation, you will either be paid directly by the payer, or your local authority.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<%= govuk_list type: :bullet do %>
<% case @claim_activity.action %>
<% when "payment_request_delivered", "clawback_request_delivered" %>
<li><%= govuk_link_to "Claims sent to ESFA", @claim_activity.record.csv_file %></li>
<li><%= govuk_link_to "Claims sent to payer", @claim_activity.record.csv_file %></li>
<% when "sampling_uploaded" %>
<% @provider_samplings.each do |provider_sampling| %>
<li><%= govuk_link_to provider_sampling.provider.name, provider_sampling.csv_file %></li>
Expand Down
16 changes: 8 additions & 8 deletions config/locales/en/activerecord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ en:
clawback_in_progress: Sent to payer for clawback
clawback_complete: Clawback complete
claims/claim_activity/action:
payment_request_delivered: Claims sent to ESFA for payment
payment_response_uploaded: ESFA payment response uploaded
payment_request_delivered: Claims sent to payer for payment
payment_response_uploaded: Payer payment response uploaded
sampling_uploaded: Sampling data uploaded
sampling_response_uploaded: Provider sampling response uploaded
clawback_request_delivered: Claims sent to ESFA for clawback
clawback_response_uploaded: ESFA clawback response uploaded
clawback_request_delivered: Claims sent to payer for clawback
clawback_response_uploaded: Payer clawback response uploaded
claims/claim_activity/document:
payment_request_delivered: Claims sent to ESFA
payment_response_uploaded: ESFA payment response
payment_request_delivered: Claims sent to payer
payment_response_uploaded: Payer payment response
sampling_response_uploaded: Provider sampling response
clawback_request_delivered: Claims sent to ESFA
clawback_response_uploaded: ESFA clawback response
clawback_request_delivered: Claims sent to payer
clawback_response_uploaded: Payer clawback response
claims/claim_window:
academic_year: Academic year
window: Claim window
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en/claims/esfa_mailer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ en:
claims_require_clawback:
subject: Claims requiring clawback - Claim funding for mentor training
body: |
To ESFA,
To the payer,
The claims in the CSV file link are ready for clawback— the link to the latest CSV file is valid for 7 days:

Expand Down
2 changes: 1 addition & 1 deletion config/locales/en/claims/payment_mailer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ en:
payment_created_notification:
subject: Claims ready for payment - Claim funding for mentor training
body: |
To ESFA,
To the payer,
These claims from the Claim funding for mentor training service (Claim) are ready for payment — the link to the latest CSV file is valid for 7 days:
Expand Down
15 changes: 7 additions & 8 deletions config/locales/en/claims/support/claims/clawbacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ en:
one: Clawbacks (%{count})
other: Clawbacks (%{count})
no_claims: There are no claims waiting to be processed.
send_claims_to_esfa: Send claims to ESFA
upload_esfa_response: Upload ESFA response
send_claims_to_esfa: Send claims to payer
upload_esfa_response: Upload payer response
show:
page_caption: Clawbacks - Claim %{reference}
page_title: "Clawbacks - %{school_name} - Claim %{reference}"
Expand All @@ -21,28 +21,27 @@ en:
mentor: Mentor
submitted_by: Submitted by %{name} on %{date}.
new:
page_title: Send claims to ESFA - Clawbacks
page_title: Send claims to payer - Clawbacks
caption: Clawbacks
title: Send claims to ESFA
title: Send claims to payer
description:
one: There is %{count} claim included in this submission.
other: There are %{count} claims included in this submission.
details_html:
<p>Selecting ‘Send claims’ will:</p>
<ul class="govuk-list govuk-list--bullet">
<li>create a CSV containing a list of all claims marked as ‘Clawback requested’</li>
<li>send an email to the ESFA containing a link to the generated CSV - this link expires after 7 days</li>
<li>send an email to the payer containing a link to the generated CSV - this link expires after 7 days</li>
<li>update the claim status from ‘Clawback requested’ to ‘Clawback in progress’</li>
</ul>
warning: This action cannot be undone.
submit: Send claims
cancel: Cancel
create:
success: Claims sent to ESFA
success: Claims sent to payer
new_not_permitted:
page_title: There are no claims to send for clawback - Clawbacks
title: There are no claims to send for clawback
caption: Clawbacks
cancel: Cancel
description: You cannot send any claims to the ESFA because there are no claims with a clawback requested.

description: You cannot send any claims to the payer because there are no claims with a clawback requested.
12 changes: 6 additions & 6 deletions config/locales/en/claims/support/claims/payment_responses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ en:
payment_responses:
new:
page_caption: Payments
page_title: Upload ESFA response
page_title: Upload payer response
label: Upload CSV file
help:
label: Help with the CSV file
description: Use this form to upload the CSV file sent by the ESFA.
description: Use this form to upload the CSV file sent by the payer.
csv_instructions: "The CSV file must contain the following headers in the first row:"
csv_headers:
- claim_reference
Expand All @@ -26,16 +26,16 @@ en:
cancel: Cancel
new_not_permitted:
page_caption: Payments
page_title: You cannot upload a response from the ESFA
description: You cannot upload a response from the ESFA as there are no claims waiting for a response.
page_title: You cannot upload a response from the payer
description: You cannot upload a response from the payer as there are no claims waiting for a response.
cancel: Cancel
check:
page_caption: Payments
page_title: Are you sure you want to upload the ESFA response?
page_title: Are you sure you want to upload the payer response?
description:
one: There is %{count} claim included in this upload.
other: There are %{count} claims included in this upload.
submit: Upload response
cancel: Cancel
update:
success: ESFA response uploaded
success: Payer response uploaded
10 changes: 5 additions & 5 deletions config/locales/en/claims/support/claims/payments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ en:
one: Payments (%{count})
other: Payments (%{count})
buttons:
send_claims_to_esfa: Send claims to ESFA
upload_esfa_response: Upload ESFA response
send_claims_to_esfa: Send claims to payer
upload_esfa_response: Upload payer response
description:
one: "%{count} claim needs processing"
other: "%{count} claims need processing"
no_claims: There are no claims waiting to be processed.
new:
page_caption: Payments
page_title: Send claims to ESFA
page_title: Send claims to payer
description:
one: There is %{count} claim included in this submission.
other: There are %{count} claims included in this submission.
details:
heading: "Selecting ‘Send claims’ will:"
list:
- create a CSV containing a list of all ‘Submitted’ claims
- send an email to the ESFA containing a link to the generated CSV - this link expires after 7 days
- send an email to the payer containing a link to the generated CSV - this link expires after 7 days
- update the claim status from ‘Submitted’ to ‘Payment in progress’
warning: This action cannot be undone.
submit: Send claims
cancel: Cancel
new_not_permitted:
page_caption: Payments
page_title: There are no claims to send for payment
description: You cannot send any claims to the ESFA because there are no claims pending payment.
description: You cannot send any claims to the payer because there are no claims pending payment.
cancel: Cancel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ en:
confirm_information_sent:
page_caption: Payments - Claim %{reference}
page_title: Are you sure you want to update the claim?
description: You confirm that you have sent the ESFA the information they requested so they can pay the claim.
description: You confirm that you have sent the payer the information they requested so they can pay the claim.
submit: Update claim
cancel: Cancel
information_sent:
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en/claims/user_mailer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ en:
body: |
Dear %{user_name},
We have amended your claim to reflect the amount being clawed back by the Education and Skills Funding Agency (ESFA). They will contact you to discuss how they will claim this money from you.
We have amended your claim to reflect the amount being clawed back by the payer. They will contact you to discuss how they will claim this money from you.

The affected claim reference is: %{reference}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ en:
claims:
upload_esfa_clawback_response_wizard:
upload_step:
page_title: Upload ESFA response - Claims
title: Upload ESFA response
page_title: Upload payer response - Claims
title: Upload payer response
caption: Clawbacks
upload_csv_file: Upload CSV file
csv_help: Help with the CSV file
Expand Down Expand Up @@ -32,10 +32,10 @@ en:
other: There are %{count} claims included in this upload.
upload_data: Upload responses
no_claims_step:
title: You cannot upload an ESFA response
page_title: You cannot upload an ESFA response - Clawbacks - Claims
title: You cannot upload a payer response
page_title: You cannot upload a payer response - Clawbacks - Claims
caption: Clawbacks
you_cannot_upload: You cannot upload an ESFA response as there are no claims waiting for a response.
you_cannot_upload: You cannot upload a payer response as there are no claims waiting for a response.
upload_errors_step:
title: There is a problem with the CSV file
caption: Clawbacks
Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/claims/esfa_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
expect(claims_require_clawback_email.to).to match_array(esfa_emails)
expect(claims_require_clawback_email.subject).to eq("Claims requiring clawback - Claim funding for mentor training")
expect(claims_require_clawback_email.body.to_s.squish).to eq(<<~EMAIL.squish)
To ESFA,
To the payer,
The claims in the CSV file link are ready for clawback— the link to the latest CSV file is valid for 7 days:
Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/claims/payment_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
expect(email.to).to contain_exactly("[email protected]")
expect(email.subject).to eq("Claims ready for payment - Claim funding for mentor training")
expect(email.body.to_s.squish).to eq(<<~EMAIL.squish)
To ESFA,
To the payer,
These claims from the Claim funding for mentor training service (Claim) are ready for payment — the link to the latest CSV file is valid for 7 days:
Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/claims/user_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
expect(clawback_email.body.to_s.strip).to eq(<<~EMAIL.strip)
Dear #{user.first_name},
We have amended your claim to reflect the amount being clawed back by the Education and Skills Funding Agency (ESFA). They will contact you to discuss how they will claim this money from you.
We have amended your claim to reflect the amount being clawed back by the payer. They will contact you to discuss how they will claim this money from you.
The affected claim reference is: #{claim.reference}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def then_i_see_the_clawbacks_index_page
end

def when_i_click_on_send_claims_to_esfa
click_on "Send claims to ESFA"
click_on "Send claims to payer"
end

def and_i_see_the_details_of_the_clawback_in_progress_claim
Expand All @@ -68,7 +68,7 @@ def then_i_see_the_are_no_claims_to_send_for_clawbacks
expect(page).to have_element(:p, text: "Clawbacks", class: "govuk-caption-l")
expect(page).to have_element(
:p,
text: "You cannot send any claims to the ESFA because there are no claims with a clawback requested.",
text: "You cannot send any claims to the payer because there are no claims with a clawback requested.",
)
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe "Support user sends claims to ESFA", service: :claims, type: :system do
RSpec.describe "Support user sends claims to payer", service: :claims, type: :system do
scenario do
given_claims_exist
and_i_am_signed_in
Expand Down Expand Up @@ -49,12 +49,12 @@ def then_i_see_the_clawbacks_index_page
end

def when_i_click_on_send_claims_to_esfa
click_on "Send claims to ESFA"
click_on "Send claims to payer"
end

def then_i_can_see_a_confirmation_page
expect(page).to have_element(:p, text: "Clawbacks", class: "govuk-caption-l")
expect(page).to have_h1("Send claims to ESFA")
expect(page).to have_h1("Send claims to payer")
expect(page).to have_element(:p, text: "There is 1 claim included in this submission.", class: "govuk-body")
expect(page).to have_element(:div, text: "Selecting ‘Send claims’ will:", class: "govuk-body")
expect(page).to have_element(
Expand All @@ -63,7 +63,7 @@ def then_i_can_see_a_confirmation_page
)
expect(page).to have_element(
:li,
text: "send an email to the ESFA containing a link to the generated CSV - this link expires after 7 days",
text: "send an email to the payer containing a link to the generated CSV - this link expires after 7 days",
)
expect(page).to have_element(
:li,
Expand All @@ -77,7 +77,7 @@ def when_i_click_on_send_claims
end

def then_i_see_a_success_message
expect(page).to have_success_banner("Claims sent to ESFA")
expect(page).to have_success_banner("Claims sent to payer")
end

def and_i_see_the_details_of_the_clawback_requested_claim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ def and_i_see_no_clawback_claims_have_been_uploaded
end

def when_i_click_on_upload_esfa_response
click_on "Upload ESFA response"
click_on "Upload payer response"
end

def then_i_see_there_are_no_claims_waiting_for_a_response
expect(page).to have_title("You cannot upload an ESFA response - Clawbacks - Claims - Claim funding for mentor training - GOV.UK")
expect(page).to have_h1("You cannot upload an ESFA response")
expect(page).to have_title("You cannot upload a payer response - Clawbacks - Claims - Claim funding for mentor training - GOV.UK")
expect(page).to have_h1("You cannot upload a payer response")
expect(page).to have_element(:span, text: "Clawback")
expect(page).to have_element(
:p,
text: "You cannot upload an ESFA response as there are no claims waiting for a response.",
text: "You cannot upload a payer response as there are no claims waiting for a response.",
class: "govuk-body",
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def then_i_see_the_clawback_claims_index_page
end

def then_i_see_the_upload_csv_page
expect(page).to have_h1("Upload ESFA response")
expect(page).to have_h1("Upload payer response")
have_element(:span, text: "Sampling", class: "govuk-caption-l")
expect(page).to have_element(:label, text: "Upload CSV file")
end
Expand All @@ -69,7 +69,7 @@ def and_i_see_a_claim_with_the_status_clawback_in_progress
end

def when_i_click_on_upload_esfa_response
click_on "Upload ESFA response"
click_on "Upload payer response"
end

def when_i_click_on_upload_csv_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def then_i_see_the_clawback_claims_index_page
end

def then_i_see_the_upload_csv_page
expect(page).to have_h1("Upload ESFA response")
expect(page).to have_h1("Upload payer response")
have_element(:span, text: "Clawbacks", class: "govuk-caption-l")
expect(page).to have_element(:label, text: "Upload CSV file")
end
Expand Down Expand Up @@ -104,7 +104,7 @@ def and_i_see_two_claims_with_the_status_clawback_in_progress
end

def when_i_click_on_upload_esfa_response
click_on "Upload ESFA response"
click_on "Upload payer response"
end

def and_i_click_on_upload_csv_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def then_i_see_the_clawback_claims_index_page
end

def then_i_see_the_upload_csv_page
expect(page).to have_h1("Upload ESFA response")
expect(page).to have_h1("Upload payer response")
have_element(:span, text: "Clawback", class: "govuk-caption-l")
expect(page).to have_element(:label, text: "Upload CSV file")
end
Expand All @@ -101,7 +101,7 @@ def and_i_do_not_see_a_claim_with_the_status_paid
end

def when_i_click_on_upload_esfa_response
click_on "Upload ESFA response"
click_on "Upload payer response"
end

def and_i_click_on_upload_csv_file
Expand Down
Loading

0 comments on commit 39d4b6d

Please sign in to comment.