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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

2.6
/src/main/java/com/box/sdkgen/schemas/templatesigner/TemplateSigner.java
1
package com.box.sdkgen.schemas.templatesigner;
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.schemas.templatesignerinput.TemplateSignerInput;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.List;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class TemplateSigner extends SerializableObject {
17

18
  protected List<TemplateSignerInput> inputs;
19

20
  @Nullable protected String email;
21

22
  @JsonDeserialize(using = TemplateSignerRoleField.TemplateSignerRoleFieldDeserializer.class)
23
  @JsonSerialize(using = TemplateSignerRoleField.TemplateSignerRoleFieldSerializer.class)
24
  protected EnumWrapper<TemplateSignerRoleField> role;
25

26
  @JsonProperty("is_in_person")
27
  protected Boolean isInPerson;
28

29
  protected Long order;
30

31
  @JsonProperty("signer_group_id")
32
  @Nullable
33
  protected String signerGroupId;
34

35
  @Nullable protected String label;
36

37
  @JsonProperty("public_id")
38
  protected String publicId;
39

40
  @JsonProperty("is_password_required")
41
  @Nullable
42
  protected Boolean isPasswordRequired;
43

44
  @JsonProperty("is_phone_number_required")
45
  @Nullable
46
  protected Boolean isPhoneNumberRequired;
47

48
  @JsonProperty("login_required")
49
  @Nullable
50
  protected Boolean loginRequired;
51

52
  public TemplateSigner() {
53
    super();
1✔
54
  }
1✔
55

56
  protected TemplateSigner(Builder builder) {
57
    super();
×
58
    this.inputs = builder.inputs;
×
59
    this.email = builder.email;
×
60
    this.role = builder.role;
×
61
    this.isInPerson = builder.isInPerson;
×
UNCOV
62
    this.order = builder.order;
×
UNCOV
63
    this.signerGroupId = builder.signerGroupId;
×
64
    this.label = builder.label;
×
UNCOV
65
    this.publicId = builder.publicId;
×
UNCOV
66
    this.isPasswordRequired = builder.isPasswordRequired;
×
UNCOV
67
    this.isPhoneNumberRequired = builder.isPhoneNumberRequired;
×
68
    this.loginRequired = builder.loginRequired;
×
UNCOV
69
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
70
  }
×
71

72
  public List<TemplateSignerInput> getInputs() {
UNCOV
73
    return inputs;
×
74
  }
75

76
  public String getEmail() {
UNCOV
77
    return email;
×
78
  }
79

80
  public EnumWrapper<TemplateSignerRoleField> getRole() {
UNCOV
81
    return role;
×
82
  }
83

84
  public Boolean getIsInPerson() {
UNCOV
85
    return isInPerson;
×
86
  }
87

88
  public Long getOrder() {
UNCOV
89
    return order;
×
90
  }
91

92
  public String getSignerGroupId() {
UNCOV
93
    return signerGroupId;
×
94
  }
95

96
  public String getLabel() {
UNCOV
97
    return label;
×
98
  }
99

100
  public String getPublicId() {
UNCOV
101
    return publicId;
×
102
  }
103

104
  public Boolean getIsPasswordRequired() {
UNCOV
105
    return isPasswordRequired;
×
106
  }
107

108
  public Boolean getIsPhoneNumberRequired() {
109
    return isPhoneNumberRequired;
×
110
  }
111

112
  public Boolean getLoginRequired() {
113
    return loginRequired;
×
114
  }
115

116
  @Override
117
  public boolean equals(Object o) {
118
    if (this == o) {
×
119
      return true;
×
120
    }
121
    if (o == null || getClass() != o.getClass()) {
×
122
      return false;
×
123
    }
124
    TemplateSigner casted = (TemplateSigner) o;
×
125
    return Objects.equals(inputs, casted.inputs)
×
126
        && Objects.equals(email, casted.email)
×
UNCOV
127
        && Objects.equals(role, casted.role)
×
UNCOV
128
        && Objects.equals(isInPerson, casted.isInPerson)
×
UNCOV
129
        && Objects.equals(order, casted.order)
×
UNCOV
130
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
131
        && Objects.equals(label, casted.label)
×
UNCOV
132
        && Objects.equals(publicId, casted.publicId)
×
UNCOV
133
        && Objects.equals(isPasswordRequired, casted.isPasswordRequired)
×
UNCOV
134
        && Objects.equals(isPhoneNumberRequired, casted.isPhoneNumberRequired)
×
UNCOV
135
        && Objects.equals(loginRequired, casted.loginRequired);
×
136
  }
137

138
  @Override
139
  public int hashCode() {
UNCOV
140
    return Objects.hash(
×
141
        inputs,
142
        email,
143
        role,
144
        isInPerson,
145
        order,
146
        signerGroupId,
147
        label,
148
        publicId,
149
        isPasswordRequired,
150
        isPhoneNumberRequired,
151
        loginRequired);
152
  }
153

154
  @Override
155
  public String toString() {
UNCOV
156
    return "TemplateSigner{"
×
157
        + "inputs='"
158
        + inputs
159
        + '\''
160
        + ", "
161
        + "email='"
162
        + email
163
        + '\''
164
        + ", "
165
        + "role='"
166
        + role
167
        + '\''
168
        + ", "
169
        + "isInPerson='"
170
        + isInPerson
171
        + '\''
172
        + ", "
173
        + "order='"
174
        + order
175
        + '\''
176
        + ", "
177
        + "signerGroupId='"
178
        + signerGroupId
179
        + '\''
180
        + ", "
181
        + "label='"
182
        + label
183
        + '\''
184
        + ", "
185
        + "publicId='"
186
        + publicId
187
        + '\''
188
        + ", "
189
        + "isPasswordRequired='"
190
        + isPasswordRequired
191
        + '\''
192
        + ", "
193
        + "isPhoneNumberRequired='"
194
        + isPhoneNumberRequired
195
        + '\''
196
        + ", "
197
        + "loginRequired='"
198
        + loginRequired
199
        + '\''
200
        + "}";
201
  }
202

UNCOV
203
  public static class Builder extends NullableFieldTracker {
×
204

205
    protected List<TemplateSignerInput> inputs;
206

207
    protected String email;
208

209
    protected EnumWrapper<TemplateSignerRoleField> role;
210

211
    protected Boolean isInPerson;
212

213
    protected Long order;
214

215
    protected String signerGroupId;
216

217
    protected String label;
218

219
    protected String publicId;
220

221
    protected Boolean isPasswordRequired;
222

223
    protected Boolean isPhoneNumberRequired;
224

225
    protected Boolean loginRequired;
226

227
    public Builder inputs(List<TemplateSignerInput> inputs) {
UNCOV
228
      this.inputs = inputs;
×
229
      return this;
×
230
    }
231

232
    public Builder email(String email) {
UNCOV
233
      this.email = email;
×
234
      this.markNullableFieldAsSet("email");
×
235
      return this;
×
236
    }
237

238
    public Builder role(TemplateSignerRoleField role) {
239
      this.role = new EnumWrapper<TemplateSignerRoleField>(role);
×
240
      return this;
×
241
    }
242

243
    public Builder role(EnumWrapper<TemplateSignerRoleField> role) {
244
      this.role = role;
×
245
      return this;
×
246
    }
247

248
    public Builder isInPerson(Boolean isInPerson) {
249
      this.isInPerson = isInPerson;
×
250
      return this;
×
251
    }
252

253
    public Builder order(Long order) {
254
      this.order = order;
×
255
      return this;
×
256
    }
257

258
    public Builder signerGroupId(String signerGroupId) {
259
      this.signerGroupId = signerGroupId;
×
260
      this.markNullableFieldAsSet("signer_group_id");
×
UNCOV
261
      return this;
×
262
    }
263

264
    public Builder label(String label) {
265
      this.label = label;
×
UNCOV
266
      this.markNullableFieldAsSet("label");
×
UNCOV
267
      return this;
×
268
    }
269

270
    public Builder publicId(String publicId) {
UNCOV
271
      this.publicId = publicId;
×
UNCOV
272
      return this;
×
273
    }
274

275
    public Builder isPasswordRequired(Boolean isPasswordRequired) {
UNCOV
276
      this.isPasswordRequired = isPasswordRequired;
×
UNCOV
277
      this.markNullableFieldAsSet("is_password_required");
×
UNCOV
278
      return this;
×
279
    }
280

281
    public Builder isPhoneNumberRequired(Boolean isPhoneNumberRequired) {
UNCOV
282
      this.isPhoneNumberRequired = isPhoneNumberRequired;
×
UNCOV
283
      this.markNullableFieldAsSet("is_phone_number_required");
×
UNCOV
284
      return this;
×
285
    }
286

287
    public Builder loginRequired(Boolean loginRequired) {
UNCOV
288
      this.loginRequired = loginRequired;
×
UNCOV
289
      this.markNullableFieldAsSet("login_required");
×
UNCOV
290
      return this;
×
291
    }
292

293
    public TemplateSigner build() {
UNCOV
294
      return new TemplateSigner(this);
×
295
    }
296
  }
297
}
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