• 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

44.87
/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderResponse.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
 * PayoutAccountHolderResponse
36
 */
37
@JsonPropertyOrder({
38
  PayoutAccountHolderResponse.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
39
  PayoutAccountHolderResponse.JSON_PROPERTY_INVALID_FIELDS,
40
  PayoutAccountHolderResponse.JSON_PROPERTY_MERCHANT_REFERENCE,
41
  PayoutAccountHolderResponse.JSON_PROPERTY_PAYOUT_SPEED,
42
  PayoutAccountHolderResponse.JSON_PROPERTY_PSP_REFERENCE,
43
  PayoutAccountHolderResponse.JSON_PROPERTY_RESULT_CODE
44
})
45

46
public class PayoutAccountHolderResponse {
47
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
48
  private String bankAccountUUID;
49

50
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
51
  private List<ErrorFieldType> invalidFields = null;
1✔
52

53
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
54
  private String merchantReference;
55

56
  /**
57
   * Speed with which payouts for this account are processed. Permitted values: &#x60;STANDARD&#x60;, &#x60;SAME_DAY&#x60;.
58
   */
59
  public enum PayoutSpeedEnum {
1✔
60
    INSTANT("INSTANT"),
1✔
61
    
62
    SAME_DAY("SAME_DAY"),
1✔
63
    
64
    STANDARD("STANDARD");
1✔
65

66
    private String value;
67

68
    PayoutSpeedEnum(String value) {
1✔
69
      this.value = value;
1✔
70
    }
1✔
71

72
    @JsonValue
73
    public String getValue() {
74
      return value;
1✔
75
    }
76

77
    @Override
78
    public String toString() {
79
      return String.valueOf(value);
×
80
    }
81

82
    @JsonCreator
83
    public static PayoutSpeedEnum fromValue(String value) {
84
      for (PayoutSpeedEnum b : PayoutSpeedEnum.values()) {
1✔
85
        if (b.value.equals(value)) {
1✔
86
          return b;
1✔
87
        }
88
      }
89
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
90
    }
91
  }
92

93
  public static final String JSON_PROPERTY_PAYOUT_SPEED = "payoutSpeed";
94
  private PayoutSpeedEnum payoutSpeed = PayoutSpeedEnum.STANDARD;
1✔
95

96
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
97
  private String pspReference;
98

99
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
100
  private String resultCode;
101

102
  public PayoutAccountHolderResponse() { 
1✔
103
  }
1✔
104

105
  public PayoutAccountHolderResponse bankAccountUUID(String bankAccountUUID) {
106
    this.bankAccountUUID = bankAccountUUID;
×
107
    return this;
×
108
  }
109

110
   /**
111
   * The unique ID of the Bank Account to which the payout was made.
112
   * @return bankAccountUUID
113
  **/
114
  @ApiModelProperty(value = "The unique ID of the Bank Account to which the payout was made.")
115
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117

118
  public String getBankAccountUUID() {
119
    return bankAccountUUID;
1✔
120
  }
121

122

123
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125
  public void setBankAccountUUID(String bankAccountUUID) {
126
    this.bankAccountUUID = bankAccountUUID;
1✔
127
  }
1✔
128

129

130
  public PayoutAccountHolderResponse invalidFields(List<ErrorFieldType> invalidFields) {
131
    this.invalidFields = invalidFields;
×
132
    return this;
×
133
  }
134

135
  public PayoutAccountHolderResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
136
    if (this.invalidFields == null) {
×
137
      this.invalidFields = new ArrayList<>();
×
138
    }
139
    this.invalidFields.add(invalidFieldsItem);
×
140
    return this;
×
141
  }
142

143
   /**
144
   * Contains field validation errors that would prevent requests from being processed.
145
   * @return invalidFields
146
  **/
147
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
148
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150

151
  public List<ErrorFieldType> getInvalidFields() {
152
    return invalidFields;
1✔
153
  }
154

155

156
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
159
    this.invalidFields = invalidFields;
1✔
160
  }
1✔
161

162

163
  public PayoutAccountHolderResponse merchantReference(String merchantReference) {
164
    this.merchantReference = merchantReference;
×
165
    return this;
×
166
  }
167

168
   /**
169
   * The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions.
170
   * @return merchantReference
171
  **/
172
  @ApiModelProperty(value = "The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions.")
173
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
174
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
175

176
  public String getMerchantReference() {
177
    return merchantReference;
1✔
178
  }
179

180

181
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183
  public void setMerchantReference(String merchantReference) {
184
    this.merchantReference = merchantReference;
1✔
185
  }
1✔
186

187

188
  public PayoutAccountHolderResponse payoutSpeed(PayoutSpeedEnum payoutSpeed) {
189
    this.payoutSpeed = payoutSpeed;
×
190
    return this;
×
191
  }
192

193
   /**
194
   * Speed with which payouts for this account are processed. Permitted values: &#x60;STANDARD&#x60;, &#x60;SAME_DAY&#x60;.
195
   * @return payoutSpeed
196
  **/
197
  @ApiModelProperty(value = "Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.")
198
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
199
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200

201
  public PayoutSpeedEnum getPayoutSpeed() {
202
    return payoutSpeed;
1✔
203
  }
204

205

206
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
207
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208
  public void setPayoutSpeed(PayoutSpeedEnum payoutSpeed) {
209
    this.payoutSpeed = payoutSpeed;
1✔
210
  }
1✔
211

212

213
  public PayoutAccountHolderResponse pspReference(String pspReference) {
214
    this.pspReference = pspReference;
×
215
    return this;
×
216
  }
217

218
   /**
219
   * The reference of a request. Can be used to uniquely identify the request.
220
   * @return pspReference
221
  **/
222
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
223
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
224
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
225

226
  public String getPspReference() {
227
    return pspReference;
1✔
228
  }
229

230

231
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
232
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
233
  public void setPspReference(String pspReference) {
234
    this.pspReference = pspReference;
1✔
235
  }
1✔
236

237

238
  public PayoutAccountHolderResponse resultCode(String resultCode) {
239
    this.resultCode = resultCode;
×
240
    return this;
×
241
  }
242

243
   /**
244
   * The result code.
245
   * @return resultCode
246
  **/
247
  @ApiModelProperty(value = "The result code.")
248
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
249
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
250

251
  public String getResultCode() {
252
    return resultCode;
1✔
253
  }
254

255

256
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
257
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
258
  public void setResultCode(String resultCode) {
259
    this.resultCode = resultCode;
1✔
260
  }
1✔
261

262

263
  /**
264
   * Return true if this PayoutAccountHolderResponse object is equal to o.
265
   */
266
  @Override
267
  public boolean equals(Object o) {
268
    if (this == o) {
×
269
      return true;
×
270
    }
271
    if (o == null || getClass() != o.getClass()) {
×
272
      return false;
×
273
    }
274
    PayoutAccountHolderResponse payoutAccountHolderResponse = (PayoutAccountHolderResponse) o;
×
275
    return Objects.equals(this.bankAccountUUID, payoutAccountHolderResponse.bankAccountUUID) &&
×
276
        Objects.equals(this.invalidFields, payoutAccountHolderResponse.invalidFields) &&
×
277
        Objects.equals(this.merchantReference, payoutAccountHolderResponse.merchantReference) &&
×
278
        Objects.equals(this.payoutSpeed, payoutAccountHolderResponse.payoutSpeed) &&
×
279
        Objects.equals(this.pspReference, payoutAccountHolderResponse.pspReference) &&
×
280
        Objects.equals(this.resultCode, payoutAccountHolderResponse.resultCode);
×
281
  }
282

283
  @Override
284
  public int hashCode() {
285
    return Objects.hash(bankAccountUUID, invalidFields, merchantReference, payoutSpeed, pspReference, resultCode);
×
286
  }
287

288
  @Override
289
  public String toString() {
290
    StringBuilder sb = new StringBuilder();
×
291
    sb.append("class PayoutAccountHolderResponse {\n");
×
292
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
293
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
294
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
295
    sb.append("    payoutSpeed: ").append(toIndentedString(payoutSpeed)).append("\n");
×
296
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
297
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
298
    sb.append("}");
×
299
    return sb.toString();
×
300
  }
301

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

313
/**
314
   * Create an instance of PayoutAccountHolderResponse given an JSON string
315
   *
316
   * @param jsonString JSON string
317
   * @return An instance of PayoutAccountHolderResponse
318
   * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutAccountHolderResponse
319
   */
320
  public static PayoutAccountHolderResponse fromJson(String jsonString) throws JsonProcessingException {
321
    return JSON.getMapper().readValue(jsonString, PayoutAccountHolderResponse.class);
1✔
322
  }
323
/**
324
  * Convert an instance of PayoutAccountHolderResponse to an JSON string
325
  *
326
  * @return JSON string
327
  */
328
  public String toJson() throws JsonProcessingException {
329
    return JSON.getMapper().writeValueAsString(this);
1✔
330
  }
331
}
332

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