From f444d6c6ae0d1606f6912e19fecafef87c9ad9ec Mon Sep 17 00:00:00 2001 From: x_gruszma1 Date: Tue, 20 Apr 2021 16:23:42 +0200 Subject: [PATCH] PB-73106 fix SDK test related to DataManagement --- .../esl/api/model/TransactionRetention.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sdk/src/main/java/com/silanis/esl/api/model/TransactionRetention.java b/sdk/src/main/java/com/silanis/esl/api/model/TransactionRetention.java index b878519d8..8f584d82b 100644 --- a/sdk/src/main/java/com/silanis/esl/api/model/TransactionRetention.java +++ b/sdk/src/main/java/com/silanis/esl/api/model/TransactionRetention.java @@ -26,6 +26,8 @@ public class TransactionRetention extends Model { private static final String FIELD_LIFETIMETOTAL = "lifetimeTotal"; @JsonIgnore private static final String FIELD_LIFETIMEUNTILCOMPLETION = "lifetimeUntilCompletion"; + @JsonIgnore + private static final String FIELD_INCLUDESENT = "includeSent"; private Integer draft; private Integer sent; @@ -36,11 +38,12 @@ public class TransactionRetention extends Model { private Integer expired; private Integer lifetimeTotal; private Integer lifetimeUntilCompletion; + private Boolean includeSent; public TransactionRetention() {} public TransactionRetention(Integer draft, Integer sent, Integer completed, Integer archived, - Integer declined, Integer optedOut, Integer expired) { + Integer declined, Integer optedOut, Integer expired, Boolean includeSent) { this.draft = draft; this.sent = sent; this.completed = completed; @@ -48,6 +51,7 @@ public TransactionRetention(Integer draft, Integer sent, Integer completed, Inte this.declined = declined; this.optedOut = optedOut; this.expired = expired; + this.includeSent = includeSent; } @@ -149,4 +153,15 @@ public TransactionRetention setLifetimeUntilCompletion(Integer lifetimeUntilComp setDirty(FIELD_LIFETIMEUNTILCOMPLETION); return this; } + + public Boolean getIncludeSent() { + return includeSent; + } + + public TransactionRetention setIncludeSent(Boolean includeSent) { + throwOnNull(FIELD_INCLUDESENT, includeSent); + this.includeSent = includeSent; + setDirty(FIELD_INCLUDESENT); + return this; + } }