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

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

27 Nov 2023 10:42AM UTC coverage: 12.874%. First build
#2876

push

web-flow
Merge 842734962 into e27e7377f

5 of 335 new or added lines in 22 files covered. (1.49%)

12464 of 96819 relevant lines covered (12.87%)

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/SameAmountRestriction.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
 * SameAmountRestriction
32
 */
33
@JsonPropertyOrder({
34
  SameAmountRestriction.JSON_PROPERTY_OPERATION,
35
  SameAmountRestriction.JSON_PROPERTY_VALUE
36
})
37

38
public class SameAmountRestriction {
39
  public static final String JSON_PROPERTY_OPERATION = "operation";
40
  private String operation;
41

42
  public static final String JSON_PROPERTY_VALUE = "value";
43
  private Boolean value;
44

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

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

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

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

65

66
  @JsonProperty(JSON_PROPERTY_OPERATION)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68
  public void setOperation(String operation) {
NEW
69
    this.operation = operation;
×
70
  }
×
71

72

73
  public SameAmountRestriction value(Boolean value) {
NEW
74
    this.value = value;
×
75
    return this;
×
76
  }
77

78
   /**
79
   * Get value
80
   * @return value
81
  **/
82
  @ApiModelProperty(value = "")
83
  @JsonProperty(JSON_PROPERTY_VALUE)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85

86
  public Boolean getValue() {
NEW
87
    return value;
×
88
  }
89

90

91
  @JsonProperty(JSON_PROPERTY_VALUE)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setValue(Boolean value) {
NEW
94
    this.value = value;
×
95
  }
×
96

97

98
  /**
99
   * Return true if this SameAmountRestriction object is equal to o.
100
   */
101
  @Override
102
  public boolean equals(Object o) {
103
    if (this == o) {
×
104
      return true;
×
105
    }
106
    if (o == null || getClass() != o.getClass()) {
×
107
      return false;
×
108
    }
NEW
109
    SameAmountRestriction sameAmountRestriction = (SameAmountRestriction) o;
×
NEW
110
    return Objects.equals(this.operation, sameAmountRestriction.operation) &&
×
NEW
111
        Objects.equals(this.value, sameAmountRestriction.value);
×
112
  }
113

114
  @Override
115
  public int hashCode() {
NEW
116
    return Objects.hash(operation, value);
×
117
  }
118

119
  @Override
120
  public String toString() {
121
    StringBuilder sb = new StringBuilder();
×
NEW
122
    sb.append("class SameAmountRestriction {\n");
×
NEW
123
    sb.append("    operation: ").append(toIndentedString(operation)).append("\n");
×
NEW
124
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
×
125
    sb.append("}");
×
126
    return sb.toString();
×
127
  }
128

129
  /**
130
   * Convert the given object to string with each line indented by 4 spaces
131
   * (except the first line).
132
   */
133
  private String toIndentedString(Object o) {
134
    if (o == null) {
×
135
      return "null";
×
136
    }
137
    return o.toString().replace("\n", "\n    ");
×
138
  }
139

140
/**
141
   * Create an instance of SameAmountRestriction given an JSON string
142
   *
143
   * @param jsonString JSON string
144
   * @return An instance of SameAmountRestriction
145
   * @throws JsonProcessingException if the JSON string is invalid with respect to SameAmountRestriction
146
   */
147
  public static SameAmountRestriction fromJson(String jsonString) throws JsonProcessingException {
NEW
148
    return JSON.getMapper().readValue(jsonString, SameAmountRestriction.class);
×
149
  }
150
/**
151
  * Convert an instance of SameAmountRestriction to an JSON string
152
  *
153
  * @return JSON string
154
  */
155
  public String toJson() throws JsonProcessingException {
156
    return JSON.getMapper().writeValueAsString(this);
×
157
  }
158
}
159

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