• 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

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

372
    private String value;
373

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

378
    @JsonValue
379
    public String getValue() {
380
      return value;
1✔
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()) {
1✔
391
        if (b.value.equals(value)) {
1✔
392
          return b;
1✔
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() { 
1✔
406
  }
1✔
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;
1✔
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;
1✔
430
  }
1✔
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;
1✔
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;
1✔
455
  }
1✔
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;
1✔
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;
1✔
480
  }
1✔
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