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

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

26 Apr 2024 02:56PM UTC 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/RiskScores.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
 * RiskScores
32
 */
33
@JsonPropertyOrder({
34
  RiskScores.JSON_PROPERTY_MASTERCARD,
35
  RiskScores.JSON_PROPERTY_VISA
36
})
37

38
public class RiskScores {
39
  public static final String JSON_PROPERTY_MASTERCARD = "mastercard";
40
  private Integer mastercard;
41

42
  public static final String JSON_PROPERTY_VISA = "visa";
43
  private Integer visa;
44

NEW
45
  public RiskScores() { 
×
NEW
46
  }
×
47

48
  public RiskScores mastercard(Integer mastercard) {
NEW
49
    this.mastercard = mastercard;
×
NEW
50
    return this;
×
51
  }
52

53
   /**
54
   * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).
55
   * @return mastercard
56
  **/
57
  @ApiModelProperty(value = "Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).")
58
  @JsonProperty(JSON_PROPERTY_MASTERCARD)
59
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60

61
  public Integer getMastercard() {
NEW
62
    return mastercard;
×
63
  }
64

65

66
 /**
67
  * Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).
68
  *
69
  * @param mastercard
70
  */ 
71
  @JsonProperty(JSON_PROPERTY_MASTERCARD)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setMastercard(Integer mastercard) {
NEW
74
    this.mastercard = mastercard;
×
NEW
75
  }
×
76

77

78
  public RiskScores visa(Integer visa) {
NEW
79
    this.visa = visa;
×
NEW
80
    return this;
×
81
  }
82

83
   /**
84
   * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).
85
   * @return visa
86
  **/
87
  @ApiModelProperty(value = "Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).")
88
  @JsonProperty(JSON_PROPERTY_VISA)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public Integer getVisa() {
NEW
92
    return visa;
×
93
  }
94

95

96
 /**
97
  * Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).
98
  *
99
  * @param visa
100
  */ 
101
  @JsonProperty(JSON_PROPERTY_VISA)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103
  public void setVisa(Integer visa) {
NEW
104
    this.visa = visa;
×
NEW
105
  }
×
106

107

108
  /**
109
   * Return true if this RiskScores object is equal to o.
110
   */
111
  @Override
112
  public boolean equals(Object o) {
NEW
113
    if (this == o) {
×
NEW
114
      return true;
×
115
    }
NEW
116
    if (o == null || getClass() != o.getClass()) {
×
NEW
117
      return false;
×
118
    }
NEW
119
    RiskScores riskScores = (RiskScores) o;
×
NEW
120
    return Objects.equals(this.mastercard, riskScores.mastercard) &&
×
NEW
121
        Objects.equals(this.visa, riskScores.visa);
×
122
  }
123

124
  @Override
125
  public int hashCode() {
NEW
126
    return Objects.hash(mastercard, visa);
×
127
  }
128

129
  @Override
130
  public String toString() {
NEW
131
    StringBuilder sb = new StringBuilder();
×
NEW
132
    sb.append("class RiskScores {\n");
×
NEW
133
    sb.append("    mastercard: ").append(toIndentedString(mastercard)).append("\n");
×
NEW
134
    sb.append("    visa: ").append(toIndentedString(visa)).append("\n");
×
NEW
135
    sb.append("}");
×
NEW
136
    return sb.toString();
×
137
  }
138

139
  /**
140
   * Convert the given object to string with each line indented by 4 spaces
141
   * (except the first line).
142
   */
143
  private String toIndentedString(Object o) {
NEW
144
    if (o == null) {
×
NEW
145
      return "null";
×
146
    }
NEW
147
    return o.toString().replace("\n", "\n    ");
×
148
  }
149

150
/**
151
   * Create an instance of RiskScores given an JSON string
152
   *
153
   * @param jsonString JSON string
154
   * @return An instance of RiskScores
155
   * @throws JsonProcessingException if the JSON string is invalid with respect to RiskScores
156
   */
157
  public static RiskScores fromJson(String jsonString) throws JsonProcessingException {
NEW
158
    return JSON.getMapper().readValue(jsonString, RiskScores.class);
×
159
  }
160
/**
161
  * Convert an instance of RiskScores to an JSON string
162
  *
163
  * @return JSON string
164
  */
165
  public String toJson() throws JsonProcessingException {
NEW
166
    return JSON.getMapper().writeValueAsString(this);
×
167
  }
168
}
169

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