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

Adyen / adyen-java-api-library / #2660

18 Sep 2023 12:27PM UTC coverage: 13.146%. First build
#2660

push

web-flow
Merge fdf590561 into ba706cfa8

2480 of 2480 new or added lines in 54 files covered. (100.0%)

10283 of 78224 relevant lines covered (13.15%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java
1
/*
2
 * Configuration webhooks
3
 *
4
 * The version of the OpenAPI document: 1
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.configurationwebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.configurationwebhooks.CapabilityProblemEntityRecursive;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import java.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * CapabilityProblemEntity
35
 */
36
@JsonPropertyOrder({
37
  CapabilityProblemEntity.JSON_PROPERTY_DOCUMENTS,
38
  CapabilityProblemEntity.JSON_PROPERTY_ID,
39
  CapabilityProblemEntity.JSON_PROPERTY_OWNER,
40
  CapabilityProblemEntity.JSON_PROPERTY_TYPE
41
})
42

43
public class CapabilityProblemEntity {
44
  public static final String JSON_PROPERTY_DOCUMENTS = "documents";
45
  private List<String> documents = null;
×
46

47
  public static final String JSON_PROPERTY_ID = "id";
48
  private String id;
49

50
  public static final String JSON_PROPERTY_OWNER = "owner";
51
  private CapabilityProblemEntityRecursive owner;
52

53
  /**
54
   * Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.
55
   */
56
  public enum TypeEnum {
×
57
    BANKACCOUNT("BankAccount"),
×
58
    
59
    DOCUMENT("Document"),
×
60
    
61
    LEGALENTITY("LegalEntity");
×
62

63
    private String value;
64

65
    TypeEnum(String value) {
×
66
      this.value = value;
×
67
    }
×
68

69
    @JsonValue
70
    public String getValue() {
71
      return value;
×
72
    }
73

74
    @Override
75
    public String toString() {
76
      return String.valueOf(value);
×
77
    }
78

79
    @JsonCreator
80
    public static TypeEnum fromValue(String value) {
81
      for (TypeEnum b : TypeEnum.values()) {
×
82
        if (b.value.equals(value)) {
×
83
          return b;
×
84
        }
85
      }
86
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
87
    }
88
  }
89

90
  public static final String JSON_PROPERTY_TYPE = "type";
91
  private TypeEnum type;
92

93
  public CapabilityProblemEntity() { 
×
94
  }
×
95

96
  public CapabilityProblemEntity documents(List<String> documents) {
97
    this.documents = documents;
×
98
    return this;
×
99
  }
100

101
  public CapabilityProblemEntity addDocumentsItem(String documentsItem) {
102
    if (this.documents == null) {
×
103
      this.documents = new ArrayList<>();
×
104
    }
105
    this.documents.add(documentsItem);
×
106
    return this;
×
107
  }
108

109
   /**
110
   * List of document IDs to which the verification errors related to the capabilities correspond to.
111
   * @return documents
112
  **/
113
  @ApiModelProperty(value = "List of document IDs to which the verification errors related to the capabilities correspond to.")
114
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116

117
  public List<String> getDocuments() {
118
    return documents;
×
119
  }
120

121

122
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124
  public void setDocuments(List<String> documents) {
125
    this.documents = documents;
×
126
  }
×
127

128

129
  public CapabilityProblemEntity id(String id) {
130
    this.id = id;
×
131
    return this;
×
132
  }
133

134
   /**
135
   * The ID of the entity.
136
   * @return id
137
  **/
138
  @ApiModelProperty(value = "The ID of the entity.")
139
  @JsonProperty(JSON_PROPERTY_ID)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141

142
  public String getId() {
143
    return id;
×
144
  }
145

146

147
  @JsonProperty(JSON_PROPERTY_ID)
148
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
149
  public void setId(String id) {
150
    this.id = id;
×
151
  }
×
152

153

154
  public CapabilityProblemEntity owner(CapabilityProblemEntityRecursive owner) {
155
    this.owner = owner;
×
156
    return this;
×
157
  }
158

159
   /**
160
   * Get owner
161
   * @return owner
162
  **/
163
  @ApiModelProperty(value = "")
164
  @JsonProperty(JSON_PROPERTY_OWNER)
165
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
166

167
  public CapabilityProblemEntityRecursive getOwner() {
168
    return owner;
×
169
  }
170

171

172
  @JsonProperty(JSON_PROPERTY_OWNER)
173
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
174
  public void setOwner(CapabilityProblemEntityRecursive owner) {
175
    this.owner = owner;
×
176
  }
×
177

178

179
  public CapabilityProblemEntity type(TypeEnum type) {
180
    this.type = type;
×
181
    return this;
×
182
  }
183

184
   /**
185
   * Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.
186
   * @return type
187
  **/
188
  @ApiModelProperty(value = "Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.")
189
  @JsonProperty(JSON_PROPERTY_TYPE)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191

192
  public TypeEnum getType() {
193
    return type;
×
194
  }
195

196

197
  @JsonProperty(JSON_PROPERTY_TYPE)
198
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
199
  public void setType(TypeEnum type) {
200
    this.type = type;
×
201
  }
×
202

203

204
  /**
205
   * Return true if this CapabilityProblemEntity object is equal to o.
206
   */
207
  @Override
208
  public boolean equals(Object o) {
209
    if (this == o) {
×
210
      return true;
×
211
    }
212
    if (o == null || getClass() != o.getClass()) {
×
213
      return false;
×
214
    }
215
    CapabilityProblemEntity capabilityProblemEntity = (CapabilityProblemEntity) o;
×
216
    return Objects.equals(this.documents, capabilityProblemEntity.documents) &&
×
217
        Objects.equals(this.id, capabilityProblemEntity.id) &&
×
218
        Objects.equals(this.owner, capabilityProblemEntity.owner) &&
×
219
        Objects.equals(this.type, capabilityProblemEntity.type);
×
220
  }
221

222
  @Override
223
  public int hashCode() {
224
    return Objects.hash(documents, id, owner, type);
×
225
  }
226

227
  @Override
228
  public String toString() {
229
    StringBuilder sb = new StringBuilder();
×
230
    sb.append("class CapabilityProblemEntity {\n");
×
231
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
×
232
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
233
    sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
×
234
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
235
    sb.append("}");
×
236
    return sb.toString();
×
237
  }
238

239
  /**
240
   * Convert the given object to string with each line indented by 4 spaces
241
   * (except the first line).
242
   */
243
  private String toIndentedString(Object o) {
244
    if (o == null) {
×
245
      return "null";
×
246
    }
247
    return o.toString().replace("\n", "\n    ");
×
248
  }
249

250
/**
251
   * Create an instance of CapabilityProblemEntity given an JSON string
252
   *
253
   * @param jsonString JSON string
254
   * @return An instance of CapabilityProblemEntity
255
   * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntity
256
   */
257
  public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException {
258
    return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class);
×
259
  }
260
/**
261
  * Convert an instance of CapabilityProblemEntity to an JSON string
262
  *
263
  * @return JSON string
264
  */
265
  public String toJson() throws JsonProcessingException {
266
    return JSON.getMapper().writeValueAsString(this);
×
267
  }
268
}
269

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