• 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

3.16
/src/main/java/com/box/sdkgen/schemas/templatesignerinput/TemplateSignerInput.java
1
package com.box.sdkgen.schemas.templatesignerinput;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.schemas.signrequestprefilltag.SignRequestPrefillTag;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.time.OffsetDateTime;
11
import java.util.List;
12
import java.util.Objects;
13

14
/** Input created by a Signer on a Template. */
15
@JsonFilter("nullablePropertyFilter")
16
public class TemplateSignerInput extends SignRequestPrefillTag {
17

18
  /** Type of input. */
19
  @JsonDeserialize(
20
      using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldDeserializer.class)
21
  @JsonSerialize(using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldSerializer.class)
22
  protected EnumWrapper<TemplateSignerInputTypeField> type;
23

24
  /** Content type of input. */
25
  @JsonDeserialize(
26
      using =
27
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldDeserializer.class)
28
  @JsonSerialize(
29
      using =
30
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldSerializer.class)
31
  @JsonProperty("content_type")
32
  protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
33

34
  /** Whether or not the input is required. */
35
  @JsonProperty("is_required")
36
  protected Boolean isRequired;
37

38
  /** Index of page that the input is on. */
39
  @JsonProperty("page_index")
40
  protected final long pageIndex;
41

42
  /** Document identifier. */
43
  @JsonProperty("document_id")
44
  @Nullable
45
  protected String documentId;
46

47
  /**
48
   * When the input is of the type `dropdown` this values will be filled with all the dropdown
49
   * options.
50
   */
51
  @JsonProperty("dropdown_choices")
52
  @Nullable
53
  protected List<String> dropdownChoices;
54

55
  /** When the input is of type `radio` they can be grouped to gather with this identifier. */
56
  @JsonProperty("group_id")
57
  @Nullable
58
  protected String groupId;
59

60
  /** Where the input is located on a page. */
61
  protected TemplateSignerInputCoordinatesField coordinates;
62

63
  /** The size of the input. */
64
  protected TemplateSignerInputDimensionsField dimensions;
65

66
  /** The label field is used especially for text, attachment, radio, and checkbox type inputs. */
67
  @Nullable protected String label;
68

69
  /** Whether this input was defined as read-only(immutable by signers) or not. */
70
  @JsonProperty("read_only")
71
  protected Boolean readOnly;
72

73
  public TemplateSignerInput(@JsonProperty("page_index") long pageIndex) {
74
    super();
1✔
75
    this.pageIndex = pageIndex;
1✔
76
  }
1✔
77

78
  protected TemplateSignerInput(Builder builder) {
79
    super(builder);
×
80
    this.type = builder.type;
×
81
    this.contentType = builder.contentType;
×
82
    this.isRequired = builder.isRequired;
×
83
    this.pageIndex = builder.pageIndex;
×
84
    this.documentId = builder.documentId;
×
85
    this.dropdownChoices = builder.dropdownChoices;
×
86
    this.groupId = builder.groupId;
×
87
    this.coordinates = builder.coordinates;
×
88
    this.dimensions = builder.dimensions;
×
89
    this.label = builder.label;
×
90
    this.readOnly = builder.readOnly;
×
91
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
92
  }
×
93

94
  public EnumWrapper<TemplateSignerInputTypeField> getType() {
95
    return type;
×
96
  }
97

98
  public EnumWrapper<TemplateSignerInputContentTypeField> getContentType() {
99
    return contentType;
×
100
  }
101

102
  public Boolean getIsRequired() {
103
    return isRequired;
×
104
  }
105

106
  public long getPageIndex() {
107
    return pageIndex;
×
108
  }
109

110
  public String getDocumentId() {
111
    return documentId;
×
112
  }
113

114
  public List<String> getDropdownChoices() {
115
    return dropdownChoices;
×
116
  }
117

118
  public String getGroupId() {
119
    return groupId;
×
120
  }
121

122
  public TemplateSignerInputCoordinatesField getCoordinates() {
123
    return coordinates;
×
124
  }
125

126
  public TemplateSignerInputDimensionsField getDimensions() {
127
    return dimensions;
×
128
  }
129

130
  public String getLabel() {
131
    return label;
×
132
  }
133

134
  public Boolean getReadOnly() {
135
    return readOnly;
×
136
  }
137

138
  @Override
139
  public boolean equals(Object o) {
140
    if (this == o) {
×
141
      return true;
×
142
    }
143
    if (o == null || getClass() != o.getClass()) {
×
144
      return false;
×
145
    }
146
    TemplateSignerInput casted = (TemplateSignerInput) o;
×
147
    return Objects.equals(documentTagId, casted.documentTagId)
×
148
        && Objects.equals(textValue, casted.textValue)
×
149
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
150
        && Objects.equals(dateValue, casted.dateValue)
×
151
        && Objects.equals(type, casted.type)
×
152
        && Objects.equals(contentType, casted.contentType)
×
153
        && Objects.equals(isRequired, casted.isRequired)
×
154
        && Objects.equals(pageIndex, casted.pageIndex)
×
155
        && Objects.equals(documentId, casted.documentId)
×
156
        && Objects.equals(dropdownChoices, casted.dropdownChoices)
×
157
        && Objects.equals(groupId, casted.groupId)
×
158
        && Objects.equals(coordinates, casted.coordinates)
×
159
        && Objects.equals(dimensions, casted.dimensions)
×
160
        && Objects.equals(label, casted.label)
×
161
        && Objects.equals(readOnly, casted.readOnly);
×
162
  }
163

164
  @Override
165
  public int hashCode() {
166
    return Objects.hash(
×
167
        documentTagId,
168
        textValue,
169
        checkboxValue,
170
        dateValue,
171
        type,
172
        contentType,
173
        isRequired,
174
        pageIndex,
×
175
        documentId,
176
        dropdownChoices,
177
        groupId,
178
        coordinates,
179
        dimensions,
180
        label,
181
        readOnly);
182
  }
183

184
  @Override
185
  public String toString() {
186
    return "TemplateSignerInput{"
×
187
        + "documentTagId='"
188
        + documentTagId
189
        + '\''
190
        + ", "
191
        + "textValue='"
192
        + textValue
193
        + '\''
194
        + ", "
195
        + "checkboxValue='"
196
        + checkboxValue
197
        + '\''
198
        + ", "
199
        + "dateValue='"
200
        + dateValue
201
        + '\''
202
        + ", "
203
        + "type='"
204
        + type
205
        + '\''
206
        + ", "
207
        + "contentType='"
208
        + contentType
209
        + '\''
210
        + ", "
211
        + "isRequired='"
212
        + isRequired
213
        + '\''
214
        + ", "
215
        + "pageIndex='"
216
        + pageIndex
217
        + '\''
218
        + ", "
219
        + "documentId='"
220
        + documentId
221
        + '\''
222
        + ", "
223
        + "dropdownChoices='"
224
        + dropdownChoices
225
        + '\''
226
        + ", "
227
        + "groupId='"
228
        + groupId
229
        + '\''
230
        + ", "
231
        + "coordinates='"
232
        + coordinates
233
        + '\''
234
        + ", "
235
        + "dimensions='"
236
        + dimensions
237
        + '\''
238
        + ", "
239
        + "label='"
240
        + label
241
        + '\''
242
        + ", "
243
        + "readOnly='"
244
        + readOnly
245
        + '\''
246
        + "}";
247
  }
248

249
  public static class Builder extends SignRequestPrefillTag.Builder {
250

251
    protected EnumWrapper<TemplateSignerInputTypeField> type;
252

253
    protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
254

255
    protected Boolean isRequired;
256

257
    protected final long pageIndex;
258

259
    protected String documentId;
260

261
    protected List<String> dropdownChoices;
262

263
    protected String groupId;
264

265
    protected TemplateSignerInputCoordinatesField coordinates;
266

267
    protected TemplateSignerInputDimensionsField dimensions;
268

269
    protected String label;
270

271
    protected Boolean readOnly;
272

273
    public Builder(long pageIndex) {
274
      super();
×
275
      this.pageIndex = pageIndex;
×
276
    }
×
277

278
    public Builder type(TemplateSignerInputTypeField type) {
279
      this.type = new EnumWrapper<TemplateSignerInputTypeField>(type);
×
280
      return this;
×
281
    }
282

283
    public Builder type(EnumWrapper<TemplateSignerInputTypeField> type) {
284
      this.type = type;
×
285
      return this;
×
286
    }
287

288
    public Builder contentType(TemplateSignerInputContentTypeField contentType) {
289
      this.contentType = new EnumWrapper<TemplateSignerInputContentTypeField>(contentType);
×
290
      return this;
×
291
    }
292

293
    public Builder contentType(EnumWrapper<TemplateSignerInputContentTypeField> contentType) {
294
      this.contentType = contentType;
×
295
      return this;
×
296
    }
297

298
    public Builder isRequired(Boolean isRequired) {
299
      this.isRequired = isRequired;
×
300
      return this;
×
301
    }
302

303
    public Builder documentId(String documentId) {
304
      this.documentId = documentId;
×
305
      this.markNullableFieldAsSet("document_id");
×
306
      return this;
×
307
    }
308

309
    public Builder dropdownChoices(List<String> dropdownChoices) {
310
      this.dropdownChoices = dropdownChoices;
×
311
      this.markNullableFieldAsSet("dropdown_choices");
×
312
      return this;
×
313
    }
314

315
    public Builder groupId(String groupId) {
316
      this.groupId = groupId;
×
317
      this.markNullableFieldAsSet("group_id");
×
318
      return this;
×
319
    }
320

321
    public Builder coordinates(TemplateSignerInputCoordinatesField coordinates) {
322
      this.coordinates = coordinates;
×
323
      return this;
×
324
    }
325

326
    public Builder dimensions(TemplateSignerInputDimensionsField dimensions) {
327
      this.dimensions = dimensions;
×
328
      return this;
×
329
    }
330

331
    public Builder label(String label) {
332
      this.label = label;
×
333
      this.markNullableFieldAsSet("label");
×
334
      return this;
×
335
    }
336

337
    public Builder readOnly(Boolean readOnly) {
338
      this.readOnly = readOnly;
×
339
      return this;
×
340
    }
341

342
    @Override
343
    public Builder documentTagId(String documentTagId) {
344
      this.documentTagId = documentTagId;
×
345
      this.markNullableFieldAsSet("document_tag_id");
×
346
      return this;
×
347
    }
348

349
    @Override
350
    public Builder textValue(String textValue) {
351
      this.textValue = textValue;
×
352
      this.markNullableFieldAsSet("text_value");
×
353
      return this;
×
354
    }
355

356
    @Override
357
    public Builder checkboxValue(Boolean checkboxValue) {
358
      this.checkboxValue = checkboxValue;
×
359
      this.markNullableFieldAsSet("checkbox_value");
×
360
      return this;
×
361
    }
362

363
    @Override
364
    public Builder dateValue(OffsetDateTime dateValue) {
365
      this.dateValue = dateValue;
×
366
      this.markNullableFieldAsSet("date_value");
×
367
      return this;
×
368
    }
369

370
    public TemplateSignerInput build() {
371
      return new TemplateSignerInput(this);
×
372
    }
373
  }
374
}
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