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

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

20 Jun 2024 12:54PM UTC coverage: 11.944%. First build
#3331

push

web-flow
Merge 311e2b915 into ac91e3ca5

12 of 622 new or added lines in 65 files covered. (1.93%)

12497 of 104632 relevant lines covered (11.94%)

0.12 hits per line

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

26.25
/src/main/java/com/adyen/model/checkout/DokuDetails.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
 * DokuDetails
32
 */
33
@JsonPropertyOrder({
34
  DokuDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
35
  DokuDetails.JSON_PROPERTY_FIRST_NAME,
36
  DokuDetails.JSON_PROPERTY_LAST_NAME,
37
  DokuDetails.JSON_PROPERTY_SHOPPER_EMAIL,
38
  DokuDetails.JSON_PROPERTY_SUBTYPE,
39
  DokuDetails.JSON_PROPERTY_TYPE
40
})
41

42
public class DokuDetails {
43
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
44
  private String checkoutAttemptId;
45

46
  public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
47
  private String firstName;
48

49
  public static final String JSON_PROPERTY_LAST_NAME = "lastName";
50
  private String lastName;
51

52
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
53
  private String shopperEmail;
54

55
  public static final String JSON_PROPERTY_SUBTYPE = "subtype";
56
  private String subtype;
57

58
  /**
59
   * **doku**
60
   */
61
  public enum TypeEnum {
1✔
62
    MANDIRI_VA("doku_mandiri_va"),
1✔
63
    
64
    CIMB_VA("doku_cimb_va"),
1✔
65
    
66
    DANAMON_VA("doku_danamon_va"),
1✔
67
    
68
    BNI_VA("doku_bni_va"),
1✔
69
    
70
    PERMATA_LITE_ATM("doku_permata_lite_atm"),
1✔
71
    
72
    BRI_VA("doku_bri_va"),
1✔
73
    
74
    BCA_VA("doku_bca_va"),
1✔
75
    
76
    ALFAMART("doku_alfamart"),
1✔
77
    
78
    INDOMARET("doku_indomaret"),
1✔
79
    
80
    WALLET("doku_wallet"),
1✔
81
    
82
    OVO("doku_ovo");
1✔
83

84
    private String value;
85

86
    TypeEnum(String value) {
1✔
87
      this.value = value;
1✔
88
    }
1✔
89

90
    @JsonValue
91
    public String getValue() {
92
      return value;
1✔
93
    }
94

95
    @Override
96
    public String toString() {
97
      return String.valueOf(value);
×
98
    }
99

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

111
  public static final String JSON_PROPERTY_TYPE = "type";
112
  private TypeEnum type;
113

114
  public DokuDetails() { 
1✔
115
  }
1✔
116

117
  public DokuDetails checkoutAttemptId(String checkoutAttemptId) {
118
    this.checkoutAttemptId = checkoutAttemptId;
×
119
    return this;
×
120
  }
121

122
   /**
123
   * The checkout attempt identifier.
124
   * @return checkoutAttemptId
125
  **/
126
  @ApiModelProperty(value = "The checkout attempt identifier.")
127
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
128
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
129

130
  public String getCheckoutAttemptId() {
131
    return checkoutAttemptId;
×
132
  }
133

134

135
 /**
136
  * The checkout attempt identifier.
137
  *
138
  * @param checkoutAttemptId
139
  */ 
140
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
141
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142
  public void setCheckoutAttemptId(String checkoutAttemptId) {
143
    this.checkoutAttemptId = checkoutAttemptId;
×
144
  }
×
145

146

147
  public DokuDetails firstName(String firstName) {
148
    this.firstName = firstName;
×
149
    return this;
×
150
  }
151

152
   /**
153
   * The shopper's first name.
154
   * @return firstName
155
  **/
156
  @ApiModelProperty(required = true, value = "The shopper's first name.")
157
  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159

160
  public String getFirstName() {
161
    return firstName;
×
162
  }
163

164

165
 /**
166
  * The shopper's first name.
167
  *
168
  * @param firstName
169
  */ 
170
  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172
  public void setFirstName(String firstName) {
173
    this.firstName = firstName;
×
174
  }
×
175

176

177
  public DokuDetails lastName(String lastName) {
178
    this.lastName = lastName;
×
179
    return this;
×
180
  }
181

182
   /**
183
   * The shopper's last name.
184
   * @return lastName
185
  **/
186
  @ApiModelProperty(required = true, value = "The shopper's last name.")
187
  @JsonProperty(JSON_PROPERTY_LAST_NAME)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189

190
  public String getLastName() {
191
    return lastName;
×
192
  }
193

194

195
 /**
196
  * The shopper's last name.
197
  *
198
  * @param lastName
199
  */ 
200
  @JsonProperty(JSON_PROPERTY_LAST_NAME)
201
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
202
  public void setLastName(String lastName) {
203
    this.lastName = lastName;
×
204
  }
×
205

206

207
  public DokuDetails shopperEmail(String shopperEmail) {
208
    this.shopperEmail = shopperEmail;
×
209
    return this;
×
210
  }
211

212
   /**
213
   * The shopper's email.
214
   * @return shopperEmail
215
  **/
216
  @ApiModelProperty(required = true, value = "The shopper's email.")
217
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
218
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
219

220
  public String getShopperEmail() {
221
    return shopperEmail;
×
222
  }
223

224

225
 /**
226
  * The shopper's email.
227
  *
228
  * @param shopperEmail
229
  */ 
230
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
231
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
232
  public void setShopperEmail(String shopperEmail) {
233
    this.shopperEmail = shopperEmail;
×
234
  }
×
235

236

237
  public DokuDetails subtype(String subtype) {
NEW
238
    this.subtype = subtype;
×
NEW
239
    return this;
×
240
  }
241

242
   /**
243
   * The payment method subtype.
244
   * @return subtype
245
  **/
246
  @ApiModelProperty(value = "The payment method subtype.")
247
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
248
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
249

250
  public String getSubtype() {
NEW
251
    return subtype;
×
252
  }
253

254

255
 /**
256
  * The payment method subtype.
257
  *
258
  * @param subtype
259
  */ 
260
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
261
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
262
  public void setSubtype(String subtype) {
NEW
263
    this.subtype = subtype;
×
NEW
264
  }
×
265

266

267
  public DokuDetails type(TypeEnum type) {
268
    this.type = type;
×
269
    return this;
×
270
  }
271

272
   /**
273
   * **doku**
274
   * @return type
275
  **/
276
  @ApiModelProperty(required = true, value = "**doku**")
277
  @JsonProperty(JSON_PROPERTY_TYPE)
278
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
279

280
  public TypeEnum getType() {
281
    return type;
×
282
  }
283

284

285
 /**
286
  * **doku**
287
  *
288
  * @param type
289
  */ 
290
  @JsonProperty(JSON_PROPERTY_TYPE)
291
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
292
  public void setType(TypeEnum type) {
293
    this.type = type;
×
294
  }
×
295

296

297
  /**
298
   * Return true if this DokuDetails object is equal to o.
299
   */
300
  @Override
301
  public boolean equals(Object o) {
302
    if (this == o) {
×
303
      return true;
×
304
    }
305
    if (o == null || getClass() != o.getClass()) {
×
306
      return false;
×
307
    }
308
    DokuDetails dokuDetails = (DokuDetails) o;
×
309
    return Objects.equals(this.checkoutAttemptId, dokuDetails.checkoutAttemptId) &&
×
310
        Objects.equals(this.firstName, dokuDetails.firstName) &&
×
311
        Objects.equals(this.lastName, dokuDetails.lastName) &&
×
312
        Objects.equals(this.shopperEmail, dokuDetails.shopperEmail) &&
×
NEW
313
        Objects.equals(this.subtype, dokuDetails.subtype) &&
×
314
        Objects.equals(this.type, dokuDetails.type);
×
315
  }
316

317
  @Override
318
  public int hashCode() {
NEW
319
    return Objects.hash(checkoutAttemptId, firstName, lastName, shopperEmail, subtype, type);
×
320
  }
321

322
  @Override
323
  public String toString() {
324
    StringBuilder sb = new StringBuilder();
×
325
    sb.append("class DokuDetails {\n");
×
326
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
327
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
×
328
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
×
329
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
NEW
330
    sb.append("    subtype: ").append(toIndentedString(subtype)).append("\n");
×
331
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
332
    sb.append("}");
×
333
    return sb.toString();
×
334
  }
335

336
  /**
337
   * Convert the given object to string with each line indented by 4 spaces
338
   * (except the first line).
339
   */
340
  private String toIndentedString(Object o) {
341
    if (o == null) {
×
342
      return "null";
×
343
    }
344
    return o.toString().replace("\n", "\n    ");
×
345
  }
346

347
/**
348
   * Create an instance of DokuDetails given an JSON string
349
   *
350
   * @param jsonString JSON string
351
   * @return An instance of DokuDetails
352
   * @throws JsonProcessingException if the JSON string is invalid with respect to DokuDetails
353
   */
354
  public static DokuDetails fromJson(String jsonString) throws JsonProcessingException {
355
    return JSON.getMapper().readValue(jsonString, DokuDetails.class);
×
356
  }
357
/**
358
  * Convert an instance of DokuDetails to an JSON string
359
  *
360
  * @return JSON string
361
  */
362
  public String toJson() throws JsonProcessingException {
363
    return JSON.getMapper().writeValueAsString(this);
×
364
  }
365
}
366

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