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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.08
/src/main/java/com/adyen/model/marketpaywebhooks/AccountProcessingState.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.Amount;
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
 * AccountProcessingState
33
 */
34
@JsonPropertyOrder({
35
  AccountProcessingState.JSON_PROPERTY_DISABLE_REASON,
36
  AccountProcessingState.JSON_PROPERTY_DISABLED,
37
  AccountProcessingState.JSON_PROPERTY_PROCESSED_FROM,
38
  AccountProcessingState.JSON_PROPERTY_PROCESSED_TO,
39
  AccountProcessingState.JSON_PROPERTY_TIER_NUMBER
40
})
41

42
public class AccountProcessingState {
43
  public static final String JSON_PROPERTY_DISABLE_REASON = "disableReason";
44
  private String disableReason;
45

46
  public static final String JSON_PROPERTY_DISABLED = "disabled";
47
  private Boolean disabled;
48

49
  public static final String JSON_PROPERTY_PROCESSED_FROM = "processedFrom";
50
  private Amount processedFrom;
51

52
  public static final String JSON_PROPERTY_PROCESSED_TO = "processedTo";
53
  private Amount processedTo;
54

55
  public static final String JSON_PROPERTY_TIER_NUMBER = "tierNumber";
56
  private Integer tierNumber;
57

58
  public AccountProcessingState() { 
1✔
59
  }
1✔
60

61
  public AccountProcessingState disableReason(String disableReason) {
62
    this.disableReason = disableReason;
×
63
    return this;
×
64
  }
65

66
   /**
67
   * The reason why processing has been disabled.
68
   * @return disableReason
69
  **/
70
  @ApiModelProperty(value = "The reason why processing has been disabled.")
71
  @JsonProperty(JSON_PROPERTY_DISABLE_REASON)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

74
  public String getDisableReason() {
75
    return disableReason;
×
76
  }
77

78

79
  @JsonProperty(JSON_PROPERTY_DISABLE_REASON)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setDisableReason(String disableReason) {
82
    this.disableReason = disableReason;
1✔
83
  }
1✔
84

85

86
  public AccountProcessingState disabled(Boolean disabled) {
87
    this.disabled = disabled;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * Indicates whether the processing of payments is allowed.
93
   * @return disabled
94
  **/
95
  @ApiModelProperty(value = "Indicates whether the processing of payments is allowed.")
96
  @JsonProperty(JSON_PROPERTY_DISABLED)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public Boolean getDisabled() {
100
    return disabled;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_DISABLED)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setDisabled(Boolean disabled) {
107
    this.disabled = disabled;
1✔
108
  }
1✔
109

110

111
  public AccountProcessingState processedFrom(Amount processedFrom) {
112
    this.processedFrom = processedFrom;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * Get processedFrom
118
   * @return processedFrom
119
  **/
120
  @ApiModelProperty(value = "")
121
  @JsonProperty(JSON_PROPERTY_PROCESSED_FROM)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public Amount getProcessedFrom() {
125
    return processedFrom;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_PROCESSED_FROM)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setProcessedFrom(Amount processedFrom) {
132
    this.processedFrom = processedFrom;
1✔
133
  }
1✔
134

135

136
  public AccountProcessingState processedTo(Amount processedTo) {
137
    this.processedTo = processedTo;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * Get processedTo
143
   * @return processedTo
144
  **/
145
  @ApiModelProperty(value = "")
146
  @JsonProperty(JSON_PROPERTY_PROCESSED_TO)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public Amount getProcessedTo() {
150
    return processedTo;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_PROCESSED_TO)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setProcessedTo(Amount processedTo) {
157
    this.processedTo = processedTo;
1✔
158
  }
1✔
159

160

161
  public AccountProcessingState tierNumber(Integer tierNumber) {
162
    this.tierNumber = tierNumber;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * The processing tier that the account holder occupies.
168
   * @return tierNumber
169
  **/
170
  @ApiModelProperty(value = "The processing tier that the account holder occupies.")
171
  @JsonProperty(JSON_PROPERTY_TIER_NUMBER)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public Integer getTierNumber() {
175
    return tierNumber;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_TIER_NUMBER)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setTierNumber(Integer tierNumber) {
182
    this.tierNumber = tierNumber;
1✔
183
  }
1✔
184

185

186
  /**
187
   * Return true if this AccountProcessingState object is equal to o.
188
   */
189
  @Override
190
  public boolean equals(Object o) {
191
    if (this == o) {
×
192
      return true;
×
193
    }
194
    if (o == null || getClass() != o.getClass()) {
×
195
      return false;
×
196
    }
197
    AccountProcessingState accountProcessingState = (AccountProcessingState) o;
×
198
    return Objects.equals(this.disableReason, accountProcessingState.disableReason) &&
×
199
        Objects.equals(this.disabled, accountProcessingState.disabled) &&
×
200
        Objects.equals(this.processedFrom, accountProcessingState.processedFrom) &&
×
201
        Objects.equals(this.processedTo, accountProcessingState.processedTo) &&
×
202
        Objects.equals(this.tierNumber, accountProcessingState.tierNumber);
×
203
  }
204

205
  @Override
206
  public int hashCode() {
207
    return Objects.hash(disableReason, disabled, processedFrom, processedTo, tierNumber);
×
208
  }
209

210
  @Override
211
  public String toString() {
212
    StringBuilder sb = new StringBuilder();
×
213
    sb.append("class AccountProcessingState {\n");
×
214
    sb.append("    disableReason: ").append(toIndentedString(disableReason)).append("\n");
×
215
    sb.append("    disabled: ").append(toIndentedString(disabled)).append("\n");
×
216
    sb.append("    processedFrom: ").append(toIndentedString(processedFrom)).append("\n");
×
217
    sb.append("    processedTo: ").append(toIndentedString(processedTo)).append("\n");
×
218
    sb.append("    tierNumber: ").append(toIndentedString(tierNumber)).append("\n");
×
219
    sb.append("}");
×
220
    return sb.toString();
×
221
  }
222

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

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

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