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

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

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%)

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

0.36 hits per line

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

65.88
/src/main/java/com/box/sdkgen/schemas/signrequestcreatesigner/SignRequestCreateSigner.java
1
package com.box.sdkgen.schemas.signrequestcreatesigner;
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.serialization.json.EnumWrapper;
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.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class SignRequestCreateSigner extends SerializableObject {
15

16
  @Nullable protected String email;
17

18
  @JsonDeserialize(
19
      using = SignRequestCreateSignerRoleField.SignRequestCreateSignerRoleFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = SignRequestCreateSignerRoleField.SignRequestCreateSignerRoleFieldSerializer.class)
22
  protected EnumWrapper<SignRequestCreateSignerRoleField> role;
23

24
  @JsonProperty("is_in_person")
25
  protected Boolean isInPerson;
26

27
  protected Long order;
28

29
  @JsonProperty("embed_url_external_user_id")
30
  @Nullable
31
  protected String embedUrlExternalUserId;
32

33
  @JsonProperty("redirect_url")
34
  @Nullable
35
  protected String redirectUrl;
36

37
  @JsonProperty("declined_redirect_url")
38
  @Nullable
39
  protected String declinedRedirectUrl;
40

41
  @JsonProperty("login_required")
42
  @Nullable
43
  protected Boolean loginRequired;
44

45
  @JsonProperty("verification_phone_number")
46
  @Nullable
47
  protected String verificationPhoneNumber;
48

49
  @Nullable protected String password;
50

51
  @JsonProperty("signer_group_id")
52
  @Nullable
53
  protected String signerGroupId;
54

55
  @JsonProperty("suppress_notifications")
56
  @Nullable
57
  protected Boolean suppressNotifications;
58

59
  public SignRequestCreateSigner() {
60
    super();
1✔
61
  }
1✔
62

63
  protected SignRequestCreateSigner(Builder builder) {
64
    super();
1✔
65
    this.email = builder.email;
1✔
66
    this.role = builder.role;
1✔
67
    this.isInPerson = builder.isInPerson;
1✔
68
    this.order = builder.order;
1✔
69
    this.embedUrlExternalUserId = builder.embedUrlExternalUserId;
1✔
70
    this.redirectUrl = builder.redirectUrl;
1✔
71
    this.declinedRedirectUrl = builder.declinedRedirectUrl;
1✔
72
    this.loginRequired = builder.loginRequired;
1✔
73
    this.verificationPhoneNumber = builder.verificationPhoneNumber;
1✔
74
    this.password = builder.password;
1✔
75
    this.signerGroupId = builder.signerGroupId;
1✔
76
    this.suppressNotifications = builder.suppressNotifications;
1✔
77
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
78
  }
1✔
79

80
  public String getEmail() {
81
    return email;
1✔
82
  }
83

84
  public EnumWrapper<SignRequestCreateSignerRoleField> getRole() {
85
    return role;
1✔
86
  }
87

88
  public Boolean getIsInPerson() {
89
    return isInPerson;
1✔
90
  }
91

92
  public Long getOrder() {
93
    return order;
1✔
94
  }
95

96
  public String getEmbedUrlExternalUserId() {
97
    return embedUrlExternalUserId;
1✔
98
  }
99

100
  public String getRedirectUrl() {
101
    return redirectUrl;
1✔
102
  }
103

104
  public String getDeclinedRedirectUrl() {
105
    return declinedRedirectUrl;
1✔
106
  }
107

108
  public Boolean getLoginRequired() {
109
    return loginRequired;
1✔
110
  }
111

112
  public String getVerificationPhoneNumber() {
113
    return verificationPhoneNumber;
1✔
114
  }
115

116
  public String getPassword() {
117
    return password;
1✔
118
  }
119

120
  public String getSignerGroupId() {
121
    return signerGroupId;
1✔
122
  }
123

124
  public Boolean getSuppressNotifications() {
125
    return suppressNotifications;
1✔
126
  }
127

128
  @Override
129
  public boolean equals(Object o) {
130
    if (this == o) {
×
131
      return true;
×
132
    }
133
    if (o == null || getClass() != o.getClass()) {
×
134
      return false;
×
135
    }
136
    SignRequestCreateSigner casted = (SignRequestCreateSigner) o;
×
UNCOV
137
    return Objects.equals(email, casted.email)
×
UNCOV
138
        && Objects.equals(role, casted.role)
×
UNCOV
139
        && Objects.equals(isInPerson, casted.isInPerson)
×
UNCOV
140
        && Objects.equals(order, casted.order)
×
141
        && Objects.equals(embedUrlExternalUserId, casted.embedUrlExternalUserId)
×
UNCOV
142
        && Objects.equals(redirectUrl, casted.redirectUrl)
×
UNCOV
143
        && Objects.equals(declinedRedirectUrl, casted.declinedRedirectUrl)
×
UNCOV
144
        && Objects.equals(loginRequired, casted.loginRequired)
×
UNCOV
145
        && Objects.equals(verificationPhoneNumber, casted.verificationPhoneNumber)
×
UNCOV
146
        && Objects.equals(password, casted.password)
×
UNCOV
147
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
UNCOV
148
        && Objects.equals(suppressNotifications, casted.suppressNotifications);
×
149
  }
150

151
  @Override
152
  public int hashCode() {
UNCOV
153
    return Objects.hash(
×
154
        email,
155
        role,
156
        isInPerson,
157
        order,
158
        embedUrlExternalUserId,
159
        redirectUrl,
160
        declinedRedirectUrl,
161
        loginRequired,
162
        verificationPhoneNumber,
163
        password,
164
        signerGroupId,
165
        suppressNotifications);
166
  }
167

168
  @Override
169
  public String toString() {
UNCOV
170
    return "SignRequestCreateSigner{"
×
171
        + "email='"
172
        + email
173
        + '\''
174
        + ", "
175
        + "role='"
176
        + role
177
        + '\''
178
        + ", "
179
        + "isInPerson='"
180
        + isInPerson
181
        + '\''
182
        + ", "
183
        + "order='"
184
        + order
185
        + '\''
186
        + ", "
187
        + "embedUrlExternalUserId='"
188
        + embedUrlExternalUserId
189
        + '\''
190
        + ", "
191
        + "redirectUrl='"
192
        + redirectUrl
193
        + '\''
194
        + ", "
195
        + "declinedRedirectUrl='"
196
        + declinedRedirectUrl
197
        + '\''
198
        + ", "
199
        + "loginRequired='"
200
        + loginRequired
201
        + '\''
202
        + ", "
203
        + "verificationPhoneNumber='"
204
        + verificationPhoneNumber
205
        + '\''
206
        + ", "
207
        + "password='"
208
        + password
209
        + '\''
210
        + ", "
211
        + "signerGroupId='"
212
        + signerGroupId
213
        + '\''
214
        + ", "
215
        + "suppressNotifications='"
216
        + suppressNotifications
217
        + '\''
218
        + "}";
219
  }
220

221
  public static class Builder extends NullableFieldTracker {
1✔
222

223
    protected String email;
224

225
    protected EnumWrapper<SignRequestCreateSignerRoleField> role;
226

227
    protected Boolean isInPerson;
228

229
    protected Long order;
230

231
    protected String embedUrlExternalUserId;
232

233
    protected String redirectUrl;
234

235
    protected String declinedRedirectUrl;
236

237
    protected Boolean loginRequired;
238

239
    protected String verificationPhoneNumber;
240

241
    protected String password;
242

243
    protected String signerGroupId;
244

245
    protected Boolean suppressNotifications;
246

247
    public Builder email(String email) {
248
      this.email = email;
1✔
249
      this.markNullableFieldAsSet("email");
1✔
250
      return this;
1✔
251
    }
252

253
    public Builder role(SignRequestCreateSignerRoleField role) {
254
      this.role = new EnumWrapper<SignRequestCreateSignerRoleField>(role);
1✔
255
      return this;
1✔
256
    }
257

258
    public Builder role(EnumWrapper<SignRequestCreateSignerRoleField> role) {
UNCOV
259
      this.role = role;
×
UNCOV
260
      return this;
×
261
    }
262

263
    public Builder isInPerson(Boolean isInPerson) {
264
      this.isInPerson = isInPerson;
1✔
265
      return this;
1✔
266
    }
267

268
    public Builder order(Long order) {
UNCOV
269
      this.order = order;
×
UNCOV
270
      return this;
×
271
    }
272

273
    public Builder embedUrlExternalUserId(String embedUrlExternalUserId) {
274
      this.embedUrlExternalUserId = embedUrlExternalUserId;
1✔
275
      this.markNullableFieldAsSet("embed_url_external_user_id");
1✔
276
      return this;
1✔
277
    }
278

279
    public Builder redirectUrl(String redirectUrl) {
UNCOV
280
      this.redirectUrl = redirectUrl;
×
281
      this.markNullableFieldAsSet("redirect_url");
×
282
      return this;
×
283
    }
284

285
    public Builder declinedRedirectUrl(String declinedRedirectUrl) {
286
      this.declinedRedirectUrl = declinedRedirectUrl;
1✔
287
      this.markNullableFieldAsSet("declined_redirect_url");
1✔
288
      return this;
1✔
289
    }
290

291
    public Builder loginRequired(Boolean loginRequired) {
292
      this.loginRequired = loginRequired;
1✔
293
      this.markNullableFieldAsSet("login_required");
1✔
294
      return this;
1✔
295
    }
296

297
    public Builder verificationPhoneNumber(String verificationPhoneNumber) {
UNCOV
298
      this.verificationPhoneNumber = verificationPhoneNumber;
×
UNCOV
299
      this.markNullableFieldAsSet("verification_phone_number");
×
UNCOV
300
      return this;
×
301
    }
302

303
    public Builder password(String password) {
304
      this.password = password;
1✔
305
      this.markNullableFieldAsSet("password");
1✔
306
      return this;
1✔
307
    }
308

309
    public Builder signerGroupId(String signerGroupId) {
310
      this.signerGroupId = signerGroupId;
1✔
311
      this.markNullableFieldAsSet("signer_group_id");
1✔
312
      return this;
1✔
313
    }
314

315
    public Builder suppressNotifications(Boolean suppressNotifications) {
316
      this.suppressNotifications = suppressNotifications;
1✔
317
      this.markNullableFieldAsSet("suppress_notifications");
1✔
318
      return this;
1✔
319
    }
320

321
    public SignRequestCreateSigner build() {
322
      return new SignRequestCreateSigner(this);
1✔
323
    }
324
  }
325
}
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