• 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/VerificationError.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.adyen.model.configurationwebhooks.VerificationErrorRecursive;
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
 * VerificationError
36
 */
37
@JsonPropertyOrder({
38
  VerificationError.JSON_PROPERTY_CAPABILITIES,
39
  VerificationError.JSON_PROPERTY_CODE,
40
  VerificationError.JSON_PROPERTY_MESSAGE,
41
  VerificationError.JSON_PROPERTY_REMEDIATING_ACTIONS,
42
  VerificationError.JSON_PROPERTY_SUB_ERRORS,
43
  VerificationError.JSON_PROPERTY_TYPE
44
})
45

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

151
    private String value;
152

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

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

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

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

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

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

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

187
  public static final String JSON_PROPERTY_REMEDIATING_ACTIONS = "remediatingActions";
188
  private List<RemediatingAction> remediatingActions = null;
×
189

190
  public static final String JSON_PROPERTY_SUB_ERRORS = "subErrors";
191
  private List<VerificationErrorRecursive> subErrors = null;
×
192

193
  /**
194
   * The type of error.   Possible values: **invalidInput**, **dataMissing**.
195
   */
196
  public enum TypeEnum {
×
197
    DATAMISSING("dataMissing"),
×
198
    
199
    INVALIDINPUT("invalidInput"),
×
200
    
201
    PENDINGSTATUS("pendingStatus");
×
202

203
    private String value;
204

205
    TypeEnum(String value) {
×
206
      this.value = value;
×
207
    }
×
208

209
    @JsonValue
210
    public String getValue() {
211
      return value;
×
212
    }
213

214
    @Override
215
    public String toString() {
216
      return String.valueOf(value);
×
217
    }
218

219
    @JsonCreator
220
    public static TypeEnum fromValue(String value) {
221
      for (TypeEnum b : TypeEnum.values()) {
×
222
        if (b.value.equals(value)) {
×
223
          return b;
×
224
        }
225
      }
226
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
227
    }
228
  }
229

230
  public static final String JSON_PROPERTY_TYPE = "type";
231
  private TypeEnum type;
232

233
  public VerificationError() { 
×
234
  }
×
235

236
  public VerificationError capabilities(List<CapabilitiesEnum> capabilities) {
237
    this.capabilities = capabilities;
×
238
    return this;
×
239
  }
240

241
  public VerificationError addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) {
242
    if (this.capabilities == null) {
×
243
      this.capabilities = new ArrayList<>();
×
244
    }
245
    this.capabilities.add(capabilitiesItem);
×
246
    return this;
×
247
  }
248

249
   /**
250
   * Contains the capabilities that the verification error applies to.
251
   * @return capabilities
252
  **/
253
  @ApiModelProperty(value = "Contains the capabilities that the verification error applies to.")
254
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256

257
  public List<CapabilitiesEnum> getCapabilities() {
258
    return capabilities;
×
259
  }
260

261

262
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264
  public void setCapabilities(List<CapabilitiesEnum> capabilities) {
265
    this.capabilities = capabilities;
×
266
  }
×
267

268

269
  public VerificationError code(String code) {
270
    this.code = code;
×
271
    return this;
×
272
  }
273

274
   /**
275
   * The verification error code.
276
   * @return code
277
  **/
278
  @ApiModelProperty(value = "The verification error code.")
279
  @JsonProperty(JSON_PROPERTY_CODE)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281

282
  public String getCode() {
283
    return code;
×
284
  }
285

286

287
  @JsonProperty(JSON_PROPERTY_CODE)
288
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
289
  public void setCode(String code) {
290
    this.code = code;
×
291
  }
×
292

293

294
  public VerificationError message(String message) {
295
    this.message = message;
×
296
    return this;
×
297
  }
298

299
   /**
300
   * A description of the error.
301
   * @return message
302
  **/
303
  @ApiModelProperty(value = "A description of the error.")
304
  @JsonProperty(JSON_PROPERTY_MESSAGE)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306

307
  public String getMessage() {
308
    return message;
×
309
  }
310

311

312
  @JsonProperty(JSON_PROPERTY_MESSAGE)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314
  public void setMessage(String message) {
315
    this.message = message;
×
316
  }
×
317

318

319
  public VerificationError remediatingActions(List<RemediatingAction> remediatingActions) {
320
    this.remediatingActions = remediatingActions;
×
321
    return this;
×
322
  }
323

324
  public VerificationError addRemediatingActionsItem(RemediatingAction remediatingActionsItem) {
325
    if (this.remediatingActions == null) {
×
326
      this.remediatingActions = new ArrayList<>();
×
327
    }
328
    this.remediatingActions.add(remediatingActionsItem);
×
329
    return this;
×
330
  }
331

332
   /**
333
   * Contains the actions that you can take to resolve the verification error.
334
   * @return remediatingActions
335
  **/
336
  @ApiModelProperty(value = "Contains the actions that you can take to resolve the verification error.")
337
  @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339

340
  public List<RemediatingAction> getRemediatingActions() {
341
    return remediatingActions;
×
342
  }
343

344

345
  @JsonProperty(JSON_PROPERTY_REMEDIATING_ACTIONS)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347
  public void setRemediatingActions(List<RemediatingAction> remediatingActions) {
348
    this.remediatingActions = remediatingActions;
×
349
  }
×
350

351

352
  public VerificationError subErrors(List<VerificationErrorRecursive> subErrors) {
353
    this.subErrors = subErrors;
×
354
    return this;
×
355
  }
356

357
  public VerificationError addSubErrorsItem(VerificationErrorRecursive subErrorsItem) {
358
    if (this.subErrors == null) {
×
359
      this.subErrors = new ArrayList<>();
×
360
    }
361
    this.subErrors.add(subErrorsItem);
×
362
    return this;
×
363
  }
364

365
   /**
366
   * Contains more granular information about the verification error.
367
   * @return subErrors
368
  **/
369
  @ApiModelProperty(value = "Contains more granular information about the verification error.")
370
  @JsonProperty(JSON_PROPERTY_SUB_ERRORS)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372

373
  public List<VerificationErrorRecursive> getSubErrors() {
374
    return subErrors;
×
375
  }
376

377

378
  @JsonProperty(JSON_PROPERTY_SUB_ERRORS)
379
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
380
  public void setSubErrors(List<VerificationErrorRecursive> subErrors) {
381
    this.subErrors = subErrors;
×
382
  }
×
383

384

385
  public VerificationError type(TypeEnum type) {
386
    this.type = type;
×
387
    return this;
×
388
  }
389

390
   /**
391
   * The type of error.   Possible values: **invalidInput**, **dataMissing**.
392
   * @return type
393
  **/
394
  @ApiModelProperty(value = "The type of error.   Possible values: **invalidInput**, **dataMissing**.")
395
  @JsonProperty(JSON_PROPERTY_TYPE)
396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
397

398
  public TypeEnum getType() {
399
    return type;
×
400
  }
401

402

403
  @JsonProperty(JSON_PROPERTY_TYPE)
404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
405
  public void setType(TypeEnum type) {
406
    this.type = type;
×
407
  }
×
408

409

410
  /**
411
   * Return true if this VerificationError object is equal to o.
412
   */
413
  @Override
414
  public boolean equals(Object o) {
415
    if (this == o) {
×
416
      return true;
×
417
    }
418
    if (o == null || getClass() != o.getClass()) {
×
419
      return false;
×
420
    }
421
    VerificationError verificationError = (VerificationError) o;
×
422
    return Objects.equals(this.capabilities, verificationError.capabilities) &&
×
423
        Objects.equals(this.code, verificationError.code) &&
×
424
        Objects.equals(this.message, verificationError.message) &&
×
425
        Objects.equals(this.remediatingActions, verificationError.remediatingActions) &&
×
426
        Objects.equals(this.subErrors, verificationError.subErrors) &&
×
427
        Objects.equals(this.type, verificationError.type);
×
428
  }
429

430
  @Override
431
  public int hashCode() {
432
    return Objects.hash(capabilities, code, message, remediatingActions, subErrors, type);
×
433
  }
434

435
  @Override
436
  public String toString() {
437
    StringBuilder sb = new StringBuilder();
×
438
    sb.append("class VerificationError {\n");
×
439
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
440
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
×
441
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
×
442
    sb.append("    remediatingActions: ").append(toIndentedString(remediatingActions)).append("\n");
×
443
    sb.append("    subErrors: ").append(toIndentedString(subErrors)).append("\n");
×
444
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
445
    sb.append("}");
×
446
    return sb.toString();
×
447
  }
448

449
  /**
450
   * Convert the given object to string with each line indented by 4 spaces
451
   * (except the first line).
452
   */
453
  private String toIndentedString(Object o) {
454
    if (o == null) {
×
455
      return "null";
×
456
    }
457
    return o.toString().replace("\n", "\n    ");
×
458
  }
459

460
/**
461
   * Create an instance of VerificationError given an JSON string
462
   *
463
   * @param jsonString JSON string
464
   * @return An instance of VerificationError
465
   * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationError
466
   */
467
  public static VerificationError fromJson(String jsonString) throws JsonProcessingException {
468
    return JSON.getMapper().readValue(jsonString, VerificationError.class);
×
469
  }
470
/**
471
  * Convert an instance of VerificationError to an JSON string
472
  *
473
  * @return JSON string
474
  */
475
  public String toJson() throws JsonProcessingException {
476
    return JSON.getMapper().writeValueAsString(this);
×
477
  }
478
}
479

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