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

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

26 Apr 2024 02:56PM UTC coverage: 12.22%. First build
#3234

push

web-flow
Merge ed82bd029 into de2f73f19

11 of 664 new or added lines in 43 files covered. (1.66%)

12466 of 102009 relevant lines covered (12.22%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java
1
/*
2
 * Configuration API
3
 *
4
 * The version of the OpenAPI document: 2
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.balanceplatform;
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
 * HULocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  HULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  HULocalAccountIdentification.JSON_PROPERTY_TYPE
36
})
37

38
public class HULocalAccountIdentification {
39
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
40
  private String accountNumber;
41

42
  /**
43
   * **huLocal**
44
   */
45
  public enum TypeEnum {
×
46
    HULOCAL("huLocal");
×
47

48
    private String value;
49

50
    TypeEnum(String value) {
×
51
      this.value = value;
×
52
    }
×
53

54
    @JsonValue
55
    public String getValue() {
56
      return value;
×
57
    }
58

59
    @Override
60
    public String toString() {
61
      return String.valueOf(value);
×
62
    }
63

64
    @JsonCreator
65
    public static TypeEnum fromValue(String value) {
66
      for (TypeEnum b : TypeEnum.values()) {
×
67
        if (b.value.equals(value)) {
×
68
          return b;
×
69
        }
70
      }
71
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
72
    }
73
  }
74

75
  public static final String JSON_PROPERTY_TYPE = "type";
76
  private TypeEnum type;
77

78
  public HULocalAccountIdentification() { 
×
79
  }
×
80

81
  public HULocalAccountIdentification accountNumber(String accountNumber) {
82
    this.accountNumber = accountNumber;
×
83
    return this;
×
84
  }
85

86
   /**
87
   * The 24-digit bank account number, without separators or whitespace.
88
   * @return accountNumber
89
  **/
90
  @ApiModelProperty(required = true, value = "The 24-digit bank account number, without separators or whitespace.")
91
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93

94
  public String getAccountNumber() {
95
    return accountNumber;
×
96
  }
97

98

99
 /**
100
  * The 24-digit bank account number, without separators or whitespace.
101
  *
102
  * @param accountNumber
103
  */ 
104
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setAccountNumber(String accountNumber) {
107
    this.accountNumber = accountNumber;
×
108
  }
×
109

110

111
  public HULocalAccountIdentification type(TypeEnum type) {
112
    this.type = type;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * **huLocal**
118
   * @return type
119
  **/
120
  @ApiModelProperty(required = true, value = "**huLocal**")
121
  @JsonProperty(JSON_PROPERTY_TYPE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public TypeEnum getType() {
125
    return type;
×
126
  }
127

128

129
 /**
130
  * **huLocal**
131
  *
132
  * @param type
133
  */ 
134
  @JsonProperty(JSON_PROPERTY_TYPE)
135
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136
  public void setType(TypeEnum type) {
137
    this.type = type;
×
138
  }
×
139

140

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

157
  @Override
158
  public int hashCode() {
NEW
159
    return Objects.hash(accountNumber, type);
×
160
  }
161

162
  @Override
163
  public String toString() {
164
    StringBuilder sb = new StringBuilder();
×
165
    sb.append("class HULocalAccountIdentification {\n");
×
166
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
167
    sb.append("    type: ").append(toIndentedString(type)).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 HULocalAccountIdentification given an JSON string
185
   *
186
   * @param jsonString JSON string
187
   * @return An instance of HULocalAccountIdentification
188
   * @throws JsonProcessingException if the JSON string is invalid with respect to HULocalAccountIdentification
189
   */
190
  public static HULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
191
    return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class);
×
192
  }
193
/**
194
  * Convert an instance of HULocalAccountIdentification 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