• 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/AULocalAccountIdentification.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
 * AULocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  AULocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  AULocalAccountIdentification.JSON_PROPERTY_BSB_CODE,
36
  AULocalAccountIdentification.JSON_PROPERTY_TYPE
37
})
38

39
public class AULocalAccountIdentification {
40
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
41
  private String accountNumber;
42

43
  public static final String JSON_PROPERTY_BSB_CODE = "bsbCode";
44
  private String bsbCode;
45

46
  /**
47
   * **auLocal**
48
   */
49
  public enum TypeEnum {
×
50
    AULOCAL("auLocal");
×
51

52
    private String value;
53

54
    TypeEnum(String value) {
×
55
      this.value = value;
×
56
    }
×
57

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

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

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

79
  public static final String JSON_PROPERTY_TYPE = "type";
80
  private TypeEnum type;
81

82
  public AULocalAccountIdentification() { 
×
83
  }
×
84

85
  public AULocalAccountIdentification accountNumber(String accountNumber) {
86
    this.accountNumber = accountNumber;
×
87
    return this;
×
88
  }
89

90
   /**
91
   * The bank account number, without separators or whitespace.
92
   * @return accountNumber
93
  **/
94
  @ApiModelProperty(required = true, value = "The bank account number, without separators or whitespace.")
95
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
96
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97

98
  public String getAccountNumber() {
99
    return accountNumber;
×
100
  }
101

102

103
 /**
104
  * The bank account number, without separators or whitespace.
105
  *
106
  * @param accountNumber
107
  */ 
108
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110
  public void setAccountNumber(String accountNumber) {
111
    this.accountNumber = accountNumber;
×
112
  }
×
113

114

115
  public AULocalAccountIdentification bsbCode(String bsbCode) {
116
    this.bsbCode = bsbCode;
×
117
    return this;
×
118
  }
119

120
   /**
121
   * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.
122
   * @return bsbCode
123
  **/
124
  @ApiModelProperty(required = true, value = "The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.")
125
  @JsonProperty(JSON_PROPERTY_BSB_CODE)
126
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
127

128
  public String getBsbCode() {
129
    return bsbCode;
×
130
  }
131

132

133
 /**
134
  * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.
135
  *
136
  * @param bsbCode
137
  */ 
138
  @JsonProperty(JSON_PROPERTY_BSB_CODE)
139
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140
  public void setBsbCode(String bsbCode) {
141
    this.bsbCode = bsbCode;
×
142
  }
×
143

144

145
  public AULocalAccountIdentification type(TypeEnum type) {
146
    this.type = type;
×
147
    return this;
×
148
  }
149

150
   /**
151
   * **auLocal**
152
   * @return type
153
  **/
154
  @ApiModelProperty(required = true, value = "**auLocal**")
155
  @JsonProperty(JSON_PROPERTY_TYPE)
156
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157

158
  public TypeEnum getType() {
159
    return type;
×
160
  }
161

162

163
 /**
164
  * **auLocal**
165
  *
166
  * @param type
167
  */ 
168
  @JsonProperty(JSON_PROPERTY_TYPE)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170
  public void setType(TypeEnum type) {
171
    this.type = type;
×
172
  }
×
173

174

175
  /**
176
   * Return true if this AULocalAccountIdentification object is equal to o.
177
   */
178
  @Override
179
  public boolean equals(Object o) {
180
    if (this == o) {
×
181
      return true;
×
182
    }
183
    if (o == null || getClass() != o.getClass()) {
×
184
      return false;
×
185
    }
186
    AULocalAccountIdentification auLocalAccountIdentification = (AULocalAccountIdentification) o;
×
187
    return Objects.equals(this.accountNumber, auLocalAccountIdentification.accountNumber) &&
×
188
        Objects.equals(this.bsbCode, auLocalAccountIdentification.bsbCode) &&
×
189
        Objects.equals(this.type, auLocalAccountIdentification.type);
×
190
  }
191

192
  @Override
193
  public int hashCode() {
NEW
194
    return Objects.hash(accountNumber, bsbCode, type);
×
195
  }
196

197
  @Override
198
  public String toString() {
199
    StringBuilder sb = new StringBuilder();
×
200
    sb.append("class AULocalAccountIdentification {\n");
×
201
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
202
    sb.append("    bsbCode: ").append(toIndentedString(bsbCode)).append("\n");
×
203
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
204
    sb.append("}");
×
205
    return sb.toString();
×
206
  }
207

208
  /**
209
   * Convert the given object to string with each line indented by 4 spaces
210
   * (except the first line).
211
   */
212
  private String toIndentedString(Object o) {
213
    if (o == null) {
×
214
      return "null";
×
215
    }
216
    return o.toString().replace("\n", "\n    ");
×
217
  }
218

219
/**
220
   * Create an instance of AULocalAccountIdentification given an JSON string
221
   *
222
   * @param jsonString JSON string
223
   * @return An instance of AULocalAccountIdentification
224
   * @throws JsonProcessingException if the JSON string is invalid with respect to AULocalAccountIdentification
225
   */
226
  public static AULocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
227
    return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class);
×
228
  }
229
/**
230
  * Convert an instance of AULocalAccountIdentification to an JSON string
231
  *
232
  * @return JSON string
233
  */
234
  public String toJson() throws JsonProcessingException {
235
    return JSON.getMapper().writeValueAsString(this);
×
236
  }
237
}
238

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