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

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

17 Nov 2023 02:16PM UTC coverage: 12.793%. First build
#2864

push

web-flow
Merge eb1b44ffc into ea35deb55

5 of 428 new or added lines in 17 files covered. (1.17%)

12398 of 96913 relevant lines covered (12.79%)

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

147
    private String value;
148

NEW
149
    CapabilitiesEnum(String value) {
×
NEW
150
      this.value = value;
×
NEW
151
    }
×
152

153
    @JsonValue
154
    public String getValue() {
NEW
155
      return value;
×
156
    }
157

158
    @Override
159
    public String toString() {
NEW
160
      return String.valueOf(value);
×
161
    }
162

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

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

177
  public static final String JSON_PROPERTY_ENTITY_IDS = "entityIds";
NEW
178
  private List<String> entityIds = null;
×
179

180
  public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
181
  private OffsetDateTime expiresAt;
182

NEW
183
  public VerificationDeadline() { 
×
NEW
184
  }
×
185

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

191
  public VerificationDeadline addCapabilitiesItem(CapabilitiesEnum capabilitiesItem) {
NEW
192
    this.capabilities.add(capabilitiesItem);
×
NEW
193
    return this;
×
194
  }
195

196
   /**
197
   * The names of the capabilities to be disallowed.
198
   * @return capabilities
199
  **/
200
  @ApiModelProperty(required = true, value = "The names of the capabilities to be disallowed.")
201
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
203

204
  public List<CapabilitiesEnum> getCapabilities() {
NEW
205
    return capabilities;
×
206
  }
207

208

209
  @JsonProperty(JSON_PROPERTY_CAPABILITIES)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211
  public void setCapabilities(List<CapabilitiesEnum> capabilities) {
NEW
212
    this.capabilities = capabilities;
×
NEW
213
  }
×
214

215

216
  public VerificationDeadline entityIds(List<String> entityIds) {
NEW
217
    this.entityIds = entityIds;
×
NEW
218
    return this;
×
219
  }
220

221
  public VerificationDeadline addEntityIdsItem(String entityIdsItem) {
NEW
222
    if (this.entityIds == null) {
×
NEW
223
      this.entityIds = new ArrayList<>();
×
224
    }
NEW
225
    this.entityIds.add(entityIdsItem);
×
NEW
226
    return this;
×
227
  }
228

229
   /**
230
   * The unique identifiers of the bank account(s) that the deadline applies to
231
   * @return entityIds
232
  **/
233
  @ApiModelProperty(value = "The unique identifiers of the bank account(s) that the deadline applies to")
234
  @JsonProperty(JSON_PROPERTY_ENTITY_IDS)
235
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
236

237
  public List<String> getEntityIds() {
NEW
238
    return entityIds;
×
239
  }
240

241

242
  @JsonProperty(JSON_PROPERTY_ENTITY_IDS)
243
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
244
  public void setEntityIds(List<String> entityIds) {
NEW
245
    this.entityIds = entityIds;
×
NEW
246
  }
×
247

248

249
  public VerificationDeadline expiresAt(OffsetDateTime expiresAt) {
NEW
250
    this.expiresAt = expiresAt;
×
NEW
251
    return this;
×
252
  }
253

254
   /**
255
   * The date that verification is due by before capabilities are disallowed.
256
   * @return expiresAt
257
  **/
258
  @ApiModelProperty(required = true, value = "The date that verification is due by before capabilities are disallowed.")
259
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
260
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261

262
  public OffsetDateTime getExpiresAt() {
NEW
263
    return expiresAt;
×
264
  }
265

266

267
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
268
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
269
  public void setExpiresAt(OffsetDateTime expiresAt) {
NEW
270
    this.expiresAt = expiresAt;
×
NEW
271
  }
×
272

273

274
  /**
275
   * Return true if this VerificationDeadline object is equal to o.
276
   */
277
  @Override
278
  public boolean equals(Object o) {
NEW
279
    if (this == o) {
×
NEW
280
      return true;
×
281
    }
NEW
282
    if (o == null || getClass() != o.getClass()) {
×
NEW
283
      return false;
×
284
    }
NEW
285
    VerificationDeadline verificationDeadline = (VerificationDeadline) o;
×
NEW
286
    return Objects.equals(this.capabilities, verificationDeadline.capabilities) &&
×
NEW
287
        Objects.equals(this.entityIds, verificationDeadline.entityIds) &&
×
NEW
288
        Objects.equals(this.expiresAt, verificationDeadline.expiresAt);
×
289
  }
290

291
  @Override
292
  public int hashCode() {
NEW
293
    return Objects.hash(capabilities, entityIds, expiresAt);
×
294
  }
295

296
  @Override
297
  public String toString() {
NEW
298
    StringBuilder sb = new StringBuilder();
×
NEW
299
    sb.append("class VerificationDeadline {\n");
×
NEW
300
    sb.append("    capabilities: ").append(toIndentedString(capabilities)).append("\n");
×
NEW
301
    sb.append("    entityIds: ").append(toIndentedString(entityIds)).append("\n");
×
NEW
302
    sb.append("    expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
×
NEW
303
    sb.append("}");
×
NEW
304
    return sb.toString();
×
305
  }
306

307
  /**
308
   * Convert the given object to string with each line indented by 4 spaces
309
   * (except the first line).
310
   */
311
  private String toIndentedString(Object o) {
NEW
312
    if (o == null) {
×
NEW
313
      return "null";
×
314
    }
NEW
315
    return o.toString().replace("\n", "\n    ");
×
316
  }
317

318
/**
319
   * Create an instance of VerificationDeadline given an JSON string
320
   *
321
   * @param jsonString JSON string
322
   * @return An instance of VerificationDeadline
323
   * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationDeadline
324
   */
325
  public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException {
NEW
326
    return JSON.getMapper().readValue(jsonString, VerificationDeadline.class);
×
327
  }
328
/**
329
  * Convert an instance of VerificationDeadline to an JSON string
330
  *
331
  * @return JSON string
332
  */
333
  public String toJson() throws JsonProcessingException {
NEW
334
    return JSON.getMapper().writeValueAsString(this);
×
335
  }
336
}
337

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