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

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

20 Dec 2023 04:04PM CUT coverage: 12.835%. First build
#2968

push

web-flow
Merge 57e3f0ad5 into 1768c6d57

175 of 991 new or added lines in 47 files covered. (17.66%)

12488 of 97295 relevant lines covered (12.84%)

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/transferwebhooks/IssuedCard.java
1
/*
2
 * Transfer webhooks
3
 *
4
 * The version of the OpenAPI document: 4
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.transferwebhooks;
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.transferwebhooks.RelayedAuthorisationData;
20
import com.adyen.model.transferwebhooks.TransferNotificationValidationFact;
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
 * IssuedCard
36
 */
37
@JsonPropertyOrder({
38
  IssuedCard.JSON_PROPERTY_AUTHORISATION_TYPE,
39
  IssuedCard.JSON_PROPERTY_PAN_ENTRY_MODE,
40
  IssuedCard.JSON_PROPERTY_PROCESSING_TYPE,
41
  IssuedCard.JSON_PROPERTY_RELAYED_AUTHORISATION_DATA,
42
  IssuedCard.JSON_PROPERTY_SCHEME_TRACE_ID,
43
  IssuedCard.JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID,
44
  IssuedCard.JSON_PROPERTY_TYPE,
45
  IssuedCard.JSON_PROPERTY_VALIDATION_FACTS
46
})
47

48
public class IssuedCard {
49
  public static final String JSON_PROPERTY_AUTHORISATION_TYPE = "authorisationType";
50
  private String authorisationType;
51

52
  /**
53
   * Indicates the method used for entering the PAN to initiate a transaction.  Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**.
54
   */
55
  public enum PanEntryModeEnum {
×
56
    CHIP("chip"),
×
57
    
58
    COF("cof"),
×
59
    
60
    CONTACTLESS("contactless"),
×
61
    
62
    ECOMMERCE("ecommerce"),
×
63
    
64
    MAGSTRIPE("magstripe"),
×
65
    
66
    MANUAL("manual"),
×
67
    
68
    TOKEN("token");
×
69

70
    private String value;
71

72
    PanEntryModeEnum(String value) {
×
73
      this.value = value;
×
74
    }
×
75

76
    @JsonValue
77
    public String getValue() {
78
      return value;
×
79
    }
80

81
    @Override
82
    public String toString() {
83
      return String.valueOf(value);
×
84
    }
85

86
    @JsonCreator
87
    public static PanEntryModeEnum fromValue(String value) {
88
      for (PanEntryModeEnum b : PanEntryModeEnum.values()) {
×
89
        if (b.value.equals(value)) {
×
90
          return b;
×
91
        }
92
      }
93
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
94
    }
95
  }
96

97
  public static final String JSON_PROPERTY_PAN_ENTRY_MODE = "panEntryMode";
98
  private PanEntryModeEnum panEntryMode;
99

100
  /**
101
   * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments.
102
   */
103
  public enum ProcessingTypeEnum {
×
104
    ATMWITHDRAW("atmWithdraw"),
×
105
    
106
    BALANCEINQUIRY("balanceInquiry"),
×
107
    
108
    ECOMMERCE("ecommerce"),
×
109
    
110
    MOTO("moto"),
×
111
    
112
    POS("pos"),
×
113
    
114
    PURCHASEWITHCASHBACK("purchaseWithCashback"),
×
115
    
116
    RECURRING("recurring"),
×
117
    
118
    TOKEN("token");
×
119

120
    private String value;
121

122
    ProcessingTypeEnum(String value) {
×
123
      this.value = value;
×
124
    }
×
125

126
    @JsonValue
127
    public String getValue() {
128
      return value;
×
129
    }
130

131
    @Override
132
    public String toString() {
133
      return String.valueOf(value);
×
134
    }
135

136
    @JsonCreator
137
    public static ProcessingTypeEnum fromValue(String value) {
138
      for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) {
×
139
        if (b.value.equals(value)) {
×
140
          return b;
×
141
        }
142
      }
143
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
144
    }
145
  }
146

147
  public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType";
148
  private ProcessingTypeEnum processingType;
149

150
  public static final String JSON_PROPERTY_RELAYED_AUTHORISATION_DATA = "relayedAuthorisationData";
151
  private RelayedAuthorisationData relayedAuthorisationData;
152

153
  public static final String JSON_PROPERTY_SCHEME_TRACE_ID = "schemeTraceId";
154
  private String schemeTraceId;
155

156
  public static final String JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID = "schemeUniqueTransactionId";
157
  private String schemeUniqueTransactionId;
158

159
  /**
160
   * **issuedCard**
161
   */
162
  public enum TypeEnum {
×
163
    ISSUEDCARD("issuedCard");
×
164

165
    private String value;
166

167
    TypeEnum(String value) {
×
168
      this.value = value;
×
169
    }
×
170

171
    @JsonValue
172
    public String getValue() {
173
      return value;
×
174
    }
175

176
    @Override
177
    public String toString() {
178
      return String.valueOf(value);
×
179
    }
180

181
    @JsonCreator
182
    public static TypeEnum fromValue(String value) {
183
      for (TypeEnum b : TypeEnum.values()) {
×
184
        if (b.value.equals(value)) {
×
185
          return b;
×
186
        }
187
      }
188
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
189
    }
190
  }
191

192
  public static final String JSON_PROPERTY_TYPE = "type";
193
  private TypeEnum type = TypeEnum.ISSUEDCARD;
×
194

195
  public static final String JSON_PROPERTY_VALIDATION_FACTS = "validationFacts";
196
  private List<TransferNotificationValidationFact> validationFacts = null;
×
197

198
  public IssuedCard() { 
×
199
  }
×
200

201
  public IssuedCard authorisationType(String authorisationType) {
NEW
202
    this.authorisationType = authorisationType;
×
NEW
203
    return this;
×
204
  }
205

206
   /**
207
   * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**
208
   * @return authorisationType
209
  **/
210
  @ApiModelProperty(value = "The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**")
211
  @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213

214
  public String getAuthorisationType() {
NEW
215
    return authorisationType;
×
216
  }
217

218

219
 /**
220
  * The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**
221
  *
222
  * @param authorisationType
223
  */ 
224
  @JsonProperty(JSON_PROPERTY_AUTHORISATION_TYPE)
225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226
  public void setAuthorisationType(String authorisationType) {
NEW
227
    this.authorisationType = authorisationType;
×
NEW
228
  }
×
229

230

231
  public IssuedCard panEntryMode(PanEntryModeEnum panEntryMode) {
232
    this.panEntryMode = panEntryMode;
×
233
    return this;
×
234
  }
235

236
   /**
237
   * Indicates the method used for entering the PAN to initiate a transaction.  Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**.
238
   * @return panEntryMode
239
  **/
240
  @ApiModelProperty(value = "Indicates the method used for entering the PAN to initiate a transaction.  Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**.")
241
  @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243

244
  public PanEntryModeEnum getPanEntryMode() {
245
    return panEntryMode;
×
246
  }
247

248

249
 /**
250
  * Indicates the method used for entering the PAN to initiate a transaction.  Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**.
251
  *
252
  * @param panEntryMode
253
  */ 
254
  @JsonProperty(JSON_PROPERTY_PAN_ENTRY_MODE)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256
  public void setPanEntryMode(PanEntryModeEnum panEntryMode) {
257
    this.panEntryMode = panEntryMode;
×
258
  }
×
259

260

261
  public IssuedCard processingType(ProcessingTypeEnum processingType) {
262
    this.processingType = processingType;
×
263
    return this;
×
264
  }
265

266
   /**
267
   * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments.
268
   * @return processingType
269
  **/
270
  @ApiModelProperty(value = "Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments.")
271
  @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273

274
  public ProcessingTypeEnum getProcessingType() {
275
    return processingType;
×
276
  }
277

278

279
 /**
280
  * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments.
281
  *
282
  * @param processingType
283
  */ 
284
  @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE)
285
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
286
  public void setProcessingType(ProcessingTypeEnum processingType) {
287
    this.processingType = processingType;
×
288
  }
×
289

290

291
  public IssuedCard relayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) {
292
    this.relayedAuthorisationData = relayedAuthorisationData;
×
293
    return this;
×
294
  }
295

296
   /**
297
   * Get relayedAuthorisationData
298
   * @return relayedAuthorisationData
299
  **/
300
  @ApiModelProperty(value = "")
301
  @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA)
302
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
303

304
  public RelayedAuthorisationData getRelayedAuthorisationData() {
305
    return relayedAuthorisationData;
×
306
  }
307

308

309
 /**
310
  * relayedAuthorisationData
311
  *
312
  * @param relayedAuthorisationData
313
  */ 
314
  @JsonProperty(JSON_PROPERTY_RELAYED_AUTHORISATION_DATA)
315
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
316
  public void setRelayedAuthorisationData(RelayedAuthorisationData relayedAuthorisationData) {
317
    this.relayedAuthorisationData = relayedAuthorisationData;
×
318
  }
×
319

320

321
  public IssuedCard schemeTraceId(String schemeTraceId) {
NEW
322
    this.schemeTraceId = schemeTraceId;
×
NEW
323
    return this;
×
324
  }
325

326
   /**
327
   * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.
328
   * @return schemeTraceId
329
  **/
330
  @ApiModelProperty(value = "The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.")
331
  @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID)
332
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
333

334
  public String getSchemeTraceId() {
NEW
335
    return schemeTraceId;
×
336
  }
337

338

339
 /**
340
  * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.
341
  *
342
  * @param schemeTraceId
343
  */ 
344
  @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID)
345
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
346
  public void setSchemeTraceId(String schemeTraceId) {
NEW
347
    this.schemeTraceId = schemeTraceId;
×
NEW
348
  }
×
349

350

351
  public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) {
NEW
352
    this.schemeUniqueTransactionId = schemeUniqueTransactionId;
×
NEW
353
    return this;
×
354
  }
355

356
   /**
357
   * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.
358
   * @return schemeUniqueTransactionId
359
  **/
360
  @ApiModelProperty(value = "The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.")
361
  @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID)
362
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
363

364
  public String getSchemeUniqueTransactionId() {
NEW
365
    return schemeUniqueTransactionId;
×
366
  }
367

368

369
 /**
370
  * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.
371
  *
372
  * @param schemeUniqueTransactionId
373
  */ 
374
  @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID)
375
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
376
  public void setSchemeUniqueTransactionId(String schemeUniqueTransactionId) {
NEW
377
    this.schemeUniqueTransactionId = schemeUniqueTransactionId;
×
NEW
378
  }
×
379

380

381
  public IssuedCard type(TypeEnum type) {
382
    this.type = type;
×
383
    return this;
×
384
  }
385

386
   /**
387
   * **issuedCard**
388
   * @return type
389
  **/
390
  @ApiModelProperty(value = "**issuedCard**")
391
  @JsonProperty(JSON_PROPERTY_TYPE)
392
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
393

394
  public TypeEnum getType() {
395
    return type;
×
396
  }
397

398

399
 /**
400
  * **issuedCard**
401
  *
402
  * @param type
403
  */ 
404
  @JsonProperty(JSON_PROPERTY_TYPE)
405
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
406
  public void setType(TypeEnum type) {
407
    this.type = type;
×
408
  }
×
409

410

411
  public IssuedCard validationFacts(List<TransferNotificationValidationFact> validationFacts) {
412
    this.validationFacts = validationFacts;
×
413
    return this;
×
414
  }
415

416
  public IssuedCard addValidationFactsItem(TransferNotificationValidationFact validationFactsItem) {
417
    if (this.validationFacts == null) {
×
418
      this.validationFacts = new ArrayList<>();
×
419
    }
420
    this.validationFacts.add(validationFactsItem);
×
421
    return this;
×
422
  }
423

424
   /**
425
   * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.
426
   * @return validationFacts
427
  **/
428
  @ApiModelProperty(value = "The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.")
429
  @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS)
430
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
431

432
  public List<TransferNotificationValidationFact> getValidationFacts() {
433
    return validationFacts;
×
434
  }
435

436

437
 /**
438
  * The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.
439
  *
440
  * @param validationFacts
441
  */ 
442
  @JsonProperty(JSON_PROPERTY_VALIDATION_FACTS)
443
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
444
  public void setValidationFacts(List<TransferNotificationValidationFact> validationFacts) {
445
    this.validationFacts = validationFacts;
×
446
  }
×
447

448

449
  /**
450
   * Return true if this IssuedCard object is equal to o.
451
   */
452
  @Override
453
  public boolean equals(Object o) {
454
    if (this == o) {
×
455
      return true;
×
456
    }
457
    if (o == null || getClass() != o.getClass()) {
×
458
      return false;
×
459
    }
460
    IssuedCard issuedCard = (IssuedCard) o;
×
NEW
461
    return Objects.equals(this.authorisationType, issuedCard.authorisationType) &&
×
NEW
462
        Objects.equals(this.panEntryMode, issuedCard.panEntryMode) &&
×
463
        Objects.equals(this.processingType, issuedCard.processingType) &&
×
464
        Objects.equals(this.relayedAuthorisationData, issuedCard.relayedAuthorisationData) &&
×
NEW
465
        Objects.equals(this.schemeTraceId, issuedCard.schemeTraceId) &&
×
NEW
466
        Objects.equals(this.schemeUniqueTransactionId, issuedCard.schemeUniqueTransactionId) &&
×
467
        Objects.equals(this.type, issuedCard.type) &&
×
468
        Objects.equals(this.validationFacts, issuedCard.validationFacts);
×
469
  }
470

471
  @Override
472
  public int hashCode() {
NEW
473
    return Objects.hash(authorisationType, panEntryMode, processingType, relayedAuthorisationData, schemeTraceId, schemeUniqueTransactionId, type, validationFacts);
×
474
  }
475

476
  @Override
477
  public String toString() {
478
    StringBuilder sb = new StringBuilder();
×
479
    sb.append("class IssuedCard {\n");
×
NEW
480
    sb.append("    authorisationType: ").append(toIndentedString(authorisationType)).append("\n");
×
481
    sb.append("    panEntryMode: ").append(toIndentedString(panEntryMode)).append("\n");
×
482
    sb.append("    processingType: ").append(toIndentedString(processingType)).append("\n");
×
483
    sb.append("    relayedAuthorisationData: ").append(toIndentedString(relayedAuthorisationData)).append("\n");
×
NEW
484
    sb.append("    schemeTraceId: ").append(toIndentedString(schemeTraceId)).append("\n");
×
NEW
485
    sb.append("    schemeUniqueTransactionId: ").append(toIndentedString(schemeUniqueTransactionId)).append("\n");
×
486
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
487
    sb.append("    validationFacts: ").append(toIndentedString(validationFacts)).append("\n");
×
488
    sb.append("}");
×
489
    return sb.toString();
×
490
  }
491

492
  /**
493
   * Convert the given object to string with each line indented by 4 spaces
494
   * (except the first line).
495
   */
496
  private String toIndentedString(Object o) {
497
    if (o == null) {
×
498
      return "null";
×
499
    }
500
    return o.toString().replace("\n", "\n    ");
×
501
  }
502

503
/**
504
   * Create an instance of IssuedCard given an JSON string
505
   *
506
   * @param jsonString JSON string
507
   * @return An instance of IssuedCard
508
   * @throws JsonProcessingException if the JSON string is invalid with respect to IssuedCard
509
   */
510
  public static IssuedCard fromJson(String jsonString) throws JsonProcessingException {
511
    return JSON.getMapper().readValue(jsonString, IssuedCard.class);
×
512
  }
513
/**
514
  * Convert an instance of IssuedCard to an JSON string
515
  *
516
  * @return JSON string
517
  */
518
  public String toJson() throws JsonProcessingException {
519
    return JSON.getMapper().writeValueAsString(this);
×
520
  }
521
}
522

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