• 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/IndividualDetails.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.ViasName;
21
import com.adyen.model.marketpayaccount.ViasPersonalData;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * IndividualDetails
35
 */
36
@JsonPropertyOrder({
37
  IndividualDetails.JSON_PROPERTY_NAME,
38
  IndividualDetails.JSON_PROPERTY_PERSONAL_DATA
39
})
40

41
public class IndividualDetails {
42
  public static final String JSON_PROPERTY_NAME = "name";
43
  private ViasName name;
44

45
  public static final String JSON_PROPERTY_PERSONAL_DATA = "personalData";
46
  private ViasPersonalData personalData;
47

48
  public IndividualDetails() { 
×
49
  }
×
50

51
  public IndividualDetails name(ViasName name) {
52
    this.name = name;
×
53
    return this;
×
54
  }
55

56
   /**
57
   * Get name
58
   * @return name
59
  **/
60
  @ApiModelProperty(value = "")
61
  @JsonProperty(JSON_PROPERTY_NAME)
62
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63

64
  public ViasName getName() {
65
    return name;
×
66
  }
67

68

69
  @JsonProperty(JSON_PROPERTY_NAME)
70
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
71
  public void setName(ViasName name) {
72
    this.name = name;
×
73
  }
×
74

75

76
  public IndividualDetails personalData(ViasPersonalData personalData) {
77
    this.personalData = personalData;
×
78
    return this;
×
79
  }
80

81
   /**
82
   * Get personalData
83
   * @return personalData
84
  **/
85
  @ApiModelProperty(value = "")
86
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
87
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88

89
  public ViasPersonalData getPersonalData() {
90
    return personalData;
×
91
  }
92

93

94
  @JsonProperty(JSON_PROPERTY_PERSONAL_DATA)
95
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
96
  public void setPersonalData(ViasPersonalData personalData) {
97
    this.personalData = personalData;
×
98
  }
×
99

100

101
  /**
102
   * Return true if this IndividualDetails object is equal to o.
103
   */
104
  @Override
105
  public boolean equals(Object o) {
106
    if (this == o) {
×
107
      return true;
×
108
    }
109
    if (o == null || getClass() != o.getClass()) {
×
110
      return false;
×
111
    }
112
    IndividualDetails individualDetails = (IndividualDetails) o;
×
113
    return Objects.equals(this.name, individualDetails.name) &&
×
114
        Objects.equals(this.personalData, individualDetails.personalData);
×
115
  }
116

117
  @Override
118
  public int hashCode() {
119
    return Objects.hash(name, personalData);
×
120
  }
121

122
  @Override
123
  public String toString() {
124
    StringBuilder sb = new StringBuilder();
×
125
    sb.append("class IndividualDetails {\n");
×
126
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
127
    sb.append("    personalData: ").append(toIndentedString(personalData)).append("\n");
×
128
    sb.append("}");
×
129
    return sb.toString();
×
130
  }
131

132
  /**
133
   * Convert the given object to string with each line indented by 4 spaces
134
   * (except the first line).
135
   */
136
  private String toIndentedString(Object o) {
137
    if (o == null) {
×
138
      return "null";
×
139
    }
140
    return o.toString().replace("\n", "\n    ");
×
141
  }
142

143
/**
144
   * Create an instance of IndividualDetails given an JSON string
145
   *
146
   * @param jsonString JSON string
147
   * @return An instance of IndividualDetails
148
   * @throws JsonProcessingException if the JSON string is invalid with respect to IndividualDetails
149
   */
150
  public static IndividualDetails fromJson(String jsonString) throws JsonProcessingException {
151
    return JSON.getMapper().readValue(jsonString, IndividualDetails.class);
×
152
  }
153
/**
154
  * Convert an instance of IndividualDetails to an JSON string
155
  *
156
  * @return JSON string
157
  */
158
  public String toJson() throws JsonProcessingException {
159
    return JSON.getMapper().writeValueAsString(this);
×
160
  }
161
}
162

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