From c13dfafc5ebaa7dcec2e63f83d54b9c63ae75f95 Mon Sep 17 00:00:00 2001 From: adamg-hmcts Date: Thu, 16 Jan 2025 15:00:38 +0000 Subject: [PATCH] Add TTL field --- .../uk/gov/hmcts/divorce/divorcecase/model/CaseData.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/uk/gov/hmcts/divorce/divorcecase/model/CaseData.java b/src/main/java/uk/gov/hmcts/divorce/divorcecase/model/CaseData.java index ca6966206f..d34de3be51 100644 --- a/src/main/java/uk/gov/hmcts/divorce/divorcecase/model/CaseData.java +++ b/src/main/java/uk/gov/hmcts/divorce/divorcecase/model/CaseData.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonUnwrapped; import lombok.AccessLevel; import lombok.AllArgsConstructor; @@ -19,6 +20,7 @@ import uk.gov.hmcts.ccd.sdk.type.ListValue; import uk.gov.hmcts.ccd.sdk.type.OrderSummary; import uk.gov.hmcts.ccd.sdk.type.ScannedDocument; +import uk.gov.hmcts.ccd.sdk.type.TTL; import uk.gov.hmcts.ccd.sdk.type.YesOrNo; import uk.gov.hmcts.divorce.caseworker.model.CaseNote; import uk.gov.hmcts.divorce.divorcecase.model.access.AcaSystemUserAccess; @@ -295,6 +297,13 @@ public class CaseData { ) private List> generalEmails; + @JsonProperty("TTL") + @CCD( + label = "Set up TTL", + typeOverride = FieldType.TTL + ) + private TTL retainAndDisposeTimeToLive; + @CCD( label = "Confidential general emails", typeOverride = Collection,