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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 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.util.Date;
11
import java.util.List;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class TemplateSignerInput extends SignRequestPrefillTag {
16

17
  @JsonDeserialize(
18
      using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldDeserializer.class)
19
  @JsonSerialize(using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldSerializer.class)
20
  protected EnumWrapper<TemplateSignerInputTypeField> type;
21

22
  @JsonDeserialize(
23
      using =
24
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldDeserializer.class)
25
  @JsonSerialize(
26
      using =
27
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldSerializer.class)
28
  @JsonProperty("content_type")
29
  protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
30

31
  @JsonProperty("is_required")
32
  protected Boolean isRequired;
33

34
  @JsonProperty("page_index")
35
  protected final long pageIndex;
36

37
  @JsonProperty("document_id")
38
  @Nullable
39
  protected String documentId;
40

41
  @JsonProperty("dropdown_choices")
42
  @Nullable
43
  protected List<String> dropdownChoices;
44

45
  @JsonProperty("group_id")
46
  @Nullable
47
  protected String groupId;
48

49
  protected TemplateSignerInputCoordinatesField coordinates;
50

51
  protected TemplateSignerInputDimensionsField dimensions;
52

53
  @Nullable protected String label;
54

55
  @JsonProperty("read_only")
56
  protected Boolean readOnly;
57

58
  public TemplateSignerInput(@JsonProperty("page_index") long pageIndex) {
59
    super();
1✔
60
    this.pageIndex = pageIndex;
1✔
61
  }
1✔
62

63
  protected TemplateSignerInput(Builder builder) {
64
    super(builder);
×
65
    this.type = builder.type;
×
66
    this.contentType = builder.contentType;
×
67
    this.isRequired = builder.isRequired;
×
68
    this.pageIndex = builder.pageIndex;
×
69
    this.documentId = builder.documentId;
×
70
    this.dropdownChoices = builder.dropdownChoices;
×
UNCOV
71
    this.groupId = builder.groupId;
×
UNCOV
72
    this.coordinates = builder.coordinates;
×
73
    this.dimensions = builder.dimensions;
×
UNCOV
74
    this.label = builder.label;
×
UNCOV
75
    this.readOnly = builder.readOnly;
×
UNCOV
76
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
77
  }
×
78

79
  public EnumWrapper<TemplateSignerInputTypeField> getType() {
UNCOV
80
    return type;
×
81
  }
82

83
  public EnumWrapper<TemplateSignerInputContentTypeField> getContentType() {
UNCOV
84
    return contentType;
×
85
  }
86

87
  public Boolean getIsRequired() {
UNCOV
88
    return isRequired;
×
89
  }
90

91
  public long getPageIndex() {
UNCOV
92
    return pageIndex;
×
93
  }
94

95
  public String getDocumentId() {
UNCOV
96
    return documentId;
×
97
  }
98

99
  public List<String> getDropdownChoices() {
UNCOV
100
    return dropdownChoices;
×
101
  }
102

103
  public String getGroupId() {
UNCOV
104
    return groupId;
×
105
  }
106

107
  public TemplateSignerInputCoordinatesField getCoordinates() {
UNCOV
108
    return coordinates;
×
109
  }
110

111
  public TemplateSignerInputDimensionsField getDimensions() {
UNCOV
112
    return dimensions;
×
113
  }
114

115
  public String getLabel() {
UNCOV
116
    return label;
×
117
  }
118

119
  public Boolean getReadOnly() {
UNCOV
120
    return readOnly;
×
121
  }
122

123
  @Override
124
  public boolean equals(Object o) {
125
    if (this == o) {
×
126
      return true;
×
127
    }
128
    if (o == null || getClass() != o.getClass()) {
×
129
      return false;
×
130
    }
131
    TemplateSignerInput casted = (TemplateSignerInput) o;
×
132
    return Objects.equals(documentTagId, casted.documentTagId)
×
133
        && Objects.equals(textValue, casted.textValue)
×
134
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
135
        && Objects.equals(dateValue, casted.dateValue)
×
136
        && Objects.equals(type, casted.type)
×
137
        && Objects.equals(contentType, casted.contentType)
×
138
        && Objects.equals(isRequired, casted.isRequired)
×
139
        && Objects.equals(pageIndex, casted.pageIndex)
×
UNCOV
140
        && Objects.equals(documentId, casted.documentId)
×
UNCOV
141
        && Objects.equals(dropdownChoices, casted.dropdownChoices)
×
UNCOV
142
        && Objects.equals(groupId, casted.groupId)
×
UNCOV
143
        && Objects.equals(coordinates, casted.coordinates)
×
144
        && Objects.equals(dimensions, casted.dimensions)
×
UNCOV
145
        && Objects.equals(label, casted.label)
×
UNCOV
146
        && Objects.equals(readOnly, casted.readOnly);
×
147
  }
148

149
  @Override
150
  public int hashCode() {
UNCOV
151
    return Objects.hash(
×
152
        documentTagId,
153
        textValue,
154
        checkboxValue,
155
        dateValue,
156
        type,
157
        contentType,
158
        isRequired,
UNCOV
159
        pageIndex,
×
160
        documentId,
161
        dropdownChoices,
162
        groupId,
163
        coordinates,
164
        dimensions,
165
        label,
166
        readOnly);
167
  }
168

169
  @Override
170
  public String toString() {
UNCOV
171
    return "TemplateSignerInput{"
×
172
        + "documentTagId='"
173
        + documentTagId
174
        + '\''
175
        + ", "
176
        + "textValue='"
177
        + textValue
178
        + '\''
179
        + ", "
180
        + "checkboxValue='"
181
        + checkboxValue
182
        + '\''
183
        + ", "
184
        + "dateValue='"
185
        + dateValue
186
        + '\''
187
        + ", "
188
        + "type='"
189
        + type
190
        + '\''
191
        + ", "
192
        + "contentType='"
193
        + contentType
194
        + '\''
195
        + ", "
196
        + "isRequired='"
197
        + isRequired
198
        + '\''
199
        + ", "
200
        + "pageIndex='"
201
        + pageIndex
202
        + '\''
203
        + ", "
204
        + "documentId='"
205
        + documentId
206
        + '\''
207
        + ", "
208
        + "dropdownChoices='"
209
        + dropdownChoices
210
        + '\''
211
        + ", "
212
        + "groupId='"
213
        + groupId
214
        + '\''
215
        + ", "
216
        + "coordinates='"
217
        + coordinates
218
        + '\''
219
        + ", "
220
        + "dimensions='"
221
        + dimensions
222
        + '\''
223
        + ", "
224
        + "label='"
225
        + label
226
        + '\''
227
        + ", "
228
        + "readOnly='"
229
        + readOnly
230
        + '\''
231
        + "}";
232
  }
233

234
  public static class Builder extends SignRequestPrefillTag.Builder {
235

236
    protected EnumWrapper<TemplateSignerInputTypeField> type;
237

238
    protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
239

240
    protected Boolean isRequired;
241

242
    protected final long pageIndex;
243

244
    protected String documentId;
245

246
    protected List<String> dropdownChoices;
247

248
    protected String groupId;
249

250
    protected TemplateSignerInputCoordinatesField coordinates;
251

252
    protected TemplateSignerInputDimensionsField dimensions;
253

254
    protected String label;
255

256
    protected Boolean readOnly;
257

258
    public Builder(long pageIndex) {
UNCOV
259
      super();
×
UNCOV
260
      this.pageIndex = pageIndex;
×
UNCOV
261
    }
×
262

263
    public Builder type(TemplateSignerInputTypeField type) {
UNCOV
264
      this.type = new EnumWrapper<TemplateSignerInputTypeField>(type);
×
UNCOV
265
      return this;
×
266
    }
267

268
    public Builder type(EnumWrapper<TemplateSignerInputTypeField> type) {
UNCOV
269
      this.type = type;
×
UNCOV
270
      return this;
×
271
    }
272

273
    public Builder contentType(TemplateSignerInputContentTypeField contentType) {
UNCOV
274
      this.contentType = new EnumWrapper<TemplateSignerInputContentTypeField>(contentType);
×
UNCOV
275
      return this;
×
276
    }
277

278
    public Builder contentType(EnumWrapper<TemplateSignerInputContentTypeField> contentType) {
UNCOV
279
      this.contentType = contentType;
×
UNCOV
280
      return this;
×
281
    }
282

283
    public Builder isRequired(Boolean isRequired) {
UNCOV
284
      this.isRequired = isRequired;
×
UNCOV
285
      return this;
×
286
    }
287

288
    public Builder documentId(String documentId) {
UNCOV
289
      this.documentId = documentId;
×
UNCOV
290
      this.markNullableFieldAsSet("document_id");
×
UNCOV
291
      return this;
×
292
    }
293

294
    public Builder dropdownChoices(List<String> dropdownChoices) {
UNCOV
295
      this.dropdownChoices = dropdownChoices;
×
UNCOV
296
      this.markNullableFieldAsSet("dropdown_choices");
×
297
      return this;
×
298
    }
299

300
    public Builder groupId(String groupId) {
UNCOV
301
      this.groupId = groupId;
×
302
      this.markNullableFieldAsSet("group_id");
×
303
      return this;
×
304
    }
305

306
    public Builder coordinates(TemplateSignerInputCoordinatesField coordinates) {
307
      this.coordinates = coordinates;
×
308
      return this;
×
309
    }
310

311
    public Builder dimensions(TemplateSignerInputDimensionsField dimensions) {
312
      this.dimensions = dimensions;
×
313
      return this;
×
314
    }
315

316
    public Builder label(String label) {
UNCOV
317
      this.label = label;
×
318
      this.markNullableFieldAsSet("label");
×
319
      return this;
×
320
    }
321

322
    public Builder readOnly(Boolean readOnly) {
UNCOV
323
      this.readOnly = readOnly;
×
324
      return this;
×
325
    }
326

327
    @Override
328
    public Builder documentTagId(String documentTagId) {
UNCOV
329
      this.documentTagId = documentTagId;
×
330
      this.markNullableFieldAsSet("document_tag_id");
×
331
      return this;
×
332
    }
333

334
    @Override
335
    public Builder textValue(String textValue) {
336
      this.textValue = textValue;
×
337
      this.markNullableFieldAsSet("text_value");
×
UNCOV
338
      return this;
×
339
    }
340

341
    @Override
342
    public Builder checkboxValue(Boolean checkboxValue) {
UNCOV
343
      this.checkboxValue = checkboxValue;
×
UNCOV
344
      this.markNullableFieldAsSet("checkbox_value");
×
UNCOV
345
      return this;
×
346
    }
347

348
    @Override
349
    public Builder dateValue(Date dateValue) {
UNCOV
350
      this.dateValue = dateValue;
×
UNCOV
351
      this.markNullableFieldAsSet("date_value");
×
UNCOV
352
      return this;
×
353
    }
354

355
    public TemplateSignerInput build() {
UNCOV
356
      return new TemplateSignerInput(this);
×
357
    }
358
  }
359
}
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