• 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/RiskScoresRestriction.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.RiskScores;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * RiskScoresRestriction
33
 */
34
@JsonPropertyOrder({
35
  RiskScoresRestriction.JSON_PROPERTY_OPERATION,
36
  RiskScoresRestriction.JSON_PROPERTY_VALUE
37
})
38

39
public class RiskScoresRestriction {
40
  public static final String JSON_PROPERTY_OPERATION = "operation";
41
  private String operation;
42

43
  public static final String JSON_PROPERTY_VALUE = "value";
44
  private RiskScores value;
45

NEW
46
  public RiskScoresRestriction() { 
×
NEW
47
  }
×
48

49
  public RiskScoresRestriction operation(String operation) {
NEW
50
    this.operation = operation;
×
NEW
51
    return this;
×
52
  }
53

54
   /**
55
   * Defines how the condition must be evaluated.
56
   * @return operation
57
  **/
58
  @ApiModelProperty(required = true, value = "Defines how the condition must be evaluated.")
59
  @JsonProperty(JSON_PROPERTY_OPERATION)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public String getOperation() {
NEW
63
    return operation;
×
64
  }
65

66

67
 /**
68
  * Defines how the condition must be evaluated.
69
  *
70
  * @param operation
71
  */ 
72
  @JsonProperty(JSON_PROPERTY_OPERATION)
73
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74
  public void setOperation(String operation) {
NEW
75
    this.operation = operation;
×
NEW
76
  }
×
77

78

79
  public RiskScoresRestriction value(RiskScores value) {
NEW
80
    this.value = value;
×
NEW
81
    return this;
×
82
  }
83

84
   /**
85
   * Get value
86
   * @return value
87
  **/
88
  @ApiModelProperty(value = "")
89
  @JsonProperty(JSON_PROPERTY_VALUE)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91

92
  public RiskScores getValue() {
NEW
93
    return value;
×
94
  }
95

96

97
 /**
98
  * value
99
  *
100
  * @param value
101
  */ 
102
  @JsonProperty(JSON_PROPERTY_VALUE)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104
  public void setValue(RiskScores value) {
NEW
105
    this.value = value;
×
NEW
106
  }
×
107

108

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

125
  @Override
126
  public int hashCode() {
NEW
127
    return Objects.hash(operation, value);
×
128
  }
129

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

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

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

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