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

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

07 Sep 2023 02:56PM UTC coverage: 13.108%. First build
#2625

push

web-flow
Merge 0be4e943b into ba706cfa8

2142 of 2142 new or added lines in 44 files covered. (100.0%)

10216 of 77939 relevant lines covered (13.11%)

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/balanceplatform/TransferRouteResponse.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.adyen.model.balanceplatform.TransferRoute;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import java.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * TransferRouteResponse
35
 */
36
@JsonPropertyOrder({
37
  TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES
38
})
39

40
public class TransferRouteResponse {
41
  public static final String JSON_PROPERTY_TRANSFER_ROUTES = "transferRoutes";
42
  private List<TransferRoute> transferRoutes = null;
×
43

44
  public TransferRouteResponse() { 
×
45
  }
×
46

47
  public TransferRouteResponse transferRoutes(List<TransferRoute> transferRoutes) {
48
    this.transferRoutes = transferRoutes;
×
49
    return this;
×
50
  }
51

52
  public TransferRouteResponse addTransferRoutesItem(TransferRoute transferRoutesItem) {
53
    if (this.transferRoutes == null) {
×
54
      this.transferRoutes = new ArrayList<>();
×
55
    }
56
    this.transferRoutes.add(transferRoutesItem);
×
57
    return this;
×
58
  }
59

60
   /**
61
   * List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer.
62
   * @return transferRoutes
63
  **/
64
  @ApiModelProperty(value = "List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer.")
65
  @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES)
66
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67

68
  public List<TransferRoute> getTransferRoutes() {
69
    return transferRoutes;
×
70
  }
71

72

73
  @JsonProperty(JSON_PROPERTY_TRANSFER_ROUTES)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setTransferRoutes(List<TransferRoute> transferRoutes) {
76
    this.transferRoutes = transferRoutes;
×
77
  }
×
78

79

80
  /**
81
   * Return true if this TransferRouteResponse object is equal to o.
82
   */
83
  @Override
84
  public boolean equals(Object o) {
85
    if (this == o) {
×
86
      return true;
×
87
    }
88
    if (o == null || getClass() != o.getClass()) {
×
89
      return false;
×
90
    }
91
    TransferRouteResponse transferRouteResponse = (TransferRouteResponse) o;
×
92
    return Objects.equals(this.transferRoutes, transferRouteResponse.transferRoutes);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
97
    return Objects.hash(transferRoutes);
×
98
  }
99

100
  @Override
101
  public String toString() {
102
    StringBuilder sb = new StringBuilder();
×
103
    sb.append("class TransferRouteResponse {\n");
×
104
    sb.append("    transferRoutes: ").append(toIndentedString(transferRoutes)).append("\n");
×
105
    sb.append("}");
×
106
    return sb.toString();
×
107
  }
108

109
  /**
110
   * Convert the given object to string with each line indented by 4 spaces
111
   * (except the first line).
112
   */
113
  private String toIndentedString(Object o) {
114
    if (o == null) {
×
115
      return "null";
×
116
    }
117
    return o.toString().replace("\n", "\n    ");
×
118
  }
119

120
/**
121
   * Create an instance of TransferRouteResponse given an JSON string
122
   *
123
   * @param jsonString JSON string
124
   * @return An instance of TransferRouteResponse
125
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRouteResponse
126
   */
127
  public static TransferRouteResponse fromJson(String jsonString) throws JsonProcessingException {
128
    return JSON.getMapper().readValue(jsonString, TransferRouteResponse.class);
×
129
  }
130
/**
131
  * Convert an instance of TransferRouteResponse to an JSON string
132
  *
133
  * @return JSON string
134
  */
135
  public String toJson() throws JsonProcessingException {
136
    return JSON.getMapper().writeValueAsString(this);
×
137
  }
138
}
139

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