• 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

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
/** The schema for a Signer object used on the body of a Box Sign request object. */
14
@JsonFilter("nullablePropertyFilter")
15
public class SignRequestSigner extends SignRequestCreateSigner {
16

17
  /** Set to `true` if the signer views the document. */
18
  @JsonProperty("has_viewed_document")
19
  protected Boolean hasViewedDocument;
20

21
  /** Final decision made by the signer. */
22
  @JsonProperty("signer_decision")
23
  @Nullable
24
  protected SignRequestSignerSignerDecisionField signerDecision;
25

26
  protected List<SignRequestSignerInput> inputs;
27

28
  /** URL to direct a signer to for signing. */
29
  @JsonProperty("embed_url")
30
  @Nullable
31
  protected String embedUrl;
32

33
  /**
34
   * This URL is specifically designed for signing documents within an HTML `iframe` tag. It will be
35
   * returned in the response only if the `embed_url_external_user_id` parameter was passed in the
36
   * `create Box Sign request` call.
37
   */
38
  @JsonProperty("iframeable_embed_url")
39
  @Nullable
40
  protected String iframeableEmbedUrl;
41

42
  public SignRequestSigner() {
43
    super();
1✔
44
  }
1✔
45

46
  protected SignRequestSigner(Builder builder) {
47
    super(builder);
×
48
    this.hasViewedDocument = builder.hasViewedDocument;
×
49
    this.signerDecision = builder.signerDecision;
×
50
    this.inputs = builder.inputs;
×
51
    this.embedUrl = builder.embedUrl;
×
52
    this.iframeableEmbedUrl = builder.iframeableEmbedUrl;
×
53
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
54
  }
×
55

56
  public Boolean getHasViewedDocument() {
57
    return hasViewedDocument;
×
58
  }
59

60
  public SignRequestSignerSignerDecisionField getSignerDecision() {
61
    return signerDecision;
×
62
  }
63

64
  public List<SignRequestSignerInput> getInputs() {
65
    return inputs;
×
66
  }
67

68
  public String getEmbedUrl() {
69
    return embedUrl;
×
70
  }
71

72
  public String getIframeableEmbedUrl() {
73
    return iframeableEmbedUrl;
×
74
  }
75

76
  @Override
77
  public boolean equals(Object o) {
78
    if (this == o) {
×
79
      return true;
×
80
    }
81
    if (o == null || getClass() != o.getClass()) {
×
82
      return false;
×
83
    }
84
    SignRequestSigner casted = (SignRequestSigner) o;
×
85
    return Objects.equals(email, casted.email)
×
86
        && Objects.equals(role, casted.role)
×
87
        && Objects.equals(isInPerson, casted.isInPerson)
×
88
        && Objects.equals(order, casted.order)
×
89
        && Objects.equals(embedUrlExternalUserId, casted.embedUrlExternalUserId)
×
90
        && Objects.equals(redirectUrl, casted.redirectUrl)
×
91
        && Objects.equals(declinedRedirectUrl, casted.declinedRedirectUrl)
×
92
        && Objects.equals(loginRequired, casted.loginRequired)
×
93
        && Objects.equals(verificationPhoneNumber, casted.verificationPhoneNumber)
×
94
        && Objects.equals(password, casted.password)
×
95
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
96
        && Objects.equals(suppressNotifications, casted.suppressNotifications)
×
97
        && Objects.equals(hasViewedDocument, casted.hasViewedDocument)
×
98
        && Objects.equals(signerDecision, casted.signerDecision)
×
99
        && Objects.equals(inputs, casted.inputs)
×
100
        && Objects.equals(embedUrl, casted.embedUrl)
×
101
        && Objects.equals(iframeableEmbedUrl, casted.iframeableEmbedUrl);
×
102
  }
103

104
  @Override
105
  public int hashCode() {
106
    return Objects.hash(
×
107
        email,
108
        role,
109
        isInPerson,
110
        order,
111
        embedUrlExternalUserId,
112
        redirectUrl,
113
        declinedRedirectUrl,
114
        loginRequired,
115
        verificationPhoneNumber,
116
        password,
117
        signerGroupId,
118
        suppressNotifications,
119
        hasViewedDocument,
120
        signerDecision,
121
        inputs,
122
        embedUrl,
123
        iframeableEmbedUrl);
124
  }
125

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

199
  public static class Builder extends SignRequestCreateSigner.Builder {
×
200

201
    protected Boolean hasViewedDocument;
202

203
    protected SignRequestSignerSignerDecisionField signerDecision;
204

205
    protected List<SignRequestSignerInput> inputs;
206

207
    protected String embedUrl;
208

209
    protected String iframeableEmbedUrl;
210

211
    public Builder hasViewedDocument(Boolean hasViewedDocument) {
212
      this.hasViewedDocument = hasViewedDocument;
×
213
      return this;
×
214
    }
215

216
    public Builder signerDecision(SignRequestSignerSignerDecisionField signerDecision) {
217
      this.signerDecision = signerDecision;
×
218
      this.markNullableFieldAsSet("signer_decision");
×
219
      return this;
×
220
    }
221

222
    public Builder inputs(List<SignRequestSignerInput> inputs) {
223
      this.inputs = inputs;
×
224
      return this;
×
225
    }
226

227
    public Builder embedUrl(String embedUrl) {
228
      this.embedUrl = embedUrl;
×
229
      this.markNullableFieldAsSet("embed_url");
×
230
      return this;
×
231
    }
232

233
    public Builder iframeableEmbedUrl(String iframeableEmbedUrl) {
234
      this.iframeableEmbedUrl = iframeableEmbedUrl;
×
235
      this.markNullableFieldAsSet("iframeable_embed_url");
×
236
      return this;
×
237
    }
238

239
    @Override
240
    public Builder email(String email) {
241
      this.email = email;
×
242
      this.markNullableFieldAsSet("email");
×
243
      return this;
×
244
    }
245

246
    @Override
247
    public Builder role(SignRequestCreateSignerRoleField role) {
248
      this.role = new EnumWrapper<SignRequestCreateSignerRoleField>(role);
×
249
      return this;
×
250
    }
251

252
    @Override
253
    public Builder role(EnumWrapper<SignRequestCreateSignerRoleField> role) {
254
      this.role = role;
×
255
      return this;
×
256
    }
257

258
    @Override
259
    public Builder isInPerson(Boolean isInPerson) {
260
      this.isInPerson = isInPerson;
×
261
      return this;
×
262
    }
263

264
    @Override
265
    public Builder order(Long order) {
266
      this.order = order;
×
267
      return this;
×
268
    }
269

270
    @Override
271
    public Builder embedUrlExternalUserId(String embedUrlExternalUserId) {
272
      this.embedUrlExternalUserId = embedUrlExternalUserId;
×
273
      this.markNullableFieldAsSet("embed_url_external_user_id");
×
274
      return this;
×
275
    }
276

277
    @Override
278
    public Builder redirectUrl(String redirectUrl) {
279
      this.redirectUrl = redirectUrl;
×
280
      this.markNullableFieldAsSet("redirect_url");
×
281
      return this;
×
282
    }
283

284
    @Override
285
    public Builder declinedRedirectUrl(String declinedRedirectUrl) {
286
      this.declinedRedirectUrl = declinedRedirectUrl;
×
287
      this.markNullableFieldAsSet("declined_redirect_url");
×
288
      return this;
×
289
    }
290

291
    @Override
292
    public Builder loginRequired(Boolean loginRequired) {
293
      this.loginRequired = loginRequired;
×
294
      this.markNullableFieldAsSet("login_required");
×
295
      return this;
×
296
    }
297

298
    @Override
299
    public Builder verificationPhoneNumber(String verificationPhoneNumber) {
300
      this.verificationPhoneNumber = verificationPhoneNumber;
×
301
      this.markNullableFieldAsSet("verification_phone_number");
×
302
      return this;
×
303
    }
304

305
    @Override
306
    public Builder password(String password) {
307
      this.password = password;
×
308
      this.markNullableFieldAsSet("password");
×
309
      return this;
×
310
    }
311

312
    @Override
313
    public Builder signerGroupId(String signerGroupId) {
314
      this.signerGroupId = signerGroupId;
×
315
      this.markNullableFieldAsSet("signer_group_id");
×
316
      return this;
×
317
    }
318

319
    @Override
320
    public Builder suppressNotifications(Boolean suppressNotifications) {
321
      this.suppressNotifications = suppressNotifications;
×
322
      this.markNullableFieldAsSet("suppress_notifications");
×
323
      return this;
×
324
    }
325

326
    public SignRequestSigner build() {
327
      return new SignRequestSigner(this);
×
328
    }
329
  }
330
}
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