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

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

05 Jun 2024 02:13PM UTC coverage: 12.003%. First build
#3294

push

web-flow
Merge 7f54ca36d into 67f331171

20 of 662 new or added lines in 34 files covered. (3.02%)

12485 of 104015 relevant lines covered (12.0%)

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/transfers/RoutingDetails.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
 * RoutingDetails
32
 */
33
@JsonPropertyOrder({
34
  RoutingDetails.JSON_PROPERTY_DETAIL,
35
  RoutingDetails.JSON_PROPERTY_ERROR_CODE,
36
  RoutingDetails.JSON_PROPERTY_PRIORITY,
37
  RoutingDetails.JSON_PROPERTY_TITLE
38
})
39

40
public class RoutingDetails {
41
  public static final String JSON_PROPERTY_DETAIL = "detail";
42
  private String detail;
43

44
  public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
45
  private String errorCode;
46

47
  /**
48
   * 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).
49
   */
NEW
50
  public enum PriorityEnum {
×
NEW
51
    CROSSBORDER("crossBorder"),
×
52
    
NEW
53
    FAST("fast"),
×
54
    
NEW
55
    INSTANT("instant"),
×
56
    
NEW
57
    INTERNAL("internal"),
×
58
    
NEW
59
    REGULAR("regular"),
×
60
    
NEW
61
    WIRE("wire");
×
62

63
    private String value;
64

NEW
65
    PriorityEnum(String value) {
×
NEW
66
      this.value = value;
×
NEW
67
    }
×
68

69
    @JsonValue
70
    public String getValue() {
NEW
71
      return value;
×
72
    }
73

74
    @Override
75
    public String toString() {
NEW
76
      return String.valueOf(value);
×
77
    }
78

79
    @JsonCreator
80
    public static PriorityEnum fromValue(String value) {
NEW
81
      for (PriorityEnum b : PriorityEnum.values()) {
×
NEW
82
        if (b.value.equals(value)) {
×
NEW
83
          return b;
×
84
        }
85
      }
NEW
86
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
87
    }
88
  }
89

90
  public static final String JSON_PROPERTY_PRIORITY = "priority";
91
  private PriorityEnum priority;
92

93
  public static final String JSON_PROPERTY_TITLE = "title";
94
  private String title;
95

NEW
96
  public RoutingDetails() { 
×
NEW
97
  }
×
98

99
  public RoutingDetails detail(String detail) {
NEW
100
    this.detail = detail;
×
NEW
101
    return this;
×
102
  }
103

104
   /**
105
   * A human-readable explanation specific to this occurrence of the problem.
106
   * @return detail
107
  **/
108
  @ApiModelProperty(value = "A human-readable explanation specific to this occurrence of the problem.")
109
  @JsonProperty(JSON_PROPERTY_DETAIL)
110
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
111

112
  public String getDetail() {
NEW
113
    return detail;
×
114
  }
115

116

117
 /**
118
  * A human-readable explanation specific to this occurrence of the problem.
119
  *
120
  * @param detail
121
  */ 
122
  @JsonProperty(JSON_PROPERTY_DETAIL)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124
  public void setDetail(String detail) {
NEW
125
    this.detail = detail;
×
NEW
126
  }
×
127

128

129
  public RoutingDetails errorCode(String errorCode) {
NEW
130
    this.errorCode = errorCode;
×
NEW
131
    return this;
×
132
  }
133

134
   /**
135
   * A code that identifies the problem type.
136
   * @return errorCode
137
  **/
138
  @ApiModelProperty(value = "A code that identifies the problem type.")
139
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141

142
  public String getErrorCode() {
NEW
143
    return errorCode;
×
144
  }
145

146

147
 /**
148
  * A code that identifies the problem type.
149
  *
150
  * @param errorCode
151
  */ 
152
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
153
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
154
  public void setErrorCode(String errorCode) {
NEW
155
    this.errorCode = errorCode;
×
NEW
156
  }
×
157

158

159
  public RoutingDetails priority(PriorityEnum priority) {
NEW
160
    this.priority = priority;
×
NEW
161
    return this;
×
162
  }
163

164
   /**
165
   * 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).
166
   * @return priority
167
  **/
168
  @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).")
169
  @JsonProperty(JSON_PROPERTY_PRIORITY)
170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
171

172
  public PriorityEnum getPriority() {
NEW
173
    return priority;
×
174
  }
175

176

177
 /**
178
  * 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).
179
  *
180
  * @param priority
181
  */ 
182
  @JsonProperty(JSON_PROPERTY_PRIORITY)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184
  public void setPriority(PriorityEnum priority) {
NEW
185
    this.priority = priority;
×
NEW
186
  }
×
187

188

189
  public RoutingDetails title(String title) {
NEW
190
    this.title = title;
×
NEW
191
    return this;
×
192
  }
193

194
   /**
195
   * A short, human-readable summary of the problem type.
196
   * @return title
197
  **/
198
  @ApiModelProperty(value = "A short, human-readable summary of the problem type.")
199
  @JsonProperty(JSON_PROPERTY_TITLE)
200
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
201

202
  public String getTitle() {
NEW
203
    return title;
×
204
  }
205

206

207
 /**
208
  * A short, human-readable summary of the problem type.
209
  *
210
  * @param title
211
  */ 
212
  @JsonProperty(JSON_PROPERTY_TITLE)
213
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
214
  public void setTitle(String title) {
NEW
215
    this.title = title;
×
NEW
216
  }
×
217

218

219
  /**
220
   * Return true if this RoutingDetails object is equal to o.
221
   */
222
  @Override
223
  public boolean equals(Object o) {
NEW
224
    if (this == o) {
×
NEW
225
      return true;
×
226
    }
NEW
227
    if (o == null || getClass() != o.getClass()) {
×
NEW
228
      return false;
×
229
    }
NEW
230
    RoutingDetails routingDetails = (RoutingDetails) o;
×
NEW
231
    return Objects.equals(this.detail, routingDetails.detail) &&
×
NEW
232
        Objects.equals(this.errorCode, routingDetails.errorCode) &&
×
NEW
233
        Objects.equals(this.priority, routingDetails.priority) &&
×
NEW
234
        Objects.equals(this.title, routingDetails.title);
×
235
  }
236

237
  @Override
238
  public int hashCode() {
NEW
239
    return Objects.hash(detail, errorCode, priority, title);
×
240
  }
241

242
  @Override
243
  public String toString() {
NEW
244
    StringBuilder sb = new StringBuilder();
×
NEW
245
    sb.append("class RoutingDetails {\n");
×
NEW
246
    sb.append("    detail: ").append(toIndentedString(detail)).append("\n");
×
NEW
247
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
NEW
248
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
×
NEW
249
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
×
NEW
250
    sb.append("}");
×
NEW
251
    return sb.toString();
×
252
  }
253

254
  /**
255
   * Convert the given object to string with each line indented by 4 spaces
256
   * (except the first line).
257
   */
258
  private String toIndentedString(Object o) {
NEW
259
    if (o == null) {
×
NEW
260
      return "null";
×
261
    }
NEW
262
    return o.toString().replace("\n", "\n    ");
×
263
  }
264

265
/**
266
   * Create an instance of RoutingDetails given an JSON string
267
   *
268
   * @param jsonString JSON string
269
   * @return An instance of RoutingDetails
270
   * @throws JsonProcessingException if the JSON string is invalid with respect to RoutingDetails
271
   */
272
  public static RoutingDetails fromJson(String jsonString) throws JsonProcessingException {
NEW
273
    return JSON.getMapper().readValue(jsonString, RoutingDetails.class);
×
274
  }
275
/**
276
  * Convert an instance of RoutingDetails to an JSON string
277
  *
278
  * @return JSON string
279
  */
280
  public String toJson() throws JsonProcessingException {
NEW
281
    return JSON.getMapper().writeValueAsString(this);
×
282
  }
283
}
284

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