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

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

07 Aug 2024 01:54PM UTC coverage: 11.85%. First build
#3406

push

web-flow
Merge e17893d63 into 4d76e33cf

5 of 744 new or added lines in 34 files covered. (0.67%)

12525 of 105697 relevant lines covered (11.85%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/transfers/CardIdentification.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 4
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.transfers;
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
 * CardIdentification
32
 */
33
@JsonPropertyOrder({
34
  CardIdentification.JSON_PROPERTY_EXPIRY_MONTH,
35
  CardIdentification.JSON_PROPERTY_EXPIRY_YEAR,
36
  CardIdentification.JSON_PROPERTY_ISSUE_NUMBER,
37
  CardIdentification.JSON_PROPERTY_NUMBER,
38
  CardIdentification.JSON_PROPERTY_START_MONTH,
39
  CardIdentification.JSON_PROPERTY_START_YEAR,
40
  CardIdentification.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
41
})
42

43
public class CardIdentification {
44
  public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth";
45
  private String expiryMonth;
46

47
  public static final String JSON_PROPERTY_EXPIRY_YEAR = "expiryYear";
48
  private String expiryYear;
49

50
  public static final String JSON_PROPERTY_ISSUE_NUMBER = "issueNumber";
51
  private String issueNumber;
52

53
  public static final String JSON_PROPERTY_NUMBER = "number";
54
  private String number;
55

56
  public static final String JSON_PROPERTY_START_MONTH = "startMonth";
57
  private String startMonth;
58

59
  public static final String JSON_PROPERTY_START_YEAR = "startYear";
60
  private String startYear;
61

62
  public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
63
  private String storedPaymentMethodId;
64

NEW
65
  public CardIdentification() { 
×
NEW
66
  }
×
67

68
  public CardIdentification expiryMonth(String expiryMonth) {
NEW
69
    this.expiryMonth = expiryMonth;
×
NEW
70
    return this;
×
71
  }
72

73
   /**
74
   * The expiry month of the card.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
75
   * @return expiryMonth
76
  **/
77
  @ApiModelProperty(value = "The expiry month of the card.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November")
78
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
79
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80

81
  public String getExpiryMonth() {
NEW
82
    return expiryMonth;
×
83
  }
84

85

86
 /**
87
  * The expiry month of the card.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
88
  *
89
  * @param expiryMonth
90
  */ 
91
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setExpiryMonth(String expiryMonth) {
NEW
94
    this.expiryMonth = expiryMonth;
×
NEW
95
  }
×
96

97

98
  public CardIdentification expiryYear(String expiryYear) {
NEW
99
    this.expiryYear = expiryYear;
×
NEW
100
    return this;
×
101
  }
102

103
   /**
104
   * The expiry year of the card.  Format: four digits. For example: 2020
105
   * @return expiryYear
106
  **/
107
  @ApiModelProperty(value = "The expiry year of the card.  Format: four digits. For example: 2020")
108
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110

111
  public String getExpiryYear() {
NEW
112
    return expiryYear;
×
113
  }
114

115

116
 /**
117
  * The expiry year of the card.  Format: four digits. For example: 2020
118
  *
119
  * @param expiryYear
120
  */ 
121
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123
  public void setExpiryYear(String expiryYear) {
NEW
124
    this.expiryYear = expiryYear;
×
NEW
125
  }
×
126

127

128
  public CardIdentification issueNumber(String issueNumber) {
NEW
129
    this.issueNumber = issueNumber;
×
NEW
130
    return this;
×
131
  }
132

133
   /**
134
   * The issue number of the card. Applies only to some UK debit cards.
135
   * @return issueNumber
136
  **/
137
  @ApiModelProperty(value = "The issue number of the card. Applies only to some UK debit cards.")
138
  @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER)
139
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140

141
  public String getIssueNumber() {
NEW
142
    return issueNumber;
×
143
  }
144

145

146
 /**
147
  * The issue number of the card. Applies only to some UK debit cards.
148
  *
149
  * @param issueNumber
150
  */ 
151
  @JsonProperty(JSON_PROPERTY_ISSUE_NUMBER)
152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
153
  public void setIssueNumber(String issueNumber) {
NEW
154
    this.issueNumber = issueNumber;
×
NEW
155
  }
×
156

157

158
  public CardIdentification number(String number) {
NEW
159
    this.number = number;
×
NEW
160
    return this;
×
161
  }
162

163
   /**
164
   * The card number without any separators.  For security, the response only includes the last four digits of the card number.
165
   * @return number
166
  **/
167
  @ApiModelProperty(value = "The card number without any separators.  For security, the response only includes the last four digits of the card number.")
168
  @JsonProperty(JSON_PROPERTY_NUMBER)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170

171
  public String getNumber() {
NEW
172
    return number;
×
173
  }
174

175

176
 /**
177
  * The card number without any separators.  For security, the response only includes the last four digits of the card number.
178
  *
179
  * @param number
180
  */ 
181
  @JsonProperty(JSON_PROPERTY_NUMBER)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183
  public void setNumber(String number) {
NEW
184
    this.number = number;
×
NEW
185
  }
×
186

187

188
  public CardIdentification startMonth(String startMonth) {
NEW
189
    this.startMonth = startMonth;
×
NEW
190
    return this;
×
191
  }
192

193
   /**
194
   * The month when the card was issued. Applies only to some UK debit cards.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
195
   * @return startMonth
196
  **/
197
  @ApiModelProperty(value = "The month when the card was issued. Applies only to some UK debit cards.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November")
198
  @JsonProperty(JSON_PROPERTY_START_MONTH)
199
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200

201
  public String getStartMonth() {
NEW
202
    return startMonth;
×
203
  }
204

205

206
 /**
207
  * The month when the card was issued. Applies only to some UK debit cards.  Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
208
  *
209
  * @param startMonth
210
  */ 
211
  @JsonProperty(JSON_PROPERTY_START_MONTH)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213
  public void setStartMonth(String startMonth) {
NEW
214
    this.startMonth = startMonth;
×
NEW
215
  }
×
216

217

218
  public CardIdentification startYear(String startYear) {
NEW
219
    this.startYear = startYear;
×
NEW
220
    return this;
×
221
  }
222

223
   /**
224
   * The year when the card was issued. Applies only to some UK debit cards.  Format: four digits. For example: 2020
225
   * @return startYear
226
  **/
227
  @ApiModelProperty(value = "The year when the card was issued. Applies only to some UK debit cards.  Format: four digits. For example: 2020")
228
  @JsonProperty(JSON_PROPERTY_START_YEAR)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230

231
  public String getStartYear() {
NEW
232
    return startYear;
×
233
  }
234

235

236
 /**
237
  * The year when the card was issued. Applies only to some UK debit cards.  Format: four digits. For example: 2020
238
  *
239
  * @param startYear
240
  */ 
241
  @JsonProperty(JSON_PROPERTY_START_YEAR)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243
  public void setStartYear(String startYear) {
NEW
244
    this.startYear = startYear;
×
NEW
245
  }
×
246

247

248
  public CardIdentification storedPaymentMethodId(String storedPaymentMethodId) {
NEW
249
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
250
    return this;
×
251
  }
252

253
   /**
254
   * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.  
255
   * @return storedPaymentMethodId
256
  **/
257
  @ApiModelProperty(value = "The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.  ")
258
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
259
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
260

261
  public String getStoredPaymentMethodId() {
NEW
262
    return storedPaymentMethodId;
×
263
  }
264

265

266
 /**
267
  * The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.  
268
  *
269
  * @param storedPaymentMethodId
270
  */ 
271
  @JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273
  public void setStoredPaymentMethodId(String storedPaymentMethodId) {
NEW
274
    this.storedPaymentMethodId = storedPaymentMethodId;
×
NEW
275
  }
×
276

277

278
  /**
279
   * Return true if this CardIdentification object is equal to o.
280
   */
281
  @Override
282
  public boolean equals(Object o) {
NEW
283
    if (this == o) {
×
NEW
284
      return true;
×
285
    }
NEW
286
    if (o == null || getClass() != o.getClass()) {
×
NEW
287
      return false;
×
288
    }
NEW
289
    CardIdentification cardIdentification = (CardIdentification) o;
×
NEW
290
    return Objects.equals(this.expiryMonth, cardIdentification.expiryMonth) &&
×
NEW
291
        Objects.equals(this.expiryYear, cardIdentification.expiryYear) &&
×
NEW
292
        Objects.equals(this.issueNumber, cardIdentification.issueNumber) &&
×
NEW
293
        Objects.equals(this.number, cardIdentification.number) &&
×
NEW
294
        Objects.equals(this.startMonth, cardIdentification.startMonth) &&
×
NEW
295
        Objects.equals(this.startYear, cardIdentification.startYear) &&
×
NEW
296
        Objects.equals(this.storedPaymentMethodId, cardIdentification.storedPaymentMethodId);
×
297
  }
298

299
  @Override
300
  public int hashCode() {
NEW
301
    return Objects.hash(expiryMonth, expiryYear, issueNumber, number, startMonth, startYear, storedPaymentMethodId);
×
302
  }
303

304
  @Override
305
  public String toString() {
NEW
306
    StringBuilder sb = new StringBuilder();
×
NEW
307
    sb.append("class CardIdentification {\n");
×
NEW
308
    sb.append("    expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n");
×
NEW
309
    sb.append("    expiryYear: ").append(toIndentedString(expiryYear)).append("\n");
×
NEW
310
    sb.append("    issueNumber: ").append(toIndentedString(issueNumber)).append("\n");
×
NEW
311
    sb.append("    number: ").append(toIndentedString(number)).append("\n");
×
NEW
312
    sb.append("    startMonth: ").append(toIndentedString(startMonth)).append("\n");
×
NEW
313
    sb.append("    startYear: ").append(toIndentedString(startYear)).append("\n");
×
NEW
314
    sb.append("    storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
×
NEW
315
    sb.append("}");
×
NEW
316
    return sb.toString();
×
317
  }
318

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

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

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