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

CIV-10382 Case flags for new experts/witnesses new #3563

Closed
wants to merge 68 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3ef42b1
Added new ManageContactInformation callback handler and event and whi…
Gareth40342 Aug 3, 2023
80284f3
Added new ManageContactInformation callback handler and event and whi…
Gareth40342 Aug 3, 2023
50d071d
Merge branch 'master' into feat/civ-9395-update-contact-details-event
sherlynkhaw Aug 21, 2023
33171a0
Merge branch 'master' into feat/civ-9395-update-contact-details-event
sherlynkhaw Aug 21, 2023
09ce8d6
CIV-9992 add options for manage contact information
sankaviv1 Aug 21, 2023
d52608a
revert accidental commit
sankaviv1 Aug 21, 2023
6481a31
add utils test
sankaviv1 Aug 21, 2023
9ca1b55
update utils test
sankaviv1 Aug 21, 2023
8ec0939
add test scenarios for handler
sankaviv1 Aug 22, 2023
c388d88
update handler tests
sankaviv1 Aug 22, 2023
956e0f0
add IDs to party options
sankaviv1 Aug 24, 2023
26dd15c
Merge branch 'master' into feat/civ-9395-update-contact-details-event
Gareth40343 Aug 25, 2023
e224b94
Merge remote-tracking branch 'origin/master' into feat/civ-9992
sankaviv1 Aug 25, 2023
0adbfe4
Merge remote-tracking branch 'origin/feat/civ-9395-update-contact-det…
sankaviv1 Aug 25, 2023
c253792
Merge branch 'master' into feat/civ-9395-update-contact-details-event
Gareth40343 Aug 25, 2023
d66bd29
Merge branch 'master' into feat/civ-9395-update-contact-details-event
Gareth40343 Aug 28, 2023
358edd3
Merge branch 'feat/civ-9395-update-contact-details-event' into feat/c…
Gareth40342 Aug 28, 2023
0f16a28
changed name of some variables
sherlynkhaw Aug 30, 2023
eefa7d7
Merge branch 'feat/civ-9992' into feat/civ-9993
sherlynkhaw Aug 30, 2023
2ddbfe3
added chosenpartytype and chosenpartyid to determine what to show on …
sherlynkhaw Aug 31, 2023
ade1fe4
Merge branch 'master' into feat/civ-9993
sherlynkhaw Sep 1, 2023
c95aee3
adding tests ManageContactInformationUtilsTest
LTurkingtonHMCTS Sep 4, 2023
346c775
changed some keys, updated tests
sherlynkhaw Sep 4, 2023
a884dc4
Merge branch 'feat/civ-9993' of github.com:hmcts/civil-service into f…
sherlynkhaw Sep 4, 2023
c59b7ac
experts and witnesses form wip
sherlynkhaw Sep 7, 2023
b37e9cf
show experts on ui
sherlynkhaw Sep 8, 2023
a517212
make id fields public
sankaviv1 Sep 14, 2023
3ab13f2
CIV-10094 create/update case flags names for new/edited individuals
sankaviv1 Sep 14, 2023
71f3e9b
add unit tests
sankaviv1 Sep 15, 2023
1b99eae
Cherry picked the 3 main commits from CIV-3216
Gareth40342 Sep 11, 2023
259a984
Updated experts and witnesses to have mappings
sherlynkhaw Sep 18, 2023
592cbeb
Merge remote-tracking branch 'origin/feat/civ-9993' into feat/civ-10094
sankaviv1 Sep 19, 2023
50eb245
changed utils class back to static and removed mocks
sherlynkhaw Sep 19, 2023
c2e7429
Fixed witnesses
sherlynkhaw Sep 20, 2023
32f7b4c
Merge remote-tracking branch 'origin/feat/civ-9993' into feat/civ-10094
sankaviv1 Sep 20, 2023
7ce6631
fixed litigation friend
sherlynkhaw Sep 20, 2023
53c95ed
append with party ID
sankaviv1 Sep 21, 2023
3b09456
remove unnecessary changes
sankaviv1 Sep 21, 2023
99691ba
Merge remote-tracking branch 'origin/feat/civ-9993' into feat/civ-10094
sankaviv1 Sep 21, 2023
93f439b
CIV-10382 Update experts and witnesses case flags after MCI event
sankaviv1 Sep 21, 2023
00f0c58
remove unnecessary tests
sankaviv1 Sep 21, 2023
742d59f
update tests for party ids
sankaviv1 Sep 21, 2023
5b1666c
Merge remote-tracking branch 'origin/feat/civ-10094' into feat/civ-10382
sankaviv1 Sep 21, 2023
ec8ca6b
add tests for experts and witnesses
sankaviv1 Sep 21, 2023
a4a062d
fixed capability to delete all experts/witnesses and add new expert/w…
sherlynkhaw Sep 21, 2023
808ad47
postcode
sherlynkhaw Sep 22, 2023
e13fbfc
Merge branch 'master' into feat/civ-9993
sherlynkhaw Sep 25, 2023
45b1e05
Merge branch 'master' into feat/civ-9993
sherlynkhaw Sep 25, 2023
c66216e
removed unnecessary lines and imports
sherlynkhaw Sep 25, 2023
96edd2c
Merge remote-tracking branch 'origin/feat/civ-9993' into feat/civ-10094
sankaviv1 Sep 26, 2023
823232a
fix conflicts
sankaviv1 Sep 26, 2023
f23e8d0
Merge remote-tracking branch 'origin/feat/civ-10094' into feat/civ-10382
sankaviv1 Sep 26, 2023
d2708db
fix conflicts
sankaviv1 Sep 26, 2023
ca6531c
rename method
sankaviv1 Sep 26, 2023
41a6952
checkstyle fix
sankaviv1 Sep 26, 2023
64385de
checkstyle fix
sankaviv1 Sep 26, 2023
32c561a
more test fixes
sankaviv1 Sep 26, 2023
8bea4e1
more test fixes
sankaviv1 Sep 26, 2023
70ba55f
revert
sankaviv1 Sep 26, 2023
a7500d8
fix more tests
sankaviv1 Sep 26, 2023
e7b7343
Merge remote-tracking branch 'origin/master' into feat/civ-10382
sankaviv1 Nov 13, 2023
074f5ee
checkstyle fix
sankaviv1 Nov 13, 2023
fa5a178
fix bad merge
sankaviv1 Nov 13, 2023
a392409
Merge branch 'master' into feat/civ-10382
AhsanZX97 Nov 13, 2023
8c6a52b
checkstlye fix
sankaviv1 Nov 13, 2023
f6b2e06
Merge remote-tracking branch 'origin/feat/civ-10382' into feat/civ-10382
sankaviv1 Nov 13, 2023
be2494b
checkstlye fix
sankaviv1 Nov 13, 2023
776ebc7
checkstlye fix
sankaviv1 Nov 13, 2023
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 @@ -18,6 +18,7 @@
import uk.gov.hmcts.reform.civil.model.CaseData;
import uk.gov.hmcts.reform.civil.model.LitigationFriend;
import uk.gov.hmcts.reform.civil.model.Party;
import uk.gov.hmcts.reform.civil.model.PartyFlagStructure;
import uk.gov.hmcts.reform.civil.model.UpdateDetailsForm;
import uk.gov.hmcts.reform.civil.model.UpdatePartyDetailsForm;
import uk.gov.hmcts.reform.civil.model.common.DynamicList;
Expand Down Expand Up @@ -49,8 +50,7 @@
import static uk.gov.hmcts.reform.civil.enums.MultiPartyScenario.getMultiPartyScenario;
import static uk.gov.hmcts.reform.civil.enums.YesOrNo.NO;
import static uk.gov.hmcts.reform.civil.enums.YesOrNo.YES;
import static uk.gov.hmcts.reform.civil.utils.CaseFlagUtils.addApplicantExpertAndWitnessFlagsStructure;
import static uk.gov.hmcts.reform.civil.utils.CaseFlagUtils.addRespondentDQPartiesFlagStructure;
import static uk.gov.hmcts.reform.civil.utils.ElementUtils.unwrapElements;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_EXPERTS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_LITIGATION_FRIEND_ID;
Expand All @@ -75,6 +75,8 @@
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.mapUpdatePartyDetailsFormToDQExperts;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.mapUpdatePartyDetailsFormToDQWitnesses;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.mapWitnessesToUpdatePartyDetailsForm;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.updatePartyDQExperts;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.updatePartyDQWitnesses;
import static uk.gov.hmcts.reform.civil.utils.UserRoleUtils.isApplicantSolicitor;
import static uk.gov.hmcts.reform.civil.utils.UserRoleUtils.isRespondentSolicitorOne;
import static uk.gov.hmcts.reform.civil.utils.UserRoleUtils.isRespondentSolicitorTwo;
Expand Down Expand Up @@ -351,7 +353,9 @@ private CallbackResponse submitChanges(CallbackParams callbackParams) {
caseFlagsInitialiser.initialiseCaseFlags(MANAGE_CONTACT_INFORMATION, builder);

// clear updateDetailsForm
builder.updateDetailsForm(UpdateDetailsForm.builder().manageContactDetailsEventUsed(YES).build());
builder.updateDetailsForm(UpdateDetailsForm.builder()
.manageContactDetailsEventUsed(YES)
.build());

// update claim details tab
updateClaimDetailsTab(caseData, builder);
Expand Down Expand Up @@ -386,8 +390,11 @@ private void updateExperts(String partyId, CaseData caseData, CaseData.CaseDataB
.details(mappedExperts)
.build())
.build());
addApplicantExpertAndWitnessFlagsStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedApplicantExperts = updatePartyDQExperts(
unwrapElements(caseData.getApplicantExperts()),
unwrapElements(mappedExperts)
);
builder.applicantExperts(updatedApplicantExperts);
} else if (partyId.equals(DEFENDANT_ONE_EXPERTS_ID)) {
mappedExperts = mapUpdatePartyDetailsFormToDQExperts(
caseData.getRespondent1DQ().getRespondent1DQExperts().getDetails(), formData);
Expand All @@ -398,8 +405,11 @@ private void updateExperts(String partyId, CaseData caseData, CaseData.CaseDataB
.details(mappedExperts)
.build())
.build());
addRespondentDQPartiesFlagStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedRespondent1Experts = updatePartyDQExperts(
unwrapElements(caseData.getRespondent1Experts()),
unwrapElements(mappedExperts)
);
builder.respondent1Experts(updatedRespondent1Experts);
} else if (partyId.equals(DEFENDANT_TWO_EXPERTS_ID)) {
mappedExperts = mapUpdatePartyDetailsFormToDQExperts(
caseData.getRespondent2DQ().getRespondent2DQExperts().getDetails(), formData);
Expand All @@ -410,8 +420,11 @@ private void updateExperts(String partyId, CaseData caseData, CaseData.CaseDataB
.details(mappedExperts)
.build())
.build());
addRespondentDQPartiesFlagStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedRespondent2Experts = updatePartyDQExperts(
unwrapElements(caseData.getRespondent2Experts()),
unwrapElements(mappedExperts)
);
builder.respondent2Experts(updatedRespondent2Experts);
}

}
Expand All @@ -430,8 +443,11 @@ private void updateWitnesses(String partyId, CaseData caseData, CaseData.CaseDat
.details(mappedWitnesses)
.build())
.build());
addApplicantExpertAndWitnessFlagsStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedApplicantWitnesses = updatePartyDQWitnesses(
unwrapElements(caseData.getApplicantWitnesses()),
unwrapElements(mappedWitnesses)
);
builder.applicantWitnesses(updatedApplicantWitnesses);
} else if (partyId.equals(DEFENDANT_ONE_WITNESSES_ID)) {
mappedWitnesses = mapUpdatePartyDetailsFormToDQWitnesses(
caseData.getRespondent1DQ().getRespondent1DQWitnesses().getDetails(), formData);
Expand All @@ -442,8 +458,11 @@ private void updateWitnesses(String partyId, CaseData caseData, CaseData.CaseDat
.details(mappedWitnesses)
.build())
.build());
addRespondentDQPartiesFlagStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedRespondent1Witnesses = updatePartyDQWitnesses(
unwrapElements(caseData.getRespondent1Witnesses()),
unwrapElements(mappedWitnesses)
);
builder.respondent1Witnesses(updatedRespondent1Witnesses);
} else if (partyId.equals(DEFENDANT_TWO_WITNESSES_ID)) {
mappedWitnesses = mapUpdatePartyDetailsFormToDQWitnesses(
caseData.getRespondent2DQ().getRespondent2DQWitnesses().getDetails(), formData);
Expand All @@ -454,8 +473,11 @@ private void updateWitnesses(String partyId, CaseData caseData, CaseData.CaseDat
.details(mappedWitnesses)
.build())
.build());
addRespondentDQPartiesFlagStructure(builder, caseData);
//TODO: need to add it to top level party object
List<Element<PartyFlagStructure>> updatedRespondent2Witnesses = updatePartyDQWitnesses(
unwrapElements(caseData.getRespondent2Witnesses()),
unwrapElements(mappedWitnesses)
);
builder.respondent2Witnesses(updatedRespondent2Witnesses);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
import static uk.gov.hmcts.reform.civil.utils.ElementUtils.wrapElements;
import static uk.gov.hmcts.reform.civil.utils.ExpertUtils.addEventAndDateAddedToRespondentExperts;
import static uk.gov.hmcts.reform.civil.utils.PartyUtils.populateDQPartyIds;
import static uk.gov.hmcts.reform.civil.utils.PartyUtils.populateWithPartyIds;
import static uk.gov.hmcts.reform.civil.utils.WitnessUtils.addEventAndDateAddedToRespondentWitnesses;

@Service
Expand Down Expand Up @@ -1528,10 +1527,6 @@ && ifResponseTypeIsPartOrFullAdmission(caseData)) {
}
}

if (toggleService.isHmcEnabled()) {
populateWithPartyIds(updatedData);
}

updateCorrespondenceAddress(callbackParams, updatedData, caseData);

if (getMultiPartyScenario(caseData) == ONE_V_TWO_TWO_LEGAL_REP
Expand Down
62 changes: 48 additions & 14 deletions src/main/java/uk/gov/hmcts/reform/civil/utils/CaseFlagUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,27 @@
import static uk.gov.hmcts.reform.civil.utils.ElementUtils.element;
import static uk.gov.hmcts.reform.civil.utils.ElementUtils.unwrapElements;
import static uk.gov.hmcts.reform.civil.utils.ElementUtils.wrapElements;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_EXPERTS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_LEGAL_REP_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_LITIGATION_FRIEND_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_ORG_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_ONE_WITNESSES_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_TWO_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_TWO_LITIGATION_FRIEND_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.CLAIMANT_TWO_ORG_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_EXPERTS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_LEGAL_REP_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_LITIGATION_FRIEND_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_ORG_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_ONE_WITNESSES_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_EXPERTS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_LEGAL_REP_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_LITIGATION_FRIEND_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_ORG_INDIVIDUALS_ID;
import static uk.gov.hmcts.reform.civil.utils.ManageContactInformationUtils.DEFENDANT_TWO_WITNESSES_ID;
import static uk.gov.hmcts.reform.civil.utils.PartyUtils.appendWithNewPartyId;

import uk.gov.hmcts.reform.civil.model.LitigationFriend;
Expand All @@ -48,20 +54,20 @@

public class CaseFlagUtils {

public static final String RESPONDENT_SOLICITOR_ONE_WITNESS = "Respondent solicitor 1 witness";
public static final String RESPONDENT_SOLICITOR_ONE_EXPERT = "Respondent solicitor 1 expert";
public static final String RESPONDENT_SOLICITOR_TWO_WITNESS = "Respondent solicitor 2 witness";
public static final String RESPONDENT_SOLICITOR_TWO_EXPERT = "Respondent solicitor 2 expert";
public static final String APPLICANT_SOLICITOR_WITNESS = "Applicant solicitor witness";
public static final String APPLICANT_SOLICITOR_EXPERT = "Applicant solicitor expert";
public static final String APPLICANT_ONE = "Applicant 1";
public static final String APPLICANT_TWO = "Applicant 2";
public static final String APPLICANT_ONE_LITIGATION_FRIEND = "Applicant 1 Litigation Friend";
public static final String APPLICANT_TWO_LITIGATION_FRIEND = "Applicant 2 Litigation Friend";
public static final String RESPONDENT_ONE = "Respondent 1";
public static final String RESPONDENT_TWO = "Respondent 2";
public static final String RESPONDENT_ONE_LITIGATION_FRIEND = "Respondent 1 Litigation Friend";
public static final String RESPONDENT_TWO_LITIGATION_FRIEND = "Respondent 2 Litigation Friend";
public static final String RESPONDENT_SOLICITOR_ONE_WITNESS = "Defendant solicitor 1 witness";
public static final String RESPONDENT_SOLICITOR_ONE_EXPERT = "Defendant solicitor 1 expert";
public static final String RESPONDENT_SOLICITOR_TWO_WITNESS = "Defendant solicitor 2 witness";
public static final String RESPONDENT_SOLICITOR_TWO_EXPERT = "Defendant solicitor 2 expert";
public static final String APPLICANT_SOLICITOR_WITNESS = "Claimant solicitor witness";
public static final String APPLICANT_SOLICITOR_EXPERT = "Claimant solicitor expert";
public static final String APPLICANT_ONE = "Claimant 1";
public static final String APPLICANT_TWO = "Claimant 2";
public static final String APPLICANT_ONE_LITIGATION_FRIEND = "Claimant 1 Litigation Friend";
public static final String APPLICANT_TWO_LITIGATION_FRIEND = "Claimant 2 Litigation Friend";
public static final String RESPONDENT_ONE = "Defendant 1";
public static final String RESPONDENT_TWO = "Defendant 2";
public static final String RESPONDENT_ONE_LITIGATION_FRIEND = "Defendant 1 Litigation Friend";
public static final String RESPONDENT_TWO_LITIGATION_FRIEND = "Defendant 2 Litigation Friend";

private CaseFlagUtils() {
//NO-OP
Expand Down Expand Up @@ -209,6 +215,10 @@ public static void createOrUpdateFlags(CaseData.CaseDataBuilder<?, ?> builder, C
updateOrgIndividualsFlags(builder, caseData, partyChosen);
// attending for legal rep
updateLRIndividualsFlags(builder, caseData, partyChosen, organisationService);
// experts
updateExpertFlags(builder, caseData, partyChosen);
// witnesses
updateWitnessFlags(builder, caseData, partyChosen);
}

private static void updateLRIndividualsFlags(CaseData.CaseDataBuilder<?, ?> builder, CaseData caseData, String partyChosen, OrganisationService organisationService) {
Expand Down Expand Up @@ -265,6 +275,30 @@ private static void updateLitigationFriendFlags(CaseData.CaseDataBuilder<?, ?> b
}
}

private static void updateExpertFlags(CaseData.CaseDataBuilder<?, ?> builder, CaseData caseData, String partyChosen) {
if ((CLAIMANT_ONE_EXPERTS_ID).equals(partyChosen)) {
builder.applicantExperts(updatePartyNameForPartyFlagStructures(caseData.getApplicantExperts(), APPLICANT_SOLICITOR_EXPERT));
}
if ((DEFENDANT_ONE_EXPERTS_ID).equals(partyChosen)) {
builder.respondent1Experts(updatePartyNameForPartyFlagStructures(caseData.getRespondent1Experts(), RESPONDENT_SOLICITOR_ONE_EXPERT));
}
if ((DEFENDANT_TWO_EXPERTS_ID).equals(partyChosen)) {
builder.respondent2Experts(updatePartyNameForPartyFlagStructures(caseData.getRespondent2Experts(), RESPONDENT_SOLICITOR_TWO_EXPERT));
}
}

private static void updateWitnessFlags(CaseData.CaseDataBuilder<?, ?> builder, CaseData caseData, String partyChosen) {
if ((CLAIMANT_ONE_WITNESSES_ID).equals(partyChosen)) {
builder.applicantWitnesses(updatePartyNameForPartyFlagStructures(caseData.getApplicantWitnesses(), APPLICANT_SOLICITOR_WITNESS));
}
if ((DEFENDANT_ONE_WITNESSES_ID).equals(partyChosen)) {
builder.respondent1Witnesses(updatePartyNameForPartyFlagStructures(caseData.getRespondent1Witnesses(), RESPONDENT_SOLICITOR_ONE_WITNESS));
}
if ((DEFENDANT_TWO_WITNESSES_ID).equals(partyChosen)) {
builder.respondent2Witnesses(updatePartyNameForPartyFlagStructures(caseData.getRespondent2Witnesses(), RESPONDENT_SOLICITOR_TWO_WITNESS));
}
}

private static void updatePartyFlags(CaseData.CaseDataBuilder<?, ?> builder, CaseData caseData, String partyChosen) {
if ((CLAIMANT_ONE_ID).equals(partyChosen)) {
builder.applicant1(updatePartyNameForFlags(caseData.getApplicant1()));
Expand Down
Loading
Loading