Skip to content

Commit

Permalink
CIV-14385 code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kalachandrasekar1 committed Jul 22, 2024
1 parent 454abd9 commit 461dee6
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ public List<CaseEvent> handledEvents() {

private CallbackResponse sendNoticeOfDiscontinuanceLetterToLiPDefendant1(CallbackParams callbackParams) {
CaseData caseData = callbackParams.getCaseData();
if (isRespondent1Lip(caseData)) {
if (caseData.isRespondent1LiP()) {
generateNoticeOfDiscontinuanceLiPDefendantLetter(callbackParams);
}
return AboutToStartOrSubmitCallbackResponse.builder().build();
}

private boolean isRespondent1Lip(CaseData caseData) {
return YesOrNo.NO.equals(caseData.getRespondent1Represented());
}

private void generateNoticeOfDiscontinuanceLiPDefendantLetter(CallbackParams callbackParams) {
CaseData caseData = callbackParams.getCaseData();
lipLetterGenerator.printNoticeOfDiscontinuanceLetter(caseData, callbackParams.getParams().get(BEARER_TOKEN).toString());
Expand Down

0 comments on commit 461dee6

Please sign in to comment.