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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/marketpayfund/DebitAccountHolderResponse.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.adyen.model.marketpayfund.ErrorFieldType;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * DebitAccountHolderResponse
36
 */
37
@JsonPropertyOrder({
38
  DebitAccountHolderResponse.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
39
  DebitAccountHolderResponse.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
40
  DebitAccountHolderResponse.JSON_PROPERTY_INVALID_FIELDS,
41
  DebitAccountHolderResponse.JSON_PROPERTY_MERCHANT_REFERENCES,
42
  DebitAccountHolderResponse.JSON_PROPERTY_PSP_REFERENCE,
43
  DebitAccountHolderResponse.JSON_PROPERTY_RESULT_CODE
44
})
45

46
public class DebitAccountHolderResponse {
47
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
48
  private String accountHolderCode;
49

50
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
51
  private String bankAccountUUID;
52

53
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
54
  private List<ErrorFieldType> invalidFields = null;
×
55

56
  public static final String JSON_PROPERTY_MERCHANT_REFERENCES = "merchantReferences";
57
  private List<String> merchantReferences = null;
×
58

59
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
60
  private String pspReference;
61

62
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
63
  private String resultCode;
64

65
  public DebitAccountHolderResponse() { 
×
66
  }
×
67

68
  public DebitAccountHolderResponse accountHolderCode(String accountHolderCode) {
69
    this.accountHolderCode = accountHolderCode;
×
70
    return this;
×
71
  }
72

73
   /**
74
   * The code of the account holder.
75
   * @return accountHolderCode
76
  **/
77
  @ApiModelProperty(value = "The code of the account holder.")
78
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
79
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80

81
  public String getAccountHolderCode() {
82
    return accountHolderCode;
×
83
  }
84

85

86
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
87
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88
  public void setAccountHolderCode(String accountHolderCode) {
89
    this.accountHolderCode = accountHolderCode;
×
90
  }
×
91

92

93
  public DebitAccountHolderResponse bankAccountUUID(String bankAccountUUID) {
94
    this.bankAccountUUID = bankAccountUUID;
×
95
    return this;
×
96
  }
97

98
   /**
99
   * The Adyen-generated unique alphanumeric identifier (UUID) of the account holder&#39;s bank account.
100
   * @return bankAccountUUID
101
  **/
102
  @ApiModelProperty(value = "The Adyen-generated unique alphanumeric identifier (UUID) of the account holder's bank account.")
103
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105

106
  public String getBankAccountUUID() {
107
    return bankAccountUUID;
×
108
  }
109

110

111
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113
  public void setBankAccountUUID(String bankAccountUUID) {
114
    this.bankAccountUUID = bankAccountUUID;
×
115
  }
×
116

117

118
  public DebitAccountHolderResponse invalidFields(List<ErrorFieldType> invalidFields) {
119
    this.invalidFields = invalidFields;
×
120
    return this;
×
121
  }
122

123
  public DebitAccountHolderResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
124
    if (this.invalidFields == null) {
×
125
      this.invalidFields = new ArrayList<>();
×
126
    }
127
    this.invalidFields.add(invalidFieldsItem);
×
128
    return this;
×
129
  }
130

131
   /**
132
   * Contains field validation errors that would prevent requests from being processed.
133
   * @return invalidFields
134
  **/
135
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
136
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138

139
  public List<ErrorFieldType> getInvalidFields() {
140
    return invalidFields;
×
141
  }
142

143

144
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
145
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
146
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
147
    this.invalidFields = invalidFields;
×
148
  }
×
149

150

151
  public DebitAccountHolderResponse merchantReferences(List<String> merchantReferences) {
152
    this.merchantReferences = merchantReferences;
×
153
    return this;
×
154
  }
155

156
  public DebitAccountHolderResponse addMerchantReferencesItem(String merchantReferencesItem) {
157
    if (this.merchantReferences == null) {
×
158
      this.merchantReferences = new ArrayList<>();
×
159
    }
160
    this.merchantReferences.add(merchantReferencesItem);
×
161
    return this;
×
162
  }
163

164
   /**
165
   * List of the &#x60;reference&#x60; values from the &#x60;split&#x60; array in the request.
166
   * @return merchantReferences
167
  **/
168
  @ApiModelProperty(value = "List of the `reference` values from the `split` array in the request.")
169
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCES)
170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
171

172
  public List<String> getMerchantReferences() {
173
    return merchantReferences;
×
174
  }
175

176

177
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCES)
178
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
179
  public void setMerchantReferences(List<String> merchantReferences) {
180
    this.merchantReferences = merchantReferences;
×
181
  }
×
182

183

184
  public DebitAccountHolderResponse pspReference(String pspReference) {
185
    this.pspReference = pspReference;
×
186
    return this;
×
187
  }
188

189
   /**
190
   * The reference of a request. Can be used to uniquely identify the request.
191
   * @return pspReference
192
  **/
193
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
194
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196

197
  public String getPspReference() {
198
    return pspReference;
×
199
  }
200

201

202
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
203
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
204
  public void setPspReference(String pspReference) {
205
    this.pspReference = pspReference;
×
206
  }
×
207

208

209
  public DebitAccountHolderResponse resultCode(String resultCode) {
210
    this.resultCode = resultCode;
×
211
    return this;
×
212
  }
213

214
   /**
215
   * The result code.
216
   * @return resultCode
217
  **/
218
  @ApiModelProperty(value = "The result code.")
219
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
220
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
221

222
  public String getResultCode() {
223
    return resultCode;
×
224
  }
225

226

227
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
228
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
229
  public void setResultCode(String resultCode) {
230
    this.resultCode = resultCode;
×
231
  }
×
232

233

234
  /**
235
   * Return true if this DebitAccountHolderResponse object is equal to o.
236
   */
237
  @Override
238
  public boolean equals(Object o) {
239
    if (this == o) {
×
240
      return true;
×
241
    }
242
    if (o == null || getClass() != o.getClass()) {
×
243
      return false;
×
244
    }
245
    DebitAccountHolderResponse debitAccountHolderResponse = (DebitAccountHolderResponse) o;
×
246
    return Objects.equals(this.accountHolderCode, debitAccountHolderResponse.accountHolderCode) &&
×
247
        Objects.equals(this.bankAccountUUID, debitAccountHolderResponse.bankAccountUUID) &&
×
248
        Objects.equals(this.invalidFields, debitAccountHolderResponse.invalidFields) &&
×
249
        Objects.equals(this.merchantReferences, debitAccountHolderResponse.merchantReferences) &&
×
250
        Objects.equals(this.pspReference, debitAccountHolderResponse.pspReference) &&
×
251
        Objects.equals(this.resultCode, debitAccountHolderResponse.resultCode);
×
252
  }
253

254
  @Override
255
  public int hashCode() {
256
    return Objects.hash(accountHolderCode, bankAccountUUID, invalidFields, merchantReferences, pspReference, resultCode);
×
257
  }
258

259
  @Override
260
  public String toString() {
261
    StringBuilder sb = new StringBuilder();
×
262
    sb.append("class DebitAccountHolderResponse {\n");
×
263
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
264
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
265
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
266
    sb.append("    merchantReferences: ").append(toIndentedString(merchantReferences)).append("\n");
×
267
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
268
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
269
    sb.append("}");
×
270
    return sb.toString();
×
271
  }
272

273
  /**
274
   * Convert the given object to string with each line indented by 4 spaces
275
   * (except the first line).
276
   */
277
  private String toIndentedString(Object o) {
278
    if (o == null) {
×
279
      return "null";
×
280
    }
281
    return o.toString().replace("\n", "\n    ");
×
282
  }
283

284
/**
285
   * Create an instance of DebitAccountHolderResponse given an JSON string
286
   *
287
   * @param jsonString JSON string
288
   * @return An instance of DebitAccountHolderResponse
289
   * @throws JsonProcessingException if the JSON string is invalid with respect to DebitAccountHolderResponse
290
   */
291
  public static DebitAccountHolderResponse fromJson(String jsonString) throws JsonProcessingException {
292
    return JSON.getMapper().readValue(jsonString, DebitAccountHolderResponse.class);
×
293
  }
294
/**
295
  * Convert an instance of DebitAccountHolderResponse to an JSON string
296
  *
297
  * @return JSON string
298
  */
299
  public String toJson() throws JsonProcessingException {
300
    return JSON.getMapper().writeValueAsString(this);
×
301
  }
302
}
303

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