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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

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/AccountPayoutState.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
 * AccountPayoutState
34
 */
35
@JsonPropertyOrder({
36
  AccountPayoutState.JSON_PROPERTY_ALLOW_PAYOUT,
37
  AccountPayoutState.JSON_PROPERTY_DISABLE_REASON,
38
  AccountPayoutState.JSON_PROPERTY_DISABLED,
39
  AccountPayoutState.JSON_PROPERTY_NOT_ALLOWED_REASON,
40
  AccountPayoutState.JSON_PROPERTY_PAYOUT_LIMIT,
41
  AccountPayoutState.JSON_PROPERTY_TIER_NUMBER
42
})
43

44
public class AccountPayoutState {
45
  public static final String JSON_PROPERTY_ALLOW_PAYOUT = "allowPayout";
46
  private Boolean allowPayout;
47

48
  public static final String JSON_PROPERTY_DISABLE_REASON = "disableReason";
49
  private String disableReason;
50

51
  public static final String JSON_PROPERTY_DISABLED = "disabled";
52
  private Boolean disabled;
53

54
  public static final String JSON_PROPERTY_NOT_ALLOWED_REASON = "notAllowedReason";
55
  private String notAllowedReason;
56

57
  public static final String JSON_PROPERTY_PAYOUT_LIMIT = "payoutLimit";
58
  private Amount payoutLimit;
59

60
  public static final String JSON_PROPERTY_TIER_NUMBER = "tierNumber";
61
  private Integer tierNumber;
62

63
  public AccountPayoutState() { 
×
64
  }
×
65

66
  public AccountPayoutState allowPayout(Boolean allowPayout) {
67
    this.allowPayout = allowPayout;
×
68
    return this;
×
69
  }
70

71
   /**
72
   * Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts.
73
   * @return allowPayout
74
  **/
75
  @ApiModelProperty(value = "Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts.")
76
  @JsonProperty(JSON_PROPERTY_ALLOW_PAYOUT)
77
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
78

79
  public Boolean getAllowPayout() {
80
    return allowPayout;
×
81
  }
82

83

84
  @JsonProperty(JSON_PROPERTY_ALLOW_PAYOUT)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86
  public void setAllowPayout(Boolean allowPayout) {
87
    this.allowPayout = allowPayout;
×
88
  }
×
89

90

91
  public AccountPayoutState disableReason(String disableReason) {
92
    this.disableReason = disableReason;
×
93
    return this;
×
94
  }
95

96
   /**
97
   * The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why.
98
   * @return disableReason
99
  **/
100
  @ApiModelProperty(value = "The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why.")
101
  @JsonProperty(JSON_PROPERTY_DISABLE_REASON)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103

104
  public String getDisableReason() {
105
    return disableReason;
×
106
  }
107

108

109
  @JsonProperty(JSON_PROPERTY_DISABLE_REASON)
110
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
111
  public void setDisableReason(String disableReason) {
112
    this.disableReason = disableReason;
×
113
  }
×
114

115

116
  public AccountPayoutState disabled(Boolean disabled) {
117
    this.disabled = disabled;
×
118
    return this;
×
119
  }
120

121
   /**
122
   * Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors.
123
   * @return disabled
124
  **/
125
  @ApiModelProperty(value = "Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors.")
126
  @JsonProperty(JSON_PROPERTY_DISABLED)
127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
128

129
  public Boolean getDisabled() {
130
    return disabled;
×
131
  }
132

133

134
  @JsonProperty(JSON_PROPERTY_DISABLED)
135
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136
  public void setDisabled(Boolean disabled) {
137
    this.disabled = disabled;
×
138
  }
×
139

140

141
  public AccountPayoutState notAllowedReason(String notAllowedReason) {
142
    this.notAllowedReason = notAllowedReason;
×
143
    return this;
×
144
  }
145

146
   /**
147
   * The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen.
148
   * @return notAllowedReason
149
  **/
150
  @ApiModelProperty(value = "The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen.")
151
  @JsonProperty(JSON_PROPERTY_NOT_ALLOWED_REASON)
152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
153

154
  public String getNotAllowedReason() {
155
    return notAllowedReason;
×
156
  }
157

158

159
  @JsonProperty(JSON_PROPERTY_NOT_ALLOWED_REASON)
160
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161
  public void setNotAllowedReason(String notAllowedReason) {
162
    this.notAllowedReason = notAllowedReason;
×
163
  }
×
164

165

166
  public AccountPayoutState payoutLimit(Amount payoutLimit) {
167
    this.payoutLimit = payoutLimit;
×
168
    return this;
×
169
  }
170

171
   /**
172
   * Get payoutLimit
173
   * @return payoutLimit
174
  **/
175
  @ApiModelProperty(value = "")
176
  @JsonProperty(JSON_PROPERTY_PAYOUT_LIMIT)
177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178

179
  public Amount getPayoutLimit() {
180
    return payoutLimit;
×
181
  }
182

183

184
  @JsonProperty(JSON_PROPERTY_PAYOUT_LIMIT)
185
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
186
  public void setPayoutLimit(Amount payoutLimit) {
187
    this.payoutLimit = payoutLimit;
×
188
  }
×
189

190

191
  public AccountPayoutState tierNumber(Integer tierNumber) {
192
    this.tierNumber = tierNumber;
×
193
    return this;
×
194
  }
195

196
   /**
197
   * The payout tier that the account holder occupies.
198
   * @return tierNumber
199
  **/
200
  @ApiModelProperty(value = "The payout tier that the account holder occupies.")
201
  @JsonProperty(JSON_PROPERTY_TIER_NUMBER)
202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
203

204
  public Integer getTierNumber() {
205
    return tierNumber;
×
206
  }
207

208

209
  @JsonProperty(JSON_PROPERTY_TIER_NUMBER)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211
  public void setTierNumber(Integer tierNumber) {
212
    this.tierNumber = tierNumber;
×
213
  }
×
214

215

216
  /**
217
   * Return true if this AccountPayoutState object is equal to o.
218
   */
219
  @Override
220
  public boolean equals(Object o) {
221
    if (this == o) {
×
222
      return true;
×
223
    }
224
    if (o == null || getClass() != o.getClass()) {
×
225
      return false;
×
226
    }
227
    AccountPayoutState accountPayoutState = (AccountPayoutState) o;
×
228
    return Objects.equals(this.allowPayout, accountPayoutState.allowPayout) &&
×
229
        Objects.equals(this.disableReason, accountPayoutState.disableReason) &&
×
230
        Objects.equals(this.disabled, accountPayoutState.disabled) &&
×
231
        Objects.equals(this.notAllowedReason, accountPayoutState.notAllowedReason) &&
×
232
        Objects.equals(this.payoutLimit, accountPayoutState.payoutLimit) &&
×
233
        Objects.equals(this.tierNumber, accountPayoutState.tierNumber);
×
234
  }
235

236
  @Override
237
  public int hashCode() {
238
    return Objects.hash(allowPayout, disableReason, disabled, notAllowedReason, payoutLimit, tierNumber);
×
239
  }
240

241
  @Override
242
  public String toString() {
243
    StringBuilder sb = new StringBuilder();
×
244
    sb.append("class AccountPayoutState {\n");
×
245
    sb.append("    allowPayout: ").append(toIndentedString(allowPayout)).append("\n");
×
246
    sb.append("    disableReason: ").append(toIndentedString(disableReason)).append("\n");
×
247
    sb.append("    disabled: ").append(toIndentedString(disabled)).append("\n");
×
248
    sb.append("    notAllowedReason: ").append(toIndentedString(notAllowedReason)).append("\n");
×
249
    sb.append("    payoutLimit: ").append(toIndentedString(payoutLimit)).append("\n");
×
250
    sb.append("    tierNumber: ").append(toIndentedString(tierNumber)).append("\n");
×
251
    sb.append("}");
×
252
    return sb.toString();
×
253
  }
254

255
  /**
256
   * Convert the given object to string with each line indented by 4 spaces
257
   * (except the first line).
258
   */
259
  private String toIndentedString(Object o) {
260
    if (o == null) {
×
261
      return "null";
×
262
    }
263
    return o.toString().replace("\n", "\n    ");
×
264
  }
265

266
/**
267
   * Create an instance of AccountPayoutState given an JSON string
268
   *
269
   * @param jsonString JSON string
270
   * @return An instance of AccountPayoutState
271
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountPayoutState
272
   */
273
  public static AccountPayoutState fromJson(String jsonString) throws JsonProcessingException {
274
    return JSON.getMapper().readValue(jsonString, AccountPayoutState.class);
×
275
  }
276
/**
277
  * Convert an instance of AccountPayoutState to an JSON string
278
  *
279
  * @return JSON string
280
  */
281
  public String toJson() throws JsonProcessingException {
282
    return JSON.getMapper().writeValueAsString(this);
×
283
  }
284
}
285

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