• 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

35.63
/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderRequest.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.Amount;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * PayoutAccountHolderRequest
34
 */
35
@JsonPropertyOrder({
36
  PayoutAccountHolderRequest.JSON_PROPERTY_ACCOUNT_CODE,
37
  PayoutAccountHolderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
38
  PayoutAccountHolderRequest.JSON_PROPERTY_AMOUNT,
39
  PayoutAccountHolderRequest.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
40
  PayoutAccountHolderRequest.JSON_PROPERTY_DESCRIPTION,
41
  PayoutAccountHolderRequest.JSON_PROPERTY_MERCHANT_REFERENCE,
42
  PayoutAccountHolderRequest.JSON_PROPERTY_PAYOUT_METHOD_CODE,
43
  PayoutAccountHolderRequest.JSON_PROPERTY_PAYOUT_SPEED
44
})
45

46
public class PayoutAccountHolderRequest {
47
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
48
  private String accountCode;
49

50
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
51
  private String accountHolderCode;
52

53
  public static final String JSON_PROPERTY_AMOUNT = "amount";
54
  private Amount amount;
55

56
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
57
  private String bankAccountUUID;
58

59
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
60
  private String description;
61

62
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
63
  private String merchantReference;
64

65
  public static final String JSON_PROPERTY_PAYOUT_METHOD_CODE = "payoutMethodCode";
66
  private String payoutMethodCode;
67

68
  /**
69
   * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
70
   */
71
  public enum PayoutSpeedEnum {
1✔
72
    INSTANT("INSTANT"),
1✔
73
    
74
    SAME_DAY("SAME_DAY"),
1✔
75
    
76
    STANDARD("STANDARD");
1✔
77

78
    private String value;
79

80
    PayoutSpeedEnum(String value) {
1✔
81
      this.value = value;
1✔
82
    }
1✔
83

84
    @JsonValue
85
    public String getValue() {
86
      return value;
1✔
87
    }
88

89
    @Override
90
    public String toString() {
91
      return String.valueOf(value);
×
92
    }
93

94
    @JsonCreator
95
    public static PayoutSpeedEnum fromValue(String value) {
96
      for (PayoutSpeedEnum b : PayoutSpeedEnum.values()) {
×
97
        if (b.value.equals(value)) {
×
98
          return b;
×
99
        }
100
      }
101
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
102
    }
103
  }
104

105
  public static final String JSON_PROPERTY_PAYOUT_SPEED = "payoutSpeed";
106
  private PayoutSpeedEnum payoutSpeed = PayoutSpeedEnum.STANDARD;
1✔
107

108
  public PayoutAccountHolderRequest() { 
1✔
109
  }
1✔
110

111
  public PayoutAccountHolderRequest accountCode(String accountCode) {
112
    this.accountCode = accountCode;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The code of the account from which the payout is to be made.
118
   * @return accountCode
119
  **/
120
  @ApiModelProperty(required = true, value = "The code of the account from which the payout is to be made.")
121
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public String getAccountCode() {
125
    return accountCode;
1✔
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setAccountCode(String accountCode) {
132
    this.accountCode = accountCode;
1✔
133
  }
1✔
134

135

136
  public PayoutAccountHolderRequest accountHolderCode(String accountHolderCode) {
137
    this.accountHolderCode = accountHolderCode;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * The code of the Account Holder who owns the account from which the payout is to be made. The Account Holder is the party to which the payout will be made.
143
   * @return accountHolderCode
144
  **/
145
  @ApiModelProperty(required = true, value = "The code of the Account Holder who owns the account from which the payout is to be made. The Account Holder is the party to which the payout will be made.")
146
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public String getAccountHolderCode() {
150
    return accountHolderCode;
1✔
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setAccountHolderCode(String accountHolderCode) {
157
    this.accountHolderCode = accountHolderCode;
1✔
158
  }
1✔
159

160

161
  public PayoutAccountHolderRequest amount(Amount amount) {
162
    this.amount = amount;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * Get amount
168
   * @return amount
169
  **/
170
  @ApiModelProperty(value = "")
171
  @JsonProperty(JSON_PROPERTY_AMOUNT)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public Amount getAmount() {
175
    return amount;
1✔
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_AMOUNT)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setAmount(Amount amount) {
182
    this.amount = amount;
1✔
183
  }
1✔
184

185

186
  public PayoutAccountHolderRequest bankAccountUUID(String bankAccountUUID) {
187
    this.bankAccountUUID = bankAccountUUID;
×
188
    return this;
×
189
  }
190

191
   /**
192
   * The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. If left blank, a bank account is automatically selected.
193
   * @return bankAccountUUID
194
  **/
195
  @ApiModelProperty(value = "The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. If left blank, a bank account is automatically selected.")
196
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198

199
  public String getBankAccountUUID() {
200
    return bankAccountUUID;
1✔
201
  }
202

203

204
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
205
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
206
  public void setBankAccountUUID(String bankAccountUUID) {
207
    this.bankAccountUUID = bankAccountUUID;
1✔
208
  }
1✔
209

210

211
  public PayoutAccountHolderRequest description(String description) {
212
    this.description = description;
×
213
    return this;
×
214
  }
215

216
   /**
217
   * A description of the payout. Maximum 200 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,'+ \";**
218
   * @return description
219
  **/
220
  @ApiModelProperty(value = "A description of the payout. Maximum 200 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,'+ \";**")
221
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
222
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223

224
  public String getDescription() {
225
    return description;
1✔
226
  }
227

228

229
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
230
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
231
  public void setDescription(String description) {
232
    this.description = description;
1✔
233
  }
1✔
234

235

236
  public PayoutAccountHolderRequest merchantReference(String merchantReference) {
237
    this.merchantReference = merchantReference;
×
238
    return this;
×
239
  }
240

241
   /**
242
   * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
243
   * @return merchantReference
244
  **/
245
  @ApiModelProperty(value = "A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.")
246
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
247
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248

249
  public String getMerchantReference() {
250
    return merchantReference;
1✔
251
  }
252

253

254
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
255
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
256
  public void setMerchantReference(String merchantReference) {
257
    this.merchantReference = merchantReference;
×
258
  }
×
259

260

261
  public PayoutAccountHolderRequest payoutMethodCode(String payoutMethodCode) {
262
    this.payoutMethodCode = payoutMethodCode;
×
263
    return this;
×
264
  }
265

266
   /**
267
   * The unique ID of the payout method held by the Account Holder to which the payout is to be made. If left blank, a payout instrument is automatically selected.
268
   * @return payoutMethodCode
269
  **/
270
  @ApiModelProperty(value = "The unique ID of the payout method held by the Account Holder to which the payout is to be made. If left blank, a payout instrument is automatically selected.")
271
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273

274
  public String getPayoutMethodCode() {
275
    return payoutMethodCode;
1✔
276
  }
277

278

279
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
280
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
281
  public void setPayoutMethodCode(String payoutMethodCode) {
282
    this.payoutMethodCode = payoutMethodCode;
×
283
  }
×
284

285

286
  public PayoutAccountHolderRequest payoutSpeed(PayoutSpeedEnum payoutSpeed) {
287
    this.payoutSpeed = payoutSpeed;
×
288
    return this;
×
289
  }
290

291
   /**
292
   * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
293
   * @return payoutSpeed
294
  **/
295
  @ApiModelProperty(value = "Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.")
296
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
297
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298

299
  public PayoutSpeedEnum getPayoutSpeed() {
300
    return payoutSpeed;
1✔
301
  }
302

303

304
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
305
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
306
  public void setPayoutSpeed(PayoutSpeedEnum payoutSpeed) {
307
    this.payoutSpeed = payoutSpeed;
×
308
  }
×
309

310

311
  /**
312
   * Return true if this PayoutAccountHolderRequest object is equal to o.
313
   */
314
  @Override
315
  public boolean equals(Object o) {
316
    if (this == o) {
×
317
      return true;
×
318
    }
319
    if (o == null || getClass() != o.getClass()) {
×
320
      return false;
×
321
    }
322
    PayoutAccountHolderRequest payoutAccountHolderRequest = (PayoutAccountHolderRequest) o;
×
323
    return Objects.equals(this.accountCode, payoutAccountHolderRequest.accountCode) &&
×
324
        Objects.equals(this.accountHolderCode, payoutAccountHolderRequest.accountHolderCode) &&
×
325
        Objects.equals(this.amount, payoutAccountHolderRequest.amount) &&
×
326
        Objects.equals(this.bankAccountUUID, payoutAccountHolderRequest.bankAccountUUID) &&
×
327
        Objects.equals(this.description, payoutAccountHolderRequest.description) &&
×
328
        Objects.equals(this.merchantReference, payoutAccountHolderRequest.merchantReference) &&
×
329
        Objects.equals(this.payoutMethodCode, payoutAccountHolderRequest.payoutMethodCode) &&
×
330
        Objects.equals(this.payoutSpeed, payoutAccountHolderRequest.payoutSpeed);
×
331
  }
332

333
  @Override
334
  public int hashCode() {
335
    return Objects.hash(accountCode, accountHolderCode, amount, bankAccountUUID, description, merchantReference, payoutMethodCode, payoutSpeed);
×
336
  }
337

338
  @Override
339
  public String toString() {
340
    StringBuilder sb = new StringBuilder();
×
341
    sb.append("class PayoutAccountHolderRequest {\n");
×
342
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
343
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
344
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
345
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
346
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
347
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
348
    sb.append("    payoutMethodCode: ").append(toIndentedString(payoutMethodCode)).append("\n");
×
349
    sb.append("    payoutSpeed: ").append(toIndentedString(payoutSpeed)).append("\n");
×
350
    sb.append("}");
×
351
    return sb.toString();
×
352
  }
353

354
  /**
355
   * Convert the given object to string with each line indented by 4 spaces
356
   * (except the first line).
357
   */
358
  private String toIndentedString(Object o) {
359
    if (o == null) {
×
360
      return "null";
×
361
    }
362
    return o.toString().replace("\n", "\n    ");
×
363
  }
364

365
/**
366
   * Create an instance of PayoutAccountHolderRequest given an JSON string
367
   *
368
   * @param jsonString JSON string
369
   * @return An instance of PayoutAccountHolderRequest
370
   * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutAccountHolderRequest
371
   */
372
  public static PayoutAccountHolderRequest fromJson(String jsonString) throws JsonProcessingException {
373
    return JSON.getMapper().readValue(jsonString, PayoutAccountHolderRequest.class);
1✔
374
  }
375
/**
376
  * Convert an instance of PayoutAccountHolderRequest to an JSON string
377
  *
378
  * @return JSON string
379
  */
380
  public String toJson() throws JsonProcessingException {
381
    return JSON.getMapper().writeValueAsString(this);
1✔
382
  }
383
}
384

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