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

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

16 Oct 2023 09:08AM CUT 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

19.35
/src/main/java/com/adyen/model/marketpaywebhooks/IndividualDetails.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.ViasName;
20
import com.adyen.model.marketpaywebhooks.ViasPersonalData;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

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

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

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

47
  public IndividualDetails() { 
1✔
48
  }
1✔
49

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

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

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

67

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

74

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

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

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

92

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

99

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

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

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

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

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

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