• 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/marketpayhop/FieldType.java
1
/*
2
 * Hosted onboarding 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 Hosted onboarding API provides endpoints that you can use to generate links to Adyen-hosted pages, such as an [onboarding page](https://docs.adyen.com/marketplaces-and-platforms/classic/hosted-onboarding-page) or a [PCI compliance questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners). You can provide these links to your account holders so that they can complete their onboarding.  ## 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 Hosted onboarding 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/Hop/v6/getOnboardingUrl ```
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.marketpayhop;
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
 * FieldType
33
 */
34
@JsonPropertyOrder({
35
  FieldType.JSON_PROPERTY_FIELD,
36
  FieldType.JSON_PROPERTY_FIELD_NAME,
37
  FieldType.JSON_PROPERTY_SHAREHOLDER_CODE
38
})
39

40
public class FieldType {
41
  public static final String JSON_PROPERTY_FIELD = "field";
42
  private String field;
43

44
  /**
45
   * The type of the field.
46
   */
47
  public enum FieldNameEnum {
×
48
    ACCOUNTCODE("accountCode"),
×
49
    
50
    ACCOUNTHOLDERCODE("accountHolderCode"),
×
51
    
52
    ACCOUNTHOLDERDETAILS("accountHolderDetails"),
×
53
    
54
    ACCOUNTNUMBER("accountNumber"),
×
55
    
56
    ACCOUNTSTATETYPE("accountStateType"),
×
57
    
58
    ACCOUNTSTATUS("accountStatus"),
×
59
    
60
    ACCOUNTTYPE("accountType"),
×
61
    
62
    ADDRESS("address"),
×
63
    
64
    BALANCEACCOUNT("balanceAccount"),
×
65
    
66
    BALANCEACCOUNTACTIVE("balanceAccountActive"),
×
67
    
68
    BALANCEACCOUNTCODE("balanceAccountCode"),
×
69
    
70
    BALANCEACCOUNTID("balanceAccountId"),
×
71
    
72
    BANKACCOUNT("bankAccount"),
×
73
    
74
    BANKACCOUNTCODE("bankAccountCode"),
×
75
    
76
    BANKACCOUNTNAME("bankAccountName"),
×
77
    
78
    BANKACCOUNTUUID("bankAccountUUID"),
×
79
    
80
    BANKBICSWIFT("bankBicSwift"),
×
81
    
82
    BANKCITY("bankCity"),
×
83
    
84
    BANKCODE("bankCode"),
×
85
    
86
    BANKNAME("bankName"),
×
87
    
88
    BANKSTATEMENT("bankStatement"),
×
89
    
90
    BRANCHCODE("branchCode"),
×
91
    
92
    BUSINESSCONTACT("businessContact"),
×
93
    
94
    CARDTOKEN("cardToken"),
×
95
    
96
    CHECKCODE("checkCode"),
×
97
    
98
    CITY("city"),
×
99
    
100
    COMPANYREGISTRATION("companyRegistration"),
×
101
    
102
    CONSTITUTIONALDOCUMENT("constitutionalDocument"),
×
103
    
104
    CONTROLLER("controller"),
×
105
    
106
    COUNTRY("country"),
×
107
    
108
    COUNTRYCODE("countryCode"),
×
109
    
110
    CURRENCY("currency"),
×
111
    
112
    CURRENCYCODE("currencyCode"),
×
113
    
114
    DATEOFBIRTH("dateOfBirth"),
×
115
    
116
    DESCRIPTION("description"),
×
117
    
118
    DESTINATIONACCOUNTCODE("destinationAccountCode"),
×
119
    
120
    DOCUMENT("document"),
×
121
    
122
    DOCUMENTCONTENT("documentContent"),
×
123
    
124
    DOCUMENTEXPIRATIONDATE("documentExpirationDate"),
×
125
    
126
    DOCUMENTISSUERCOUNTRY("documentIssuerCountry"),
×
127
    
128
    DOCUMENTISSUERSTATE("documentIssuerState"),
×
129
    
130
    DOCUMENTNAME("documentName"),
×
131
    
132
    DOCUMENTNUMBER("documentNumber"),
×
133
    
134
    DOCUMENTTYPE("documentType"),
×
135
    
136
    DOINGBUSINESSAS("doingBusinessAs"),
×
137
    
138
    DRIVINGLICENCE("drivingLicence"),
×
139
    
140
    DRIVINGLICENCEBACK("drivingLicenceBack"),
×
141
    
142
    DRIVINGLICENCEFRONT("drivingLicenceFront"),
×
143
    
144
    DRIVINGLICENSE("drivingLicense"),
×
145
    
146
    EMAIL("email"),
×
147
    
148
    FIRSTNAME("firstName"),
×
149
    
150
    FORMTYPE("formType"),
×
151
    
152
    FULLPHONENUMBER("fullPhoneNumber"),
×
153
    
154
    GENDER("gender"),
×
155
    
156
    HOPWEBSERVICEUSER("hopWebserviceUser"),
×
157
    
158
    HOUSENUMBERORNAME("houseNumberOrName"),
×
159
    
160
    IBAN("iban"),
×
161
    
162
    IDCARD("idCard"),
×
163
    
164
    IDCARDBACK("idCardBack"),
×
165
    
166
    IDCARDFRONT("idCardFront"),
×
167
    
168
    IDNUMBER("idNumber"),
×
169
    
170
    IDENTITYDOCUMENT("identityDocument"),
×
171
    
172
    INDIVIDUALDETAILS("individualDetails"),
×
173
    
174
    INFIX("infix"),
×
175
    
176
    JOBTITLE("jobTitle"),
×
177
    
178
    LASTNAME("lastName"),
×
179
    
180
    LASTREVIEWDATE("lastReviewDate"),
×
181
    
182
    LEGALARRANGEMENT("legalArrangement"),
×
183
    
184
    LEGALARRANGEMENTCODE("legalArrangementCode"),
×
185
    
186
    LEGALARRANGEMENTENTITY("legalArrangementEntity"),
×
187
    
188
    LEGALARRANGEMENTENTITYCODE("legalArrangementEntityCode"),
×
189
    
190
    LEGALARRANGEMENTLEGALFORM("legalArrangementLegalForm"),
×
191
    
192
    LEGALARRANGEMENTMEMBER("legalArrangementMember"),
×
193
    
194
    LEGALARRANGEMENTMEMBERS("legalArrangementMembers"),
×
195
    
196
    LEGALARRANGEMENTNAME("legalArrangementName"),
×
197
    
198
    LEGALARRANGEMENTREFERENCE("legalArrangementReference"),
×
199
    
200
    LEGALARRANGEMENTREGISTRATIONNUMBER("legalArrangementRegistrationNumber"),
×
201
    
202
    LEGALARRANGEMENTTAXNUMBER("legalArrangementTaxNumber"),
×
203
    
204
    LEGALARRANGEMENTTYPE("legalArrangementType"),
×
205
    
206
    LEGALBUSINESSNAME("legalBusinessName"),
×
207
    
208
    LEGALENTITY("legalEntity"),
×
209
    
210
    LEGALENTITYTYPE("legalEntityType"),
×
211
    
212
    LOGO("logo"),
×
213
    
214
    MERCHANTACCOUNT("merchantAccount"),
×
215
    
216
    MERCHANTCATEGORYCODE("merchantCategoryCode"),
×
217
    
218
    MERCHANTHOUSENUMBER("merchantHouseNumber"),
×
219
    
220
    MERCHANTREFERENCE("merchantReference"),
×
221
    
222
    MICRODEPOSIT("microDeposit"),
×
223
    
224
    NAME("name"),
×
225
    
226
    NATIONALITY("nationality"),
×
227
    
228
    ORIGINALREFERENCE("originalReference"),
×
229
    
230
    OWNERCITY("ownerCity"),
×
231
    
232
    OWNERCOUNTRYCODE("ownerCountryCode"),
×
233
    
234
    OWNERDATEOFBIRTH("ownerDateOfBirth"),
×
235
    
236
    OWNERHOUSENUMBERORNAME("ownerHouseNumberOrName"),
×
237
    
238
    OWNERNAME("ownerName"),
×
239
    
240
    OWNERPOSTALCODE("ownerPostalCode"),
×
241
    
242
    OWNERSTATE("ownerState"),
×
243
    
244
    OWNERSTREET("ownerStreet"),
×
245
    
246
    PASSPORT("passport"),
×
247
    
248
    PASSPORTNUMBER("passportNumber"),
×
249
    
250
    PAYOUTMETHOD("payoutMethod"),
×
251
    
252
    PAYOUTMETHODCODE("payoutMethodCode"),
×
253
    
254
    PAYOUTSCHEDULE("payoutSchedule"),
×
255
    
256
    PCISELFASSESSMENT("pciSelfAssessment"),
×
257
    
258
    PERSONALDATA("personalData"),
×
259
    
260
    PHONECOUNTRYCODE("phoneCountryCode"),
×
261
    
262
    PHONENUMBER("phoneNumber"),
×
263
    
264
    POSTALCODE("postalCode"),
×
265
    
266
    PRIMARYCURRENCY("primaryCurrency"),
×
267
    
268
    REASON("reason"),
×
269
    
270
    REGISTRATIONNUMBER("registrationNumber"),
×
271
    
272
    RETURNURL("returnUrl"),
×
273
    
274
    SCHEDULE("schedule"),
×
275
    
276
    SHAREHOLDER("shareholder"),
×
277
    
278
    SHAREHOLDERCODE("shareholderCode"),
×
279
    
280
    SHAREHOLDERCODEANDSIGNATORYCODE("shareholderCodeAndSignatoryCode"),
×
281
    
282
    SHAREHOLDERCODEORSIGNATORYCODE("shareholderCodeOrSignatoryCode"),
×
283
    
284
    SHAREHOLDERTYPE("shareholderType"),
×
285
    
286
    SHAREHOLDERTYPES("shareholderTypes"),
×
287
    
288
    SHOPPERINTERACTION("shopperInteraction"),
×
289
    
290
    SIGNATORY("signatory"),
×
291
    
292
    SIGNATORYCODE("signatoryCode"),
×
293
    
294
    SOCIALSECURITYNUMBER("socialSecurityNumber"),
×
295
    
296
    SOURCEACCOUNTCODE("sourceAccountCode"),
×
297
    
298
    SPLITACCOUNT("splitAccount"),
×
299
    
300
    SPLITCONFIGURATIONUUID("splitConfigurationUUID"),
×
301
    
302
    SPLITCURRENCY("splitCurrency"),
×
303
    
304
    SPLITVALUE("splitValue"),
×
305
    
306
    SPLITS("splits"),
×
307
    
308
    STATEORPROVINCE("stateOrProvince"),
×
309
    
310
    STATUS("status"),
×
311
    
312
    STOCKEXCHANGE("stockExchange"),
×
313
    
314
    STOCKNUMBER("stockNumber"),
×
315
    
316
    STOCKTICKER("stockTicker"),
×
317
    
318
    STORE("store"),
×
319
    
320
    STOREDETAIL("storeDetail"),
×
321
    
322
    STORENAME("storeName"),
×
323
    
324
    STOREREFERENCE("storeReference"),
×
325
    
326
    STREET("street"),
×
327
    
328
    TAXID("taxId"),
×
329
    
330
    TIER("tier"),
×
331
    
332
    TIERNUMBER("tierNumber"),
×
333
    
334
    TRANSFERCODE("transferCode"),
×
335
    
336
    ULTIMATEPARENTCOMPANY("ultimateParentCompany"),
×
337
    
338
    ULTIMATEPARENTCOMPANYADDRESSDETAILS("ultimateParentCompanyAddressDetails"),
×
339
    
340
    ULTIMATEPARENTCOMPANYADDRESSDETAILSCOUNTRY("ultimateParentCompanyAddressDetailsCountry"),
×
341
    
342
    ULTIMATEPARENTCOMPANYBUSINESSDETAILS("ultimateParentCompanyBusinessDetails"),
×
343
    
344
    ULTIMATEPARENTCOMPANYBUSINESSDETAILSLEGALBUSINESSNAME("ultimateParentCompanyBusinessDetailsLegalBusinessName"),
×
345
    
346
    ULTIMATEPARENTCOMPANYBUSINESSDETAILSREGISTRATIONNUMBER("ultimateParentCompanyBusinessDetailsRegistrationNumber"),
×
347
    
348
    ULTIMATEPARENTCOMPANYCODE("ultimateParentCompanyCode"),
×
349
    
350
    ULTIMATEPARENTCOMPANYSTOCKEXCHANGE("ultimateParentCompanyStockExchange"),
×
351
    
352
    ULTIMATEPARENTCOMPANYSTOCKNUMBER("ultimateParentCompanyStockNumber"),
×
353
    
354
    ULTIMATEPARENTCOMPANYSTOCKNUMBERORSTOCKTICKER("ultimateParentCompanyStockNumberOrStockTicker"),
×
355
    
356
    ULTIMATEPARENTCOMPANYSTOCKTICKER("ultimateParentCompanyStockTicker"),
×
357
    
358
    UNKNOWN("unknown"),
×
359
    
360
    VALUE("value"),
×
361
    
362
    VERIFICATIONTYPE("verificationType"),
×
363
    
364
    VIRTUALACCOUNT("virtualAccount"),
×
365
    
366
    VISANUMBER("visaNumber"),
×
367
    
368
    WEBADDRESS("webAddress"),
×
369
    
370
    YEAR("year");
×
371

372
    private String value;
373

374
    FieldNameEnum(String value) {
×
375
      this.value = value;
×
376
    }
×
377

378
    @JsonValue
379
    public String getValue() {
380
      return value;
×
381
    }
382

383
    @Override
384
    public String toString() {
385
      return String.valueOf(value);
×
386
    }
387

388
    @JsonCreator
389
    public static FieldNameEnum fromValue(String value) {
390
      for (FieldNameEnum b : FieldNameEnum.values()) {
×
391
        if (b.value.equals(value)) {
×
392
          return b;
×
393
        }
394
      }
395
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
396
    }
397
  }
398

399
  public static final String JSON_PROPERTY_FIELD_NAME = "fieldName";
400
  private FieldNameEnum fieldName;
401

402
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
403
  private String shareholderCode;
404

405
  public FieldType() { 
×
406
  }
×
407

408
  public FieldType field(String field) {
409
    this.field = field;
×
410
    return this;
×
411
  }
412

413
   /**
414
   * The full name of the property.
415
   * @return field
416
  **/
417
  @ApiModelProperty(value = "The full name of the property.")
418
  @JsonProperty(JSON_PROPERTY_FIELD)
419
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
420

421
  public String getField() {
422
    return field;
×
423
  }
424

425

426
  @JsonProperty(JSON_PROPERTY_FIELD)
427
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
428
  public void setField(String field) {
429
    this.field = field;
×
430
  }
×
431

432

433
  public FieldType fieldName(FieldNameEnum fieldName) {
434
    this.fieldName = fieldName;
×
435
    return this;
×
436
  }
437

438
   /**
439
   * The type of the field.
440
   * @return fieldName
441
  **/
442
  @ApiModelProperty(value = "The type of the field.")
443
  @JsonProperty(JSON_PROPERTY_FIELD_NAME)
444
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
445

446
  public FieldNameEnum getFieldName() {
447
    return fieldName;
×
448
  }
449

450

451
  @JsonProperty(JSON_PROPERTY_FIELD_NAME)
452
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
453
  public void setFieldName(FieldNameEnum fieldName) {
454
    this.fieldName = fieldName;
×
455
  }
×
456

457

458
  public FieldType shareholderCode(String shareholderCode) {
459
    this.shareholderCode = shareholderCode;
×
460
    return this;
×
461
  }
462

463
   /**
464
   * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.
465
   * @return shareholderCode
466
  **/
467
  @ApiModelProperty(value = "The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.")
468
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
469
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
470

471
  public String getShareholderCode() {
472
    return shareholderCode;
×
473
  }
474

475

476
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
477
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
478
  public void setShareholderCode(String shareholderCode) {
479
    this.shareholderCode = shareholderCode;
×
480
  }
×
481

482

483
  /**
484
   * Return true if this FieldType object is equal to o.
485
   */
486
  @Override
487
  public boolean equals(Object o) {
488
    if (this == o) {
×
489
      return true;
×
490
    }
491
    if (o == null || getClass() != o.getClass()) {
×
492
      return false;
×
493
    }
494
    FieldType fieldType = (FieldType) o;
×
495
    return Objects.equals(this.field, fieldType.field) &&
×
496
        Objects.equals(this.fieldName, fieldType.fieldName) &&
×
497
        Objects.equals(this.shareholderCode, fieldType.shareholderCode);
×
498
  }
499

500
  @Override
501
  public int hashCode() {
502
    return Objects.hash(field, fieldName, shareholderCode);
×
503
  }
504

505
  @Override
506
  public String toString() {
507
    StringBuilder sb = new StringBuilder();
×
508
    sb.append("class FieldType {\n");
×
509
    sb.append("    field: ").append(toIndentedString(field)).append("\n");
×
510
    sb.append("    fieldName: ").append(toIndentedString(fieldName)).append("\n");
×
511
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
512
    sb.append("}");
×
513
    return sb.toString();
×
514
  }
515

516
  /**
517
   * Convert the given object to string with each line indented by 4 spaces
518
   * (except the first line).
519
   */
520
  private String toIndentedString(Object o) {
521
    if (o == null) {
×
522
      return "null";
×
523
    }
524
    return o.toString().replace("\n", "\n    ");
×
525
  }
526

527
/**
528
   * Create an instance of FieldType given an JSON string
529
   *
530
   * @param jsonString JSON string
531
   * @return An instance of FieldType
532
   * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType
533
   */
534
  public static FieldType fromJson(String jsonString) throws JsonProcessingException {
535
    return JSON.getMapper().readValue(jsonString, FieldType.class);
×
536
  }
537
/**
538
  * Convert an instance of FieldType to an JSON string
539
  *
540
  * @return JSON string
541
  */
542
  public String toJson() throws JsonProcessingException {
543
    return JSON.getMapper().writeValueAsString(this);
×
544
  }
545
}
546

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