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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 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

36.78
/src/main/java/com/box/sdkgen/schemas/signrequestbase/SignRequestBase.java
1
package com.box.sdkgen.schemas.signrequestbase;
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.signrequestprefilltag.SignRequestPrefillTag;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.List;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class SignRequestBase extends SerializableObject {
14

15
  @JsonProperty("is_document_preparation_needed")
16
  protected Boolean isDocumentPreparationNeeded;
17

18
  @JsonProperty("redirect_url")
19
  @Nullable
20
  protected String redirectUrl;
21

22
  @JsonProperty("declined_redirect_url")
23
  @Nullable
24
  protected String declinedRedirectUrl;
25

26
  @JsonProperty("are_text_signatures_enabled")
27
  protected Boolean areTextSignaturesEnabled;
28

29
  @JsonProperty("email_subject")
30
  @Nullable
31
  protected String emailSubject;
32

33
  @JsonProperty("email_message")
34
  @Nullable
35
  protected String emailMessage;
36

37
  @JsonProperty("are_reminders_enabled")
38
  protected Boolean areRemindersEnabled;
39

40
  protected String name;
41

42
  @JsonProperty("prefill_tags")
43
  protected List<SignRequestPrefillTag> prefillTags;
44

45
  @JsonProperty("days_valid")
46
  @Nullable
47
  protected Long daysValid;
48

49
  @JsonProperty("external_id")
50
  @Nullable
51
  protected String externalId;
52

53
  @JsonProperty("template_id")
54
  @Nullable
55
  protected String templateId;
56

57
  @JsonProperty("external_system_name")
58
  @Nullable
59
  protected String externalSystemName;
60

61
  public SignRequestBase() {
62
    super();
1✔
63
  }
1✔
64

65
  protected SignRequestBase(Builder builder) {
66
    super();
1✔
67
    this.isDocumentPreparationNeeded = builder.isDocumentPreparationNeeded;
1✔
68
    this.redirectUrl = builder.redirectUrl;
1✔
69
    this.declinedRedirectUrl = builder.declinedRedirectUrl;
1✔
70
    this.areTextSignaturesEnabled = builder.areTextSignaturesEnabled;
1✔
71
    this.emailSubject = builder.emailSubject;
1✔
72
    this.emailMessage = builder.emailMessage;
1✔
73
    this.areRemindersEnabled = builder.areRemindersEnabled;
1✔
74
    this.name = builder.name;
1✔
75
    this.prefillTags = builder.prefillTags;
1✔
76
    this.daysValid = builder.daysValid;
1✔
77
    this.externalId = builder.externalId;
1✔
78
    this.templateId = builder.templateId;
1✔
79
    this.externalSystemName = builder.externalSystemName;
1✔
80
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
81
  }
1✔
82

83
  public Boolean getIsDocumentPreparationNeeded() {
84
    return isDocumentPreparationNeeded;
1✔
85
  }
86

87
  public String getRedirectUrl() {
88
    return redirectUrl;
1✔
89
  }
90

91
  public String getDeclinedRedirectUrl() {
92
    return declinedRedirectUrl;
1✔
93
  }
94

95
  public Boolean getAreTextSignaturesEnabled() {
96
    return areTextSignaturesEnabled;
1✔
97
  }
98

99
  public String getEmailSubject() {
100
    return emailSubject;
1✔
101
  }
102

103
  public String getEmailMessage() {
104
    return emailMessage;
1✔
105
  }
106

107
  public Boolean getAreRemindersEnabled() {
108
    return areRemindersEnabled;
1✔
109
  }
110

111
  public String getName() {
112
    return name;
1✔
113
  }
114

115
  public List<SignRequestPrefillTag> getPrefillTags() {
116
    return prefillTags;
1✔
117
  }
118

119
  public Long getDaysValid() {
120
    return daysValid;
1✔
121
  }
122

123
  public String getExternalId() {
124
    return externalId;
1✔
125
  }
126

127
  public String getTemplateId() {
128
    return templateId;
1✔
129
  }
130

131
  public String getExternalSystemName() {
132
    return externalSystemName;
1✔
133
  }
134

135
  @Override
136
  public boolean equals(Object o) {
137
    if (this == o) {
×
138
      return true;
×
139
    }
140
    if (o == null || getClass() != o.getClass()) {
×
141
      return false;
×
142
    }
143
    SignRequestBase casted = (SignRequestBase) o;
×
UNCOV
144
    return Objects.equals(isDocumentPreparationNeeded, casted.isDocumentPreparationNeeded)
×
UNCOV
145
        && Objects.equals(redirectUrl, casted.redirectUrl)
×
UNCOV
146
        && Objects.equals(declinedRedirectUrl, casted.declinedRedirectUrl)
×
UNCOV
147
        && Objects.equals(areTextSignaturesEnabled, casted.areTextSignaturesEnabled)
×
148
        && Objects.equals(emailSubject, casted.emailSubject)
×
UNCOV
149
        && Objects.equals(emailMessage, casted.emailMessage)
×
UNCOV
150
        && Objects.equals(areRemindersEnabled, casted.areRemindersEnabled)
×
UNCOV
151
        && Objects.equals(name, casted.name)
×
UNCOV
152
        && Objects.equals(prefillTags, casted.prefillTags)
×
UNCOV
153
        && Objects.equals(daysValid, casted.daysValid)
×
UNCOV
154
        && Objects.equals(externalId, casted.externalId)
×
UNCOV
155
        && Objects.equals(templateId, casted.templateId)
×
UNCOV
156
        && Objects.equals(externalSystemName, casted.externalSystemName);
×
157
  }
158

159
  @Override
160
  public int hashCode() {
UNCOV
161
    return Objects.hash(
×
162
        isDocumentPreparationNeeded,
163
        redirectUrl,
164
        declinedRedirectUrl,
165
        areTextSignaturesEnabled,
166
        emailSubject,
167
        emailMessage,
168
        areRemindersEnabled,
169
        name,
170
        prefillTags,
171
        daysValid,
172
        externalId,
173
        templateId,
174
        externalSystemName);
175
  }
176

177
  @Override
178
  public String toString() {
UNCOV
179
    return "SignRequestBase{"
×
180
        + "isDocumentPreparationNeeded='"
181
        + isDocumentPreparationNeeded
182
        + '\''
183
        + ", "
184
        + "redirectUrl='"
185
        + redirectUrl
186
        + '\''
187
        + ", "
188
        + "declinedRedirectUrl='"
189
        + declinedRedirectUrl
190
        + '\''
191
        + ", "
192
        + "areTextSignaturesEnabled='"
193
        + areTextSignaturesEnabled
194
        + '\''
195
        + ", "
196
        + "emailSubject='"
197
        + emailSubject
198
        + '\''
199
        + ", "
200
        + "emailMessage='"
201
        + emailMessage
202
        + '\''
203
        + ", "
204
        + "areRemindersEnabled='"
205
        + areRemindersEnabled
206
        + '\''
207
        + ", "
208
        + "name='"
209
        + name
210
        + '\''
211
        + ", "
212
        + "prefillTags='"
213
        + prefillTags
214
        + '\''
215
        + ", "
216
        + "daysValid='"
217
        + daysValid
218
        + '\''
219
        + ", "
220
        + "externalId='"
221
        + externalId
222
        + '\''
223
        + ", "
224
        + "templateId='"
225
        + templateId
226
        + '\''
227
        + ", "
228
        + "externalSystemName='"
229
        + externalSystemName
230
        + '\''
231
        + "}";
232
  }
233

234
  public static class Builder extends NullableFieldTracker {
1✔
235

236
    protected Boolean isDocumentPreparationNeeded;
237

238
    protected String redirectUrl;
239

240
    protected String declinedRedirectUrl;
241

242
    protected Boolean areTextSignaturesEnabled;
243

244
    protected String emailSubject;
245

246
    protected String emailMessage;
247

248
    protected Boolean areRemindersEnabled;
249

250
    protected String name;
251

252
    protected List<SignRequestPrefillTag> prefillTags;
253

254
    protected Long daysValid;
255

256
    protected String externalId;
257

258
    protected String templateId;
259

260
    protected String externalSystemName;
261

262
    public Builder isDocumentPreparationNeeded(Boolean isDocumentPreparationNeeded) {
UNCOV
263
      this.isDocumentPreparationNeeded = isDocumentPreparationNeeded;
×
UNCOV
264
      return this;
×
265
    }
266

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

273
    public Builder declinedRedirectUrl(String declinedRedirectUrl) {
UNCOV
274
      this.declinedRedirectUrl = declinedRedirectUrl;
×
275
      this.markNullableFieldAsSet("declined_redirect_url");
×
276
      return this;
×
277
    }
278

279
    public Builder areTextSignaturesEnabled(Boolean areTextSignaturesEnabled) {
280
      this.areTextSignaturesEnabled = areTextSignaturesEnabled;
×
281
      return this;
×
282
    }
283

284
    public Builder emailSubject(String emailSubject) {
285
      this.emailSubject = emailSubject;
×
286
      this.markNullableFieldAsSet("email_subject");
×
UNCOV
287
      return this;
×
288
    }
289

290
    public Builder emailMessage(String emailMessage) {
291
      this.emailMessage = emailMessage;
×
UNCOV
292
      this.markNullableFieldAsSet("email_message");
×
UNCOV
293
      return this;
×
294
    }
295

296
    public Builder areRemindersEnabled(Boolean areRemindersEnabled) {
UNCOV
297
      this.areRemindersEnabled = areRemindersEnabled;
×
UNCOV
298
      return this;
×
299
    }
300

301
    public Builder name(String name) {
UNCOV
302
      this.name = name;
×
UNCOV
303
      return this;
×
304
    }
305

306
    public Builder prefillTags(List<SignRequestPrefillTag> prefillTags) {
UNCOV
307
      this.prefillTags = prefillTags;
×
UNCOV
308
      return this;
×
309
    }
310

311
    public Builder daysValid(Long daysValid) {
UNCOV
312
      this.daysValid = daysValid;
×
UNCOV
313
      this.markNullableFieldAsSet("days_valid");
×
UNCOV
314
      return this;
×
315
    }
316

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

323
    public Builder templateId(String templateId) {
UNCOV
324
      this.templateId = templateId;
×
UNCOV
325
      this.markNullableFieldAsSet("template_id");
×
UNCOV
326
      return this;
×
327
    }
328

329
    public Builder externalSystemName(String externalSystemName) {
UNCOV
330
      this.externalSystemName = externalSystemName;
×
UNCOV
331
      this.markNullableFieldAsSet("external_system_name");
×
UNCOV
332
      return this;
×
333
    }
334

335
    public SignRequestBase build() {
UNCOV
336
      return new SignRequestBase(this);
×
337
    }
338
  }
339
}
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