• 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

24.56
/src/main/java/com/adyen/model/checkout/BillDeskDetails.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
 * BillDeskDetails
32
 */
33
@JsonPropertyOrder({
34
  BillDeskDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
35
  BillDeskDetails.JSON_PROPERTY_ISSUER,
36
  BillDeskDetails.JSON_PROPERTY_SUBTYPE,
37
  BillDeskDetails.JSON_PROPERTY_TYPE
38
})
39

40
public class BillDeskDetails {
41
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
42
  private String checkoutAttemptId;
43

44
  public static final String JSON_PROPERTY_ISSUER = "issuer";
45
  private String issuer;
46

47
  public static final String JSON_PROPERTY_SUBTYPE = "subtype";
48
  private String subtype;
49

50
  /**
51
   * **billdesk**
52
   */
53
  public enum TypeEnum {
1✔
54
    ONLINE("billdesk_online"),
1✔
55
    
56
    WALLET("billdesk_wallet");
1✔
57

58
    private String value;
59

60
    TypeEnum(String value) {
1✔
61
      this.value = value;
1✔
62
    }
1✔
63

64
    @JsonValue
65
    public String getValue() {
66
      return value;
1✔
67
    }
68

69
    @Override
70
    public String toString() {
71
      return String.valueOf(value);
×
72
    }
73

74
    @JsonCreator
75
    public static TypeEnum fromValue(String value) {
76
      for (TypeEnum b : TypeEnum.values()) {
1✔
77
        if (b.value.equals(value)) {
1✔
78
          return b;
×
79
        }
80
      }
81
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
82
    }
83
  }
84

85
  public static final String JSON_PROPERTY_TYPE = "type";
86
  private TypeEnum type;
87

88
  public BillDeskDetails() { 
1✔
89
  }
1✔
90

91
  public BillDeskDetails checkoutAttemptId(String checkoutAttemptId) {
92
    this.checkoutAttemptId = checkoutAttemptId;
×
93
    return this;
×
94
  }
95

96
   /**
97
   * The checkout attempt identifier.
98
   * @return checkoutAttemptId
99
  **/
100
  @ApiModelProperty(value = "The checkout attempt identifier.")
101
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103

104
  public String getCheckoutAttemptId() {
105
    return checkoutAttemptId;
×
106
  }
107

108

109
 /**
110
  * The checkout attempt identifier.
111
  *
112
  * @param checkoutAttemptId
113
  */ 
114
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116
  public void setCheckoutAttemptId(String checkoutAttemptId) {
117
    this.checkoutAttemptId = checkoutAttemptId;
×
118
  }
×
119

120

121
  public BillDeskDetails issuer(String issuer) {
122
    this.issuer = issuer;
×
123
    return this;
×
124
  }
125

126
   /**
127
   * The issuer id of the shopper's selected bank.
128
   * @return issuer
129
  **/
130
  @ApiModelProperty(required = true, value = "The issuer id of the shopper's selected bank.")
131
  @JsonProperty(JSON_PROPERTY_ISSUER)
132
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133

134
  public String getIssuer() {
135
    return issuer;
×
136
  }
137

138

139
 /**
140
  * The issuer id of the shopper's selected bank.
141
  *
142
  * @param issuer
143
  */ 
144
  @JsonProperty(JSON_PROPERTY_ISSUER)
145
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
146
  public void setIssuer(String issuer) {
147
    this.issuer = issuer;
1✔
148
  }
1✔
149

150

151
  public BillDeskDetails subtype(String subtype) {
NEW
152
    this.subtype = subtype;
×
NEW
153
    return this;
×
154
  }
155

156
   /**
157
   * The payment method subtype.
158
   * @return subtype
159
  **/
160
  @ApiModelProperty(value = "The payment method subtype.")
161
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163

164
  public String getSubtype() {
NEW
165
    return subtype;
×
166
  }
167

168

169
 /**
170
  * The payment method subtype.
171
  *
172
  * @param subtype
173
  */ 
174
  @JsonProperty(JSON_PROPERTY_SUBTYPE)
175
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
176
  public void setSubtype(String subtype) {
NEW
177
    this.subtype = subtype;
×
NEW
178
  }
×
179

180

181
  public BillDeskDetails type(TypeEnum type) {
182
    this.type = type;
×
183
    return this;
×
184
  }
185

186
   /**
187
   * **billdesk**
188
   * @return type
189
  **/
190
  @ApiModelProperty(required = true, value = "**billdesk**")
191
  @JsonProperty(JSON_PROPERTY_TYPE)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193

194
  public TypeEnum getType() {
195
    return type;
×
196
  }
197

198

199
 /**
200
  * **billdesk**
201
  *
202
  * @param type
203
  */ 
204
  @JsonProperty(JSON_PROPERTY_TYPE)
205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
206
  public void setType(TypeEnum type) {
207
    this.type = type;
×
208
  }
×
209

210

211
  /**
212
   * Return true if this BillDeskDetails object is equal to o.
213
   */
214
  @Override
215
  public boolean equals(Object o) {
216
    if (this == o) {
×
217
      return true;
×
218
    }
219
    if (o == null || getClass() != o.getClass()) {
×
220
      return false;
×
221
    }
222
    BillDeskDetails billDeskDetails = (BillDeskDetails) o;
×
223
    return Objects.equals(this.checkoutAttemptId, billDeskDetails.checkoutAttemptId) &&
×
224
        Objects.equals(this.issuer, billDeskDetails.issuer) &&
×
NEW
225
        Objects.equals(this.subtype, billDeskDetails.subtype) &&
×
226
        Objects.equals(this.type, billDeskDetails.type);
×
227
  }
228

229
  @Override
230
  public int hashCode() {
NEW
231
    return Objects.hash(checkoutAttemptId, issuer, subtype, type);
×
232
  }
233

234
  @Override
235
  public String toString() {
236
    StringBuilder sb = new StringBuilder();
×
237
    sb.append("class BillDeskDetails {\n");
×
238
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
239
    sb.append("    issuer: ").append(toIndentedString(issuer)).append("\n");
×
NEW
240
    sb.append("    subtype: ").append(toIndentedString(subtype)).append("\n");
×
241
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
242
    sb.append("}");
×
243
    return sb.toString();
×
244
  }
245

246
  /**
247
   * Convert the given object to string with each line indented by 4 spaces
248
   * (except the first line).
249
   */
250
  private String toIndentedString(Object o) {
251
    if (o == null) {
×
252
      return "null";
×
253
    }
254
    return o.toString().replace("\n", "\n    ");
×
255
  }
256

257
/**
258
   * Create an instance of BillDeskDetails given an JSON string
259
   *
260
   * @param jsonString JSON string
261
   * @return An instance of BillDeskDetails
262
   * @throws JsonProcessingException if the JSON string is invalid with respect to BillDeskDetails
263
   */
264
  public static BillDeskDetails fromJson(String jsonString) throws JsonProcessingException {
265
    return JSON.getMapper().readValue(jsonString, BillDeskDetails.class);
×
266
  }
267
/**
268
  * Convert an instance of BillDeskDetails to an JSON string
269
  *
270
  * @return JSON string
271
  */
272
  public String toJson() throws JsonProcessingException {
273
    return JSON.getMapper().writeValueAsString(this);
×
274
  }
275
}
276

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