• 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/ViasName.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.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * ViasName
33
 */
34
@JsonPropertyOrder({
35
  ViasName.JSON_PROPERTY_FIRST_NAME,
36
  ViasName.JSON_PROPERTY_GENDER,
37
  ViasName.JSON_PROPERTY_INFIX,
38
  ViasName.JSON_PROPERTY_LAST_NAME
39
})
40

41
public class ViasName {
42
  public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
43
  private String firstName;
44

45
  /**
46
   * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.
47
   */
48
  public enum GenderEnum {
×
49
    MALE("MALE"),
×
50
    
51
    FEMALE("FEMALE"),
×
52
    
53
    UNKNOWN("UNKNOWN");
×
54

55
    private String value;
56

57
    GenderEnum(String value) {
×
58
      this.value = value;
×
59
    }
×
60

61
    @JsonValue
62
    public String getValue() {
63
      return value;
×
64
    }
65

66
    @Override
67
    public String toString() {
68
      return String.valueOf(value);
×
69
    }
70

71
    @JsonCreator
72
    public static GenderEnum fromValue(String value) {
73
      for (GenderEnum b : GenderEnum.values()) {
×
74
        if (b.value.equals(value)) {
×
75
          return b;
×
76
        }
77
      }
78
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
79
    }
80
  }
81

82
  public static final String JSON_PROPERTY_GENDER = "gender";
83
  private GenderEnum gender;
84

85
  public static final String JSON_PROPERTY_INFIX = "infix";
86
  private String infix;
87

88
  public static final String JSON_PROPERTY_LAST_NAME = "lastName";
89
  private String lastName;
90

91
  public ViasName() { 
×
92
  }
×
93

94
  public ViasName firstName(String firstName) {
95
    this.firstName = firstName;
×
96
    return this;
×
97
  }
98

99
   /**
100
   * The first name.
101
   * @return firstName
102
  **/
103
  @ApiModelProperty(value = "The first name.")
104
  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106

107
  public String getFirstName() {
108
    return firstName;
×
109
  }
110

111

112
  @JsonProperty(JSON_PROPERTY_FIRST_NAME)
113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114
  public void setFirstName(String firstName) {
115
    this.firstName = firstName;
×
116
  }
×
117

118

119
  public ViasName gender(GenderEnum gender) {
120
    this.gender = gender;
×
121
    return this;
×
122
  }
123

124
   /**
125
   * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.
126
   * @return gender
127
  **/
128
  @ApiModelProperty(value = "The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.")
129
  @JsonProperty(JSON_PROPERTY_GENDER)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131

132
  public GenderEnum getGender() {
133
    return gender;
×
134
  }
135

136

137
  @JsonProperty(JSON_PROPERTY_GENDER)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139
  public void setGender(GenderEnum gender) {
140
    this.gender = gender;
×
141
  }
×
142

143

144
  public ViasName infix(String infix) {
145
    this.infix = infix;
×
146
    return this;
×
147
  }
148

149
   /**
150
   * The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed.
151
   * @return infix
152
  **/
153
  @ApiModelProperty(value = "The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed.")
154
  @JsonProperty(JSON_PROPERTY_INFIX)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public String getInfix() {
158
    return infix;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_INFIX)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setInfix(String infix) {
165
    this.infix = infix;
×
166
  }
×
167

168

169
  public ViasName lastName(String lastName) {
170
    this.lastName = lastName;
×
171
    return this;
×
172
  }
173

174
   /**
175
   * The last name.
176
   * @return lastName
177
  **/
178
  @ApiModelProperty(value = "The last name.")
179
  @JsonProperty(JSON_PROPERTY_LAST_NAME)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getLastName() {
183
    return lastName;
×
184
  }
185

186

187
  @JsonProperty(JSON_PROPERTY_LAST_NAME)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189
  public void setLastName(String lastName) {
190
    this.lastName = lastName;
×
191
  }
×
192

193

194
  /**
195
   * Return true if this ViasName object is equal to o.
196
   */
197
  @Override
198
  public boolean equals(Object o) {
199
    if (this == o) {
×
200
      return true;
×
201
    }
202
    if (o == null || getClass() != o.getClass()) {
×
203
      return false;
×
204
    }
205
    ViasName viasName = (ViasName) o;
×
206
    return Objects.equals(this.firstName, viasName.firstName) &&
×
207
        Objects.equals(this.gender, viasName.gender) &&
×
208
        Objects.equals(this.infix, viasName.infix) &&
×
209
        Objects.equals(this.lastName, viasName.lastName);
×
210
  }
211

212
  @Override
213
  public int hashCode() {
214
    return Objects.hash(firstName, gender, infix, lastName);
×
215
  }
216

217
  @Override
218
  public String toString() {
219
    StringBuilder sb = new StringBuilder();
×
220
    sb.append("class ViasName {\n");
×
221
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
×
222
    sb.append("    gender: ").append(toIndentedString(gender)).append("\n");
×
223
    sb.append("    infix: ").append(toIndentedString(infix)).append("\n");
×
224
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
×
225
    sb.append("}");
×
226
    return sb.toString();
×
227
  }
228

229
  /**
230
   * Convert the given object to string with each line indented by 4 spaces
231
   * (except the first line).
232
   */
233
  private String toIndentedString(Object o) {
234
    if (o == null) {
×
235
      return "null";
×
236
    }
237
    return o.toString().replace("\n", "\n    ");
×
238
  }
239

240
/**
241
   * Create an instance of ViasName given an JSON string
242
   *
243
   * @param jsonString JSON string
244
   * @return An instance of ViasName
245
   * @throws JsonProcessingException if the JSON string is invalid with respect to ViasName
246
   */
247
  public static ViasName fromJson(String jsonString) throws JsonProcessingException {
248
    return JSON.getMapper().readValue(jsonString, ViasName.class);
×
249
  }
250
/**
251
  * Convert an instance of ViasName to an JSON string
252
  *
253
  * @return JSON string
254
  */
255
  public String toJson() throws JsonProcessingException {
256
    return JSON.getMapper().writeValueAsString(this);
×
257
  }
258
}
259

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