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

33

34
/**
35
 * AccountHolderStatusChangeNotificationContent
36
 */
37
@JsonPropertyOrder({
38
  AccountHolderStatusChangeNotificationContent.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
39
  AccountHolderStatusChangeNotificationContent.JSON_PROPERTY_INVALID_FIELDS,
40
  AccountHolderStatusChangeNotificationContent.JSON_PROPERTY_NEW_STATUS,
41
  AccountHolderStatusChangeNotificationContent.JSON_PROPERTY_OLD_STATUS,
42
  AccountHolderStatusChangeNotificationContent.JSON_PROPERTY_REASON
43
})
44

45
public class AccountHolderStatusChangeNotificationContent {
46
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
47
  private String accountHolderCode;
48

49
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
50
  private List<ErrorFieldType> invalidFields = null;
×
51

52
  public static final String JSON_PROPERTY_NEW_STATUS = "newStatus";
53
  private AccountHolderStatus newStatus;
54

55
  public static final String JSON_PROPERTY_OLD_STATUS = "oldStatus";
56
  private AccountHolderStatus oldStatus;
57

58
  public static final String JSON_PROPERTY_REASON = "reason";
59
  private String reason;
60

61
  public AccountHolderStatusChangeNotificationContent() { 
×
62
  }
×
63

64
  public AccountHolderStatusChangeNotificationContent accountHolderCode(String accountHolderCode) {
65
    this.accountHolderCode = accountHolderCode;
×
66
    return this;
×
67
  }
68

69
   /**
70
   * The code of the account holder.
71
   * @return accountHolderCode
72
  **/
73
  @ApiModelProperty(required = true, value = "The code of the account holder.")
74
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76

77
  public String getAccountHolderCode() {
78
    return accountHolderCode;
×
79
  }
80

81

82
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
83
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84
  public void setAccountHolderCode(String accountHolderCode) {
85
    this.accountHolderCode = accountHolderCode;
×
86
  }
×
87

88

89
  public AccountHolderStatusChangeNotificationContent invalidFields(List<ErrorFieldType> invalidFields) {
90
    this.invalidFields = invalidFields;
×
91
    return this;
×
92
  }
93

94
  public AccountHolderStatusChangeNotificationContent addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
95
    if (this.invalidFields == null) {
×
96
      this.invalidFields = new ArrayList<>();
×
97
    }
98
    this.invalidFields.add(invalidFieldsItem);
×
99
    return this;
×
100
  }
101

102
   /**
103
   * in case the account holder has not been updated, contains account holder fields, that did not pass the validation.
104
   * @return invalidFields
105
  **/
106
  @ApiModelProperty(value = "in case the account holder has not been updated, contains account holder fields, that did not pass the validation.")
107
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109

110
  public List<ErrorFieldType> getInvalidFields() {
111
    return invalidFields;
×
112
  }
113

114

115
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
118
    this.invalidFields = invalidFields;
×
119
  }
×
120

121

122
  public AccountHolderStatusChangeNotificationContent newStatus(AccountHolderStatus newStatus) {
123
    this.newStatus = newStatus;
×
124
    return this;
×
125
  }
126

127
   /**
128
   * Get newStatus
129
   * @return newStatus
130
  **/
131
  @ApiModelProperty(value = "")
132
  @JsonProperty(JSON_PROPERTY_NEW_STATUS)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134

135
  public AccountHolderStatus getNewStatus() {
136
    return newStatus;
×
137
  }
138

139

140
  @JsonProperty(JSON_PROPERTY_NEW_STATUS)
141
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142
  public void setNewStatus(AccountHolderStatus newStatus) {
143
    this.newStatus = newStatus;
×
144
  }
×
145

146

147
  public AccountHolderStatusChangeNotificationContent oldStatus(AccountHolderStatus oldStatus) {
148
    this.oldStatus = oldStatus;
×
149
    return this;
×
150
  }
151

152
   /**
153
   * Get oldStatus
154
   * @return oldStatus
155
  **/
156
  @ApiModelProperty(value = "")
157
  @JsonProperty(JSON_PROPERTY_OLD_STATUS)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159

160
  public AccountHolderStatus getOldStatus() {
161
    return oldStatus;
×
162
  }
163

164

165
  @JsonProperty(JSON_PROPERTY_OLD_STATUS)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167
  public void setOldStatus(AccountHolderStatus oldStatus) {
168
    this.oldStatus = oldStatus;
×
169
  }
×
170

171

172
  public AccountHolderStatusChangeNotificationContent reason(String reason) {
173
    this.reason = reason;
×
174
    return this;
×
175
  }
176

177
   /**
178
   * The reason for the status change.
179
   * @return reason
180
  **/
181
  @ApiModelProperty(value = "The reason for the status change.")
182
  @JsonProperty(JSON_PROPERTY_REASON)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184

185
  public String getReason() {
186
    return reason;
×
187
  }
188

189

190
  @JsonProperty(JSON_PROPERTY_REASON)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192
  public void setReason(String reason) {
193
    this.reason = reason;
×
194
  }
×
195

196

197
  /**
198
   * Return true if this AccountHolderStatusChangeNotificationContent object is equal to o.
199
   */
200
  @Override
201
  public boolean equals(Object o) {
202
    if (this == o) {
×
203
      return true;
×
204
    }
205
    if (o == null || getClass() != o.getClass()) {
×
206
      return false;
×
207
    }
208
    AccountHolderStatusChangeNotificationContent accountHolderStatusChangeNotificationContent = (AccountHolderStatusChangeNotificationContent) o;
×
209
    return Objects.equals(this.accountHolderCode, accountHolderStatusChangeNotificationContent.accountHolderCode) &&
×
210
        Objects.equals(this.invalidFields, accountHolderStatusChangeNotificationContent.invalidFields) &&
×
211
        Objects.equals(this.newStatus, accountHolderStatusChangeNotificationContent.newStatus) &&
×
212
        Objects.equals(this.oldStatus, accountHolderStatusChangeNotificationContent.oldStatus) &&
×
213
        Objects.equals(this.reason, accountHolderStatusChangeNotificationContent.reason);
×
214
  }
215

216
  @Override
217
  public int hashCode() {
218
    return Objects.hash(accountHolderCode, invalidFields, newStatus, oldStatus, reason);
×
219
  }
220

221
  @Override
222
  public String toString() {
223
    StringBuilder sb = new StringBuilder();
×
224
    sb.append("class AccountHolderStatusChangeNotificationContent {\n");
×
225
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
226
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
227
    sb.append("    newStatus: ").append(toIndentedString(newStatus)).append("\n");
×
228
    sb.append("    oldStatus: ").append(toIndentedString(oldStatus)).append("\n");
×
229
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
×
230
    sb.append("}");
×
231
    return sb.toString();
×
232
  }
233

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

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

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