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

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

11 Nov 2024 12:54PM UTC coverage: 11.826%. First build
#3735

push

web-flow
Merge fa79c142f into 3c3e65fc5

25 of 792 new or added lines in 20 files covered. (3.16%)

12514 of 105816 relevant lines covered (11.83%)

0.12 hits per line

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

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

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

44
  public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
45
  @Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead.
46
  private String recurringDetailReference;
47

48
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
49
  private String storedPaymentMethodId;
50

51
  /**
52
   * **paybybank_**
53
   */
54
  public enum TypeEnum {
1✔
55
    PAYBYBANK_AIS_DD("paybybank_AIS_DD");
1✔
56

57
    private String value;
58

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

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

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

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

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

87
  public PayByBankAISDirectDebitDetails() { 
1✔
88
  }
1✔
89

90
  /**
91
   * The checkout attempt identifier.
92
   *
93
   * @param checkoutAttemptId
94
   * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining
95
   */
96
  public PayByBankAISDirectDebitDetails checkoutAttemptId(String checkoutAttemptId) {
NEW
97
    this.checkoutAttemptId = checkoutAttemptId;
×
NEW
98
    return this;
×
99
  }
100

101
  /**
102
   * The checkout attempt identifier.
103
   * @return checkoutAttemptId
104
   */
105
  @ApiModelProperty(value = "The checkout attempt identifier.")
106
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
107
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
108
  public String getCheckoutAttemptId() {
NEW
109
    return checkoutAttemptId;
×
110
  }
111

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

123
  /**
124
   * This is the `recurringDetailReference` returned in the response when you created the token.
125
   *
126
   * @param recurringDetailReference
127
   * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining
128
   *
129
   * @deprecated since Adyen Checkout API v49
130
   * Use `storedPaymentMethodId` instead.
131
   */
132
  @Deprecated
133
  public PayByBankAISDirectDebitDetails recurringDetailReference(String recurringDetailReference) {
NEW
134
    this.recurringDetailReference = recurringDetailReference;
×
NEW
135
    return this;
×
136
  }
137

138
  /**
139
   * This is the `recurringDetailReference` returned in the response when you created the token.
140
   * @return recurringDetailReference
141
   *
142
   * @deprecated since Adyen Checkout API v49
143
   * Use `storedPaymentMethodId` instead.
144
   */
145
  @Deprecated
146
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
147
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
148
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
149
  public String getRecurringDetailReference() {
NEW
150
    return recurringDetailReference;
×
151
  }
152

153
  /**
154
   * This is the `recurringDetailReference` returned in the response when you created the token.
155
   *
156
   * @param recurringDetailReference
157
   *
158
   * @deprecated since Adyen Checkout API v49
159
   * Use `storedPaymentMethodId` instead.
160
   */ 
161
  @Deprecated
162
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setRecurringDetailReference(String recurringDetailReference) {
NEW
165
    this.recurringDetailReference = recurringDetailReference;
×
NEW
166
  }
×
167

168
  /**
169
   * This is the `recurringDetailReference` returned in the response when you created the token.
170
   *
171
   * @param storedPaymentMethodId
172
   * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining
173
   */
174
  public PayByBankAISDirectDebitDetails storedPaymentMethodId(String storedPaymentMethodId) {
NEW
175
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
176
    return this;
×
177
  }
178

179
  /**
180
   * This is the `recurringDetailReference` returned in the response when you created the token.
181
   * @return storedPaymentMethodId
182
   */
183
  @ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
184
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
185
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
186
  public String getStoredPaymentMethodId() {
NEW
187
    return storedPaymentMethodId;
×
188
  }
189

190
  /**
191
   * This is the `recurringDetailReference` returned in the response when you created the token.
192
   *
193
   * @param storedPaymentMethodId
194
   */ 
195
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
NEW
198
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
199
  }
×
200

201
  /**
202
   * **paybybank_**
203
   *
204
   * @param type
205
   * @return the current {@code PayByBankAISDirectDebitDetails} instance, allowing for method chaining
206
   */
207
  public PayByBankAISDirectDebitDetails type(TypeEnum type) {
NEW
208
    this.type = type;
×
NEW
209
    return this;
×
210
  }
211

212
  /**
213
   * **paybybank_**
214
   * @return type
215
   */
216
  @ApiModelProperty(required = true, value = "**paybybank_**")
217
  @JsonProperty(JSON_PROPERTY_TYPE)
218
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
219
  public TypeEnum getType() {
NEW
220
    return type;
×
221
  }
222

223
  /**
224
   * **paybybank_**
225
   *
226
   * @param type
227
   */ 
228
  @JsonProperty(JSON_PROPERTY_TYPE)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setType(TypeEnum type) {
NEW
231
    this.type = type;
×
NEW
232
  }
×
233

234
  /**
235
   * Return true if this PayByBankAISDirectDebitDetails object is equal to o.
236
   */
237
  @Override
238
  public boolean equals(Object o) {
NEW
239
    if (this == o) {
×
NEW
240
      return true;
×
241
    }
NEW
242
    if (o == null || getClass() != o.getClass()) {
×
NEW
243
      return false;
×
244
    }
NEW
245
    PayByBankAISDirectDebitDetails payByBankAISDirectDebitDetails = (PayByBankAISDirectDebitDetails) o;
×
NEW
246
    return Objects.equals(this.checkoutAttemptId, payByBankAISDirectDebitDetails.checkoutAttemptId) &&
×
NEW
247
        Objects.equals(this.recurringDetailReference, payByBankAISDirectDebitDetails.recurringDetailReference) &&
×
NEW
248
        Objects.equals(this.storedPaymentMethodId, payByBankAISDirectDebitDetails.storedPaymentMethodId) &&
×
NEW
249
        Objects.equals(this.type, payByBankAISDirectDebitDetails.type);
×
250
  }
251

252
  @Override
253
  public int hashCode() {
NEW
254
    return Objects.hash(checkoutAttemptId, recurringDetailReference, storedPaymentMethodId, type);
×
255
  }
256

257
  @Override
258
  public String toString() {
NEW
259
    StringBuilder sb = new StringBuilder();
×
NEW
260
    sb.append("class PayByBankAISDirectDebitDetails {\n");
×
NEW
261
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
NEW
262
    sb.append("    recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
×
NEW
263
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
NEW
264
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
NEW
265
    sb.append("}");
×
NEW
266
    return sb.toString();
×
267
  }
268

269
  /**
270
   * Convert the given object to string with each line indented by 4 spaces
271
   * (except the first line).
272
   */
273
  private String toIndentedString(Object o) {
NEW
274
    if (o == null) {
×
NEW
275
      return "null";
×
276
    }
NEW
277
    return o.toString().replace("\n", "\n    ");
×
278
  }
279

280
/**
281
   * Create an instance of PayByBankAISDirectDebitDetails given an JSON string
282
   *
283
   * @param jsonString JSON string
284
   * @return An instance of PayByBankAISDirectDebitDetails
285
   * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankAISDirectDebitDetails
286
   */
287
  public static PayByBankAISDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException {
NEW
288
    return JSON.getMapper().readValue(jsonString, PayByBankAISDirectDebitDetails.class);
×
289
  }
290
/**
291
  * Convert an instance of PayByBankAISDirectDebitDetails to an JSON string
292
  *
293
  * @return JSON string
294
  */
295
  public String toJson() throws JsonProcessingException {
NEW
296
    return JSON.getMapper().writeValueAsString(this);
×
297
  }
298
}
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