• 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

16.67
/src/main/java/com/box/sdkgen/schemas/termsofserviceuserstatus/TermsOfServiceUserStatus.java
1
package com.box.sdkgen.schemas.termsofserviceuserstatus;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.termsofservicebase.TermsOfServiceBase;
7
import com.box.sdkgen.schemas.usermini.UserMini;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Date;
14
import java.util.Objects;
15

16
@JsonFilter("nullablePropertyFilter")
17
public class TermsOfServiceUserStatus extends SerializableObject {
18

19
  protected final String id;
20

21
  @JsonDeserialize(
22
      using = TermsOfServiceUserStatusTypeField.TermsOfServiceUserStatusTypeFieldDeserializer.class)
23
  @JsonSerialize(
24
      using = TermsOfServiceUserStatusTypeField.TermsOfServiceUserStatusTypeFieldSerializer.class)
25
  protected EnumWrapper<TermsOfServiceUserStatusTypeField> type;
26

27
  protected TermsOfServiceBase tos;
28

29
  protected UserMini user;
30

31
  @JsonProperty("is_accepted")
32
  protected Boolean isAccepted;
33

34
  @JsonProperty("created_at")
35
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
36
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
37
  protected Date createdAt;
38

39
  @JsonProperty("modified_at")
40
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
41
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
42
  protected Date modifiedAt;
43

44
  public TermsOfServiceUserStatus(@JsonProperty("id") String id) {
45
    super();
1✔
46
    this.id = id;
1✔
47
    this.type =
1✔
48
        new EnumWrapper<TermsOfServiceUserStatusTypeField>(
49
            TermsOfServiceUserStatusTypeField.TERMS_OF_SERVICE_USER_STATUS);
50
  }
1✔
51

52
  protected TermsOfServiceUserStatus(Builder builder) {
53
    super();
×
54
    this.id = builder.id;
×
55
    this.type = builder.type;
×
56
    this.tos = builder.tos;
×
57
    this.user = builder.user;
×
58
    this.isAccepted = builder.isAccepted;
×
UNCOV
59
    this.createdAt = builder.createdAt;
×
UNCOV
60
    this.modifiedAt = builder.modifiedAt;
×
UNCOV
61
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
62
  }
×
63

64
  public String getId() {
65
    return id;
1✔
66
  }
67

68
  public EnumWrapper<TermsOfServiceUserStatusTypeField> getType() {
69
    return type;
1✔
70
  }
71

72
  public TermsOfServiceBase getTos() {
73
    return tos;
1✔
74
  }
75

76
  public UserMini getUser() {
77
    return user;
1✔
78
  }
79

80
  public Boolean getIsAccepted() {
81
    return isAccepted;
1✔
82
  }
83

84
  public Date getCreatedAt() {
85
    return createdAt;
×
86
  }
87

88
  public Date getModifiedAt() {
UNCOV
89
    return modifiedAt;
×
90
  }
91

92
  @Override
93
  public boolean equals(Object o) {
94
    if (this == o) {
×
UNCOV
95
      return true;
×
96
    }
97
    if (o == null || getClass() != o.getClass()) {
×
98
      return false;
×
99
    }
100
    TermsOfServiceUserStatus casted = (TermsOfServiceUserStatus) o;
×
101
    return Objects.equals(id, casted.id)
×
102
        && Objects.equals(type, casted.type)
×
103
        && Objects.equals(tos, casted.tos)
×
UNCOV
104
        && Objects.equals(user, casted.user)
×
UNCOV
105
        && Objects.equals(isAccepted, casted.isAccepted)
×
UNCOV
106
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
107
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
108
  }
109

110
  @Override
111
  public int hashCode() {
UNCOV
112
    return Objects.hash(id, type, tos, user, isAccepted, createdAt, modifiedAt);
×
113
  }
114

115
  @Override
116
  public String toString() {
UNCOV
117
    return "TermsOfServiceUserStatus{"
×
118
        + "id='"
119
        + id
120
        + '\''
121
        + ", "
122
        + "type='"
123
        + type
124
        + '\''
125
        + ", "
126
        + "tos='"
127
        + tos
128
        + '\''
129
        + ", "
130
        + "user='"
131
        + user
132
        + '\''
133
        + ", "
134
        + "isAccepted='"
135
        + isAccepted
136
        + '\''
137
        + ", "
138
        + "createdAt='"
139
        + createdAt
140
        + '\''
141
        + ", "
142
        + "modifiedAt='"
143
        + modifiedAt
144
        + '\''
145
        + "}";
146
  }
147

148
  public static class Builder extends NullableFieldTracker {
149

150
    protected final String id;
151

152
    protected EnumWrapper<TermsOfServiceUserStatusTypeField> type;
153

154
    protected TermsOfServiceBase tos;
155

156
    protected UserMini user;
157

158
    protected Boolean isAccepted;
159

160
    protected Date createdAt;
161

162
    protected Date modifiedAt;
163

164
    public Builder(String id) {
165
      super();
×
UNCOV
166
      this.id = id;
×
UNCOV
167
      this.type =
×
168
          new EnumWrapper<TermsOfServiceUserStatusTypeField>(
169
              TermsOfServiceUserStatusTypeField.TERMS_OF_SERVICE_USER_STATUS);
UNCOV
170
    }
×
171

172
    public Builder type(TermsOfServiceUserStatusTypeField type) {
173
      this.type = new EnumWrapper<TermsOfServiceUserStatusTypeField>(type);
×
174
      return this;
×
175
    }
176

177
    public Builder type(EnumWrapper<TermsOfServiceUserStatusTypeField> type) {
178
      this.type = type;
×
179
      return this;
×
180
    }
181

182
    public Builder tos(TermsOfServiceBase tos) {
183
      this.tos = tos;
×
184
      return this;
×
185
    }
186

187
    public Builder user(UserMini user) {
188
      this.user = user;
×
189
      return this;
×
190
    }
191

192
    public Builder isAccepted(Boolean isAccepted) {
193
      this.isAccepted = isAccepted;
×
194
      return this;
×
195
    }
196

197
    public Builder createdAt(Date createdAt) {
198
      this.createdAt = createdAt;
×
199
      return this;
×
200
    }
201

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

207
    public TermsOfServiceUserStatus build() {
UNCOV
208
      return new TermsOfServiceUserStatus(this);
×
209
    }
210
  }
211
}
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