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

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

16 Oct 2023 09:08AM UTC coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

0.13 hits per line

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

20.93
/src/main/java/com/adyen/model/marketpaywebhooks/ViasPersonalData.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.marketpaywebhooks.PersonalDocumentData;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import java.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * ViasPersonalData
35
 */
36
@JsonPropertyOrder({
37
  ViasPersonalData.JSON_PROPERTY_DATE_OF_BIRTH,
38
  ViasPersonalData.JSON_PROPERTY_DOCUMENT_DATA,
39
  ViasPersonalData.JSON_PROPERTY_NATIONALITY
40
})
41

42
public class ViasPersonalData {
43
  public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth";
44
  private String dateOfBirth;
45

46
  public static final String JSON_PROPERTY_DOCUMENT_DATA = "documentData";
47
  private List<PersonalDocumentData> documentData = null;
1✔
48

49
  public static final String JSON_PROPERTY_NATIONALITY = "nationality";
50
  private String nationality;
51

52
  public ViasPersonalData() { 
1✔
53
  }
1✔
54

55
  public ViasPersonalData dateOfBirth(String dateOfBirth) {
56
    this.dateOfBirth = dateOfBirth;
×
57
    return this;
×
58
  }
59

60
   /**
61
   * The person&#39;s date of birth, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.
62
   * @return dateOfBirth
63
  **/
64
  @ApiModelProperty(value = "The person's date of birth, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.")
65
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
66
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67

68
  public String getDateOfBirth() {
69
    return dateOfBirth;
×
70
  }
71

72

73
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setDateOfBirth(String dateOfBirth) {
76
    this.dateOfBirth = dateOfBirth;
1✔
77
  }
1✔
78

79

80
  public ViasPersonalData documentData(List<PersonalDocumentData> documentData) {
81
    this.documentData = documentData;
×
82
    return this;
×
83
  }
84

85
  public ViasPersonalData addDocumentDataItem(PersonalDocumentData documentDataItem) {
86
    if (this.documentData == null) {
×
87
      this.documentData = new ArrayList<>();
×
88
    }
89
    this.documentData.add(documentDataItem);
×
90
    return this;
×
91
  }
92

93
   /**
94
   * Array that contains information about the person&#39;s identification document. You can submit only one entry per document type.
95
   * @return documentData
96
  **/
97
  @ApiModelProperty(value = "Array that contains information about the person's identification document. You can submit only one entry per document type.")
98
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DATA)
99
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100

101
  public List<PersonalDocumentData> getDocumentData() {
102
    return documentData;
×
103
  }
104

105

106
  @JsonProperty(JSON_PROPERTY_DOCUMENT_DATA)
107
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
108
  public void setDocumentData(List<PersonalDocumentData> documentData) {
109
    this.documentData = documentData;
1✔
110
  }
1✔
111

112

113
  public ViasPersonalData nationality(String nationality) {
114
    this.nationality = nationality;
×
115
    return this;
×
116
  }
117

118
   /**
119
   * The nationality of the person represented by a two-character country code,  in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **NL**. 
120
   * @return nationality
121
  **/
122
  @ApiModelProperty(value = "The nationality of the person represented by a two-character country code,  in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **NL**. ")
123
  @JsonProperty(JSON_PROPERTY_NATIONALITY)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125

126
  public String getNationality() {
127
    return nationality;
×
128
  }
129

130

131
  @JsonProperty(JSON_PROPERTY_NATIONALITY)
132
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133
  public void setNationality(String nationality) {
134
    this.nationality = nationality;
1✔
135
  }
1✔
136

137

138
  /**
139
   * Return true if this ViasPersonalData object is equal to o.
140
   */
141
  @Override
142
  public boolean equals(Object o) {
143
    if (this == o) {
×
144
      return true;
×
145
    }
146
    if (o == null || getClass() != o.getClass()) {
×
147
      return false;
×
148
    }
149
    ViasPersonalData viasPersonalData = (ViasPersonalData) o;
×
150
    return Objects.equals(this.dateOfBirth, viasPersonalData.dateOfBirth) &&
×
151
        Objects.equals(this.documentData, viasPersonalData.documentData) &&
×
152
        Objects.equals(this.nationality, viasPersonalData.nationality);
×
153
  }
154

155
  @Override
156
  public int hashCode() {
157
    return Objects.hash(dateOfBirth, documentData, nationality);
×
158
  }
159

160
  @Override
161
  public String toString() {
162
    StringBuilder sb = new StringBuilder();
×
163
    sb.append("class ViasPersonalData {\n");
×
164
    sb.append("    dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n");
×
165
    sb.append("    documentData: ").append(toIndentedString(documentData)).append("\n");
×
166
    sb.append("    nationality: ").append(toIndentedString(nationality)).append("\n");
×
167
    sb.append("}");
×
168
    return sb.toString();
×
169
  }
170

171
  /**
172
   * Convert the given object to string with each line indented by 4 spaces
173
   * (except the first line).
174
   */
175
  private String toIndentedString(Object o) {
176
    if (o == null) {
×
177
      return "null";
×
178
    }
179
    return o.toString().replace("\n", "\n    ");
×
180
  }
181

182
/**
183
   * Create an instance of ViasPersonalData given an JSON string
184
   *
185
   * @param jsonString JSON string
186
   * @return An instance of ViasPersonalData
187
   * @throws JsonProcessingException if the JSON string is invalid with respect to ViasPersonalData
188
   */
189
  public static ViasPersonalData fromJson(String jsonString) throws JsonProcessingException {
190
    return JSON.getMapper().readValue(jsonString, ViasPersonalData.class);
×
191
  }
192
/**
193
  * Convert an instance of ViasPersonalData to an JSON string
194
  *
195
  * @return JSON string
196
  */
197
  public String toJson() throws JsonProcessingException {
198
    return JSON.getMapper().writeValueAsString(this);
×
199
  }
200
}
201

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