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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/marketpayaccount/AccountProcessingState.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayaccount.Amount;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * AccountProcessingState
34
 */
35
@JsonPropertyOrder({
36
  AccountProcessingState.JSON_PROPERTY_DISABLE_REASON,
37
  AccountProcessingState.JSON_PROPERTY_DISABLED,
38
  AccountProcessingState.JSON_PROPERTY_PROCESSED_FROM,
39
  AccountProcessingState.JSON_PROPERTY_PROCESSED_TO,
40
  AccountProcessingState.JSON_PROPERTY_TIER_NUMBER
41
})
42

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

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

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

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

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

59
  public AccountProcessingState() { 
×
60
  }
×
61

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

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

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

79

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

86

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

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

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

104

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

111

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

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

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

129

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

136

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

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

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

154

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

161

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

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

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

179

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

186

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

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

211
  @Override
212
  public String toString() {
213
    StringBuilder sb = new StringBuilder();
×
214
    sb.append("class AccountProcessingState {\n");
×
215
    sb.append("    disableReason: ").append(toIndentedString(disableReason)).append("\n");
×
216
    sb.append("    disabled: ").append(toIndentedString(disabled)).append("\n");
×
217
    sb.append("    processedFrom: ").append(toIndentedString(processedFrom)).append("\n");
×
218
    sb.append("    processedTo: ").append(toIndentedString(processedTo)).append("\n");
×
219
    sb.append("    tierNumber: ").append(toIndentedString(tierNumber)).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 AccountProcessingState given an JSON string
237
   *
238
   * @param jsonString JSON string
239
   * @return An instance of AccountProcessingState
240
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountProcessingState
241
   */
242
  public static AccountProcessingState fromJson(String jsonString) throws JsonProcessingException {
243
    return JSON.getMapper().readValue(jsonString, AccountProcessingState.class);
×
244
  }
245
/**
246
  * Convert an instance of AccountProcessingState 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