Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
b087a89
HDPI-2510: Additional defendants
scottstewart-sl Oct 24, 2025
3f3674c
Merge branch 'master' into HDPI-2510_defendant_details
scottstewart-sl Oct 24, 2025
62f548b
HDPI-2510: Adding missing hint text for additional defendants
scottstewart-sl Oct 24, 2025
5c2eaaf
HDPI-2510: Extract defendant validation into its own class
scottstewart-sl Oct 24, 2025
1067f23
HDPI-2510: Only map additional defendants when indicated
scottstewart-sl Oct 24, 2025
50e08de
HDPI-2510: Add a unit test to show that a null additionalDefendants l…
scottstewart-sl Oct 24, 2025
c6a99c2
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Oct 28, 2025
6020d20
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Oct 28, 2025
d7d5c57
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Oct 29, 2025
705eb62
HDPI-2510: Persist whether the user selected to add additional defend…
scottstewart-sl Oct 30, 2025
c4c1a0d
Merge branch 'master' into HDPI-2510_defendant_details
scottstewart-sl Oct 31, 2025
821e4b0
Merge branch 'master' into HDPI-2510_defendant_details
jessieharrigan Oct 31, 2025
21a3753
Merge branch 'master' into HDPI-2510_defendant_details
jessieharrigan Oct 31, 2025
2db15d9
Merge branch 'master' into HDPI-2510_defendant_details
jessieharrigan Nov 3, 2025
fc11227
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 4, 2025
7ce0cf4
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 4, 2025
6f02db8
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 5, 2025
dd33521
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 5, 2025
814505f
feat: add domain models for eviction workflow
andrewdami11 Nov 6, 2025
0d48648
feat: add ChangeNameAddressPage error page
andrewdami11 Nov 6, 2025
1661902
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 6, 2025
eca7c48
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 7, 2025
e8fb03d
feat: add PeopleWhoWillBeEvictedPage and PeopleYouWantToEvictPage
andrewdami11 Nov 7, 2025
b105467
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 10, 2025
e0c8c57
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 10, 2025
26eb7c8
feat: add mid-event callback to NameAndAddressForEvictionPage for con…
andrewdami11 Nov 10, 2025
f957c9c
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 11, 2025
d10b2af
HDPI-2510: Add custom error message for ExUI collections bug
scottstewart-sl Nov 11, 2025
2b848c3
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 11, 2025
e033c0c
feat: integrate new eviction pages into EnforcementOrderEvent
andrewdami11 Nov 11, 2025
17c1a46
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 12, 2025
a40635e
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 12, 2025
bcccecd
test: add unit tests for eviction workflow pages
andrewdami11 Nov 12, 2025
1224b5e
fix: add missing VerticalYesNo import in PeopleWhoWillBeEvictedPage
andrewdami11 Nov 12, 2025
2c525e0
Merge branch 'master' into HDPI-2510_defendant_details
jessieharrigan Nov 13, 2025
340b052
Merge remote-tracking branch 'origin/master' into HDPI-2510_defendant…
scottstewart-sl Nov 13, 2025
45892fd
Merge branch 'HDPI-2510_defendant_details' into HDPI-2237-review-and-…
andrewdami11 Nov 13, 2025
d5c2d71
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 13, 2025
35d3b22
Automation HDPI-2510 Add additional defendants (#801)
AshaJayaprakash Nov 14, 2025
5c1d27f
refactor: use govuk class instead
andrewdami11 Nov 14, 2025
18e20a6
feat: add CCD annotations to nameAndAddressForEviction and peopleToEv…
andrewdami11 Nov 14, 2025
3b0d76f
refactor: use getFirst() instead
andrewdami11 Nov 14, 2025
ef3cd9e
refactor: make modelMapper variable final
andrewdami11 Nov 14, 2025
032f2d0
refactor: remove unused errors list from NameAndAddressForEvictionPage
andrewdami11 Nov 14, 2025
f630c38
refactor: simplify error handling in ChangeNameAddressPage
andrewdami11 Nov 14, 2025
259bb92
Merge branch 'master' into HDPI-2510_defendant_details
scottstewart-sl Nov 14, 2025
487f28d
refactor: small JSDoc refactor
andrewdami11 Nov 14, 2025
11ae1c5
refactor: add JSDoc comments for defendant details in PCSCase
andrewdami11 Nov 14, 2025
97268a3
refactor: update label and hint for correct name and address in NameA…
andrewdami11 Nov 14, 2025
8000cc5
refactor: update page label in ChangeNameAddressPage
andrewdami11 Nov 14, 2025
b32c2d8
refactor: remove unused errors list from eviction-related pages
andrewdami11 Nov 14, 2025
f2729ff
refactor: replace integer codes with UUIDs for defendants in Defendan…
andrewdami11 Nov 14, 2025
a4f8ca4
refactor: use CollectionUtils.isEmpty() from Spring Framework
andrewdami11 Nov 14, 2025
0569738
refactor: streamline defendant data initialization and selection list…
andrewdami11 Nov 14, 2025
3332ce1
refactor: remove redundant show condition and related logic from Livi…
andrewdami11 Nov 14, 2025
f2083c6
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 14, 2025
67da39e
refactor: update navigation logic for eviction pages to streamline us…
andrewdami11 Nov 14, 2025
0a2dc99
Merge branch 'master' into HDPI-2510_defendant_details
AshaJayaprakash Nov 14, 2025
3f3361f
refactor: rename parameter in buildDefendantListItems method for clarity
andrewdami11 Nov 14, 2025
08a8caf
refactor: make populateDefendantSelectionList method package private …
andrewdami11 Nov 14, 2025
88decd7
Merge branch 'HDPI-2510_defendant_details' into HDPI-2237-review-and-…
andrewdami11 Nov 14, 2025
6771c9e
refactor: use CollectionUtils for null and empty check in buildDefend…
andrewdami11 Nov 14, 2025
d6420d8
Merge branch 'master' into HDPI-2510_defendant_details
scottstewart-sl Nov 17, 2025
7c903fa
Merge branch 'HDPI-2510_defendant_details' into HDPI-2237-review-and-…
andrewdami11 Nov 17, 2025
0c23b4d
refactor: Remove unused field 'showLivingInThePropertyPage' from Enfo…
andrewdami11 Nov 17, 2025
19b50b5
test: Remove unused assertion for 'showLivingInThePropertyPage' in Dr…
andrewdami11 Nov 17, 2025
db1c649
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
andrewdami11 Nov 17, 2025
8e9325b
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
tvr-hmcts Nov 19, 2025
6cefaa2
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
tvr-hmcts Nov 19, 2025
646299e
Merge remote-tracking branch 'refs/remotes/origin/master' into HDPI-2…
tvr-solirius Nov 19, 2025
955c33d
Merge remote-tracking branch 'refs/remotes/origin/master' into HDPI-2…
tvr-solirius Nov 19, 2025
f4776b5
HDPI-2237: Add defendant name formatting and adjust eviction page han…
tvr-solirius Nov 19, 2025
3dc0f1f
Merge remote-tracking branch 'refs/remotes/origin/master' into HDPI-2…
tvr-solirius Nov 19, 2025
3595cbc
HDPI-2237: Reorganize imports and update test dependencies in Enforce…
tvr-solirius Nov 19, 2025
40b80a3
HDPI-2237: Remove unused readonly field from eviction page setup
tvr-solirius Nov 20, 2025
8759f36
HDPI-2237: Simplify defendant name formatting and restructure evictio…
tvr-solirius Nov 20, 2025
2787bb9
Merge remote-tracking branch 'refs/remotes/origin/master' into HDPI-2…
tvr-solirius Nov 21, 2025
0fb45a7
HDPI-2237: Disable CaseDefinitionIT and fix formatting issues in enfo…
tvr-solirius Nov 21, 2025
6466e2a
HDPI-2237: Re-enable CaseDefinitionIT test
tvr-solirius Nov 21, 2025
040a600
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
cristianemarsilio Nov 24, 2025
b7e9916
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
andrewdami11 Nov 24, 2025
f59383e
fix: correctly check for non-empty defendants list
andrewdami11 Nov 24, 2025
abe4223
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
andrewdami11 Nov 24, 2025
d93c69c
Merge branch 'master' into HDPI-2237-review-and-confirm-defendant-nam…
andrewdami11 Nov 24, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ private static Stream<Arguments> saveAndResumeEventScenarios() {
List.of(
"enforcementApplication",
"evictionDelayWarning",
"checkYourAnswersPlaceHolder"
"checkYourAnswersPlaceHolder",
"changeNameAddress"
)

)
Expand Down
29 changes: 21 additions & 8 deletions src/main/java/uk/gov/hmcts/reform/pcs/ccd/domain/PCSCase.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
package uk.gov.hmcts.reform.pcs.ccd.domain;

import static uk.gov.hmcts.ccd.sdk.type.FieldType.DynamicRadioList;
import static uk.gov.hmcts.ccd.sdk.type.FieldType.MultiSelectList;
import static uk.gov.hmcts.ccd.sdk.type.FieldType.TextArea;

import com.fasterxml.jackson.annotation.JsonUnwrapped;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;
import lombok.Builder;
import lombok.Data;
import uk.gov.hmcts.ccd.sdk.External;
Expand All @@ -34,6 +26,15 @@
import uk.gov.hmcts.reform.pcs.ccd.type.DynamicStringList;
import uk.gov.hmcts.reform.pcs.postcodecourt.model.LegislativeCountry;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

import static uk.gov.hmcts.ccd.sdk.type.FieldType.DynamicRadioList;
import static uk.gov.hmcts.ccd.sdk.type.FieldType.MultiSelectList;
import static uk.gov.hmcts.ccd.sdk.type.FieldType.TextArea;


/**
* The main domain model representing a possessions case.
Expand Down Expand Up @@ -366,18 +367,27 @@ public class PCSCase {
@CCD(searchable = false)
private String postcodeNotAssignedView;

/**
* The primary defendant in the case.
*/
@CCD
private DefendantDetails defendant1;

@CCD(label = "Do you need to add another defendant?")
private VerticalYesNo addAnotherDefendant;

/**
* List of additional defendants added by the user, after the primary defendant.
*/
@CCD(
label = "Add additional defendant",
hint = "Add an additional defendant to the case"
)
private List<ListValue<DefendantDetails>> additionalDefendants;

/**
* Combined list of all defendants in the case (i.e. primary defendant + additional defendants).
*/
private List<ListValue<DefendantDetails>> allDefendants;

// Notice Details fields
Expand Down Expand Up @@ -780,4 +790,7 @@ public class PCSCase {
@CCD
private ASBQuestionsDetailsWales asbQuestionsWales;

@CCD(searchable = false)
private String formattedDefendantNames;

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
import lombok.Data;
import uk.gov.hmcts.ccd.sdk.api.CCD;
import uk.gov.hmcts.ccd.sdk.type.FieldType;
import uk.gov.hmcts.reform.pcs.ccd.domain.VerticalYesNo;
import uk.gov.hmcts.reform.pcs.ccd.domain.YesNoNotSure;
import uk.gov.hmcts.reform.pcs.ccd.type.DynamicMultiSelectStringList;
import java.util.Set;

import static uk.gov.hmcts.ccd.sdk.type.FieldType.DynamicMultiSelectList;

/**
* The main domain model representing an enforcement order.
*/
Expand All @@ -27,8 +32,19 @@ public class EnforcementOrder {
private AdditionalInformation additionalInformation;

@JsonUnwrapped
@CCD
private NameAndAddressForEviction nameAndAddressForEviction;

@JsonUnwrapped
@CCD
private PeopleToEvict peopleToEvict;

@CCD(
label = "Who do you want to evict?",
typeOverride = DynamicMultiSelectList
)
private DynamicMultiSelectStringList selectedDefendants;

@CCD(
label = "Does anyone living at the property pose a risk to the bailiff?"
)
Expand All @@ -42,6 +58,21 @@ public class EnforcementOrder {
)
private Set<RiskCategory> enforcementRiskCategories;

@CCD(
searchable = false
)
private VerticalYesNo showChangeNameAddressPage;

@CCD(
searchable = false
)
private VerticalYesNo showPeopleWhoWillBeEvictedPage;

@CCD(
searchable = false
)
private VerticalYesNo showPeopleYouWantToEvictPage;

@JsonUnwrapped
@CCD(
label = "Risk details"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NameAndAddressForEviction {

@CCD(label = "You can choose the defendants you want to evict on the next page")
@CCD(
label = "Is this the correct name and address for the eviction?",
hint = "You can choose the defendants you want to evict on the next page"
)
private VerticalYesNo correctNameAndAddress;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package uk.gov.hmcts.reform.pcs.ccd.domain.enforcement;

import lombok.Builder;
import lombok.Data;
import uk.gov.hmcts.ccd.sdk.api.CCD;
import uk.gov.hmcts.reform.pcs.ccd.domain.VerticalYesNo;

/**
* Domain model for the "people who will be evicted" page.
* Contains the selection for whether to evict everyone or specific people.
*/
@Builder
@Data
public class PeopleToEvict {

@CCD(
label = "Do you want to evict everyone at the property?",
hint = "This includes all of the defendants and anyone else living at the property"
)
private VerticalYesNo evictEveryone;

}

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import uk.gov.hmcts.ccd.sdk.api.CCDConfig;
import uk.gov.hmcts.ccd.sdk.api.DecentralisedConfigBuilder;
import uk.gov.hmcts.ccd.sdk.api.Event;
Expand All @@ -13,9 +14,11 @@
import uk.gov.hmcts.reform.pcs.ccd.common.PageBuilder;
import uk.gov.hmcts.reform.pcs.ccd.domain.PCSCase;
import uk.gov.hmcts.reform.pcs.ccd.domain.State;
import uk.gov.hmcts.reform.pcs.ccd.domain.enforcement.EnforcementOrder;
import uk.gov.hmcts.reform.pcs.ccd.page.builder.SavingPageBuilderFactory;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.AdditionalInformationPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.AggressiveAnimalsRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.ChangeNameAddressPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.CheckYourAnswersPlaceHolder;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.CriminalAntisocialRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.EnforcementApplicationPage;
Expand All @@ -25,15 +28,23 @@
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.LivingInThePropertyPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.MoneyOwedPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.NameAndAddressForEvictionPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.PeopleWhoWillBeEvictedPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.PeopleYouWantToEvictPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.PoliceOrSocialServicesRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.PropertyAccessDetailsPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.ProtestorGroupRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.VerbalOrWrittenThreatsRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.ViolentAggressiveRiskPage;
import uk.gov.hmcts.reform.pcs.ccd.page.enforcement.VulnerableAdultsChildrenPage;
import uk.gov.hmcts.reform.pcs.ccd.service.DefendantService;
import uk.gov.hmcts.reform.pcs.ccd.service.enforcement.EnforcementOrderService;
import uk.gov.hmcts.reform.pcs.ccd.type.DynamicMultiSelectStringList;
import uk.gov.hmcts.reform.pcs.ccd.type.DynamicStringListElement;
import uk.gov.hmcts.reform.pcs.ccd.util.AddressFormatter;

import java.util.ArrayList;
import java.util.List;

import static uk.gov.hmcts.reform.pcs.ccd.domain.State.AWAITING_SUBMISSION_TO_HMCTS;
import static uk.gov.hmcts.reform.pcs.ccd.event.EventId.enforceTheOrder;

Expand All @@ -45,6 +56,7 @@ public class EnforcementOrderEvent implements CCDConfig<PCSCase, State, UserRole

private final EnforcementOrderService enforcementOrderService;
private final AddressFormatter addressFormatter;
private final DefendantService defendantService;
private final ViolentAggressiveRiskPage violentAggressiveRiskPage;
private final VerbalOrWrittenThreatsRiskPage verbalOrWrittenThreatsRiskPage;
private final ProtestorGroupRiskPage protestorGroupRiskPage;
Expand Down Expand Up @@ -73,6 +85,9 @@ private void configurePages(Event.EventBuilder<PCSCase, UserRole, State> eventBu
pageBuilder
.add(new EnforcementApplicationPage())
.add(new NameAndAddressForEvictionPage())
.add(new ChangeNameAddressPage())
.add(new PeopleWhoWillBeEvictedPage())
.add(new PeopleYouWantToEvictPage())
.add(new LivingInThePropertyPage())
.add(new EvictionDelayWarningPage())
.add(new EvictionRisksPosedPage())
Expand All @@ -95,12 +110,32 @@ private PCSCase start(EventPayload<PCSCase, State> eventPayload) {
pcsCase.setFormattedPropertyAddress(addressFormatter
.formatAddressWithHtmlLineBreaks(pcsCase.getPropertyAddress()));

if (pcsCase.getAllDefendants() != null && !pcsCase.getAllDefendants().isEmpty()) {
pcsCase.setDefendant1(pcsCase.getAllDefendants().getFirst().getValue());
}
initializeDefendantData(pcsCase);
populateDefendantSelectionList(pcsCase);

return pcsCase;
}

private void initializeDefendantData(PCSCase caseData) {
var allDefendants = caseData.getAllDefendants();
if (!CollectionUtils.isEmpty(allDefendants)) {
caseData.setDefendant1(allDefendants.getFirst().getValue());
}
}

void populateDefendantSelectionList(PCSCase caseData) {
EnforcementOrder enforcementOrder = caseData.getEnforcementOrder();
var allDefendants = caseData.getAllDefendants();
List<DynamicStringListElement> listItems = defendantService.buildDefendantListItems(allDefendants);

enforcementOrder.setSelectedDefendants(
DynamicMultiSelectStringList.builder()
.value(new ArrayList<>())
.listItems(listItems)
.build()
);
}

private SubmitResponse<State> submit(EventPayload<PCSCase, State> eventPayload) {
long caseReference = eventPayload.caseReference();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import uk.gov.hmcts.ccd.sdk.api.CCD;
import uk.gov.hmcts.ccd.sdk.type.AddressUK;


Expand All @@ -17,8 +18,10 @@ public class Defendant {

private Boolean nameKnown;

@CCD
private String firstName;

@CCD
private String lastName;

private Boolean addressKnown;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
package uk.gov.hmcts.reform.pcs.ccd.page.enforcement;

import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
import uk.gov.hmcts.ccd.sdk.api.callback.AboutToStartOrSubmitResponse;
import uk.gov.hmcts.reform.pcs.ccd.common.CcdPageConfiguration;
import uk.gov.hmcts.reform.pcs.ccd.common.PageBuilder;
import uk.gov.hmcts.reform.pcs.ccd.domain.PCSCase;
import uk.gov.hmcts.reform.pcs.ccd.domain.State;
import uk.gov.hmcts.reform.pcs.ccd.domain.enforcement.EnforcementOrder;

import java.util.List;

import static uk.gov.hmcts.reform.pcs.ccd.ShowConditions.NEVER_SHOW;

/**
* Error page shown when user indicates the name or address for eviction is incorrect.
* This page blocks progression and requires the user to make a general application.
*/
public class ChangeNameAddressPage implements CcdPageConfiguration {

private static final String ERROR_MESSAGE =
"You cannot continue with this application until you ask the judge for permission "
+ "to change the name and address.";

@Override
public void addTo(PageBuilder pageBuilder) {
pageBuilder
.page("changeNameAddress", this::midEvent)
.pageLabel("You need permission from a judge to change the name and address for the eviction")
.showCondition("showChangeNameAddressPage=\"YES\"")
.complex(PCSCase::getEnforcementOrder)
.readonly(EnforcementOrder::getShowChangeNameAddressPage, NEVER_SHOW)
.done()
.label("changeNameAddress-line-separator", "---")
.label(
"changeNameAddress-information",
"""
<p class="govuk-body">You need to ask permission from the judge before you can change the name or
address for the eviction.</p>
<p class="govuk-body govuk-!-margin-bottom-0">The judge will decide if you:</p>
<ul class="govuk-list govuk-list--bullet">
<li class="govuk-!-font-size-19">can change the address and continue with this application
(if the change is something small, like a typing error)</li>
<li class="govuk-!-font-size-19">must start again, with a new application
(if the change is more significant, like a completely different address)</li>
</ul>
<p class="govuk-body">You cannot continue with your application until you have asked the judge for
permission to make this change.</p>
<p class="govuk-body govuk-!-font-weight-bold">If you want to proceed with changing the name or
address for the eviction</p>
<p class="govuk-body">
<a id="changeNameAddress-link" class="govuk-link">
Ask the judge if you can change the name or address for the eviction
(GOV.UK, opens in a new tab)</a>.
</p>
<p class="govuk-body govuk-!-font-weight-bold">If you want to keep the existing name or address</p>
<p class="govuk-body">If you are confident that the name or address is correct, you can go back to the
previous page and change your answer to the last question.</p>
<div class="govuk-warning-text">
<span class="govuk-warning-text__icon" aria-hidden="true">!</span>
<strong class="govuk-warning-text__text">
<span class="govuk-warning-text__assistive">Warning</span>
If the name and address is incorrect, the bailiff will not be able to carry out the eviction.
</strong>
</div>
"""
);
}

private AboutToStartOrSubmitResponse<PCSCase, State> midEvent(
CaseDetails<PCSCase, State> details,
CaseDetails<PCSCase, State> before) {

// Always return an error to block progression
return AboutToStartOrSubmitResponse.<PCSCase, State>builder()
.errors(List.of(ERROR_MESSAGE))
.build();
}
}

Loading