• 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

13.56
/src/main/java/com/box/sdkgen/schemas/invite/Invite.java
1
package com.box.sdkgen.schemas.invite;
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.usermini.UserMini;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class Invite extends SerializableObject {
17

18
  protected final String id;
19

20
  @JsonDeserialize(using = InviteTypeField.InviteTypeFieldDeserializer.class)
21
  @JsonSerialize(using = InviteTypeField.InviteTypeFieldSerializer.class)
22
  protected EnumWrapper<InviteTypeField> type;
23

24
  @JsonProperty("invited_to")
25
  protected InviteInvitedToField invitedTo;
26

27
  @JsonProperty("actionable_by")
28
  protected UserMini actionableBy;
29

30
  @JsonProperty("invited_by")
31
  protected UserMini invitedBy;
32

33
  protected String status;
34

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

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

45
  public Invite(@JsonProperty("id") String id) {
46
    super();
1✔
47
    this.id = id;
1✔
48
    this.type = new EnumWrapper<InviteTypeField>(InviteTypeField.INVITE);
1✔
49
  }
1✔
50

51
  protected Invite(Builder builder) {
52
    super();
×
53
    this.id = builder.id;
×
54
    this.type = builder.type;
×
55
    this.invitedTo = builder.invitedTo;
×
56
    this.actionableBy = builder.actionableBy;
×
57
    this.invitedBy = builder.invitedBy;
×
58
    this.status = builder.status;
×
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<InviteTypeField> getType() {
69
    return type;
1✔
70
  }
71

72
  public InviteInvitedToField getInvitedTo() {
73
    return invitedTo;
1✔
74
  }
75

76
  public UserMini getActionableBy() {
77
    return actionableBy;
1✔
78
  }
79

80
  public UserMini getInvitedBy() {
81
    return invitedBy;
×
82
  }
83

84
  public String getStatus() {
85
    return status;
×
86
  }
87

88
  public Date getCreatedAt() {
89
    return createdAt;
×
90
  }
91

92
  public Date getModifiedAt() {
UNCOV
93
    return modifiedAt;
×
94
  }
95

96
  @Override
97
  public boolean equals(Object o) {
98
    if (this == o) {
×
UNCOV
99
      return true;
×
100
    }
101
    if (o == null || getClass() != o.getClass()) {
×
102
      return false;
×
103
    }
104
    Invite casted = (Invite) o;
×
105
    return Objects.equals(id, casted.id)
×
106
        && Objects.equals(type, casted.type)
×
107
        && Objects.equals(invitedTo, casted.invitedTo)
×
108
        && Objects.equals(actionableBy, casted.actionableBy)
×
UNCOV
109
        && Objects.equals(invitedBy, casted.invitedBy)
×
UNCOV
110
        && Objects.equals(status, casted.status)
×
UNCOV
111
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
112
        && Objects.equals(modifiedAt, casted.modifiedAt);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
UNCOV
117
    return Objects.hash(
×
118
        id, type, invitedTo, actionableBy, invitedBy, status, createdAt, modifiedAt);
119
  }
120

121
  @Override
122
  public String toString() {
UNCOV
123
    return "Invite{"
×
124
        + "id='"
125
        + id
126
        + '\''
127
        + ", "
128
        + "type='"
129
        + type
130
        + '\''
131
        + ", "
132
        + "invitedTo='"
133
        + invitedTo
134
        + '\''
135
        + ", "
136
        + "actionableBy='"
137
        + actionableBy
138
        + '\''
139
        + ", "
140
        + "invitedBy='"
141
        + invitedBy
142
        + '\''
143
        + ", "
144
        + "status='"
145
        + status
146
        + '\''
147
        + ", "
148
        + "createdAt='"
149
        + createdAt
150
        + '\''
151
        + ", "
152
        + "modifiedAt='"
153
        + modifiedAt
154
        + '\''
155
        + "}";
156
  }
157

158
  public static class Builder extends NullableFieldTracker {
159

160
    protected final String id;
161

162
    protected EnumWrapper<InviteTypeField> type;
163

164
    protected InviteInvitedToField invitedTo;
165

166
    protected UserMini actionableBy;
167

168
    protected UserMini invitedBy;
169

170
    protected String status;
171

172
    protected Date createdAt;
173

174
    protected Date modifiedAt;
175

176
    public Builder(String id) {
UNCOV
177
      super();
×
178
      this.id = id;
×
179
      this.type = new EnumWrapper<InviteTypeField>(InviteTypeField.INVITE);
×
UNCOV
180
    }
×
181

182
    public Builder type(InviteTypeField type) {
183
      this.type = new EnumWrapper<InviteTypeField>(type);
×
184
      return this;
×
185
    }
186

187
    public Builder type(EnumWrapper<InviteTypeField> type) {
188
      this.type = type;
×
189
      return this;
×
190
    }
191

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

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

202
    public Builder invitedBy(UserMini invitedBy) {
203
      this.invitedBy = invitedBy;
×
204
      return this;
×
205
    }
206

207
    public Builder status(String status) {
208
      this.status = status;
×
209
      return this;
×
210
    }
211

212
    public Builder createdAt(Date createdAt) {
213
      this.createdAt = createdAt;
×
214
      return this;
×
215
    }
216

217
    public Builder modifiedAt(Date modifiedAt) {
218
      this.modifiedAt = modifiedAt;
×
UNCOV
219
      return this;
×
220
    }
221

222
    public Invite build() {
UNCOV
223
      return new Invite(this);
×
224
    }
225
  }
226
}
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