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

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

18 Nov 2024 03:11PM UTC coverage: 12.345%. First build
#3804

push

web-flow
Merge 2f1727c0d into 1d8235624

62 of 245 new or added lines in 5 files covered. (25.31%)

13123 of 106304 relevant lines covered (12.34%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.96
/src/main/java/com/adyen/model/checkout/RivertyDetails.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.checkout;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * RivertyDetails
32
 */
33
@JsonPropertyOrder({
34
  RivertyDetails.JSON_PROPERTY_BILLING_ADDRESS,
35
  RivertyDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
36
  RivertyDetails.JSON_PROPERTY_DELIVERY_ADDRESS,
37
  RivertyDetails.JSON_PROPERTY_DEVICE_FINGERPRINT,
38
  RivertyDetails.JSON_PROPERTY_IBAN,
39
  RivertyDetails.JSON_PROPERTY_PERSONAL_DETAILS,
40
  RivertyDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
41
  RivertyDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
42
  RivertyDetails.JSON_PROPERTY_TYPE
43
})
44

45
public class RivertyDetails {
46
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
47
  private String billingAddress;
48

49
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
50
  private String checkoutAttemptId;
51

52
  public static final String JSON_PROPERTY_DELIVERY_ADDRESS = "deliveryAddress";
53
  private String deliveryAddress;
54

55
  public static final String JSON_PROPERTY_DEVICE_FINGERPRINT = "deviceFingerprint";
56
  private String deviceFingerprint;
57

58
  public static final String JSON_PROPERTY_IBAN = "iban";
59
  private String iban;
60

61
  public static final String JSON_PROPERTY_PERSONAL_DETAILS = "personalDetails";
62
  private String personalDetails;
63

64
  public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
65
  @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead.
66
  private String recurringDetailReference;
67

68
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
69
  private String storedPaymentMethodId;
70

71
  /**
72
   * **riverty**
73
   */
74
  public enum TypeEnum {
1✔
75
    RIVERTY("riverty"),
1✔
76
    
77
    RIVERTY_ACCOUNT("riverty_account"),
1✔
78
    
79
    SEPADIRECTDEBIT_RIVERTY("sepadirectdebit_riverty");
1✔
80

81
    private String value;
82

83
    TypeEnum(String value) {
1✔
84
      this.value = value;
1✔
85
    }
1✔
86

87
    @JsonValue
88
    public String getValue() {
89
      return value;
1✔
90
    }
91

92
    @Override
93
    public String toString() {
NEW
94
      return String.valueOf(value);
×
95
    }
96

97
    @JsonCreator
98
    public static TypeEnum fromValue(String value) {
99
      for (TypeEnum b : TypeEnum.values()) {
1✔
100
        if (b.value.equals(value)) {
1✔
NEW
101
          return b;
×
102
        }
103
      }
104
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
105
    }
106
  }
107

108
  public static final String JSON_PROPERTY_TYPE = "type";
109
  private TypeEnum type;
110

111
  public RivertyDetails() { 
1✔
112
  }
1✔
113

114
  /**
115
   * The address where to send the invoice.
116
   *
117
   * @param billingAddress
118
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
119
   */
120
  public RivertyDetails billingAddress(String billingAddress) {
NEW
121
    this.billingAddress = billingAddress;
×
NEW
122
    return this;
×
123
  }
124

125
  /**
126
   * The address where to send the invoice.
127
   * @return billingAddress
128
   */
129
  @ApiModelProperty(value = "The address where to send the invoice.")
130
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
131
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
132
  public String getBillingAddress() {
133
    return billingAddress;
1✔
134
  }
135

136
  /**
137
   * The address where to send the invoice.
138
   *
139
   * @param billingAddress
140
   */ 
141
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143
  public void setBillingAddress(String billingAddress) {
NEW
144
    this.billingAddress = billingAddress;
×
NEW
145
  }
×
146

147
  /**
148
   * The checkout attempt identifier.
149
   *
150
   * @param checkoutAttemptId
151
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
152
   */
153
  public RivertyDetails checkoutAttemptId(String checkoutAttemptId) {
NEW
154
    this.checkoutAttemptId = checkoutAttemptId;
×
NEW
155
    return this;
×
156
  }
157

158
  /**
159
   * The checkout attempt identifier.
160
   * @return checkoutAttemptId
161
   */
162
  @ApiModelProperty(value = "The checkout attempt identifier.")
163
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
164
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165
  public String getCheckoutAttemptId() {
166
    return checkoutAttemptId;
1✔
167
  }
168

169
  /**
170
   * The checkout attempt identifier.
171
   *
172
   * @param checkoutAttemptId
173
   */ 
174
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
175
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
176
  public void setCheckoutAttemptId(String checkoutAttemptId) {
NEW
177
    this.checkoutAttemptId = checkoutAttemptId;
×
NEW
178
  }
×
179

180
  /**
181
   * The address where the goods should be delivered.
182
   *
183
   * @param deliveryAddress
184
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
185
   */
186
  public RivertyDetails deliveryAddress(String deliveryAddress) {
NEW
187
    this.deliveryAddress = deliveryAddress;
×
NEW
188
    return this;
×
189
  }
190

191
  /**
192
   * The address where the goods should be delivered.
193
   * @return deliveryAddress
194
   */
195
  @ApiModelProperty(value = "The address where the goods should be delivered.")
196
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198
  public String getDeliveryAddress() {
199
    return deliveryAddress;
1✔
200
  }
201

202
  /**
203
   * The address where the goods should be delivered.
204
   *
205
   * @param deliveryAddress
206
   */ 
207
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
208
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
209
  public void setDeliveryAddress(String deliveryAddress) {
NEW
210
    this.deliveryAddress = deliveryAddress;
×
NEW
211
  }
×
212

213
  /**
214
   * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).
215
   *
216
   * @param deviceFingerprint
217
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
218
   */
219
  public RivertyDetails deviceFingerprint(String deviceFingerprint) {
NEW
220
    this.deviceFingerprint = deviceFingerprint;
×
NEW
221
    return this;
×
222
  }
223

224
  /**
225
   * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).
226
   * @return deviceFingerprint
227
   */
228
  @ApiModelProperty(value = "A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).")
229
  @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231
  public String getDeviceFingerprint() {
232
    return deviceFingerprint;
1✔
233
  }
234

235
  /**
236
   * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).
237
   *
238
   * @param deviceFingerprint
239
   */ 
240
  @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242
  public void setDeviceFingerprint(String deviceFingerprint) {
NEW
243
    this.deviceFingerprint = deviceFingerprint;
×
NEW
244
  }
×
245

246
  /**
247
   * The iban number of the customer 
248
   *
249
   * @param iban
250
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
251
   */
252
  public RivertyDetails iban(String iban) {
253
    this.iban = iban;
1✔
254
    return this;
1✔
255
  }
256

257
  /**
258
   * The iban number of the customer 
259
   * @return iban
260
   */
261
  @ApiModelProperty(value = "The iban number of the customer ")
262
  @JsonProperty(JSON_PROPERTY_IBAN)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264
  public String getIban() {
265
    return iban;
1✔
266
  }
267

268
  /**
269
   * The iban number of the customer 
270
   *
271
   * @param iban
272
   */ 
273
  @JsonProperty(JSON_PROPERTY_IBAN)
274
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
275
  public void setIban(String iban) {
NEW
276
    this.iban = iban;
×
NEW
277
  }
×
278

279
  /**
280
   * Shopper name, date of birth, phone number, and email address.
281
   *
282
   * @param personalDetails
283
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
284
   */
285
  public RivertyDetails personalDetails(String personalDetails) {
NEW
286
    this.personalDetails = personalDetails;
×
NEW
287
    return this;
×
288
  }
289

290
  /**
291
   * Shopper name, date of birth, phone number, and email address.
292
   * @return personalDetails
293
   */
294
  @ApiModelProperty(value = "Shopper name, date of birth, phone number, and email address.")
295
  @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297
  public String getPersonalDetails() {
298
    return personalDetails;
1✔
299
  }
300

301
  /**
302
   * Shopper name, date of birth, phone number, and email address.
303
   *
304
   * @param personalDetails
305
   */ 
306
  @JsonProperty(JSON_PROPERTY_PERSONAL_DETAILS)
307
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
308
  public void setPersonalDetails(String personalDetails) {
NEW
309
    this.personalDetails = personalDetails;
×
NEW
310
  }
×
311

312
  /**
313
   * This is the `recurringDetailReference` returned in the response when you created the token.
314
   *
315
   * @param recurringDetailReference
316
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
317
   *
318
   * @deprecated since Adyen Checkout API v49
319
   * Use `storedPaymentMethodId` instead.
320
   */
321
  @Deprecated
322
  public RivertyDetails recurringDetailReference(String recurringDetailReference) {
NEW
323
    this.recurringDetailReference = recurringDetailReference;
×
NEW
324
    return this;
×
325
  }
326

327
  /**
328
   * This is the `recurringDetailReference` returned in the response when you created the token.
329
   * @return recurringDetailReference
330
   *
331
   * @deprecated since Adyen Checkout API v49
332
   * Use `storedPaymentMethodId` instead.
333
   */
334
  @Deprecated
335
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
336
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
337
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
338
  public String getRecurringDetailReference() {
339
    return recurringDetailReference;
1✔
340
  }
341

342
  /**
343
   * This is the `recurringDetailReference` returned in the response when you created the token.
344
   *
345
   * @param recurringDetailReference
346
   *
347
   * @deprecated since Adyen Checkout API v49
348
   * Use `storedPaymentMethodId` instead.
349
   */ 
350
  @Deprecated
351
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
352
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
353
  public void setRecurringDetailReference(String recurringDetailReference) {
NEW
354
    this.recurringDetailReference = recurringDetailReference;
×
NEW
355
  }
×
356

357
  /**
358
   * This is the `recurringDetailReference` returned in the response when you created the token.
359
   *
360
   * @param storedPaymentMethodId
361
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
362
   */
363
  public RivertyDetails storedPaymentMethodId(String storedPaymentMethodId) {
NEW
364
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
365
    return this;
×
366
  }
367

368
  /**
369
   * This is the `recurringDetailReference` returned in the response when you created the token.
370
   * @return storedPaymentMethodId
371
   */
372
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
373
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
374
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
375
  public String getStoredPaymentMethodId() {
376
    return storedPaymentMethodId;
1✔
377
  }
378

379
  /**
380
   * This is the `recurringDetailReference` returned in the response when you created the token.
381
   *
382
   * @param storedPaymentMethodId
383
   */ 
384
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
385
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
386
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
NEW
387
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
388
  }
×
389

390
  /**
391
   * **riverty**
392
   *
393
   * @param type
394
   * @return the current {@code RivertyDetails} instance, allowing for method chaining
395
   */
396
  public RivertyDetails type(TypeEnum type) {
397
    this.type = type;
1✔
398
    return this;
1✔
399
  }
400

401
  /**
402
   * **riverty**
403
   * @return type
404
   */
405
  @ApiModelProperty(required = true, value = "**riverty**")
406
  @JsonProperty(JSON_PROPERTY_TYPE)
407
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
408
  public TypeEnum getType() {
409
    return type;
1✔
410
  }
411

412
  /**
413
   * **riverty**
414
   *
415
   * @param type
416
   */ 
417
  @JsonProperty(JSON_PROPERTY_TYPE)
418
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
419
  public void setType(TypeEnum type) {
NEW
420
    this.type = type;
×
NEW
421
  }
×
422

423
  /**
424
   * Return true if this RivertyDetails object is equal to o.
425
   */
426
  @Override
427
  public boolean equals(Object o) {
NEW
428
    if (this == o) {
×
NEW
429
      return true;
×
430
    }
NEW
431
    if (o == null || getClass() != o.getClass()) {
×
NEW
432
      return false;
×
433
    }
NEW
434
    RivertyDetails rivertyDetails = (RivertyDetails) o;
×
NEW
435
    return Objects.equals(this.billingAddress, rivertyDetails.billingAddress) &&
×
NEW
436
        Objects.equals(this.checkoutAttemptId, rivertyDetails.checkoutAttemptId) &&
×
NEW
437
        Objects.equals(this.deliveryAddress, rivertyDetails.deliveryAddress) &&
×
NEW
438
        Objects.equals(this.deviceFingerprint, rivertyDetails.deviceFingerprint) &&
×
NEW
439
        Objects.equals(this.iban, rivertyDetails.iban) &&
×
NEW
440
        Objects.equals(this.personalDetails, rivertyDetails.personalDetails) &&
×
NEW
441
        Objects.equals(this.recurringDetailReference, rivertyDetails.recurringDetailReference) &&
×
NEW
442
        Objects.equals(this.storedPaymentMethodId, rivertyDetails.storedPaymentMethodId) &&
×
NEW
443
        Objects.equals(this.type, rivertyDetails.type);
×
444
  }
445

446
  @Override
447
  public int hashCode() {
NEW
448
    return Objects.hash(billingAddress, checkoutAttemptId, deliveryAddress, deviceFingerprint, iban, personalDetails, recurringDetailReference, storedPaymentMethodId, type);
×
449
  }
450

451
  @Override
452
  public String toString() {
NEW
453
    StringBuilder sb = new StringBuilder();
×
NEW
454
    sb.append("class RivertyDetails {\n");
×
NEW
455
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
NEW
456
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
NEW
457
    sb.append("    deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n");
×
NEW
458
    sb.append("    deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n");
×
NEW
459
    sb.append("    iban: ").append(toIndentedString(iban)).append("\n");
×
NEW
460
    sb.append("    personalDetails: ").append(toIndentedString(personalDetails)).append("\n");
×
NEW
461
    sb.append("    recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
×
NEW
462
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
NEW
463
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
NEW
464
    sb.append("}");
×
NEW
465
    return sb.toString();
×
466
  }
467

468
  /**
469
   * Convert the given object to string with each line indented by 4 spaces
470
   * (except the first line).
471
   */
472
  private String toIndentedString(Object o) {
NEW
473
    if (o == null) {
×
NEW
474
      return "null";
×
475
    }
NEW
476
    return o.toString().replace("\n", "\n    ");
×
477
  }
478

479
/**
480
   * Create an instance of RivertyDetails given an JSON string
481
   *
482
   * @param jsonString JSON string
483
   * @return An instance of RivertyDetails
484
   * @throws JsonProcessingException if the JSON string is invalid with respect to RivertyDetails
485
   */
486
  public static RivertyDetails fromJson(String jsonString) throws JsonProcessingException {
NEW
487
    return JSON.getMapper().readValue(jsonString, RivertyDetails.class);
×
488
  }
489
/**
490
  * Convert an instance of RivertyDetails to an JSON string
491
  *
492
  * @return JSON string
493
  */
494
  public String toJson() throws JsonProcessingException {
NEW
495
    return JSON.getMapper().writeValueAsString(this);
×
496
  }
497
}
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