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

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

07 Sep 2023 02:55PM UTC coverage: 13.177%. First build
#2624

push

web-flow
Merge 8ee765fba into ba706cfa8

1495 of 1495 new or added lines in 26 files covered. (100.0%)

10220 of 77561 relevant lines covered (13.18%)

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/AmountMinMaxRequirement.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
 * AmountMinMaxRequirement
32
 */
33
@JsonPropertyOrder({
34
  AmountMinMaxRequirement.JSON_PROPERTY_DESCRIPTION,
35
  AmountMinMaxRequirement.JSON_PROPERTY_MAX,
36
  AmountMinMaxRequirement.JSON_PROPERTY_MIN,
37
  AmountMinMaxRequirement.JSON_PROPERTY_TYPE
38
})
39

40
public class AmountMinMaxRequirement {
41
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
42
  private String description;
43

44
  public static final String JSON_PROPERTY_MAX = "max";
45
  private Long max;
46

47
  public static final String JSON_PROPERTY_MIN = "min";
48
  private Long min;
49

50
  /**
51
   * **amountMinMaxRequirement**
52
   */
53
  public enum TypeEnum {
×
54
    AMOUNTMINMAXREQUIREMENT("amountMinMaxRequirement");
×
55

56
    private String value;
57

58
    TypeEnum(String value) {
×
59
      this.value = value;
×
60
    }
×
61

62
    @JsonValue
63
    public String getValue() {
64
      return value;
×
65
    }
66

67
    @Override
68
    public String toString() {
69
      return String.valueOf(value);
×
70
    }
71

72
    @JsonCreator
73
    public static TypeEnum fromValue(String value) {
74
      for (TypeEnum b : TypeEnum.values()) {
×
75
        if (b.value.equals(value)) {
×
76
          return b;
×
77
        }
78
      }
79
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
80
    }
81
  }
82

83
  public static final String JSON_PROPERTY_TYPE = "type";
84
  private TypeEnum type = TypeEnum.AMOUNTMINMAXREQUIREMENT;
×
85

86
  public AmountMinMaxRequirement() { 
×
87
  }
×
88

89
  public AmountMinMaxRequirement description(String description) {
90
    this.description = description;
×
91
    return this;
×
92
  }
93

94
   /**
95
   * Specifies the eligible amounts of a particular route.
96
   * @return description
97
  **/
98
  @ApiModelProperty(value = "Specifies the eligible amounts of a particular route.")
99
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101

102
  public String getDescription() {
103
    return description;
×
104
  }
105

106

107
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109
  public void setDescription(String description) {
110
    this.description = description;
×
111
  }
×
112

113

114
  public AmountMinMaxRequirement max(Long max) {
115
    this.max = max;
×
116
    return this;
×
117
  }
118

119
   /**
120
   * max amount in numeric characters i.e. 99999999999
121
   * @return max
122
  **/
123
  @ApiModelProperty(value = "max amount in numeric characters i.e. 99999999999")
124
  @JsonProperty(JSON_PROPERTY_MAX)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

127
  public Long getMax() {
128
    return max;
×
129
  }
130

131

132
  @JsonProperty(JSON_PROPERTY_MAX)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134
  public void setMax(Long max) {
135
    this.max = max;
×
136
  }
×
137

138

139
  public AmountMinMaxRequirement min(Long min) {
140
    this.min = min;
×
141
    return this;
×
142
  }
143

144
   /**
145
   * min amount in numeric characters i.e. 1
146
   * @return min
147
  **/
148
  @ApiModelProperty(value = "min amount in numeric characters i.e. 1")
149
  @JsonProperty(JSON_PROPERTY_MIN)
150
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151

152
  public Long getMin() {
153
    return min;
×
154
  }
155

156

157
  @JsonProperty(JSON_PROPERTY_MIN)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159
  public void setMin(Long min) {
160
    this.min = min;
×
161
  }
×
162

163

164
  public AmountMinMaxRequirement type(TypeEnum type) {
165
    this.type = type;
×
166
    return this;
×
167
  }
168

169
   /**
170
   * **amountMinMaxRequirement**
171
   * @return type
172
  **/
173
  @ApiModelProperty(required = true, value = "**amountMinMaxRequirement**")
174
  @JsonProperty(JSON_PROPERTY_TYPE)
175
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
176

177
  public TypeEnum getType() {
178
    return type;
×
179
  }
180

181

182
  @JsonProperty(JSON_PROPERTY_TYPE)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184
  public void setType(TypeEnum type) {
185
    this.type = type;
×
186
  }
×
187

188

189
  /**
190
   * Return true if this AmountMinMaxRequirement object is equal to o.
191
   */
192
  @Override
193
  public boolean equals(Object o) {
194
    if (this == o) {
×
195
      return true;
×
196
    }
197
    if (o == null || getClass() != o.getClass()) {
×
198
      return false;
×
199
    }
200
    AmountMinMaxRequirement amountMinMaxRequirement = (AmountMinMaxRequirement) o;
×
201
    return Objects.equals(this.description, amountMinMaxRequirement.description) &&
×
202
        Objects.equals(this.max, amountMinMaxRequirement.max) &&
×
203
        Objects.equals(this.min, amountMinMaxRequirement.min) &&
×
204
        Objects.equals(this.type, amountMinMaxRequirement.type);
×
205
  }
206

207
  @Override
208
  public int hashCode() {
209
    return Objects.hash(description, max, min, type);
×
210
  }
211

212
  @Override
213
  public String toString() {
214
    StringBuilder sb = new StringBuilder();
×
215
    sb.append("class AmountMinMaxRequirement {\n");
×
216
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
217
    sb.append("    max: ").append(toIndentedString(max)).append("\n");
×
218
    sb.append("    min: ").append(toIndentedString(min)).append("\n");
×
219
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
220
    sb.append("}");
×
221
    return sb.toString();
×
222
  }
223

224
  /**
225
   * Convert the given object to string with each line indented by 4 spaces
226
   * (except the first line).
227
   */
228
  private String toIndentedString(Object o) {
229
    if (o == null) {
×
230
      return "null";
×
231
    }
232
    return o.toString().replace("\n", "\n    ");
×
233
  }
234

235
/**
236
   * Create an instance of AmountMinMaxRequirement given an JSON string
237
   *
238
   * @param jsonString JSON string
239
   * @return An instance of AmountMinMaxRequirement
240
   * @throws JsonProcessingException if the JSON string is invalid with respect to AmountMinMaxRequirement
241
   */
242
  public static AmountMinMaxRequirement fromJson(String jsonString) throws JsonProcessingException {
243
    return JSON.getMapper().readValue(jsonString, AmountMinMaxRequirement.class);
×
244
  }
245
/**
246
  * Convert an instance of AmountMinMaxRequirement to an JSON string
247
  *
248
  * @return JSON string
249
  */
250
  public String toJson() throws JsonProcessingException {
251
    return JSON.getMapper().writeValueAsString(this);
×
252
  }
253
}
254

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