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

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

16 Oct 2023 09:08AM UTC 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.73
/src/main/java/com/adyen/model/marketpaywebhooks/AccountPayoutState.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
 * AccountPayoutState
33
 */
34
@JsonPropertyOrder({
35
  AccountPayoutState.JSON_PROPERTY_ALLOW_PAYOUT,
36
  AccountPayoutState.JSON_PROPERTY_DISABLE_REASON,
37
  AccountPayoutState.JSON_PROPERTY_DISABLED,
38
  AccountPayoutState.JSON_PROPERTY_NOT_ALLOWED_REASON,
39
  AccountPayoutState.JSON_PROPERTY_PAYOUT_LIMIT,
40
  AccountPayoutState.JSON_PROPERTY_TIER_NUMBER
41
})
42

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

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

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

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

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

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

62
  public AccountPayoutState() { 
1✔
63
  }
1✔
64

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

70
   /**
71
   * 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.
72
   * @return allowPayout
73
  **/
74
  @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.")
75
  @JsonProperty(JSON_PROPERTY_ALLOW_PAYOUT)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

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

82

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

89

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

95
   /**
96
   * 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.
97
   * @return disableReason
98
  **/
99
  @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.")
100
  @JsonProperty(JSON_PROPERTY_DISABLE_REASON)
101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102

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

107

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

114

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

120
   /**
121
   * 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.
122
   * @return disabled
123
  **/
124
  @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.")
125
  @JsonProperty(JSON_PROPERTY_DISABLED)
126
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
127

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

132

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

139

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

145
   /**
146
   * 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.
147
   * @return notAllowedReason
148
  **/
149
  @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.")
150
  @JsonProperty(JSON_PROPERTY_NOT_ALLOWED_REASON)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152

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

157

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

164

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

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

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

182

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

189

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

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

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

207

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

214

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

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

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

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

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

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