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

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

02 Oct 2023 12:32PM UTC coverage: 12.623%. First build
#2673

push

web-flow
Merge f7416bdbb into 28b29e141

100 of 100 new or added lines in 22 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/transfers/NZLocalAccountIdentification.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 3
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.transfers;
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
 * NZLocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  NZLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  NZLocalAccountIdentification.JSON_PROPERTY_TYPE
36
})
37

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

42
  /**
43
   * **nzLocal**
44
   */
45
  public enum TypeEnum {
×
46
    NZLOCAL("nzLocal");
×
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 = TypeEnum.NZLOCAL;
×
77

78
  public NZLocalAccountIdentification() { 
×
79
  }
×
80

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

86
   /**
87
   * The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix.
88
   * @return accountNumber
89
  **/
90
  @ApiModelProperty(required = true, value = "The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix.")
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
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101
  public void setAccountNumber(String accountNumber) {
102
    this.accountNumber = accountNumber;
×
103
  }
×
104

105

106
  public NZLocalAccountIdentification type(TypeEnum type) {
107
    this.type = type;
×
108
    return this;
×
109
  }
110

111
   /**
112
   * **nzLocal**
113
   * @return type
114
  **/
115
  @ApiModelProperty(required = true, value = "**nzLocal**")
116
  @JsonProperty(JSON_PROPERTY_TYPE)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118

119
  public TypeEnum getType() {
120
    return type;
×
121
  }
122

123

124
  @JsonProperty(JSON_PROPERTY_TYPE)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126
  public void setType(TypeEnum type) {
127
    this.type = type;
×
128
  }
×
129

130

131
  /**
132
   * Return true if this NZLocalAccountIdentification object is equal to o.
133
   */
134
  @Override
135
  public boolean equals(Object o) {
136
    if (this == o) {
×
137
      return true;
×
138
    }
139
    if (o == null || getClass() != o.getClass()) {
×
140
      return false;
×
141
    }
142
    NZLocalAccountIdentification nzLocalAccountIdentification = (NZLocalAccountIdentification) o;
×
143
    return Objects.equals(this.accountNumber, nzLocalAccountIdentification.accountNumber) &&
×
144
        Objects.equals(this.type, nzLocalAccountIdentification.type);
×
145
  }
146

147
  @Override
148
  public int hashCode() {
149
    return Objects.hash(accountNumber, type);
×
150
  }
151

152
  @Override
153
  public String toString() {
154
    StringBuilder sb = new StringBuilder();
×
155
    sb.append("class NZLocalAccountIdentification {\n");
×
156
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
157
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
158
    sb.append("}");
×
159
    return sb.toString();
×
160
  }
161

162
  /**
163
   * Convert the given object to string with each line indented by 4 spaces
164
   * (except the first line).
165
   */
166
  private String toIndentedString(Object o) {
167
    if (o == null) {
×
168
      return "null";
×
169
    }
170
    return o.toString().replace("\n", "\n    ");
×
171
  }
172

173
/**
174
   * Create an instance of NZLocalAccountIdentification given an JSON string
175
   *
176
   * @param jsonString JSON string
177
   * @return An instance of NZLocalAccountIdentification
178
   * @throws JsonProcessingException if the JSON string is invalid with respect to NZLocalAccountIdentification
179
   */
180
  public static NZLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
181
    return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class);
×
182
  }
183
/**
184
  * Convert an instance of NZLocalAccountIdentification to an JSON string
185
  *
186
  * @return JSON string
187
  */
188
  public String toJson() throws JsonProcessingException {
189
    return JSON.getMapper().writeValueAsString(this);
×
190
  }
191
}
192

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