• 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

34.48
/src/main/java/com/adyen/model/marketpaywebhooks/ViasName.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.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
 * ViasName
32
 */
33
@JsonPropertyOrder({
34
  ViasName.JSON_PROPERTY_FIRST_NAME,
35
  ViasName.JSON_PROPERTY_GENDER,
36
  ViasName.JSON_PROPERTY_INFIX,
37
  ViasName.JSON_PROPERTY_LAST_NAME
38
})
39

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

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

54
    private String value;
55

56
    GenderEnum(String value) {
1✔
57
      this.value = value;
1✔
58
    }
1✔
59

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

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

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

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

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

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

90
  public ViasName() { 
1✔
91
  }
1✔
92

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

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

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

110

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

117

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

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

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

135

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

142

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

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

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

160

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

167

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

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

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

185

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

192

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

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

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

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

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

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