• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.26
/src/main/java/com/box/sdkgen/schemas/signrequestprefilltag/SignRequestPrefillTag.java
1
package com.box.sdkgen.schemas.signrequestprefilltag;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.internal.utils.DateUtils;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.time.OffsetDateTime;
12
import java.util.Objects;
13

14
/**
15
 * Prefill tags are used to prefill placeholders with signer input data. Only one value field can be
16
 * included.
17
 */
18
@JsonFilter("nullablePropertyFilter")
19
public class SignRequestPrefillTag extends SerializableObject {
20

21
  /** This references the ID of a specific tag contained in a file of the signature request. */
22
  @JsonProperty("document_tag_id")
23
  @Nullable
24
  protected String documentTagId;
25

26
  /** Text prefill value. */
27
  @JsonProperty("text_value")
28
  @Nullable
29
  protected String textValue;
30

31
  /** Checkbox prefill value. */
32
  @JsonProperty("checkbox_value")
33
  @Nullable
34
  protected Boolean checkboxValue;
35

36
  /** Date prefill value. */
37
  @JsonProperty("date_value")
38
  @JsonSerialize(using = DateUtils.DateSerializer.class)
39
  @JsonDeserialize(using = DateUtils.DateDeserializer.class)
40
  @Nullable
41
  protected OffsetDateTime dateValue;
42

43
  public SignRequestPrefillTag() {
44
    super();
1✔
45
  }
1✔
46

47
  protected SignRequestPrefillTag(Builder builder) {
48
    super();
1✔
49
    this.documentTagId = builder.documentTagId;
1✔
50
    this.textValue = builder.textValue;
1✔
51
    this.checkboxValue = builder.checkboxValue;
1✔
52
    this.dateValue = builder.dateValue;
1✔
53
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
54
  }
1✔
55

56
  public String getDocumentTagId() {
57
    return documentTagId;
1✔
58
  }
59

60
  public String getTextValue() {
61
    return textValue;
1✔
62
  }
63

64
  public Boolean getCheckboxValue() {
65
    return checkboxValue;
1✔
66
  }
67

68
  public OffsetDateTime getDateValue() {
69
    return dateValue;
1✔
70
  }
71

72
  @Override
73
  public boolean equals(Object o) {
74
    if (this == o) {
×
75
      return true;
×
76
    }
77
    if (o == null || getClass() != o.getClass()) {
×
78
      return false;
×
79
    }
80
    SignRequestPrefillTag casted = (SignRequestPrefillTag) o;
×
81
    return Objects.equals(documentTagId, casted.documentTagId)
×
82
        && Objects.equals(textValue, casted.textValue)
×
83
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
84
        && Objects.equals(dateValue, casted.dateValue);
×
85
  }
86

87
  @Override
88
  public int hashCode() {
89
    return Objects.hash(documentTagId, textValue, checkboxValue, dateValue);
×
90
  }
91

92
  @Override
93
  public String toString() {
94
    return "SignRequestPrefillTag{"
×
95
        + "documentTagId='"
96
        + documentTagId
97
        + '\''
98
        + ", "
99
        + "textValue='"
100
        + textValue
101
        + '\''
102
        + ", "
103
        + "checkboxValue='"
104
        + checkboxValue
105
        + '\''
106
        + ", "
107
        + "dateValue='"
108
        + dateValue
109
        + '\''
110
        + "}";
111
  }
112

113
  public static class Builder extends NullableFieldTracker {
1✔
114

115
    protected String documentTagId;
116

117
    protected String textValue;
118

119
    protected Boolean checkboxValue;
120

121
    protected OffsetDateTime dateValue;
122

123
    public Builder documentTagId(String documentTagId) {
124
      this.documentTagId = documentTagId;
1✔
125
      this.markNullableFieldAsSet("document_tag_id");
1✔
126
      return this;
1✔
127
    }
128

129
    public Builder textValue(String textValue) {
130
      this.textValue = textValue;
×
131
      this.markNullableFieldAsSet("text_value");
×
132
      return this;
×
133
    }
134

135
    public Builder checkboxValue(Boolean checkboxValue) {
136
      this.checkboxValue = checkboxValue;
×
137
      this.markNullableFieldAsSet("checkbox_value");
×
138
      return this;
×
139
    }
140

141
    public Builder dateValue(OffsetDateTime dateValue) {
142
      this.dateValue = dateValue;
1✔
143
      this.markNullableFieldAsSet("date_value");
1✔
144
      return this;
1✔
145
    }
146

147
    public SignRequestPrefillTag build() {
148
      return new SignRequestPrefillTag(this);
1✔
149
    }
150
  }
151
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc