Skip to content

Commit

Permalink
Revert "SSCSCI-1456" (#1702)
Browse files Browse the repository at this point in the history
Revert "SSCSCI-1456 (#1694)"

This reverts commit 5792bc5.
  • Loading branch information
nilay913 authored Feb 13, 2025
1 parent 5792bc5 commit e59dd2e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class HearingOptions {
private String agreeLessNotice;
private HearingRoute hearingRoute;
private String other;
private HmcHearingType hmcHearingType;

@JsonCreator
public HearingOptions(@JsonProperty("wantsToAttend") String wantsToAttend,
Expand All @@ -39,8 +38,7 @@ public HearingOptions(@JsonProperty("wantsToAttend") String wantsToAttend,
@JsonProperty("excludeDates") List<ExcludeDate> excludeDates,
@JsonProperty("agreeLessNotice") String agreeLessNotice,
@JsonProperty("hearingRoute") HearingRoute hearingRoute,
@JsonProperty("other") String other,
@JsonProperty("hmcHearingType") HmcHearingType hmcHearingType) {
@JsonProperty("other") String other) {
this.wantsToAttend = wantsToAttend;
this.wantsSupport = wantsSupport;
this.languageInterpreter = languageInterpreter;
Expand All @@ -53,17 +51,16 @@ public HearingOptions(@JsonProperty("wantsToAttend") String wantsToAttend,
this.agreeLessNotice = agreeLessNotice;
this.hearingRoute = hearingRoute;
this.other = other;
this.hmcHearingType = hmcHearingType;
}

@JsonIgnore
public Boolean isWantsToAttendHearing() {
return StringUtils.isNotBlank(wantsToAttend) && wantsToAttend.equalsIgnoreCase("yes");
return StringUtils.isNotBlank(wantsToAttend) && wantsToAttend.toLowerCase().equals("yes");
}

@JsonIgnore
public Boolean isAgreeLessNotice() {
return StringUtils.isNotBlank(agreeLessNotice) && agreeLessNotice.equalsIgnoreCase("yes");
return StringUtils.isNotBlank(agreeLessNotice) && agreeLessNotice.toLowerCase().equals("yes");
}

public Boolean wantsSignLanguageInterpreter() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class OverrideFields {
private HearingWindow hearingWindow;
private YesNo autoList;
private List<CcdValue<CcdValue<String>>> hearingVenueEpimsIds;
private HmcHearingType hmcHearingType;

@SuppressWarnings("unused")
@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,6 @@ public class SscsCaseData implements CaseData {

private YesNo ignoreCallbackWarnings;

@JsonInclude(JsonInclude.Include.NON_NULL)
private YesNo selectNextHmcHearingType;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty("hmcHearingType")
private HmcHearingType hmcHearingType;

@JsonIgnore
private EventDetails getLatestEvent() {
return events != null && !events.isEmpty() ? events.get(0).getValue() : null;
Expand Down

This file was deleted.

0 comments on commit e59dd2e

Please sign in to comment.