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

box / box-java-sdk-gen / #295

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

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

0.0
/src/main/java/com/box/sdkgen/schemas/signrequestsignerinput/SignRequestSignerInput.java
1
package com.box.sdkgen.schemas.signrequestsignerinput;
2

3
import com.box.sdkgen.schemas.signrequestprefilltag.SignRequestPrefillTag;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Date;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class SignRequestSignerInput extends SignRequestPrefillTag {
14

15
  @JsonDeserialize(
16
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldDeserializer.class)
17
  @JsonSerialize(
18
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldSerializer.class)
19
  protected EnumWrapper<SignRequestSignerInputTypeField> type;
20

21
  @JsonDeserialize(
22
      using =
23
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldDeserializer
24
              .class)
25
  @JsonSerialize(
26
      using =
27
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldSerializer
28
              .class)
29
  @JsonProperty("content_type")
30
  protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
31

32
  @JsonProperty("page_index")
33
  protected final long pageIndex;
34

35
  @JsonProperty("read_only")
36
  protected Boolean readOnly;
37

38
  public SignRequestSignerInput(@JsonProperty("page_index") long pageIndex) {
39
    super();
×
UNCOV
40
    this.pageIndex = pageIndex;
×
UNCOV
41
  }
×
42

43
  protected SignRequestSignerInput(Builder builder) {
44
    super(builder);
×
45
    this.type = builder.type;
×
46
    this.contentType = builder.contentType;
×
47
    this.pageIndex = builder.pageIndex;
×
UNCOV
48
    this.readOnly = builder.readOnly;
×
UNCOV
49
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
50
  }
×
51

52
  public EnumWrapper<SignRequestSignerInputTypeField> getType() {
UNCOV
53
    return type;
×
54
  }
55

56
  public EnumWrapper<SignRequestSignerInputContentTypeField> getContentType() {
UNCOV
57
    return contentType;
×
58
  }
59

60
  public long getPageIndex() {
UNCOV
61
    return pageIndex;
×
62
  }
63

64
  public Boolean getReadOnly() {
UNCOV
65
    return readOnly;
×
66
  }
67

68
  @Override
69
  public boolean equals(Object o) {
70
    if (this == o) {
×
71
      return true;
×
72
    }
73
    if (o == null || getClass() != o.getClass()) {
×
74
      return false;
×
75
    }
76
    SignRequestSignerInput casted = (SignRequestSignerInput) o;
×
77
    return Objects.equals(documentTagId, casted.documentTagId)
×
78
        && Objects.equals(textValue, casted.textValue)
×
79
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
80
        && Objects.equals(dateValue, casted.dateValue)
×
81
        && Objects.equals(type, casted.type)
×
UNCOV
82
        && Objects.equals(contentType, casted.contentType)
×
UNCOV
83
        && Objects.equals(pageIndex, casted.pageIndex)
×
UNCOV
84
        && Objects.equals(readOnly, casted.readOnly);
×
85
  }
86

87
  @Override
88
  public int hashCode() {
UNCOV
89
    return Objects.hash(
×
UNCOV
90
        documentTagId, textValue, checkboxValue, dateValue, type, contentType, pageIndex, readOnly);
×
91
  }
92

93
  @Override
94
  public String toString() {
UNCOV
95
    return "SignRequestSignerInput{"
×
96
        + "documentTagId='"
97
        + documentTagId
98
        + '\''
99
        + ", "
100
        + "textValue='"
101
        + textValue
102
        + '\''
103
        + ", "
104
        + "checkboxValue='"
105
        + checkboxValue
106
        + '\''
107
        + ", "
108
        + "dateValue='"
109
        + dateValue
110
        + '\''
111
        + ", "
112
        + "type='"
113
        + type
114
        + '\''
115
        + ", "
116
        + "contentType='"
117
        + contentType
118
        + '\''
119
        + ", "
120
        + "pageIndex='"
121
        + pageIndex
122
        + '\''
123
        + ", "
124
        + "readOnly='"
125
        + readOnly
126
        + '\''
127
        + "}";
128
  }
129

130
  public static class Builder extends SignRequestPrefillTag.Builder {
131

132
    protected EnumWrapper<SignRequestSignerInputTypeField> type;
133

134
    protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
135

136
    protected final long pageIndex;
137

138
    protected Boolean readOnly;
139

140
    public Builder(long pageIndex) {
UNCOV
141
      super();
×
UNCOV
142
      this.pageIndex = pageIndex;
×
143
    }
×
144

145
    public Builder type(SignRequestSignerInputTypeField type) {
UNCOV
146
      this.type = new EnumWrapper<SignRequestSignerInputTypeField>(type);
×
UNCOV
147
      return this;
×
148
    }
149

150
    public Builder type(EnumWrapper<SignRequestSignerInputTypeField> type) {
UNCOV
151
      this.type = type;
×
UNCOV
152
      return this;
×
153
    }
154

155
    public Builder contentType(SignRequestSignerInputContentTypeField contentType) {
UNCOV
156
      this.contentType = new EnumWrapper<SignRequestSignerInputContentTypeField>(contentType);
×
UNCOV
157
      return this;
×
158
    }
159

160
    public Builder contentType(EnumWrapper<SignRequestSignerInputContentTypeField> contentType) {
UNCOV
161
      this.contentType = contentType;
×
UNCOV
162
      return this;
×
163
    }
164

165
    public Builder readOnly(Boolean readOnly) {
UNCOV
166
      this.readOnly = readOnly;
×
UNCOV
167
      return this;
×
168
    }
169

170
    @Override
171
    public Builder documentTagId(String documentTagId) {
UNCOV
172
      this.documentTagId = documentTagId;
×
UNCOV
173
      this.markNullableFieldAsSet("document_tag_id");
×
UNCOV
174
      return this;
×
175
    }
176

177
    @Override
178
    public Builder textValue(String textValue) {
UNCOV
179
      this.textValue = textValue;
×
UNCOV
180
      this.markNullableFieldAsSet("text_value");
×
181
      return this;
×
182
    }
183

184
    @Override
185
    public Builder checkboxValue(Boolean checkboxValue) {
UNCOV
186
      this.checkboxValue = checkboxValue;
×
187
      this.markNullableFieldAsSet("checkbox_value");
×
188
      return this;
×
189
    }
190

191
    @Override
192
    public Builder dateValue(Date dateValue) {
UNCOV
193
      this.dateValue = dateValue;
×
UNCOV
194
      this.markNullableFieldAsSet("date_value");
×
UNCOV
195
      return this;
×
196
    }
197

198
    public SignRequestSignerInput build() {
UNCOV
199
      return new SignRequestSignerInput(this);
×
200
    }
201
  }
202
}
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