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

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

26 Apr 2024 02:56PM CUT 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/Href.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
 * Href
32
 */
33
@JsonPropertyOrder({
34
  Href.JSON_PROPERTY_HREF
35
})
36

37
public class Href {
38
  public static final String JSON_PROPERTY_HREF = "href";
39
  private String href;
40

NEW
41
  public Href() { 
×
NEW
42
  }
×
43

44
  public Href href(String href) {
NEW
45
    this.href = href;
×
NEW
46
    return this;
×
47
  }
48

49
   /**
50
   * Get href
51
   * @return href
52
  **/
53
  @ApiModelProperty(value = "")
54
  @JsonProperty(JSON_PROPERTY_HREF)
55
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
56

57
  public String getHref() {
NEW
58
    return href;
×
59
  }
60

61

62
 /**
63
  * href
64
  *
65
  * @param href
66
  */ 
67
  @JsonProperty(JSON_PROPERTY_HREF)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setHref(String href) {
NEW
70
    this.href = href;
×
NEW
71
  }
×
72

73

74
  /**
75
   * Return true if this Href object is equal to o.
76
   */
77
  @Override
78
  public boolean equals(Object o) {
NEW
79
    if (this == o) {
×
NEW
80
      return true;
×
81
    }
NEW
82
    if (o == null || getClass() != o.getClass()) {
×
NEW
83
      return false;
×
84
    }
NEW
85
    Href href = (Href) o;
×
NEW
86
    return Objects.equals(this.href, href.href);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
NEW
91
    return Objects.hash(href);
×
92
  }
93

94
  @Override
95
  public String toString() {
NEW
96
    StringBuilder sb = new StringBuilder();
×
NEW
97
    sb.append("class Href {\n");
×
NEW
98
    sb.append("    href: ").append(toIndentedString(href)).append("\n");
×
NEW
99
    sb.append("}");
×
NEW
100
    return sb.toString();
×
101
  }
102

103
  /**
104
   * Convert the given object to string with each line indented by 4 spaces
105
   * (except the first line).
106
   */
107
  private String toIndentedString(Object o) {
NEW
108
    if (o == null) {
×
NEW
109
      return "null";
×
110
    }
NEW
111
    return o.toString().replace("\n", "\n    ");
×
112
  }
113

114
/**
115
   * Create an instance of Href given an JSON string
116
   *
117
   * @param jsonString JSON string
118
   * @return An instance of Href
119
   * @throws JsonProcessingException if the JSON string is invalid with respect to Href
120
   */
121
  public static Href fromJson(String jsonString) throws JsonProcessingException {
NEW
122
    return JSON.getMapper().readValue(jsonString, Href.class);
×
123
  }
124
/**
125
  * Convert an instance of Href to an JSON string
126
  *
127
  * @return JSON string
128
  */
129
  public String toJson() throws JsonProcessingException {
NEW
130
    return JSON.getMapper().writeValueAsString(this);
×
131
  }
132
}
133

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