• 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

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

40
public class CellulantDetails {
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
   * **Cellulant**
52
   */
53
  public enum TypeEnum {
1✔
54
    CELLULANT("cellulant");
1✔
55

56
    private String value;
57

58
    TypeEnum(String value) {
1✔
59
      this.value = value;
1✔
60
    }
1✔
61

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

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

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

83
  public static final String JSON_PROPERTY_TYPE = "type";
84
  private TypeEnum type;
85

86
  public CellulantDetails() { 
1✔
87
  }
1✔
88

89
  public CellulantDetails checkoutAttemptId(String checkoutAttemptId) {
90
    this.checkoutAttemptId = checkoutAttemptId;
×
91
    return this;
×
92
  }
93

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

102
  public String getCheckoutAttemptId() {
103
    return checkoutAttemptId;
×
104
  }
105

106

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

118

119
  public CellulantDetails issuer(String issuer) {
120
    this.issuer = issuer;
×
121
    return this;
×
122
  }
123

124
   /**
125
   * The Cellulant issuer.
126
   * @return issuer
127
  **/
128
  @ApiModelProperty(value = "The Cellulant issuer.")
129
  @JsonProperty(JSON_PROPERTY_ISSUER)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131

132
  public String getIssuer() {
133
    return issuer;
×
134
  }
135

136

137
 /**
138
  * The Cellulant issuer.
139
  *
140
  * @param issuer
141
  */ 
142
  @JsonProperty(JSON_PROPERTY_ISSUER)
143
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144
  public void setIssuer(String issuer) {
145
    this.issuer = issuer;
1✔
146
  }
1✔
147

148

149
  public CellulantDetails subtype(String subtype) {
NEW
150
    this.subtype = subtype;
×
NEW
151
    return this;
×
152
  }
153

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

162
  public String getSubtype() {
NEW
163
    return subtype;
×
164
  }
165

166

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

178

179
  public CellulantDetails type(TypeEnum type) {
180
    this.type = type;
×
181
    return this;
×
182
  }
183

184
   /**
185
   * **Cellulant**
186
   * @return type
187
  **/
188
  @ApiModelProperty(value = "**Cellulant**")
189
  @JsonProperty(JSON_PROPERTY_TYPE)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191

192
  public TypeEnum getType() {
193
    return type;
×
194
  }
195

196

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

208

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

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

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

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

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

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