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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

0.13 hits per line

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

17.24
/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckResult.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.KYCCheckStatusData;
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
 * KYCCheckResult
35
 */
36
@JsonPropertyOrder({
37
  KYCCheckResult.JSON_PROPERTY_CHECKS
38
})
39

40
public class KYCCheckResult {
41
  public static final String JSON_PROPERTY_CHECKS = "checks";
42
  private List<KYCCheckStatusData> checks = null;
1✔
43

44
  public KYCCheckResult() { 
1✔
45
  }
1✔
46

47
  public KYCCheckResult checks(List<KYCCheckStatusData> checks) {
48
    this.checks = checks;
×
49
    return this;
×
50
  }
51

52
  public KYCCheckResult addChecksItem(KYCCheckStatusData checksItem) {
53
    if (this.checks == null) {
×
54
      this.checks = new ArrayList<>();
×
55
    }
56
    this.checks.add(checksItem);
×
57
    return this;
×
58
  }
59

60
   /**
61
   * A list of the checks and their statuses.
62
   * @return checks
63
  **/
64
  @ApiModelProperty(value = "A list of the checks and their statuses.")
65
  @JsonProperty(JSON_PROPERTY_CHECKS)
66
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67

68
  public List<KYCCheckStatusData> getChecks() {
69
    return checks;
×
70
  }
71

72

73
  @JsonProperty(JSON_PROPERTY_CHECKS)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setChecks(List<KYCCheckStatusData> checks) {
76
    this.checks = checks;
1✔
77
  }
1✔
78

79

80
  /**
81
   * Return true if this KYCCheckResult object is equal to o.
82
   */
83
  @Override
84
  public boolean equals(Object o) {
85
    if (this == o) {
×
86
      return true;
×
87
    }
88
    if (o == null || getClass() != o.getClass()) {
×
89
      return false;
×
90
    }
91
    KYCCheckResult kyCCheckResult = (KYCCheckResult) o;
×
92
    return Objects.equals(this.checks, kyCCheckResult.checks);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
97
    return Objects.hash(checks);
×
98
  }
99

100
  @Override
101
  public String toString() {
102
    StringBuilder sb = new StringBuilder();
×
103
    sb.append("class KYCCheckResult {\n");
×
104
    sb.append("    checks: ").append(toIndentedString(checks)).append("\n");
×
105
    sb.append("}");
×
106
    return sb.toString();
×
107
  }
108

109
  /**
110
   * Convert the given object to string with each line indented by 4 spaces
111
   * (except the first line).
112
   */
113
  private String toIndentedString(Object o) {
114
    if (o == null) {
×
115
      return "null";
×
116
    }
117
    return o.toString().replace("\n", "\n    ");
×
118
  }
119

120
/**
121
   * Create an instance of KYCCheckResult given an JSON string
122
   *
123
   * @param jsonString JSON string
124
   * @return An instance of KYCCheckResult
125
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckResult
126
   */
127
  public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingException {
128
    return JSON.getMapper().readValue(jsonString, KYCCheckResult.class);
×
129
  }
130
/**
131
  * Convert an instance of KYCCheckResult to an JSON string
132
  *
133
  * @return JSON string
134
  */
135
  public String toJson() throws JsonProcessingException {
136
    return JSON.getMapper().writeValueAsString(this);
×
137
  }
138
}
139

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

© 2025 Coveralls, Inc