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

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

14 Jun 2024 07:13AM UTC coverage: 11.966%. First build
#3322

push

web-flow
Merge 673aaf237 into ac91e3ca5

6 of 369 new or added lines in 46 files covered. (1.63%)

12491 of 104390 relevant lines covered (11.97%)

0.12 hits per line

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

15.71
/src/main/java/com/adyen/model/checkout/BlikDetails.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
 * BlikDetails
32
 */
33
@JsonPropertyOrder({
34
  BlikDetails.JSON_PROPERTY_BLIK_CODE,
35
  BlikDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
36
  BlikDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
37
  BlikDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
38
  BlikDetails.JSON_PROPERTY_SUBTYPE,
39
  BlikDetails.JSON_PROPERTY_TYPE
40
})
41

42
public class BlikDetails {
43
  public static final String JSON_PROPERTY_BLIK_CODE = "blikCode";
44
  private String blikCode;
45

46
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
47
  private String checkoutAttemptId;
48

49
  public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
50
  @Deprecated
51
  private String recurringDetailReference;
52

53
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
54
  private String storedPaymentMethodId;
55

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

59
  /**
60
   * **blik**
61
   */
62
  public enum TypeEnum {
1✔
63
    BLIK("blik");
1✔
64

65
    private String value;
66

67
    TypeEnum(String value) {
1✔
68
      this.value = value;
1✔
69
    }
1✔
70

71
    @JsonValue
72
    public String getValue() {
73
      return value;
1✔
74
    }
75

76
    @Override
77
    public String toString() {
78
      return String.valueOf(value);
×
79
    }
80

81
    @JsonCreator
82
    public static TypeEnum fromValue(String value) {
83
      for (TypeEnum b : TypeEnum.values()) {
1✔
84
        if (b.value.equals(value)) {
1✔
85
          return b;
×
86
        }
87
      }
88
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
89
    }
90
  }
91

92
  public static final String JSON_PROPERTY_TYPE = "type";
93
  private TypeEnum type;
94

95
  public BlikDetails() { 
1✔
96
  }
1✔
97

98
  public BlikDetails blikCode(String blikCode) {
99
    this.blikCode = blikCode;
×
100
    return this;
×
101
  }
102

103
   /**
104
   * BLIK code consisting of 6 digits.
105
   * @return blikCode
106
  **/
107
  @ApiModelProperty(value = "BLIK code consisting of 6 digits.")
108
  @JsonProperty(JSON_PROPERTY_BLIK_CODE)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110

111
  public String getBlikCode() {
112
    return blikCode;
×
113
  }
114

115

116
 /**
117
  * BLIK code consisting of 6 digits.
118
  *
119
  * @param blikCode
120
  */ 
121
  @JsonProperty(JSON_PROPERTY_BLIK_CODE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123
  public void setBlikCode(String blikCode) {
124
    this.blikCode = blikCode;
×
125
  }
×
126

127

128
  public BlikDetails checkoutAttemptId(String checkoutAttemptId) {
129
    this.checkoutAttemptId = checkoutAttemptId;
×
130
    return this;
×
131
  }
132

133
   /**
134
   * The checkout attempt identifier.
135
   * @return checkoutAttemptId
136
  **/
137
  @ApiModelProperty(value = "The checkout attempt identifier.")
138
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
139
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140

141
  public String getCheckoutAttemptId() {
142
    return checkoutAttemptId;
×
143
  }
144

145

146
 /**
147
  * The checkout attempt identifier.
148
  *
149
  * @param checkoutAttemptId
150
  */ 
151
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
153
  public void setCheckoutAttemptId(String checkoutAttemptId) {
154
    this.checkoutAttemptId = checkoutAttemptId;
×
155
  }
×
156

157

158
  @Deprecated
159
  public BlikDetails recurringDetailReference(String recurringDetailReference) {
160
    this.recurringDetailReference = recurringDetailReference;
×
161
    return this;
×
162
  }
163

164
   /**
165
   * This is the `recurringDetailReference` returned in the response when you created the token.
166
   * @return recurringDetailReference
167
   * @deprecated
168
  **/
169
  @Deprecated
170
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
171
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public String getRecurringDetailReference() {
175
    return recurringDetailReference;
×
176
  }
177

178

179
 /**
180
  * This is the `recurringDetailReference` returned in the response when you created the token.
181
  *
182
  * @param recurringDetailReference
183
  */ 
184
  @Deprecated
185
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
186
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
187
  public void setRecurringDetailReference(String recurringDetailReference) {
188
    this.recurringDetailReference = recurringDetailReference;
×
189
  }
×
190

191

192
  public BlikDetails storedPaymentMethodId(String storedPaymentMethodId) {
193
    this.storedPaymentMethodId = storedPaymentMethodId;
×
194
    return this;
×
195
  }
196

197
   /**
198
   * This is the `recurringDetailReference` returned in the response when you created the token.
199
   * @return storedPaymentMethodId
200
  **/
201
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
202
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
203
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
204

205
  public String getStoredPaymentMethodId() {
206
    return storedPaymentMethodId;
×
207
  }
208

209

210
 /**
211
  * This is the `recurringDetailReference` returned in the response when you created the token.
212
  *
213
  * @param storedPaymentMethodId
214
  */ 
215
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
216
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
217
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
218
    this.storedPaymentMethodId = storedPaymentMethodId;
×
219
  }
×
220

221

222
  public BlikDetails subtype(String subtype) {
NEW
223
    this.subtype = subtype;
×
NEW
224
    return this;
×
225
  }
226

227
   /**
228
   * The payment method subtype.
229
   * @return subtype
230
  **/
231
  @ApiModelProperty(value = "The payment method subtype.")
232
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
233
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
234

235
  public String getSubtype() {
NEW
236
    return subtype;
×
237
  }
238

239

240
 /**
241
  * The payment method subtype.
242
  *
243
  * @param subtype
244
  */ 
245
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
247
  public void setSubtype(String subtype) {
NEW
248
    this.subtype = subtype;
×
NEW
249
  }
×
250

251

252
  public BlikDetails type(TypeEnum type) {
253
    this.type = type;
×
254
    return this;
×
255
  }
256

257
   /**
258
   * **blik**
259
   * @return type
260
  **/
261
  @ApiModelProperty(value = "**blik**")
262
  @JsonProperty(JSON_PROPERTY_TYPE)
263
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
264

265
  public TypeEnum getType() {
266
    return type;
×
267
  }
268

269

270
 /**
271
  * **blik**
272
  *
273
  * @param type
274
  */ 
275
  @JsonProperty(JSON_PROPERTY_TYPE)
276
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
277
  public void setType(TypeEnum type) {
278
    this.type = type;
×
279
  }
×
280

281

282
  /**
283
   * Return true if this BlikDetails object is equal to o.
284
   */
285
  @Override
286
  public boolean equals(Object o) {
287
    if (this == o) {
×
288
      return true;
×
289
    }
290
    if (o == null || getClass() != o.getClass()) {
×
291
      return false;
×
292
    }
293
    BlikDetails blikDetails = (BlikDetails) o;
×
294
    return Objects.equals(this.blikCode, blikDetails.blikCode) &&
×
295
        Objects.equals(this.checkoutAttemptId, blikDetails.checkoutAttemptId) &&
×
296
        Objects.equals(this.recurringDetailReference, blikDetails.recurringDetailReference) &&
×
297
        Objects.equals(this.storedPaymentMethodId, blikDetails.storedPaymentMethodId) &&
×
NEW
298
        Objects.equals(this.subtype, blikDetails.subtype) &&
×
299
        Objects.equals(this.type, blikDetails.type);
×
300
  }
301

302
  @Override
303
  public int hashCode() {
NEW
304
    return Objects.hash(blikCode, checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, subtype, type);
×
305
  }
306

307
  @Override
308
  public String toString() {
309
    StringBuilder sb = new StringBuilder();
×
310
    sb.append("class BlikDetails {\n");
×
311
    sb.append("    blikCode: ").append(toIndentedString(blikCode)).append("\n");
×
312
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
313
    sb.append("    recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
×
314
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
NEW
315
    sb.append("    subtype: ").append(toIndentedString(subtype)).append("\n");
×
316
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
317
    sb.append("}");
×
318
    return sb.toString();
×
319
  }
320

321
  /**
322
   * Convert the given object to string with each line indented by 4 spaces
323
   * (except the first line).
324
   */
325
  private String toIndentedString(Object o) {
326
    if (o == null) {
×
327
      return "null";
×
328
    }
329
    return o.toString().replace("\n", "\n    ");
×
330
  }
331

332
/**
333
   * Create an instance of BlikDetails given an JSON string
334
   *
335
   * @param jsonString JSON string
336
   * @return An instance of BlikDetails
337
   * @throws JsonProcessingException if the JSON string is invalid with respect to BlikDetails
338
   */
339
  public static BlikDetails fromJson(String jsonString) throws JsonProcessingException {
340
    return JSON.getMapper().readValue(jsonString, BlikDetails.class);
×
341
  }
342
/**
343
  * Convert an instance of BlikDetails to an JSON string
344
  *
345
  * @return JSON string
346
  */
347
  public String toJson() throws JsonProcessingException {
348
    return JSON.getMapper().writeValueAsString(this);
×
349
  }
350
}
351

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