• 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/VerificationErrorRecursive.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.RemediatingAction;
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
 * VerificationErrorRecursive
35
 */
36
@JsonPropertyOrder({
37
  VerificationErrorRecursive.JSON_PROPERTY_CAPABILITIES,
38
  VerificationErrorRecursive.JSON_PROPERTY_CODE,
39
  VerificationErrorRecursive.JSON_PROPERTY_MESSAGE,
40
  VerificationErrorRecursive.JSON_PROPERTY_TYPE,
41
  VerificationErrorRecursive.JSON_PROPERTY_REMEDIATING_ACTIONS
42
})
43
@JsonTypeName("VerificationError-recursive")
44

45
public class VerificationErrorRecursive {
46
  /**
47
   * Gets or Sets capabilities
48
   */
49
  public enum CapabilitiesEnum {
×
50
    ACCEPTEXTERNALFUNDING("acceptExternalFunding"),
×
51
    
52
    ACCEPTPSPFUNDING("acceptPspFunding"),
×
53
    
54
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES("acceptTransactionInRestrictedCountries"),
×
55
    
56
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL("acceptTransactionInRestrictedCountriesCommercial"),
×
57
    
58
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER("acceptTransactionInRestrictedCountriesConsumer"),
×
59
    
60
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES("acceptTransactionInRestrictedIndustries"),
×
61
    
62
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL("acceptTransactionInRestrictedIndustriesCommercial"),
×
63
    
64
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER("acceptTransactionInRestrictedIndustriesConsumer"),
×
65
    
66
    ACQUIRING("acquiring"),
×
67
    
68
    ATMWITHDRAWAL("atmWithdrawal"),
×
69
    
70
    ATMWITHDRAWALCOMMERCIAL("atmWithdrawalCommercial"),
×
71
    
72
    ATMWITHDRAWALCONSUMER("atmWithdrawalConsumer"),
×
73
    
74
    ATMWITHDRAWALINRESTRICTEDCOUNTRIES("atmWithdrawalInRestrictedCountries"),
×
75
    
76
    ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL("atmWithdrawalInRestrictedCountriesCommercial"),
×
77
    
78
    ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER("atmWithdrawalInRestrictedCountriesConsumer"),
×
79
    
80
    AUTHORISEDPAYMENTINSTRUMENTUSER("authorisedPaymentInstrumentUser"),
×
81
    
82
    GETGRANTOFFERS("getGrantOffers"),
×
83
    
84
    ISSUEBANKACCOUNT("issueBankAccount"),
×
85
    
86
    ISSUECARD("issueCard"),
×
87
    
88
    ISSUECARDCOMMERCIAL("issueCardCommercial"),
×
89
    
90
    ISSUECARDCONSUMER("issueCardConsumer"),
×
91
    
92
    LOCALACCEPTANCE("localAcceptance"),
×
93
    
94
    PAYOUT("payout"),
×
95
    
96
    PAYOUTTOTRANSFERINSTRUMENT("payoutToTransferInstrument"),
×
97
    
98
    PROCESSING("processing"),
×
99
    
100
    RECEIVEFROMBALANCEACCOUNT("receiveFromBalanceAccount"),
×
101
    
102
    RECEIVEFROMPLATFORMPAYMENTS("receiveFromPlatformPayments"),
×
103
    
104
    RECEIVEFROMTHIRDPARTY("receiveFromThirdParty"),
×
105
    
106
    RECEIVEFROMTRANSFERINSTRUMENT("receiveFromTransferInstrument"),
×
107
    
108
    RECEIVEGRANTS("receiveGrants"),
×
109
    
110
    RECEIVEPAYMENTS("receivePayments"),
×
111
    
112
    SENDTOBALANCEACCOUNT("sendToBalanceAccount"),
×
113
    
114
    SENDTOTHIRDPARTY("sendToThirdParty"),
×
115
    
116
    SENDTOTRANSFERINSTRUMENT("sendToTransferInstrument"),
×
117
    
118
    THIRDPARTYFUNDING("thirdPartyFunding"),
×
119
    
120
    USECARD("useCard"),
×
121
    
122
    USECARDCOMMERCIAL("useCardCommercial"),
×
123
    
124
    USECARDCONSUMER("useCardConsumer"),
×
125
    
126
    USECARDINRESTRICTEDCOUNTRIES("useCardInRestrictedCountries"),
×
127
    
128
    USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL("useCardInRestrictedCountriesCommercial"),
×
129
    
130
    USECARDINRESTRICTEDCOUNTRIESCONSUMER("useCardInRestrictedCountriesConsumer"),
×
131
    
132
    USECARDINRESTRICTEDINDUSTRIES("useCardInRestrictedIndustries"),
×
133
    
134
    USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL("useCardInRestrictedIndustriesCommercial"),
×
135
    
136
    USECARDINRESTRICTEDINDUSTRIESCONSUMER("useCardInRestrictedIndustriesConsumer"),
×
137
    
138
    WITHDRAWFROMATM("withdrawFromAtm"),
×
139
    
140
    WITHDRAWFROMATMCOMMERCIAL("withdrawFromAtmCommercial"),
×
141
    
142
    WITHDRAWFROMATMCONSUMER("withdrawFromAtmConsumer"),
×
143
    
144
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIES("withdrawFromAtmInRestrictedCountries"),
×
145
    
146
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL("withdrawFromAtmInRestrictedCountriesCommercial"),
×
147
    
148
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER("withdrawFromAtmInRestrictedCountriesConsumer");
×
149

150
    private String value;
151

152
    CapabilitiesEnum(String value) {
×
153
      this.value = value;
×
154
    }
×
155

156
    @JsonValue
157
    public String getValue() {
158
      return value;
×
159
    }
160

161
    @Override
162
    public String toString() {
163
      return String.valueOf(value);
×
164
    }
165

166
    @JsonCreator
167
    public static CapabilitiesEnum fromValue(String value) {
168
      for (CapabilitiesEnum b : CapabilitiesEnum.values()) {
×
169
        if (b.value.equals(value)) {
×
170
          return b;
×
171
        }
172
      }
173
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
174
    }
175
  }
176

177
  public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
178
  private List<CapabilitiesEnum> capabilities = null;
×
179

180
  public static final String JSON_PROPERTY_CODE = "code";
181
  private String code;
182

183
  public static final String JSON_PROPERTY_MESSAGE = "message";
184
  private String message;
185

186
  /**
187
   * The type of error.   Possible values: **invalidInput**, **dataMissing**.
188
   */
189
  public enum TypeEnum {
×
190
    DATAMISSING("dataMissing"),
×
191
    
192
    INVALIDINPUT("invalidInput"),
×
193
    
194
    PENDINGSTATUS("pendingStatus");
×
195

196
    private String value;
197

198
    TypeEnum(String value) {
×
199
      this.value = value;
×
200
    }
×
201

202
    @JsonValue
203
    public String getValue() {
204
      return value;
×
205
    }
206

207
    @Override
208
    public String toString() {
209
      return String.valueOf(value);
×
210
    }
211

212
    @JsonCreator
213
    public static TypeEnum fromValue(String value) {
214
      for (TypeEnum b : TypeEnum.values()) {
×
215
        if (b.value.equals(value)) {
×
216
          return b;
×
217
        }
218
      }
219
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
220
    }
221
  }
222

223
  public static final String JSON_PROPERTY_TYPE = "type";
224
  private TypeEnum type;
225

226
  public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions";
227
  private List<RemediatingAction> remediatingActions = null;
×
228

229
  public VerificationErrorRecursive() { 
×
230
  }
×
231

232
  public VerificationErrorRecursive capabilities(List<CapabilitiesEnum> capabilities) {
233
    this.capabilities = capabilities;
×
234
    return this;
×
235
  }
236

237
  public VerificationErrorRecursive addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) {
238
    if (this.capabilities == null) {
×
239
      this.capabilities = new ArrayList<>();
×
240
    }
241
    this.capabilities.add(capabilitiesItem);
×
242
    return this;
×
243
  }
244

245
   /**
246
   * Contains the capabilities that the verification error applies to.
247
   * @return capabilities
248
  **/
249
  @ApiModelProperty(value = "Contains the capabilities that the verification error applies to.")
250
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
251
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
252

253
  public List<CapabilitiesEnum> getCapabilities() {
254
    return capabilities;
×
255
  }
256

257

258
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
259
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
260
  public void setCapabilities(List<CapabilitiesEnum> capabilities) {
261
    this.capabilities = capabilities;
×
262
  }
×
263

264

265
  public VerificationErrorRecursive code(String code) {
266
    this.code = code;
×
267
    return this;
×
268
  }
269

270
   /**
271
   * The verification error code.
272
   * @return code
273
  **/
274
  @ApiModelProperty(value = "The verification error code.")
275
  @JsonProperty(JSON_PROPERTY_CODE)
276
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
277

278
  public String getCode() {
279
    return code;
×
280
  }
281

282

283
  @JsonProperty(JSON_PROPERTY_CODE)
284
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
285
  public void setCode(String code) {
286
    this.code = code;
×
287
  }
×
288

289

290
  public VerificationErrorRecursive message(String message) {
291
    this.message = message;
×
292
    return this;
×
293
  }
294

295
   /**
296
   * A description of the error.
297
   * @return message
298
  **/
299
  @ApiModelProperty(value = "A description of the error.")
300
  @JsonProperty(JSON_PROPERTY_MESSAGE)
301
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
302

303
  public String getMessage() {
304
    return message;
×
305
  }
306

307

308
  @JsonProperty(JSON_PROPERTY_MESSAGE)
309
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
310
  public void setMessage(String message) {
311
    this.message = message;
×
312
  }
×
313

314

315
  public VerificationErrorRecursive type(TypeEnum type) {
316
    this.type = type;
×
317
    return this;
×
318
  }
319

320
   /**
321
   * The type of error.   Possible values: **invalidInput**, **dataMissing**.
322
   * @return type
323
  **/
324
  @ApiModelProperty(value = "The type of error.   Possible values: **invalidInput**, **dataMissing**.")
325
  @JsonProperty(JSON_PROPERTY_TYPE)
326
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
327

328
  public TypeEnum getType() {
329
    return type;
×
330
  }
331

332

333
  @JsonProperty(JSON_PROPERTY_TYPE)
334
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
335
  public void setType(TypeEnum type) {
336
    this.type = type;
×
337
  }
×
338

339

340
  public VerificationErrorRecursive remediatingActions(List<RemediatingAction> remediatingActions) {
341
    this.remediatingActions = remediatingActions;
×
342
    return this;
×
343
  }
344

345
  public VerificationErrorRecursive addRemediatingActionsItem(RemediatingAction remediatingActionsItem) {
346
    if (this.remediatingActions == null) {
×
347
      this.remediatingActions = new ArrayList<>();
×
348
    }
349
    this.remediatingActions.add(remediatingActionsItem);
×
350
    return this;
×
351
  }
352

353
   /**
354
   * Contains the actions that you can take to resolve the verification error.
355
   * @return remediatingActions
356
  **/
357
  @ApiModelProperty(value = "Contains the actions that you can take to resolve the verification error.")
358
  @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS)
359
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
360

361
  public List<RemediatingAction> getRemediatingActions() {
362
    return remediatingActions;
×
363
  }
364

365

366
  @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS)
367
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
368
  public void setRemediatingActions(List<RemediatingAction> remediatingActions) {
369
    this.remediatingActions = remediatingActions;
×
370
  }
×
371

372

373
  /**
374
   * Return true if this VerificationError-recursive object is equal to o.
375
   */
376
  @Override
377
  public boolean equals(Object o) {
378
    if (this == o) {
×
379
      return true;
×
380
    }
381
    if (o == null || getClass() != o.getClass()) {
×
382
      return false;
×
383
    }
384
    VerificationErrorRecursive verificationErrorRecursive = (VerificationErrorRecursive) o;
×
385
    return Objects.equals(this.capabilities, verificationErrorRecursive.capabilities) &&
×
386
        Objects.equals(this.code, verificationErrorRecursive.code) &&
×
387
        Objects.equals(this.message, verificationErrorRecursive.message) &&
×
388
        Objects.equals(this.type, verificationErrorRecursive.type) &&
×
389
        Objects.equals(this.remediatingActions, verificationErrorRecursive.remediatingActions);
×
390
  }
391

392
  @Override
393
  public int hashCode() {
394
    return Objects.hash(capabilities, code, message, type, remediatingActions);
×
395
  }
396

397
  @Override
398
  public String toString() {
399
    StringBuilder sb = new StringBuilder();
×
400
    sb.append("class VerificationErrorRecursive {\n");
×
401
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
402
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
×
403
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
×
404
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
405
    sb.append("    remediatingActions: ").append(toIndentedString(remediatingActions)).append("\n");
×
406
    sb.append("}");
×
407
    return sb.toString();
×
408
  }
409

410
  /**
411
   * Convert the given object to string with each line indented by 4 spaces
412
   * (except the first line).
413
   */
414
  private String toIndentedString(Object o) {
415
    if (o == null) {
×
416
      return "null";
×
417
    }
418
    return o.toString().replace("\n", "\n    ");
×
419
  }
420

421
/**
422
   * Create an instance of VerificationErrorRecursive given an JSON string
423
   *
424
   * @param jsonString JSON string
425
   * @return An instance of VerificationErrorRecursive
426
   * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationErrorRecursive
427
   */
428
  public static VerificationErrorRecursive fromJson(String jsonString) throws JsonProcessingException {
429
    return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class);
×
430
  }
431
/**
432
  * Convert an instance of VerificationErrorRecursive to an JSON string
433
  *
434
  * @return JSON string
435
  */
436
  public String toJson() throws JsonProcessingException {
437
    return JSON.getMapper().writeValueAsString(this);
×
438
  }
439
}
440

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