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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/marketpayaccount/ViasPersonalData.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

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

33

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

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

47
  public static final String JSON_PROPERTY_DOCUMENT_DATA = "documentData";
48
  private List<PersonalDocumentData> documentData = null;
×
49

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

53
  public ViasPersonalData() { 
×
54
  }
×
55

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

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

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

73

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

80

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

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

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

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

106

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

113

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

119
   /**
120
   * 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**. 
121
   * @return nationality
122
  **/
123
  @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**. ")
124
  @JsonProperty(JSON_PROPERTY_NATIONALITY)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

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

131

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

138

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

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

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

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

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

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