-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIV-477 Update Claimant & Defendant appropriately when Claimant disag…
…rees Mediation (#2773) * add ocon9X response util * add comment for paper response * add bulk print changes * add defendant notification service * document ready to print changes * add docmosis template * add template * paper form responded at update * add paper form issue to claim mapper * code clean up * fix tests * code clean up * remove enableManagers * fix checkstyle * fix tests * update service and fix checkstyle * add more tests * fix checkstyle * fix tests and checkstyle * fix conflict Feat/civ 4541 (#2661) * update ccd with page increment and cron exp. * fix params and import * update yml file * update Resource reader * add tests for CoreCaseDataService * checkstyle * non-null contraints * enhance null checks * remove un-used imports * more null checks * update null checks update ccd with page increment and cron exp. fix params and import update yml file update Resource reader add tests for CoreCaseDataService checkstyle non-null contraints enhance null checks remove un-used imports * amend constraint * fix page increment * fix cron exp. * rebase branch * add supression * update schedule * update charts * add larger page process capacity * add larger page process capacity * update chart * add supression * Update suppressions.xml * update master and add necessary changes * update cron exp --------- Co-authored-by: mounikahmcts <43175082+mounikahmcts@users.noreply.github.com> Co-authored-by: mfallonhmcts <114912573+mfallonhmcts@users.noreply.github.com> Co-authored-by: kdaHMCTS <128375235+kdaHMCTS@users.noreply.github.com> add more tests sonar bypass launch darkly for testing Update Renovate Config (#2775) Feat/civ 4541 (#2661) * update ccd with page increment and cron exp. * fix params and import * update yml file * update Resource reader * add tests for CoreCaseDataService * checkstyle * non-null contraints * enhance null checks * remove un-used imports * more null checks * update null checks update ccd with page increment and cron exp. fix params and import update yml file update Resource reader add tests for CoreCaseDataService checkstyle non-null contraints enhance null checks remove un-used imports * amend constraint * fix page increment * fix cron exp. * rebase branch * add supression * update schedule * update charts * add larger page process capacity * add larger page process capacity * update chart * add supression * Update suppressions.xml * update master and add necessary changes * update cron exp --------- Co-authored-by: mounikahmcts <43175082+mounikahmcts@users.noreply.github.com> Co-authored-by: mfallonhmcts <114912573+mfallonhmcts@users.noreply.github.com> Co-authored-by: kdaHMCTS <128375235+kdaHMCTS@users.noreply.github.com> revert back * udpate claimant response --------- Co-authored-by: mfallonhmcts <114912573+mfallonhmcts@users.noreply.github.com>
- Loading branch information
1 parent
ab012d4
commit 535f3a5
Showing
25 changed files
with
621 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
domain-model/src/main/java/uk/gov/hmcts/cmc/domain/utils/OCON9xResponseUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package uk.gov.hmcts.cmc.domain.utils; | ||
|
||
import uk.gov.hmcts.cmc.domain.models.Claim; | ||
import uk.gov.hmcts.cmc.domain.models.claimantresponse.ClaimantResponse; | ||
import uk.gov.hmcts.cmc.domain.models.claimantresponse.ClaimantResponseType; | ||
import uk.gov.hmcts.cmc.domain.models.response.Response; | ||
import uk.gov.hmcts.cmc.domain.models.response.ResponseType; | ||
import uk.gov.hmcts.cmc.domain.models.response.YesNoOption; | ||
|
||
import java.util.function.Predicate; | ||
|
||
public class OCON9xResponseUtil { | ||
|
||
private OCON9xResponseUtil(){ | ||
// NO-OP | ||
} | ||
|
||
private static final Predicate<Claim> FULL_DEFENCE_RESPONSE = claim -> claim.getResponse() | ||
.map(Response::getResponseType) | ||
.filter(ResponseType.FULL_DEFENCE::equals) | ||
.isPresent(); | ||
|
||
private static final Predicate<Claim> DEFENDANT_MEDIATION = claim -> claim.getResponse() | ||
.flatMap(Response::getFreeMediation) | ||
.filter(YesNoOption.YES::equals) | ||
.isPresent(); | ||
|
||
private static final Predicate<Claim> CLAIMANT_REJECTION = claim -> claim.getClaimantResponse() | ||
.map(ClaimantResponse::getType) | ||
.filter(ClaimantResponseType.REJECTION::equals) | ||
.isPresent(); | ||
|
||
private static final Predicate<Claim> CLAIMANT_MEDIATION_REJECTION = claim -> claim.getClaimantResponse() | ||
.flatMap(ClaimantResponse::getFreeMediation) | ||
.filter(YesNoOption.NO::equals) | ||
.isPresent(); | ||
|
||
private static final Predicate<Claim> IS_PAPER_DEFENCE_FORM_ISSUED = claim -> claim.getPaperFormIssueDate() != null; | ||
|
||
public static boolean defendantFullDefenceMediationOCON9x(Claim claim) { | ||
|
||
return | ||
FULL_DEFENCE_RESPONSE.test(claim) | ||
&& DEFENDANT_MEDIATION.test(claim) | ||
&& CLAIMANT_REJECTION.test(claim) | ||
&& CLAIMANT_MEDIATION_REJECTION.test(claim) | ||
&& IS_PAPER_DEFENCE_FORM_ISSUED.test(claim); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.