• 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/PerformVerificationRequest.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.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
 * PerformVerificationRequest
33
 */
34
@JsonPropertyOrder({
35
  PerformVerificationRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
36
  PerformVerificationRequest.JSON_PROPERTY_ACCOUNT_STATE_TYPE,
37
  PerformVerificationRequest.JSON_PROPERTY_TIER
38
})
39

40
public class PerformVerificationRequest {
41
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
42
  private String accountHolderCode;
43

44
  /**
45
   * The state required for the account holder. > Permitted values: `Processing`, `Payout`.
46
   */
47
  public enum AccountStateTypeEnum {
×
48
    LIMITEDPAYOUT("LimitedPayout"),
×
49
    
50
    LIMITEDPROCESSING("LimitedProcessing"),
×
51
    
52
    LIMITLESSPAYOUT("LimitlessPayout"),
×
53
    
54
    LIMITLESSPROCESSING("LimitlessProcessing"),
×
55
    
56
    PAYOUT("Payout"),
×
57
    
58
    PROCESSING("Processing");
×
59

60
    private String value;
61

62
    AccountStateTypeEnum(String value) {
×
63
      this.value = value;
×
64
    }
×
65

66
    @JsonValue
67
    public String getValue() {
68
      return value;
×
69
    }
70

71
    @Override
72
    public String toString() {
73
      return String.valueOf(value);
×
74
    }
75

76
    @JsonCreator
77
    public static AccountStateTypeEnum fromValue(String value) {
78
      for (AccountStateTypeEnum b : AccountStateTypeEnum.values()) {
×
79
        if (b.value.equals(value)) {
×
80
          return b;
×
81
        }
82
      }
83
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
84
    }
85
  }
86

87
  public static final String JSON_PROPERTY_ACCOUNT_STATE_TYPE = "accountStateType";
88
  private AccountStateTypeEnum accountStateType;
89

90
  public static final String JSON_PROPERTY_TIER = "tier";
91
  private Integer tier;
92

93
  public PerformVerificationRequest() { 
×
94
  }
×
95

96
  public PerformVerificationRequest accountHolderCode(String accountHolderCode) {
97
    this.accountHolderCode = accountHolderCode;
×
98
    return this;
×
99
  }
100

101
   /**
102
   * The code of the account holder to verify.
103
   * @return accountHolderCode
104
  **/
105
  @ApiModelProperty(required = true, value = "The code of the account holder to verify.")
106
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
107
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
108

109
  public String getAccountHolderCode() {
110
    return accountHolderCode;
×
111
  }
112

113

114
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116
  public void setAccountHolderCode(String accountHolderCode) {
117
    this.accountHolderCode = accountHolderCode;
×
118
  }
×
119

120

121
  public PerformVerificationRequest accountStateType(AccountStateTypeEnum accountStateType) {
122
    this.accountStateType = accountStateType;
×
123
    return this;
×
124
  }
125

126
   /**
127
   * The state required for the account holder. > Permitted values: `Processing`, `Payout`.
128
   * @return accountStateType
129
  **/
130
  @ApiModelProperty(required = true, value = "The state required for the account holder. > Permitted values: `Processing`, `Payout`.")
131
  @JsonProperty(JSON_PROPERTY_ACCOUNT_STATE_TYPE)
132
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133

134
  public AccountStateTypeEnum getAccountStateType() {
135
    return accountStateType;
×
136
  }
137

138

139
  @JsonProperty(JSON_PROPERTY_ACCOUNT_STATE_TYPE)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141
  public void setAccountStateType(AccountStateTypeEnum accountStateType) {
142
    this.accountStateType = accountStateType;
×
143
  }
×
144

145

146
  public PerformVerificationRequest tier(Integer tier) {
147
    this.tier = tier;
×
148
    return this;
×
149
  }
150

151
   /**
152
   * The tier required for the account holder.
153
   * @return tier
154
  **/
155
  @ApiModelProperty(required = true, value = "The tier required for the account holder.")
156
  @JsonProperty(JSON_PROPERTY_TIER)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158

159
  public Integer getTier() {
160
    return tier;
×
161
  }
162

163

164
  @JsonProperty(JSON_PROPERTY_TIER)
165
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
166
  public void setTier(Integer tier) {
167
    this.tier = tier;
×
168
  }
×
169

170

171
  /**
172
   * Return true if this PerformVerificationRequest object is equal to o.
173
   */
174
  @Override
175
  public boolean equals(Object o) {
176
    if (this == o) {
×
177
      return true;
×
178
    }
179
    if (o == null || getClass() != o.getClass()) {
×
180
      return false;
×
181
    }
182
    PerformVerificationRequest performVerificationRequest = (PerformVerificationRequest) o;
×
183
    return Objects.equals(this.accountHolderCode, performVerificationRequest.accountHolderCode) &&
×
184
        Objects.equals(this.accountStateType, performVerificationRequest.accountStateType) &&
×
185
        Objects.equals(this.tier, performVerificationRequest.tier);
×
186
  }
187

188
  @Override
189
  public int hashCode() {
190
    return Objects.hash(accountHolderCode, accountStateType, tier);
×
191
  }
192

193
  @Override
194
  public String toString() {
195
    StringBuilder sb = new StringBuilder();
×
196
    sb.append("class PerformVerificationRequest {\n");
×
197
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
198
    sb.append("    accountStateType: ").append(toIndentedString(accountStateType)).append("\n");
×
199
    sb.append("    tier: ").append(toIndentedString(tier)).append("\n");
×
200
    sb.append("}");
×
201
    return sb.toString();
×
202
  }
203

204
  /**
205
   * Convert the given object to string with each line indented by 4 spaces
206
   * (except the first line).
207
   */
208
  private String toIndentedString(Object o) {
209
    if (o == null) {
×
210
      return "null";
×
211
    }
212
    return o.toString().replace("\n", "\n    ");
×
213
  }
214

215
/**
216
   * Create an instance of PerformVerificationRequest given an JSON string
217
   *
218
   * @param jsonString JSON string
219
   * @return An instance of PerformVerificationRequest
220
   * @throws JsonProcessingException if the JSON string is invalid with respect to PerformVerificationRequest
221
   */
222
  public static PerformVerificationRequest fromJson(String jsonString) throws JsonProcessingException {
223
    return JSON.getMapper().readValue(jsonString, PerformVerificationRequest.class);
×
224
  }
225
/**
226
  * Convert an instance of PerformVerificationRequest to an JSON string
227
  *
228
  * @return JSON string
229
  */
230
  public String toJson() throws JsonProcessingException {
231
    return JSON.getMapper().writeValueAsString(this);
×
232
  }
233
}
234

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