• 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/CapabilityProblemEntityRecursive.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.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import java.util.ArrayList;
27
import java.util.List;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * CapabilityProblemEntityRecursive
34
 */
35
@JsonPropertyOrder({
36
  CapabilityProblemEntityRecursive.JSON_PROPERTY_DOCUMENTS,
37
  CapabilityProblemEntityRecursive.JSON_PROPERTY_ID,
38
  CapabilityProblemEntityRecursive.JSON_PROPERTY_TYPE
39
})
40
@JsonTypeName("CapabilityProblemEntity-recursive")
41

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

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

49
  /**
50
   * Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.
51
   */
52
  public enum TypeEnum {
×
53
    BANKACCOUNT("BankAccount"),
×
54
    
55
    DOCUMENT("Document"),
×
56
    
57
    LEGALENTITY("LegalEntity");
×
58

59
    private String value;
60

61
    TypeEnum(String value) {
×
62
      this.value = value;
×
63
    }
×
64

65
    @JsonValue
66
    public String getValue() {
67
      return value;
×
68
    }
69

70
    @Override
71
    public String toString() {
72
      return String.valueOf(value);
×
73
    }
74

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

86
  public static final String JSON_PROPERTY_TYPE = "type";
87
  private TypeEnum type;
88

89
  public CapabilityProblemEntityRecursive() { 
×
90
  }
×
91

92
  public CapabilityProblemEntityRecursive documents(List<String> documents) {
93
    this.documents = documents;
×
94
    return this;
×
95
  }
96

97
  public CapabilityProblemEntityRecursive addDocumentsItem(String documentsItem) {
98
    if (this.documents == null) {
×
99
      this.documents = new ArrayList<>();
×
100
    }
101
    this.documents.add(documentsItem);
×
102
    return this;
×
103
  }
104

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

113
  public List<String> getDocuments() {
114
    return documents;
×
115
  }
116

117

118
  @JsonProperty(JSON_PROPERTY_DOCUMENTS)
119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120
  public void setDocuments(List<String> documents) {
121
    this.documents = documents;
×
122
  }
×
123

124

125
  public CapabilityProblemEntityRecursive id(String id) {
126
    this.id = id;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * The ID of the entity.
132
   * @return id
133
  **/
134
  @ApiModelProperty(value = "The ID of the entity.")
135
  @JsonProperty(JSON_PROPERTY_ID)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public String getId() {
139
    return id;
×
140
  }
141

142

143
  @JsonProperty(JSON_PROPERTY_ID)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145
  public void setId(String id) {
146
    this.id = id;
×
147
  }
×
148

149

150
  public CapabilityProblemEntityRecursive type(TypeEnum type) {
151
    this.type = type;
×
152
    return this;
×
153
  }
154

155
   /**
156
   * Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.
157
   * @return type
158
  **/
159
  @ApiModelProperty(value = "Type of entity.   Possible values: **LegalEntity**, **BankAccount**, **Document**.")
160
  @JsonProperty(JSON_PROPERTY_TYPE)
161
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
162

163
  public TypeEnum getType() {
164
    return type;
×
165
  }
166

167

168
  @JsonProperty(JSON_PROPERTY_TYPE)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170
  public void setType(TypeEnum type) {
171
    this.type = type;
×
172
  }
×
173

174

175
  /**
176
   * Return true if this CapabilityProblemEntity-recursive object is equal to o.
177
   */
178
  @Override
179
  public boolean equals(Object o) {
180
    if (this == o) {
×
181
      return true;
×
182
    }
183
    if (o == null || getClass() != o.getClass()) {
×
184
      return false;
×
185
    }
186
    CapabilityProblemEntityRecursive capabilityProblemEntityRecursive = (CapabilityProblemEntityRecursive) o;
×
187
    return Objects.equals(this.documents, capabilityProblemEntityRecursive.documents) &&
×
188
        Objects.equals(this.id, capabilityProblemEntityRecursive.id) &&
×
189
        Objects.equals(this.type, capabilityProblemEntityRecursive.type);
×
190
  }
191

192
  @Override
193
  public int hashCode() {
194
    return Objects.hash(documents, id, type);
×
195
  }
196

197
  @Override
198
  public String toString() {
199
    StringBuilder sb = new StringBuilder();
×
200
    sb.append("class CapabilityProblemEntityRecursive {\n");
×
201
    sb.append("    documents: ").append(toIndentedString(documents)).append("\n");
×
202
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
203
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
204
    sb.append("}");
×
205
    return sb.toString();
×
206
  }
207

208
  /**
209
   * Convert the given object to string with each line indented by 4 spaces
210
   * (except the first line).
211
   */
212
  private String toIndentedString(Object o) {
213
    if (o == null) {
×
214
      return "null";
×
215
    }
216
    return o.toString().replace("\n", "\n    ");
×
217
  }
218

219
/**
220
   * Create an instance of CapabilityProblemEntityRecursive given an JSON string
221
   *
222
   * @param jsonString JSON string
223
   * @return An instance of CapabilityProblemEntityRecursive
224
   * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblemEntityRecursive
225
   */
226
  public static CapabilityProblemEntityRecursive fromJson(String jsonString) throws JsonProcessingException {
227
    return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class);
×
228
  }
229
/**
230
  * Convert an instance of CapabilityProblemEntityRecursive to an JSON string
231
  *
232
  * @return JSON string
233
  */
234
  public String toJson() throws JsonProcessingException {
235
    return JSON.getMapper().writeValueAsString(this);
×
236
  }
237
}
238

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