Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a02d3c5
Add NotificationRequestBuilder
jthmcts Sep 3, 2025
b380c34
Minor cleanup
jthmcts Sep 3, 2025
a3ad5c0
Checkstyle errors
jthmcts Sep 3, 2025
60fd611
Merge branch 'master' into DFR-3915-add-builder
jthmcts Sep 3, 2025
2c6e850
Merge branch 'master' into DFR-3915-add-builder
jthmcts Sep 3, 2025
4c5fcd6
Merge branch 'master' into DFR-3915-add-builder
jthmcts Sep 3, 2025
5dd6b9b
Use NotificationRequestBuilder for General Emails
jthmcts Sep 3, 2025
bdf68f0
Map consented courts to corresponding contested court
jthmcts Sep 3, 2025
bf26561
Add emailReplyToId values
jthmcts Sep 3, 2025
68430da
Minor changed
jthmcts Sep 3, 2025
834c804
Add comments
jthmcts Sep 3, 2025
f62f33c
Merge branch 'master' into DFR-3915-add-builder
jthmcts Sep 3, 2025
0630eea
Merge branch 'DFR-3915-add-builder' into DFR-3915-implementation
jthmcts Sep 3, 2025
5f49a7f
Fix checkstyle error
jthmcts Sep 3, 2025
b6f58e4
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 4, 2025
67a8ce0
Merge branch 'master' into DFR-3915-implementation
so99y Sep 4, 2025
1836143
Add check for empty strings
jthmcts Sep 4, 2025
486a908
Merge branch 'master' into DFR-3915-implementation
so99y Sep 4, 2025
340096c
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 5, 2025
ffaee15
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 9, 2025
2efde24
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 17, 2025
905187b
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 22, 2025
c0b2460
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 24, 2025
26a3f7f
Merge branch 'master' into DFR-3915-implementation
tomfairclough1 Sep 24, 2025
75d2a21
Merge branch 'master' into DFR-3915-implementation
jthmcts Sep 25, 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 @@ -4,6 +4,18 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Getter;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.BirminghamCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.CfcCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.ClevelandCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.HumberCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.KentSurreyCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.LiverpoolCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.LondonCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.ManchesterCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.NewportCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.NottinghamCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.NwYorkshireCourt;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.SwanseaCourt;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -14,11 +26,216 @@
public class CourtDetailsConfiguration {
private final Map<String, CourtDetails> courts;

private final Map<String, String> midlandsCourtMap = Map.ofEntries(
Map.entry(NottinghamCourt.CONSENTED_NOTTINGHAM_COUNTY_COURT_AND_FAMILY_COURT.getId(),
NottinghamCourt.NOTTINGHAM_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_DERBY_COMBINED_COURT_CENTRE.getId(),
NottinghamCourt.DERBY_COMBINED_COURT_CENTRE.getId()),
Map.entry(NottinghamCourt.CONSENTED_LEICESTER_COUNTY_COURT_AND_FAMILY_COURT.getId(),
NottinghamCourt.LEICESTER_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_LINCOLN_COUNTY_COURT_AND_FAMILY_COURT.getId(),
NottinghamCourt.LINCOLN_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_NORTHAMPTON_CROWN_COUNTY_AND_FAMILY_COURT.getId(),
NottinghamCourt.NORTHAMPTON_CROWN_COUNTY_AND_FAMILY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_CHESTERFIELD_COUNTY_COURT.getId(),
NottinghamCourt.CHESTERFIELD_COUNTY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_MANSFIELD_MAGISTRATES_AND_COUNTY_COURT.getId(),
NottinghamCourt.MANSFIELD_MAGISTRATES_AND_COUNTY_COURT.getId()),
Map.entry(NottinghamCourt.CONSENTED_BOSTON_COUNTY_COURT_AND_FAMILY_COURT.getId(),
NottinghamCourt.BOSTON_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_BIRMINGHAM_CIVIL_AND_FAMILY_JUSTICE_CENTRE.getId(),
BirminghamCourt.BIRMINGHAM_CIVIL_AND_FAMILY_JUSTICE_CENTRE.getId()),
Map.entry(BirminghamCourt.CONSENTED_COVENTRY_COMBINED_COURT_CENTRE.getId(),
BirminghamCourt.COVENTRY_COMBINED_COURT_CENTRE.getId()),
Map.entry(BirminghamCourt.CONSENTED_TELFORD_COUNTY_COURT_AND_FAMILY_COURT.getId(),
BirminghamCourt.TELFORD_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_WOLVERHAMPTON_COMBINED_COURT_CENTRE.getId(),
BirminghamCourt.WOLVERHAMPTON_COMBINED_COURT_CENTRE.getId()),
Map.entry(BirminghamCourt.CONSENTED_DUDLEY_COUNTY_COURT_AND_FAMILY_COURT.getId(),
BirminghamCourt.DUDLEY_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_WALSALL_COUNTY_AND_FAMILY_COURT.getId(),
BirminghamCourt.WALSALL_COUNTY_AND_FAMILY_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_STOKE_ON_TRENT_COMBINED_COURT.getId(),
BirminghamCourt.STOKE_ON_TRENT_COMBINED_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_WORCESTER_COMBINED_COURT.getId(),
BirminghamCourt.WORCESTER_COMBINED_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_STAFFORD_COMBINED_COURT.getId(),
BirminghamCourt.STAFFORD_COMBINED_COURT.getId()),
Map.entry(BirminghamCourt.CONSENTED_HEREFORD_COUNTY_COURT_AND_FAMILY_COURT.getId(),
BirminghamCourt.HEREFORD_COUNTY_COURT_AND_FAMILY_COURT.getId())
);

private final Map<String, String> londonCourtMap = Map.ofEntries(
Map.entry(LondonCourt.CENTRAL_FAMILY_COURT.getId(),
CfcCourt.CENTRAL_FAMILY_COURT.getId()),
Map.entry(LondonCourt.WILLESDEN_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.WILLESDEN_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.UXBRIDGE_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.UXBRIDGE_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.EAST_LONDON_FAMILY_COURT.getId(),
CfcCourt.EAST_LONDON_FAMILY_COURT.getId()),
Map.entry(LondonCourt.BRENTFORD_COUNTY_AND_FAMILY_COURT.getId(),
CfcCourt.BRENTFORD_COUNTY_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.BARNET_CIVIL_AND_FAMILY_COURTS_CENTRE.getId(),
CfcCourt.BARNET_CIVIL_AND_FAMILY_COURTS_CENTRE.getId()),
Map.entry(LondonCourt.ROMFORDCOUNTY_AND_FAMILY_COURT.getId(),
CfcCourt.ROMFORDCOUNTY_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.KINGSTON_UPON_THAMES_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.KINGSTON_UPON_THAMES_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.EDMONTON_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.EDMONTON_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.CROYDON_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.CROYDON_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.BROMLEY_COUNTY_COURT_AND_FAMILY_COURT.getId(),
CfcCourt.BROMLEY_COUNTY_COURT_AND_FAMILY_COURT.getId()),
Map.entry(LondonCourt.THE_ROYAL_COURT_OF_JUSTICE.getId(),
CfcCourt.THE_ROYAL_COURT_OF_JUSTICE.getId())
);

private final Map<String, String> northWestCourtMap = Map.ofEntries(
Map.entry(LiverpoolCourt.CONSENTED_LIVERPOOL_CIVIL_FAMILY_COURT.getId(),
LiverpoolCourt.LIVERPOOL_CIVIL_FAMILY_COURT.getId()),
Map.entry(LiverpoolCourt.CONSENTED_CHESTER_CIVIL_FAMILY_JUSTICE.getId(),
LiverpoolCourt.CHESTER_CIVIL_FAMILY_JUSTICE.getId()),
Map.entry(LiverpoolCourt.CONSENTED_CREWE_COUNTY_FAMILY_COURT.getId(),
LiverpoolCourt.CREWE_COUNTY_FAMILY_COURT.getId()),
Map.entry(LiverpoolCourt.CONSENTED_ST_HELENS_COUNTY_FAMILY_COURT.getId(),
LiverpoolCourt.ST_HELENS_COUNTY_FAMILY_COURT.getId()),
Map.entry(LiverpoolCourt.CONSENTED_BIRKENHEAD_COUNTY_FAMILY_COURT.getId(),
LiverpoolCourt.BIRKENHEAD_COUNTY_FAMILY_COURT.getId()),
Map.entry(ManchesterCourt.CONSENTED_MANCHESTER_COURT.getId(),
ManchesterCourt.MANCHESTER_COURT.getId()),
Map.entry(ManchesterCourt.CONSENTED_STOCKPORT_COURT.getId(),
ManchesterCourt.STOCKPORT_COURT.getId()),
Map.entry(ManchesterCourt.CONSENTED_WIGAN_COURT.getId(),
ManchesterCourt.WIGAN_COURT.getId())
);

private final Map<String, String> northEastCourtMap = Map.ofEntries(
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_1.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_1.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_2.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_2.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_3.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_3.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_4.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_4.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_5.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_5.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_6.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_6.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_7.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_7.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_8.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_8.getId()),
Map.entry(ClevelandCourt.FR_CLEVELAND_LIST_9.getId(),
ClevelandCourt.FR_CLEVELAND_HC_LIST_9.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_HARROGATE_COURT.getId(),
NwYorkshireCourt.HARROGATE_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_BRADFORD_COURT.getId(),
NwYorkshireCourt.BRADFORD_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_HUDDERSFIELD_COURT.getId(),
NwYorkshireCourt.HUDDERSFIELD_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_WAKEFIELD_COURT.getId(),
NwYorkshireCourt.WAKEFIELD_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_YORK_COURT.getId(),
NwYorkshireCourt.YORK_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_SCARBOROUGH_COURT.getId(),
NwYorkshireCourt.SCARBOROUGH_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_LEEDS_COURT.getId(),
NwYorkshireCourt.LEEDS_COURT.getId()),
Map.entry(NwYorkshireCourt.CONSENTED_PRESTON_COURT.getId(),
NwYorkshireCourt.PRESTON_COURT.getId()),
Map.entry(HumberCourt.CONSENTED_FR_humberList_1.getId(),
HumberCourt.FR_humberList_1.getId()),
Map.entry(HumberCourt.CONSENTED_FR_humberList_2.getId(),
HumberCourt.FR_humberList_2.getId()),
Map.entry(HumberCourt.CONSENTED_FR_humberList_3.getId(),
HumberCourt.FR_humberList_3.getId()),
Map.entry(HumberCourt.CONSENTED_FR_humberList_4.getId(),
HumberCourt.FR_humberList_4.getId()),
Map.entry(HumberCourt.CONSENTED_FR_humberList_5.getId(),
HumberCourt.FR_humberList_5.getId())
);

private final Map<String, String> southEastCourtMap = Map.ofEntries(
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_1.getId(),
KentSurreyCourt.FR_kent_surreyList_1.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_2.getId(),
KentSurreyCourt.FR_kent_surreyList_2.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_3.getId(),
KentSurreyCourt.FR_kent_surreyList_3.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_4.getId(),
KentSurreyCourt.FR_kent_surreyList_4.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_5.getId(),
KentSurreyCourt.FR_kent_surreyList_5.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_6.getId(),
KentSurreyCourt.FR_kent_surreyList_6.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_7.getId(),
KentSurreyCourt.FR_kent_surreyList_7.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_8.getId(),
KentSurreyCourt.FR_kent_surreyList_8.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_9.getId(),
KentSurreyCourt.FR_kent_surreyList_9.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_10.getId(),
KentSurreyCourt.FR_kent_surreyList_10.getId()),
Map.entry(KentSurreyCourt.CONSENTED_FR_kent_surreyList_11.getId(),
KentSurreyCourt.FR_kent_surreyList_11.getId())
);

private final Map<String, String> walesCourtMap = Map.ofEntries(
Map.entry(NewportCourt.CONSENTED_FR_newportList_1.getId(),
NewportCourt.FR_newportList_1.getId()),
Map.entry(NewportCourt.CONSENTED_FR_newportList_2.getId(),
NewportCourt.FR_newportList_2.getId()),
Map.entry(NewportCourt.CONSENTED_FR_newportList_3.getId(),
NewportCourt.FR_newportList_3.getId()),
Map.entry(NewportCourt.CONSENTED_FR_newportList_4.getId(),
NewportCourt.FR_newportList_4.getId()),
Map.entry(NewportCourt.CONSENTED_FR_newportList_5.getId(),
NewportCourt.FR_newportList_5.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_1.getId(),
SwanseaCourt.FR_swanseaList_1.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_2.getId(),
SwanseaCourt.FR_swanseaList_2.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_3.getId(),
SwanseaCourt.FR_swanseaList_3.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_4.getId(),
SwanseaCourt.FR_swanseaList_4.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_5.getId(),
SwanseaCourt.FR_swanseaList_5.getId()),
Map.entry(SwanseaCourt.CONSENTED_FR_swanseaList_6.getId(),
SwanseaCourt.FR_swanseaList_6.getId())
);

public CourtDetailsConfiguration(ObjectMapper objectMapper) throws IOException {
try (InputStream inputStream = CourtDetailsConfiguration.class
.getResourceAsStream("/json/court-details.json")) {
courts = objectMapper.readValue(inputStream, new TypeReference<>() {
});
addConsentedCourts();
}
}

private void addConsentedCourts() {
addConsentedCourts(midlandsCourtMap);
addConsentedCourts(londonCourtMap);
addConsentedCourts(northWestCourtMap);
addConsentedCourts(northEastCourtMap);
addConsentedCourts(southEastCourtMap);
addConsentedCourts(walesCourtMap);
}

/**
* Adds court details for a consented court id by finding its contested equivalent.
*
* @param courtMap map of consented to contested court ids
*/
private void addConsentedCourts(Map<String, String> courtMap) {
courtMap.forEach((key, value) -> {
CourtDetails courtDetails = courts.get(value);
assert courtDetails != null : "No contested court details found for id: " + value;
courts.put(key, courtDetails);
});
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package uk.gov.hmcts.reform.finrem.caseorchestration.mapper.notificationrequest;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import uk.gov.hmcts.reform.finrem.caseorchestration.helper.ConsentedApplicationHelper;
Expand Down Expand Up @@ -29,14 +28,20 @@

@Service
@Slf4j
@RequiredArgsConstructor
public class FinremNotificationRequestMapper {
public class FinremNotificationRequestMapper extends AbstractNotificationRequestMapper {

private static final String RESPONDENT = "Respondent";
private static final String CONSENTED = "consented";
private static final String CONTESTED = "contested";
private static final String EMPTY_STRING = "";

private final ConsentedApplicationHelper consentedApplicationHelper;
protected static final String EMPTY_STRING = "";

public FinremNotificationRequestMapper(NotificationRequestBuilderFactory notificationRequestBuilderFactory,
ConsentedApplicationHelper consentedApplicationHelper) {
super(notificationRequestBuilderFactory);
this.consentedApplicationHelper = consentedApplicationHelper;
}

public NotificationRequest getNotificationRequestForRespondentSolicitor(FinremCaseDetails caseDetails) {
return buildNotificationRequest(caseDetails, getRespondentSolicitorCaseData(caseDetails.getData()));
Expand Down Expand Up @@ -201,8 +206,15 @@ public NotificationRequest buildNotificationRequest(FinremCaseDetails caseDetail
* @return the populated notification request
*/
public NotificationRequest getNotificationRequestForGeneralEmail(FinremCaseDetails caseDetails) {
SolicitorCaseDataKeysWrapper caseDataKeysWrapper = getApplicantSolicitorCaseData(caseDetails.getData());
return buildNotificationRequest(caseDetails, caseDataKeysWrapper);
FinremCaseData caseData = caseDetails.getData();
SolicitorCaseDataKeysWrapper solicitorCaseData = getApplicantSolicitorCaseData(caseData);

return notificationRequestBuilder()
.withCaseDefaults(caseDetails)
.withSolicitorCaseData(solicitorCaseData)
.notificationEmail(caseData.getGeneralEmailWrapper().getGeneralEmailRecipient())
.generalEmailBody(caseData.getGeneralEmailWrapper().getGeneralEmailBody())
.build();
}

private void setCaseOrderType(NotificationRequest notificationRequest, FinremCaseData caseData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
Expand Down Expand Up @@ -99,6 +100,14 @@ protected Map<String, Object> buildTemplateVars(NotificationRequest notification
templateVars.put("courtEmail", courtDetails.get("email"));
}

// Override court name/email address values if present in the request
if (StringUtils.isNotBlank(notificationRequest.getContactCourtName())) {
templateVars.put("courtName", notificationRequest.getContactCourtName());
}
if (StringUtils.isNotBlank(notificationRequest.getContactCourtEmail())) {
templateVars.put("courtEmail", notificationRequest.getContactCourtEmail());
}

if (FR_ASSIGNED_TO_JUDGE.equals(templateName)) {
templateVars.put("isNotDigital", notificationRequest.getIsNotDigital());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ private void addGeneralEmailAttachment(FinremCaseDetails caseDetails, Notificati

private void sendGeneralEmail(FinremCaseDetails caseDetails, String authToken, EmailTemplateNames templateName) {
NotificationRequest notificationRequest = finremNotificationRequestMapper.getNotificationRequestForGeneralEmail(caseDetails);
notificationRequest.setNotificationEmail(caseDetails.getData().getGeneralEmailWrapper().getGeneralEmailRecipient());
if (isGeneralEmailWithAttachment(caseDetails)) {
addGeneralEmailAttachment(caseDetails, notificationRequest, authToken);
}
Expand Down
12 changes: 8 additions & 4 deletions src/main/resources/json/court-details.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
"courtName": "Birmingham Civil And Family Justice Centre",
"courtAddress": "Priory Courts, 33 Bull Street, Birmingham, B4 6DS",
"phoneNumber": "0300 123 5577",
"email": "[email protected]"
"email": "[email protected]",
"emailReplyToId": "22a13617-b938-433e-a2d3-6390354f8c4d"
},
"FR_birmingham_hc_list_2": {
"courtName": "Coventry Combined Court Centre",
Expand Down Expand Up @@ -225,7 +226,8 @@
"courtName": "Darlington County Court and Family Court",
"courtAddress": "4 Coniscliffe Road, Darlington, DL3 7RL",
"phoneNumber": "0300 123 5577",
"email": "[email protected]"
"email": "[email protected]",
"emailReplyToId": "88906b91-2295-4887-8ffc-848f2c84171e"
},
"FR_cleaveland_hc_list_9": {
"courtName": "Darlington Magistrates Court",
Expand Down Expand Up @@ -591,7 +593,8 @@
"courtName": "Bedford County Court and Family Hearing Centre",
"courtAddress": "Shire Hall, 3 St Paul's square, Bedford, MK40 1SQ",
"phoneNumber": "0300 123 5577",
"email": "[email protected]"
"email": "[email protected]",
"emailReplyToId": "ec36ee15-3191-42c6-b0ee-7ce94fd0bf58"
},
"FR_bedfordshireList_9": {
"courtName": "Luton Justice Centre",
Expand Down Expand Up @@ -759,7 +762,8 @@
"courtName": "Bath Law Courts",
"courtAddress": "The Law Courts, North Parade Road, Bath, BA1 5AF",
"phoneNumber": "0300 123 5577",
"email": "[email protected]"
"email": "[email protected]",
"emailReplyToId": "06eb50b8-dacc-41d7-a688-0d227309435b"
},
"FR_bristolList_6": {
"courtName": "Weston Super Mare County and Family Court",
Expand Down
Loading