• 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

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.time.OffsetDateTime;
10
import java.util.Objects;
11

12
/** Input created by a Signer on a Sign Request. */
13
@JsonFilter("nullablePropertyFilter")
14
public class SignRequestSignerInput extends SignRequestPrefillTag {
15

16
  /** Type of input. */
17
  @JsonDeserialize(
18
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldSerializer.class)
21
  protected EnumWrapper<SignRequestSignerInputTypeField> type;
22

23
  /** Content type of input. */
24
  @JsonDeserialize(
25
      using =
26
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldDeserializer
27
              .class)
28
  @JsonSerialize(
29
      using =
30
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldSerializer
31
              .class)
32
  @JsonProperty("content_type")
33
  protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
34

35
  /** Index of page that the input is on. */
36
  @JsonProperty("page_index")
37
  protected final long pageIndex;
38

39
  /** Whether this input was defined as read-only(immutable by signers) or not. */
40
  @JsonProperty("read_only")
41
  protected Boolean readOnly;
42

43
  public SignRequestSignerInput(@JsonProperty("page_index") long pageIndex) {
44
    super();
×
45
    this.pageIndex = pageIndex;
×
46
  }
×
47

48
  protected SignRequestSignerInput(Builder builder) {
49
    super(builder);
×
50
    this.type = builder.type;
×
51
    this.contentType = builder.contentType;
×
52
    this.pageIndex = builder.pageIndex;
×
53
    this.readOnly = builder.readOnly;
×
54
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
55
  }
×
56

57
  public EnumWrapper<SignRequestSignerInputTypeField> getType() {
58
    return type;
×
59
  }
60

61
  public EnumWrapper<SignRequestSignerInputContentTypeField> getContentType() {
62
    return contentType;
×
63
  }
64

65
  public long getPageIndex() {
66
    return pageIndex;
×
67
  }
68

69
  public Boolean getReadOnly() {
70
    return readOnly;
×
71
  }
72

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

92
  @Override
93
  public int hashCode() {
94
    return Objects.hash(
×
95
        documentTagId, textValue, checkboxValue, dateValue, type, contentType, pageIndex, readOnly);
×
96
  }
97

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

135
  public static class Builder extends SignRequestPrefillTag.Builder {
136

137
    protected EnumWrapper<SignRequestSignerInputTypeField> type;
138

139
    protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
140

141
    protected final long pageIndex;
142

143
    protected Boolean readOnly;
144

145
    public Builder(long pageIndex) {
146
      super();
×
147
      this.pageIndex = pageIndex;
×
148
    }
×
149

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

155
    public Builder type(EnumWrapper<SignRequestSignerInputTypeField> type) {
156
      this.type = type;
×
157
      return this;
×
158
    }
159

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

165
    public Builder contentType(EnumWrapper<SignRequestSignerInputContentTypeField> contentType) {
166
      this.contentType = contentType;
×
167
      return this;
×
168
    }
169

170
    public Builder readOnly(Boolean readOnly) {
171
      this.readOnly = readOnly;
×
172
      return this;
×
173
    }
174

175
    @Override
176
    public Builder documentTagId(String documentTagId) {
177
      this.documentTagId = documentTagId;
×
178
      this.markNullableFieldAsSet("document_tag_id");
×
179
      return this;
×
180
    }
181

182
    @Override
183
    public Builder textValue(String textValue) {
184
      this.textValue = textValue;
×
185
      this.markNullableFieldAsSet("text_value");
×
186
      return this;
×
187
    }
188

189
    @Override
190
    public Builder checkboxValue(Boolean checkboxValue) {
191
      this.checkboxValue = checkboxValue;
×
192
      this.markNullableFieldAsSet("checkbox_value");
×
193
      return this;
×
194
    }
195

196
    @Override
197
    public Builder dateValue(OffsetDateTime dateValue) {
198
      this.dateValue = dateValue;
×
199
      this.markNullableFieldAsSet("date_value");
×
200
      return this;
×
201
    }
202

203
    public SignRequestSignerInput build() {
204
      return new SignRequestSignerInput(this);
×
205
    }
206
  }
207
}
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