• 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

0.0
/src/main/java/com/adyen/model/marketpaywebhooks/KYCPayoutMethodCheckResult.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
 * KYCPayoutMethodCheckResult
35
 */
36
@JsonPropertyOrder({
37
  KYCPayoutMethodCheckResult.JSON_PROPERTY_CHECKS,
38
  KYCPayoutMethodCheckResult.JSON_PROPERTY_PAYOUT_METHOD_CODE
39
})
40

41
public class KYCPayoutMethodCheckResult {
42
  public static final String JSON_PROPERTY_CHECKS = "checks";
43
  private List<KYCCheckStatusData> checks = null;
×
44

45
  public static final String JSON_PROPERTY_PAYOUT_METHOD_CODE = "payoutMethodCode";
46
  private String payoutMethodCode;
47

48
  public KYCPayoutMethodCheckResult() { 
×
49
  }
×
50

51
  public KYCPayoutMethodCheckResult checks(List<KYCCheckStatusData> checks) {
52
    this.checks = checks;
×
53
    return this;
×
54
  }
55

56
  public KYCPayoutMethodCheckResult addChecksItem(KYCCheckStatusData checksItem) {
57
    if (this.checks == null) {
×
58
      this.checks = new ArrayList<>();
×
59
    }
60
    this.checks.add(checksItem);
×
61
    return this;
×
62
  }
63

64
   /**
65
   * A list of the checks and their statuses.
66
   * @return checks
67
  **/
68
  @ApiModelProperty(value = "A list of the checks and their statuses.")
69
  @JsonProperty(JSON_PROPERTY_CHECKS)
70
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
71

72
  public List<KYCCheckStatusData> getChecks() {
73
    return checks;
×
74
  }
75

76

77
  @JsonProperty(JSON_PROPERTY_CHECKS)
78
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
79
  public void setChecks(List<KYCCheckStatusData> checks) {
80
    this.checks = checks;
×
81
  }
×
82

83

84
  public KYCPayoutMethodCheckResult payoutMethodCode(String payoutMethodCode) {
85
    this.payoutMethodCode = payoutMethodCode;
×
86
    return this;
×
87
  }
88

89
   /**
90
   * The unique ID of the payoput method to which the check applies.
91
   * @return payoutMethodCode
92
  **/
93
  @ApiModelProperty(value = "The unique ID of the payoput method to which the check applies.")
94
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
95
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
96

97
  public String getPayoutMethodCode() {
98
    return payoutMethodCode;
×
99
  }
100

101

102
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104
  public void setPayoutMethodCode(String payoutMethodCode) {
105
    this.payoutMethodCode = payoutMethodCode;
×
106
  }
×
107

108

109
  /**
110
   * Return true if this KYCPayoutMethodCheckResult object is equal to o.
111
   */
112
  @Override
113
  public boolean equals(Object o) {
114
    if (this == o) {
×
115
      return true;
×
116
    }
117
    if (o == null || getClass() != o.getClass()) {
×
118
      return false;
×
119
    }
120
    KYCPayoutMethodCheckResult kyCPayoutMethodCheckResult = (KYCPayoutMethodCheckResult) o;
×
121
    return Objects.equals(this.checks, kyCPayoutMethodCheckResult.checks) &&
×
122
        Objects.equals(this.payoutMethodCode, kyCPayoutMethodCheckResult.payoutMethodCode);
×
123
  }
124

125
  @Override
126
  public int hashCode() {
127
    return Objects.hash(checks, payoutMethodCode);
×
128
  }
129

130
  @Override
131
  public String toString() {
132
    StringBuilder sb = new StringBuilder();
×
133
    sb.append("class KYCPayoutMethodCheckResult {\n");
×
134
    sb.append("    checks: ").append(toIndentedString(checks)).append("\n");
×
135
    sb.append("    payoutMethodCode: ").append(toIndentedString(payoutMethodCode)).append("\n");
×
136
    sb.append("}");
×
137
    return sb.toString();
×
138
  }
139

140
  /**
141
   * Convert the given object to string with each line indented by 4 spaces
142
   * (except the first line).
143
   */
144
  private String toIndentedString(Object o) {
145
    if (o == null) {
×
146
      return "null";
×
147
    }
148
    return o.toString().replace("\n", "\n    ");
×
149
  }
150

151
/**
152
   * Create an instance of KYCPayoutMethodCheckResult given an JSON string
153
   *
154
   * @param jsonString JSON string
155
   * @return An instance of KYCPayoutMethodCheckResult
156
   * @throws JsonProcessingException if the JSON string is invalid with respect to KYCPayoutMethodCheckResult
157
   */
158
  public static KYCPayoutMethodCheckResult fromJson(String jsonString) throws JsonProcessingException {
159
    return JSON.getMapper().readValue(jsonString, KYCPayoutMethodCheckResult.class);
×
160
  }
161
/**
162
  * Convert an instance of KYCPayoutMethodCheckResult to an JSON string
163
  *
164
  * @return JSON string
165
  */
166
  public String toJson() throws JsonProcessingException {
167
    return JSON.getMapper().writeValueAsString(this);
×
168
  }
169
}
170

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