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

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

11 Sep 2024 09:39AM UTC coverage: 11.825%. First build
#3511

push

web-flow
Merge 2f7c82f32 into d7cb4ee68

21 of 135 new or added lines in 6 files covered. (15.56%)

12591 of 106475 relevant lines covered (11.83%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
14

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

32

33
/**
34
 * VerificationDeadline
35
 */
36
@JsonPropertyOrder({
37
  VerificationDeadline.JSON_PROPERTY_CAPABILITIES,
38
  VerificationDeadline.JSON_PROPERTY_ENTITY_IDS,
39
  VerificationDeadline.JSON_PROPERTY_EXPIRES_AT
40
})
41

42
public class VerificationDeadline {
43
  /**
44
   * Gets or Sets capabilities
45
   */
46
  public enum CapabilitiesEnum {
×
47
    ACCEPTEXTERNALFUNDING("acceptExternalFunding"),
×
48
    
49
    ACCEPTPSPFUNDING("acceptPspFunding"),
×
50
    
51
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIES("acceptTransactionInRestrictedCountries"),
×
52
    
53
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCOMMERCIAL("acceptTransactionInRestrictedCountriesCommercial"),
×
54
    
55
    ACCEPTTRANSACTIONINRESTRICTEDCOUNTRIESCONSUMER("acceptTransactionInRestrictedCountriesConsumer"),
×
56
    
57
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIES("acceptTransactionInRestrictedIndustries"),
×
58
    
59
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCOMMERCIAL("acceptTransactionInRestrictedIndustriesCommercial"),
×
60
    
61
    ACCEPTTRANSACTIONINRESTRICTEDINDUSTRIESCONSUMER("acceptTransactionInRestrictedIndustriesConsumer"),
×
62
    
63
    ACQUIRING("acquiring"),
×
64
    
65
    ATMWITHDRAWAL("atmWithdrawal"),
×
66
    
67
    ATMWITHDRAWALCOMMERCIAL("atmWithdrawalCommercial"),
×
68
    
69
    ATMWITHDRAWALCONSUMER("atmWithdrawalConsumer"),
×
70
    
71
    ATMWITHDRAWALINRESTRICTEDCOUNTRIES("atmWithdrawalInRestrictedCountries"),
×
72
    
73
    ATMWITHDRAWALINRESTRICTEDCOUNTRIESCOMMERCIAL("atmWithdrawalInRestrictedCountriesCommercial"),
×
74
    
75
    ATMWITHDRAWALINRESTRICTEDCOUNTRIESCONSUMER("atmWithdrawalInRestrictedCountriesConsumer"),
×
76
    
77
    AUTHORISEDPAYMENTINSTRUMENTUSER("authorisedPaymentInstrumentUser"),
×
78
    
79
    GETGRANTOFFERS("getGrantOffers"),
×
80
    
81
    ISSUEBANKACCOUNT("issueBankAccount"),
×
82
    
83
    ISSUECARD("issueCard"),
×
84
    
85
    ISSUECARDCOMMERCIAL("issueCardCommercial"),
×
86
    
87
    ISSUECARDCONSUMER("issueCardConsumer"),
×
88
    
NEW
89
    ISSUECREDITLIMIT("issueCreditLimit"),
×
90
    
91
    LOCALACCEPTANCE("localAcceptance"),
×
92
    
93
    PAYOUT("payout"),
×
94
    
95
    PAYOUTTOTRANSFERINSTRUMENT("payoutToTransferInstrument"),
×
96
    
97
    PROCESSING("processing"),
×
98
    
99
    RECEIVEFROMBALANCEACCOUNT("receiveFromBalanceAccount"),
×
100
    
101
    RECEIVEFROMPLATFORMPAYMENTS("receiveFromPlatformPayments"),
×
102
    
103
    RECEIVEFROMTHIRDPARTY("receiveFromThirdParty"),
×
104
    
105
    RECEIVEFROMTRANSFERINSTRUMENT("receiveFromTransferInstrument"),
×
106
    
107
    RECEIVEGRANTS("receiveGrants"),
×
108
    
109
    RECEIVEPAYMENTS("receivePayments"),
×
110
    
111
    SENDTOBALANCEACCOUNT("sendToBalanceAccount"),
×
112
    
113
    SENDTOTHIRDPARTY("sendToThirdParty"),
×
114
    
115
    SENDTOTRANSFERINSTRUMENT("sendToTransferInstrument"),
×
116
    
117
    THIRDPARTYFUNDING("thirdPartyFunding"),
×
118
    
119
    USECARD("useCard"),
×
120
    
121
    USECARDCOMMERCIAL("useCardCommercial"),
×
122
    
123
    USECARDCONSUMER("useCardConsumer"),
×
124
    
125
    USECARDINRESTRICTEDCOUNTRIES("useCardInRestrictedCountries"),
×
126
    
127
    USECARDINRESTRICTEDCOUNTRIESCOMMERCIAL("useCardInRestrictedCountriesCommercial"),
×
128
    
129
    USECARDINRESTRICTEDCOUNTRIESCONSUMER("useCardInRestrictedCountriesConsumer"),
×
130
    
131
    USECARDINRESTRICTEDINDUSTRIES("useCardInRestrictedIndustries"),
×
132
    
133
    USECARDINRESTRICTEDINDUSTRIESCOMMERCIAL("useCardInRestrictedIndustriesCommercial"),
×
134
    
135
    USECARDINRESTRICTEDINDUSTRIESCONSUMER("useCardInRestrictedIndustriesConsumer"),
×
136
    
137
    WITHDRAWFROMATM("withdrawFromAtm"),
×
138
    
139
    WITHDRAWFROMATMCOMMERCIAL("withdrawFromAtmCommercial"),
×
140
    
141
    WITHDRAWFROMATMCONSUMER("withdrawFromAtmConsumer"),
×
142
    
143
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIES("withdrawFromAtmInRestrictedCountries"),
×
144
    
145
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCOMMERCIAL("withdrawFromAtmInRestrictedCountriesCommercial"),
×
146
    
147
    WITHDRAWFROMATMINRESTRICTEDCOUNTRIESCONSUMER("withdrawFromAtmInRestrictedCountriesConsumer");
×
148

149
    private String value;
150

151
    CapabilitiesEnum(String value) {
×
152
      this.value = value;
×
153
    }
×
154

155
    @JsonValue
156
    public String getValue() {
157
      return value;
×
158
    }
159

160
    @Override
161
    public String toString() {
162
      return String.valueOf(value);
×
163
    }
164

165
    @JsonCreator
166
    public static CapabilitiesEnum fromValue(String value) {
167
      for (CapabilitiesEnum b : CapabilitiesEnum.values()) {
×
168
        if (b.value.equals(value)) {
×
169
          return b;
×
170
        }
171
      }
172
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
173
    }
174
  }
175

176
  public static final String JSON_PROPERTY_CAPABILITIES = "capabilities";
177
  private List<CapabilitiesEnum> capabilities = new ArrayList<>();
×
178

179
  public static final String JSON_PROPERTY_ENTITY_IDS = "entityIds";
180
  private List<String> entityIds = null;
×
181

182
  public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
183
  private OffsetDateTime expiresAt;
184

185
  public VerificationDeadline() { 
×
186
  }
×
187

188
  public VerificationDeadline capabilities(List<CapabilitiesEnum> capabilities) {
189
    this.capabilities = capabilities;
×
190
    return this;
×
191
  }
192

193
  public VerificationDeadline addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) {
194
    this.capabilities.add(capabilitiesItem);
×
195
    return this;
×
196
  }
197

198
   /**
199
   * The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline
200
   * @return capabilities
201
  **/
202
  @ApiModelProperty(required = true, value = "The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline")
203
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205

206
  public List<CapabilitiesEnum> getCapabilities() {
207
    return capabilities;
×
208
  }
209

210

211
 /**
212
  * The list of capabilities that will be disallowed if information is not reviewed by the time of the deadline
213
  *
214
  * @param capabilities
215
  */ 
216
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218
  public void setCapabilities(List<CapabilitiesEnum> capabilities) {
219
    this.capabilities = capabilities;
×
220
  }
×
221

222

223
  public VerificationDeadline entityIds(List<String> entityIds) {
224
    this.entityIds = entityIds;
×
225
    return this;
×
226
  }
227

228
  public VerificationDeadline addEntityIdsItem(String entityIdsItem) {
229
    if (this.entityIds == null) {
×
230
      this.entityIds = new ArrayList<>();
×
231
    }
232
    this.entityIds.add(entityIdsItem);
×
233
    return this;
×
234
  }
235

236
   /**
237
   * The unique identifiers of the legal entity or supporting entities that the deadline applies to
238
   * @return entityIds
239
  **/
240
  @ApiModelProperty(value = "The unique identifiers of the legal entity or supporting entities that the deadline applies to")
241
  @JsonProperty(JSON_PROPERTY_ENTITY_IDS)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243

244
  public List<String> getEntityIds() {
245
    return entityIds;
×
246
  }
247

248

249
 /**
250
  * The unique identifiers of the legal entity or supporting entities that the deadline applies to
251
  *
252
  * @param entityIds
253
  */ 
254
  @JsonProperty(JSON_PROPERTY_ENTITY_IDS)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256
  public void setEntityIds(List<String> entityIds) {
257
    this.entityIds = entityIds;
×
258
  }
×
259

260

261
  public VerificationDeadline expiresAt(OffsetDateTime expiresAt) {
262
    this.expiresAt = expiresAt;
×
263
    return this;
×
264
  }
265

266
   /**
267
   * The date that verification is due by before capabilities are disallowed.
268
   * @return expiresAt
269
  **/
270
  @ApiModelProperty(required = true, value = "The date that verification is due by before capabilities are disallowed.")
271
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273

274
  public OffsetDateTime getExpiresAt() {
275
    return expiresAt;
×
276
  }
277

278

279
 /**
280
  * The date that verification is due by before capabilities are disallowed.
281
  *
282
  * @param expiresAt
283
  */ 
284
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
285
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
286
  public void setExpiresAt(OffsetDateTime expiresAt) {
287
    this.expiresAt = expiresAt;
×
288
  }
×
289

290

291
  /**
292
   * Return true if this VerificationDeadline object is equal to o.
293
   */
294
  @Override
295
  public boolean equals(Object o) {
296
    if (this == o) {
×
297
      return true;
×
298
    }
299
    if (o == null || getClass() != o.getClass()) {
×
300
      return false;
×
301
    }
302
    VerificationDeadline verificationDeadline = (VerificationDeadline) o;
×
303
    return Objects.equals(this.capabilities, verificationDeadline.capabilities) &&
×
304
        Objects.equals(this.entityIds, verificationDeadline.entityIds) &&
×
305
        Objects.equals(this.expiresAt, verificationDeadline.expiresAt);
×
306
  }
307

308
  @Override
309
  public int hashCode() {
310
    return Objects.hash(capabilities, entityIds, expiresAt);
×
311
  }
312

313
  @Override
314
  public String toString() {
315
    StringBuilder sb = new StringBuilder();
×
316
    sb.append("class VerificationDeadline {\n");
×
317
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
318
    sb.append("    entityIds: ").append(toIndentedString(entityIds)).append("\n");
×
319
    sb.append("    expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
×
320
    sb.append("}");
×
321
    return sb.toString();
×
322
  }
323

324
  /**
325
   * Convert the given object to string with each line indented by 4 spaces
326
   * (except the first line).
327
   */
328
  private String toIndentedString(Object o) {
329
    if (o == null) {
×
330
      return "null";
×
331
    }
332
    return o.toString().replace("\n", "\n    ");
×
333
  }
334

335
/**
336
   * Create an instance of VerificationDeadline given an JSON string
337
   *
338
   * @param jsonString JSON string
339
   * @return An instance of VerificationDeadline
340
   * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline
341
   */
342
  public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException {
343
    return JSON.getMapper().readValue(jsonString, VerificationDeadline.class);
×
344
  }
345
/**
346
  * Convert an instance of VerificationDeadline to an JSON string
347
  *
348
  * @return JSON string
349
  */
350
  public String toJson() throws JsonProcessingException {
351
    return JSON.getMapper().writeValueAsString(this);
×
352
  }
353
}
354

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

© 2026 Coveralls, Inc