• 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/marketpayaccount/GetUploadedDocumentsRequest.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
 * GetUploadedDocumentsRequest
33
 */
34
@JsonPropertyOrder({
35
  GetUploadedDocumentsRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
36
  GetUploadedDocumentsRequest.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
37
  GetUploadedDocumentsRequest.JSON_PROPERTY_SHAREHOLDER_CODE
38
})
39

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

44
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
45
  private String bankAccountUUID;
46

47
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
48
  private String shareholderCode;
49

50
  public GetUploadedDocumentsRequest() { 
×
51
  }
×
52

53
  public GetUploadedDocumentsRequest accountHolderCode(String accountHolderCode) {
54
    this.accountHolderCode = accountHolderCode;
×
55
    return this;
×
56
  }
57

58
   /**
59
   * The code of the Account Holder for which to retrieve the documents.
60
   * @return accountHolderCode
61
  **/
62
  @ApiModelProperty(required = true, value = "The code of the Account Holder for which to retrieve the documents.")
63
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
64
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65

66
  public String getAccountHolderCode() {
67
    return accountHolderCode;
×
68
  }
69

70

71
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setAccountHolderCode(String accountHolderCode) {
74
    this.accountHolderCode = accountHolderCode;
×
75
  }
×
76

77

78
  public GetUploadedDocumentsRequest bankAccountUUID(String bankAccountUUID) {
79
    this.bankAccountUUID = bankAccountUUID;
×
80
    return this;
×
81
  }
82

83
   /**
84
   * The code of the Bank Account for which to retrieve the documents.
85
   * @return bankAccountUUID
86
  **/
87
  @ApiModelProperty(value = "The code of the Bank Account for which to retrieve the documents.")
88
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public String getBankAccountUUID() {
92
    return bankAccountUUID;
×
93
  }
94

95

96
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98
  public void setBankAccountUUID(String bankAccountUUID) {
99
    this.bankAccountUUID = bankAccountUUID;
×
100
  }
×
101

102

103
  public GetUploadedDocumentsRequest shareholderCode(String shareholderCode) {
104
    this.shareholderCode = shareholderCode;
×
105
    return this;
×
106
  }
107

108
   /**
109
   * The code of the Shareholder for which to retrieve the documents.
110
   * @return shareholderCode
111
  **/
112
  @ApiModelProperty(value = "The code of the Shareholder for which to retrieve the documents.")
113
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115

116
  public String getShareholderCode() {
117
    return shareholderCode;
×
118
  }
119

120

121
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123
  public void setShareholderCode(String shareholderCode) {
124
    this.shareholderCode = shareholderCode;
×
125
  }
×
126

127

128
  /**
129
   * Return true if this GetUploadedDocumentsRequest object is equal to o.
130
   */
131
  @Override
132
  public boolean equals(Object o) {
133
    if (this == o) {
×
134
      return true;
×
135
    }
136
    if (o == null || getClass() != o.getClass()) {
×
137
      return false;
×
138
    }
139
    GetUploadedDocumentsRequest getUploadedDocumentsRequest = (GetUploadedDocumentsRequest) o;
×
140
    return Objects.equals(this.accountHolderCode, getUploadedDocumentsRequest.accountHolderCode) &&
×
141
        Objects.equals(this.bankAccountUUID, getUploadedDocumentsRequest.bankAccountUUID) &&
×
142
        Objects.equals(this.shareholderCode, getUploadedDocumentsRequest.shareholderCode);
×
143
  }
144

145
  @Override
146
  public int hashCode() {
147
    return Objects.hash(accountHolderCode, bankAccountUUID, shareholderCode);
×
148
  }
149

150
  @Override
151
  public String toString() {
152
    StringBuilder sb = new StringBuilder();
×
153
    sb.append("class GetUploadedDocumentsRequest {\n");
×
154
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
155
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
156
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
157
    sb.append("}");
×
158
    return sb.toString();
×
159
  }
160

161
  /**
162
   * Convert the given object to string with each line indented by 4 spaces
163
   * (except the first line).
164
   */
165
  private String toIndentedString(Object o) {
166
    if (o == null) {
×
167
      return "null";
×
168
    }
169
    return o.toString().replace("\n", "\n    ");
×
170
  }
171

172
/**
173
   * Create an instance of GetUploadedDocumentsRequest given an JSON string
174
   *
175
   * @param jsonString JSON string
176
   * @return An instance of GetUploadedDocumentsRequest
177
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetUploadedDocumentsRequest
178
   */
179
  public static GetUploadedDocumentsRequest fromJson(String jsonString) throws JsonProcessingException {
180
    return JSON.getMapper().readValue(jsonString, GetUploadedDocumentsRequest.class);
×
181
  }
182
/**
183
  * Convert an instance of GetUploadedDocumentsRequest to an JSON string
184
  *
185
  * @return JSON string
186
  */
187
  public String toJson() throws JsonProcessingException {
188
    return JSON.getMapper().writeValueAsString(this);
×
189
  }
190
}
191

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