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

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

23 Oct 2023 01:52PM UTC coverage: 12.821%. First build
#2748

push

web-flow
Merge c6d37d76d into c99ba89a9

2931 of 2931 new or added lines in 118 files covered. (100.0%)

12345 of 96286 relevant lines covered (12.82%)

0.13 hits per line

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

49.15
/src/main/java/com/adyen/model/transfers/BankCategoryData.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 4
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
 * BankCategoryData
32
 */
33
@JsonPropertyOrder({
34
  BankCategoryData.JSON_PROPERTY_PRIORITY,
35
  BankCategoryData.JSON_PROPERTY_TYPE
36
})
37

38
public class BankCategoryData {
39
  /**
40
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**.  Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).
41
   */
42
  public enum PriorityEnum {
1✔
43
    CROSSBORDER("crossBorder"),
1✔
44
    
45
    FAST("fast"),
1✔
46
    
47
    INSTANT("instant"),
1✔
48
    
49
    INTERNAL("internal"),
1✔
50
    
51
    REGULAR("regular"),
1✔
52
    
53
    WIRE("wire");
1✔
54

55
    private String value;
56

57
    PriorityEnum(String value) {
1✔
58
      this.value = value;
1✔
59
    }
1✔
60

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

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

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

82
  public static final String JSON_PROPERTY_PRIORITY = "priority";
83
  private PriorityEnum priority;
84

85
  /**
86
   * **bank**
87
   */
88
  public enum TypeEnum {
1✔
89
    BANK("bank");
1✔
90

91
    private String value;
92

93
    TypeEnum(String value) {
1✔
94
      this.value = value;
1✔
95
    }
1✔
96

97
    @JsonValue
98
    public String getValue() {
99
      return value;
1✔
100
    }
101

102
    @Override
103
    public String toString() {
104
      return String.valueOf(value);
×
105
    }
106

107
    @JsonCreator
108
    public static TypeEnum fromValue(String value) {
109
      for (TypeEnum b : TypeEnum.values()) {
1✔
110
        if (b.value.equals(value)) {
1✔
111
          return b;
1✔
112
        }
113
      }
114
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
115
    }
116
  }
117

118
  public static final String JSON_PROPERTY_TYPE = "type";
119
  private TypeEnum type = TypeEnum.BANK;
1✔
120

121
  public BankCategoryData() { 
1✔
122
  }
1✔
123

124
  public BankCategoryData priority(PriorityEnum priority) {
125
    this.priority = priority;
×
126
    return this;
×
127
  }
128

129
   /**
130
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**.  Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).
131
   * @return priority
132
  **/
133
  @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**.  Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).")
134
  @JsonProperty(JSON_PROPERTY_PRIORITY)
135
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136

137
  public PriorityEnum getPriority() {
138
    return priority;
×
139
  }
140

141

142
  @JsonProperty(JSON_PROPERTY_PRIORITY)
143
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144
  public void setPriority(PriorityEnum priority) {
145
    this.priority = priority;
1✔
146
  }
1✔
147

148

149
  public BankCategoryData type(TypeEnum type) {
150
    this.type = type;
×
151
    return this;
×
152
  }
153

154
   /**
155
   * **bank**
156
   * @return type
157
  **/
158
  @ApiModelProperty(value = "**bank**")
159
  @JsonProperty(JSON_PROPERTY_TYPE)
160
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161

162
  public TypeEnum getType() {
163
    return type;
×
164
  }
165

166

167
  @JsonProperty(JSON_PROPERTY_TYPE)
168
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
169
  public void setType(TypeEnum type) {
170
    this.type = type;
1✔
171
  }
1✔
172

173

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

190
  @Override
191
  public int hashCode() {
192
    return Objects.hash(priority, type);
×
193
  }
194

195
  @Override
196
  public String toString() {
197
    StringBuilder sb = new StringBuilder();
×
198
    sb.append("class BankCategoryData {\n");
×
199
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
×
200
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
201
    sb.append("}");
×
202
    return sb.toString();
×
203
  }
204

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

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

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