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

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

21 Mar 2024 10:28AM CUT coverage: 12.294%. First build
#3177

push

web-flow
Merge 3d6ff7572 into d61048882

0 of 208 new or added lines in 10 files covered. (0.0%)

12446 of 101233 relevant lines covered (12.29%)

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/checkout/PaymentMethodToStore.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
 * PaymentMethodToStore
32
 */
33
@JsonPropertyOrder({
34
  PaymentMethodToStore.JSON_PROPERTY_BRAND,
35
  PaymentMethodToStore.JSON_PROPERTY_CVC,
36
  PaymentMethodToStore.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
37
  PaymentMethodToStore.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
38
  PaymentMethodToStore.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
39
  PaymentMethodToStore.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE,
40
  PaymentMethodToStore.JSON_PROPERTY_EXPIRY_MONTH,
41
  PaymentMethodToStore.JSON_PROPERTY_EXPIRY_YEAR,
42
  PaymentMethodToStore.JSON_PROPERTY_HOLDER_NAME,
43
  PaymentMethodToStore.JSON_PROPERTY_NUMBER
44
})
45

46
public class PaymentMethodToStore {
47
  public static final String JSON_PROPERTY_BRAND = "brand";
48
  private String brand;
49

50
  public static final String JSON_PROPERTY_CVC = "cvc";
51
  private String cvc;
52

53
  public static final String JSON_PROPERTY_ENCRYPTED_CARD_NUMBER = "encryptedCardNumber";
54
  private String encryptedCardNumber;
55

56
  public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH = "encryptedExpiryMonth";
57
  private String encryptedExpiryMonth;
58

59
  public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear";
60
  private String encryptedExpiryYear;
61

62
  public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode";
63
  private String encryptedSecurityCode;
64

65
  public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth";
66
  private String expiryMonth;
67

68
  public static final String JSON_PROPERTY_EXPIRY_YEAR = "expiryYear";
69
  private String expiryYear;
70

71
  public static final String JSON_PROPERTY_HOLDER_NAME = "holderName";
72
  private String holderName;
73

74
  public static final String JSON_PROPERTY_NUMBER = "number";
75
  private String number;
76

NEW
77
  public PaymentMethodToStore() { 
×
NEW
78
  }
×
79

80
  public PaymentMethodToStore brand(String brand) {
NEW
81
    this.brand = brand;
×
NEW
82
    return this;
×
83
  }
84

85
   /**
86
   * Secondary brand of the card. For example: **plastix**, **hmclub**.
87
   * @return brand
88
  **/
89
  @ApiModelProperty(value = "Secondary brand of the card. For example: **plastix**, **hmclub**.")
90
  @JsonProperty(JSON_PROPERTY_BRAND)
91
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92

93
  public String getBrand() {
NEW
94
    return brand;
×
95
  }
96

97

98
 /**
99
  * Secondary brand of the card. For example: **plastix**, **hmclub**.
100
  *
101
  * @param brand
102
  */ 
103
  @JsonProperty(JSON_PROPERTY_BRAND)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105
  public void setBrand(String brand) {
NEW
106
    this.brand = brand;
×
NEW
107
  }
×
108

109

110
  public PaymentMethodToStore cvc(String cvc) {
NEW
111
    this.cvc = cvc;
×
NEW
112
    return this;
×
113
  }
114

115
   /**
116
   * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
117
   * @return cvc
118
  **/
119
  @ApiModelProperty(value = "The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).")
120
  @JsonProperty(JSON_PROPERTY_CVC)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getCvc() {
NEW
124
    return cvc;
×
125
  }
126

127

128
 /**
129
  * The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
130
  *
131
  * @param cvc
132
  */ 
133
  @JsonProperty(JSON_PROPERTY_CVC)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135
  public void setCvc(String cvc) {
NEW
136
    this.cvc = cvc;
×
NEW
137
  }
×
138

139

140
  public PaymentMethodToStore encryptedCardNumber(String encryptedCardNumber) {
NEW
141
    this.encryptedCardNumber = encryptedCardNumber;
×
NEW
142
    return this;
×
143
  }
144

145
   /**
146
   * The encrypted card number.
147
   * @return encryptedCardNumber
148
  **/
149
  @ApiModelProperty(value = "The encrypted card number.")
150
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152

153
  public String getEncryptedCardNumber() {
NEW
154
    return encryptedCardNumber;
×
155
  }
156

157

158
 /**
159
  * The encrypted card number.
160
  *
161
  * @param encryptedCardNumber
162
  */ 
163
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD_NUMBER)
164
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165
  public void setEncryptedCardNumber(String encryptedCardNumber) {
NEW
166
    this.encryptedCardNumber = encryptedCardNumber;
×
NEW
167
  }
×
168

169

170
  public PaymentMethodToStore encryptedExpiryMonth(String encryptedExpiryMonth) {
NEW
171
    this.encryptedExpiryMonth = encryptedExpiryMonth;
×
NEW
172
    return this;
×
173
  }
174

175
   /**
176
   * The encrypted card expiry month.
177
   * @return encryptedExpiryMonth
178
  **/
179
  @ApiModelProperty(value = "The encrypted card expiry month.")
180
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH)
181
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
182

183
  public String getEncryptedExpiryMonth() {
NEW
184
    return encryptedExpiryMonth;
×
185
  }
186

187

188
 /**
189
  * The encrypted card expiry month.
190
  *
191
  * @param encryptedExpiryMonth
192
  */ 
193
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH)
194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
195
  public void setEncryptedExpiryMonth(String encryptedExpiryMonth) {
NEW
196
    this.encryptedExpiryMonth = encryptedExpiryMonth;
×
NEW
197
  }
×
198

199

200
  public PaymentMethodToStore encryptedExpiryYear(String encryptedExpiryYear) {
NEW
201
    this.encryptedExpiryYear = encryptedExpiryYear;
×
NEW
202
    return this;
×
203
  }
204

205
   /**
206
   * The encrypted card expiry year.
207
   * @return encryptedExpiryYear
208
  **/
209
  @ApiModelProperty(value = "The encrypted card expiry year.")
210
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR)
211
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212

213
  public String getEncryptedExpiryYear() {
NEW
214
    return encryptedExpiryYear;
×
215
  }
216

217

218
 /**
219
  * The encrypted card expiry year.
220
  *
221
  * @param encryptedExpiryYear
222
  */ 
223
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR)
224
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
225
  public void setEncryptedExpiryYear(String encryptedExpiryYear) {
NEW
226
    this.encryptedExpiryYear = encryptedExpiryYear;
×
NEW
227
  }
×
228

229

230
  public PaymentMethodToStore encryptedSecurityCode(String encryptedSecurityCode) {
NEW
231
    this.encryptedSecurityCode = encryptedSecurityCode;
×
NEW
232
    return this;
×
233
  }
234

235
   /**
236
   * The encrypted card verification code.
237
   * @return encryptedSecurityCode
238
  **/
239
  @ApiModelProperty(value = "The encrypted card verification code.")
240
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242

243
  public String getEncryptedSecurityCode() {
NEW
244
    return encryptedSecurityCode;
×
245
  }
246

247

248
 /**
249
  * The encrypted card verification code.
250
  *
251
  * @param encryptedSecurityCode
252
  */ 
253
  @JsonProperty(JSON_PROPERTY_ENCRYPTED_SECURITY_CODE)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255
  public void setEncryptedSecurityCode(String encryptedSecurityCode) {
NEW
256
    this.encryptedSecurityCode = encryptedSecurityCode;
×
NEW
257
  }
×
258

259

260
  public PaymentMethodToStore expiryMonth(String expiryMonth) {
NEW
261
    this.expiryMonth = expiryMonth;
×
NEW
262
    return this;
×
263
  }
264

265
   /**
266
   * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
267
   * @return expiryMonth
268
  **/
269
  @ApiModelProperty(value = "The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).")
270
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272

273
  public String getExpiryMonth() {
NEW
274
    return expiryMonth;
×
275
  }
276

277

278
 /**
279
  * The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
280
  *
281
  * @param expiryMonth
282
  */ 
283
  @JsonProperty(JSON_PROPERTY_EXPIRY_MONTH)
284
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
285
  public void setExpiryMonth(String expiryMonth) {
NEW
286
    this.expiryMonth = expiryMonth;
×
NEW
287
  }
×
288

289

290
  public PaymentMethodToStore expiryYear(String expiryYear) {
NEW
291
    this.expiryYear = expiryYear;
×
NEW
292
    return this;
×
293
  }
294

295
   /**
296
   * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
297
   * @return expiryYear
298
  **/
299
  @ApiModelProperty(value = "The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).")
300
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
301
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
302

303
  public String getExpiryYear() {
NEW
304
    return expiryYear;
×
305
  }
306

307

308
 /**
309
  * The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
310
  *
311
  * @param expiryYear
312
  */ 
313
  @JsonProperty(JSON_PROPERTY_EXPIRY_YEAR)
314
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
315
  public void setExpiryYear(String expiryYear) {
NEW
316
    this.expiryYear = expiryYear;
×
NEW
317
  }
×
318

319

320
  public PaymentMethodToStore holderName(String holderName) {
NEW
321
    this.holderName = holderName;
×
NEW
322
    return this;
×
323
  }
324

325
   /**
326
   * The name of the card holder.
327
   * @return holderName
328
  **/
329
  @ApiModelProperty(value = "The name of the card holder.")
330
  @JsonProperty(JSON_PROPERTY_HOLDER_NAME)
331
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
332

333
  public String getHolderName() {
NEW
334
    return holderName;
×
335
  }
336

337

338
 /**
339
  * The name of the card holder.
340
  *
341
  * @param holderName
342
  */ 
343
  @JsonProperty(JSON_PROPERTY_HOLDER_NAME)
344
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
345
  public void setHolderName(String holderName) {
NEW
346
    this.holderName = holderName;
×
NEW
347
  }
×
348

349

350
  public PaymentMethodToStore number(String number) {
NEW
351
    this.number = number;
×
NEW
352
    return this;
×
353
  }
354

355
   /**
356
   * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
357
   * @return number
358
  **/
359
  @ApiModelProperty(value = "The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).")
360
  @JsonProperty(JSON_PROPERTY_NUMBER)
361
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
362

363
  public String getNumber() {
NEW
364
    return number;
×
365
  }
366

367

368
 /**
369
  * The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
370
  *
371
  * @param number
372
  */ 
373
  @JsonProperty(JSON_PROPERTY_NUMBER)
374
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
375
  public void setNumber(String number) {
NEW
376
    this.number = number;
×
NEW
377
  }
×
378

379

380
  /**
381
   * Return true if this PaymentMethodToStore object is equal to o.
382
   */
383
  @Override
384
  public boolean equals(Object o) {
NEW
385
    if (this == o) {
×
NEW
386
      return true;
×
387
    }
NEW
388
    if (o == null || getClass() != o.getClass()) {
×
NEW
389
      return false;
×
390
    }
NEW
391
    PaymentMethodToStore paymentMethodToStore = (PaymentMethodToStore) o;
×
NEW
392
    return Objects.equals(this.brand, paymentMethodToStore.brand) &&
×
NEW
393
        Objects.equals(this.cvc, paymentMethodToStore.cvc) &&
×
NEW
394
        Objects.equals(this.encryptedCardNumber, paymentMethodToStore.encryptedCardNumber) &&
×
NEW
395
        Objects.equals(this.encryptedExpiryMonth, paymentMethodToStore.encryptedExpiryMonth) &&
×
NEW
396
        Objects.equals(this.encryptedExpiryYear, paymentMethodToStore.encryptedExpiryYear) &&
×
NEW
397
        Objects.equals(this.encryptedSecurityCode, paymentMethodToStore.encryptedSecurityCode) &&
×
NEW
398
        Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) &&
×
NEW
399
        Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) &&
×
NEW
400
        Objects.equals(this.holderName, paymentMethodToStore.holderName) &&
×
NEW
401
        Objects.equals(this.number, paymentMethodToStore.number);
×
402
  }
403

404
  @Override
405
  public int hashCode() {
NEW
406
    return Objects.hash(brand, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, holderName, number);
×
407
  }
408

409
  @Override
410
  public String toString() {
NEW
411
    StringBuilder sb = new StringBuilder();
×
NEW
412
    sb.append("class PaymentMethodToStore {\n");
×
NEW
413
    sb.append("    brand: ").append(toIndentedString(brand)).append("\n");
×
NEW
414
    sb.append("    cvc: ").append(toIndentedString(cvc)).append("\n");
×
NEW
415
    sb.append("    encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n");
×
NEW
416
    sb.append("    encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n");
×
NEW
417
    sb.append("    encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n");
×
NEW
418
    sb.append("    encryptedSecurityCode: ").append(toIndentedString(encryptedSecurityCode)).append("\n");
×
NEW
419
    sb.append("    expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n");
×
NEW
420
    sb.append("    expiryYear: ").append(toIndentedString(expiryYear)).append("\n");
×
NEW
421
    sb.append("    holderName: ").append(toIndentedString(holderName)).append("\n");
×
NEW
422
    sb.append("    number: ").append(toIndentedString(number)).append("\n");
×
NEW
423
    sb.append("}");
×
NEW
424
    return sb.toString();
×
425
  }
426

427
  /**
428
   * Convert the given object to string with each line indented by 4 spaces
429
   * (except the first line).
430
   */
431
  private String toIndentedString(Object o) {
NEW
432
    if (o == null) {
×
NEW
433
      return "null";
×
434
    }
NEW
435
    return o.toString().replace("\n", "\n    ");
×
436
  }
437

438
/**
439
   * Create an instance of PaymentMethodToStore given an JSON string
440
   *
441
   * @param jsonString JSON string
442
   * @return An instance of PaymentMethodToStore
443
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodToStore
444
   */
445
  public static PaymentMethodToStore fromJson(String jsonString) throws JsonProcessingException {
NEW
446
    return JSON.getMapper().readValue(jsonString, PaymentMethodToStore.class);
×
447
  }
448
/**
449
  * Convert an instance of PaymentMethodToStore to an JSON string
450
  *
451
  * @return JSON string
452
  */
453
  public String toJson() throws JsonProcessingException {
NEW
454
    return JSON.getMapper().writeValueAsString(this);
×
455
  }
456
}
457

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