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

box / box-java-sdk-gen / #293

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

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

2.25
/src/main/java/com/box/sdkgen/schemas/signrequestsigner/SignRequestSigner.java
1
package com.box.sdkgen.schemas.signrequestsigner;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.schemas.signrequestcreatesigner.SignRequestCreateSigner;
5
import com.box.sdkgen.schemas.signrequestcreatesigner.SignRequestCreateSignerRoleField;
6
import com.box.sdkgen.schemas.signrequestsignerinput.SignRequestSignerInput;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import java.util.List;
11
import java.util.Objects;
12

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

16
  @JsonProperty("has_viewed_document")
17
  protected Boolean hasViewedDocument;
18

19
  @JsonProperty("signer_decision")
20
  @Nullable
21
  protected SignRequestSignerSignerDecisionField signerDecision;
22

23
  protected List<SignRequestSignerInput> inputs;
24

25
  @JsonProperty("embed_url")
26
  @Nullable
27
  protected String embedUrl;
28

29
  @JsonProperty("iframeable_embed_url")
30
  @Nullable
31
  protected String iframeableEmbedUrl;
32

33
  public SignRequestSigner() {
34
    super();
1✔
35
  }
1✔
36

37
  protected SignRequestSigner(Builder builder) {
38
    super(builder);
×
UNCOV
39
    this.hasViewedDocument = builder.hasViewedDocument;
×
UNCOV
40
    this.signerDecision = builder.signerDecision;
×
41
    this.inputs = builder.inputs;
×
UNCOV
42
    this.embedUrl = builder.embedUrl;
×
UNCOV
43
    this.iframeableEmbedUrl = builder.iframeableEmbedUrl;
×
UNCOV
44
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
45
  }
×
46

47
  public Boolean getHasViewedDocument() {
UNCOV
48
    return hasViewedDocument;
×
49
  }
50

51
  public SignRequestSignerSignerDecisionField getSignerDecision() {
UNCOV
52
    return signerDecision;
×
53
  }
54

55
  public List<SignRequestSignerInput> getInputs() {
UNCOV
56
    return inputs;
×
57
  }
58

59
  public String getEmbedUrl() {
UNCOV
60
    return embedUrl;
×
61
  }
62

63
  public String getIframeableEmbedUrl() {
UNCOV
64
    return iframeableEmbedUrl;
×
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
69
    if (this == o) {
×
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
73
      return false;
×
74
    }
75
    SignRequestSigner casted = (SignRequestSigner) o;
×
76
    return Objects.equals(email, casted.email)
×
77
        && Objects.equals(role, casted.role)
×
78
        && Objects.equals(isInPerson, casted.isInPerson)
×
79
        && Objects.equals(order, casted.order)
×
80
        && Objects.equals(embedUrlExternalUserId, casted.embedUrlExternalUserId)
×
81
        && Objects.equals(redirectUrl, casted.redirectUrl)
×
82
        && Objects.equals(declinedRedirectUrl, casted.declinedRedirectUrl)
×
83
        && Objects.equals(loginRequired, casted.loginRequired)
×
84
        && Objects.equals(verificationPhoneNumber, casted.verificationPhoneNumber)
×
85
        && Objects.equals(password, casted.password)
×
UNCOV
86
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
UNCOV
87
        && Objects.equals(suppressNotifications, casted.suppressNotifications)
×
UNCOV
88
        && Objects.equals(hasViewedDocument, casted.hasViewedDocument)
×
UNCOV
89
        && Objects.equals(signerDecision, casted.signerDecision)
×
90
        && Objects.equals(inputs, casted.inputs)
×
UNCOV
91
        && Objects.equals(embedUrl, casted.embedUrl)
×
UNCOV
92
        && Objects.equals(iframeableEmbedUrl, casted.iframeableEmbedUrl);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
UNCOV
97
    return Objects.hash(
×
98
        email,
99
        role,
100
        isInPerson,
101
        order,
102
        embedUrlExternalUserId,
103
        redirectUrl,
104
        declinedRedirectUrl,
105
        loginRequired,
106
        verificationPhoneNumber,
107
        password,
108
        signerGroupId,
109
        suppressNotifications,
110
        hasViewedDocument,
111
        signerDecision,
112
        inputs,
113
        embedUrl,
114
        iframeableEmbedUrl);
115
  }
116

117
  @Override
118
  public String toString() {
UNCOV
119
    return "SignRequestSigner{"
×
120
        + "email='"
121
        + email
122
        + '\''
123
        + ", "
124
        + "role='"
125
        + role
126
        + '\''
127
        + ", "
128
        + "isInPerson='"
129
        + isInPerson
130
        + '\''
131
        + ", "
132
        + "order='"
133
        + order
134
        + '\''
135
        + ", "
136
        + "embedUrlExternalUserId='"
137
        + embedUrlExternalUserId
138
        + '\''
139
        + ", "
140
        + "redirectUrl='"
141
        + redirectUrl
142
        + '\''
143
        + ", "
144
        + "declinedRedirectUrl='"
145
        + declinedRedirectUrl
146
        + '\''
147
        + ", "
148
        + "loginRequired='"
149
        + loginRequired
150
        + '\''
151
        + ", "
152
        + "verificationPhoneNumber='"
153
        + verificationPhoneNumber
154
        + '\''
155
        + ", "
156
        + "password='"
157
        + password
158
        + '\''
159
        + ", "
160
        + "signerGroupId='"
161
        + signerGroupId
162
        + '\''
163
        + ", "
164
        + "suppressNotifications='"
165
        + suppressNotifications
166
        + '\''
167
        + ", "
168
        + "hasViewedDocument='"
169
        + hasViewedDocument
170
        + '\''
171
        + ", "
172
        + "signerDecision='"
173
        + signerDecision
174
        + '\''
175
        + ", "
176
        + "inputs='"
177
        + inputs
178
        + '\''
179
        + ", "
180
        + "embedUrl='"
181
        + embedUrl
182
        + '\''
183
        + ", "
184
        + "iframeableEmbedUrl='"
185
        + iframeableEmbedUrl
186
        + '\''
187
        + "}";
188
  }
189

UNCOV
190
  public static class Builder extends SignRequestCreateSigner.Builder {
×
191

192
    protected Boolean hasViewedDocument;
193

194
    protected SignRequestSignerSignerDecisionField signerDecision;
195

196
    protected List<SignRequestSignerInput> inputs;
197

198
    protected String embedUrl;
199

200
    protected String iframeableEmbedUrl;
201

202
    public Builder hasViewedDocument(Boolean hasViewedDocument) {
UNCOV
203
      this.hasViewedDocument = hasViewedDocument;
×
UNCOV
204
      return this;
×
205
    }
206

207
    public Builder signerDecision(SignRequestSignerSignerDecisionField signerDecision) {
UNCOV
208
      this.signerDecision = signerDecision;
×
UNCOV
209
      this.markNullableFieldAsSet("signer_decision");
×
UNCOV
210
      return this;
×
211
    }
212

213
    public Builder inputs(List<SignRequestSignerInput> inputs) {
UNCOV
214
      this.inputs = inputs;
×
UNCOV
215
      return this;
×
216
    }
217

218
    public Builder embedUrl(String embedUrl) {
UNCOV
219
      this.embedUrl = embedUrl;
×
UNCOV
220
      this.markNullableFieldAsSet("embed_url");
×
UNCOV
221
      return this;
×
222
    }
223

224
    public Builder iframeableEmbedUrl(String iframeableEmbedUrl) {
UNCOV
225
      this.iframeableEmbedUrl = iframeableEmbedUrl;
×
UNCOV
226
      this.markNullableFieldAsSet("iframeable_embed_url");
×
UNCOV
227
      return this;
×
228
    }
229

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

237
    @Override
238
    public Builder role(SignRequestCreateSignerRoleField role) {
UNCOV
239
      this.role = new EnumWrapper<SignRequestCreateSignerRoleField>(role);
×
240
      return this;
×
241
    }
242

243
    @Override
244
    public Builder role(EnumWrapper<SignRequestCreateSignerRoleField> role) {
UNCOV
245
      this.role = role;
×
246
      return this;
×
247
    }
248

249
    @Override
250
    public Builder isInPerson(Boolean isInPerson) {
UNCOV
251
      this.isInPerson = isInPerson;
×
252
      return this;
×
253
    }
254

255
    @Override
256
    public Builder order(Long order) {
UNCOV
257
      this.order = order;
×
258
      return this;
×
259
    }
260

261
    @Override
262
    public Builder embedUrlExternalUserId(String embedUrlExternalUserId) {
UNCOV
263
      this.embedUrlExternalUserId = embedUrlExternalUserId;
×
264
      this.markNullableFieldAsSet("embed_url_external_user_id");
×
265
      return this;
×
266
    }
267

268
    @Override
269
    public Builder redirectUrl(String redirectUrl) {
270
      this.redirectUrl = redirectUrl;
×
271
      this.markNullableFieldAsSet("redirect_url");
×
UNCOV
272
      return this;
×
273
    }
274

275
    @Override
276
    public Builder declinedRedirectUrl(String declinedRedirectUrl) {
277
      this.declinedRedirectUrl = declinedRedirectUrl;
×
UNCOV
278
      this.markNullableFieldAsSet("declined_redirect_url");
×
UNCOV
279
      return this;
×
280
    }
281

282
    @Override
283
    public Builder loginRequired(Boolean loginRequired) {
UNCOV
284
      this.loginRequired = loginRequired;
×
UNCOV
285
      this.markNullableFieldAsSet("login_required");
×
UNCOV
286
      return this;
×
287
    }
288

289
    @Override
290
    public Builder verificationPhoneNumber(String verificationPhoneNumber) {
UNCOV
291
      this.verificationPhoneNumber = verificationPhoneNumber;
×
UNCOV
292
      this.markNullableFieldAsSet("verification_phone_number");
×
UNCOV
293
      return this;
×
294
    }
295

296
    @Override
297
    public Builder password(String password) {
UNCOV
298
      this.password = password;
×
299
      this.markNullableFieldAsSet("password");
×
UNCOV
300
      return this;
×
301
    }
302

303
    @Override
304
    public Builder signerGroupId(String signerGroupId) {
UNCOV
305
      this.signerGroupId = signerGroupId;
×
UNCOV
306
      this.markNullableFieldAsSet("signer_group_id");
×
UNCOV
307
      return this;
×
308
    }
309

310
    @Override
311
    public Builder suppressNotifications(Boolean suppressNotifications) {
UNCOV
312
      this.suppressNotifications = suppressNotifications;
×
UNCOV
313
      this.markNullableFieldAsSet("suppress_notifications");
×
UNCOV
314
      return this;
×
315
    }
316

317
    public SignRequestSigner build() {
UNCOV
318
      return new SignRequestSigner(this);
×
319
    }
320
  }
321
}
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