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

34

35
/**
36
 * DebitAccountHolderRequest
37
 */
38
@JsonPropertyOrder({
39
  DebitAccountHolderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
40
  DebitAccountHolderRequest.JSON_PROPERTY_AMOUNT,
41
  DebitAccountHolderRequest.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
42
  DebitAccountHolderRequest.JSON_PROPERTY_DESCRIPTION,
43
  DebitAccountHolderRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
44
  DebitAccountHolderRequest.JSON_PROPERTY_SPLITS
45
})
46

47
public class DebitAccountHolderRequest {
48
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
49
  private String accountHolderCode;
50

51
  public static final String JSON_PROPERTY_AMOUNT = "amount";
52
  private Amount amount;
53

54
  public static final String JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D = "bankAccountUUID";
55
  private String bankAccountUUID;
56

57
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
58
  private String description;
59

60
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
61
  private String merchantAccount;
62

63
  public static final String JSON_PROPERTY_SPLITS = "splits";
64
  private List<Split> splits = new ArrayList<>();
×
65

66
  public DebitAccountHolderRequest() { 
×
67
  }
×
68

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

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

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

86

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

93

94
  public DebitAccountHolderRequest amount(Amount amount) {
95
    this.amount = amount;
×
96
    return this;
×
97
  }
98

99
   /**
100
   * Get amount
101
   * @return amount
102
  **/
103
  @ApiModelProperty(required = true, value = "")
104
  @JsonProperty(JSON_PROPERTY_AMOUNT)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106

107
  public Amount getAmount() {
108
    return amount;
×
109
  }
110

111

112
  @JsonProperty(JSON_PROPERTY_AMOUNT)
113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114
  public void setAmount(Amount amount) {
115
    this.amount = amount;
×
116
  }
×
117

118

119
  public DebitAccountHolderRequest bankAccountUUID(String bankAccountUUID) {
120
    this.bankAccountUUID = bankAccountUUID;
×
121
    return this;
×
122
  }
123

124
   /**
125
   * The Adyen-generated unique alphanumeric identifier (UUID) of the account holder&#39;s bank account.
126
   * @return bankAccountUUID
127
  **/
128
  @ApiModelProperty(required = true, value = "The Adyen-generated unique alphanumeric identifier (UUID) of the account holder's bank account.")
129
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131

132
  public String getBankAccountUUID() {
133
    return bankAccountUUID;
×
134
  }
135

136

137
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139
  public void setBankAccountUUID(String bankAccountUUID) {
140
    this.bankAccountUUID = bankAccountUUID;
×
141
  }
×
142

143

144
  public DebitAccountHolderRequest description(String description) {
145
    this.description = description;
×
146
    return this;
×
147
  }
148

149
   /**
150
   * A description of the direct debit. Maximum length: 35 characters.  Allowed characters: **a-z**, **A-Z**, **0-9**, and special characters **_/?:().,&#39;+ \&quot;;**.
151
   * @return description
152
  **/
153
  @ApiModelProperty(value = "A description of the direct debit. Maximum length: 35 characters.  Allowed characters: **a-z**, **A-Z**, **0-9**, and special characters **_/?:().,'+ \";**.")
154
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156

157
  public String getDescription() {
158
    return description;
×
159
  }
160

161

162
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setDescription(String description) {
165
    this.description = description;
×
166
  }
×
167

168

169
  public DebitAccountHolderRequest merchantAccount(String merchantAccount) {
170
    this.merchantAccount = merchantAccount;
×
171
    return this;
×
172
  }
173

174
   /**
175
   * Your merchant account.
176
   * @return merchantAccount
177
  **/
178
  @ApiModelProperty(required = true, value = "Your merchant account.")
179
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getMerchantAccount() {
183
    return merchantAccount;
×
184
  }
185

186

187
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189
  public void setMerchantAccount(String merchantAccount) {
190
    this.merchantAccount = merchantAccount;
×
191
  }
×
192

193

194
  public DebitAccountHolderRequest splits(List<Split> splits) {
195
    this.splits = splits;
×
196
    return this;
×
197
  }
198

199
  public DebitAccountHolderRequest addSplitsItem(Split splitsItem) {
200
    this.splits.add(splitsItem);
×
201
    return this;
×
202
  }
203

204
   /**
205
   * Contains instructions on how to split the funds between the accounts in your platform. The request must have at least one split item.
206
   * @return splits
207
  **/
208
  @ApiModelProperty(required = true, value = "Contains instructions on how to split the funds between the accounts in your platform. The request must have at least one split item.")
209
  @JsonProperty(JSON_PROPERTY_SPLITS)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211

212
  public List<Split> getSplits() {
213
    return splits;
×
214
  }
215

216

217
  @JsonProperty(JSON_PROPERTY_SPLITS)
218
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
219
  public void setSplits(List<Split> splits) {
220
    this.splits = splits;
×
221
  }
×
222

223

224
  /**
225
   * Return true if this DebitAccountHolderRequest object is equal to o.
226
   */
227
  @Override
228
  public boolean equals(Object o) {
229
    if (this == o) {
×
230
      return true;
×
231
    }
232
    if (o == null || getClass() != o.getClass()) {
×
233
      return false;
×
234
    }
235
    DebitAccountHolderRequest debitAccountHolderRequest = (DebitAccountHolderRequest) o;
×
236
    return Objects.equals(this.accountHolderCode, debitAccountHolderRequest.accountHolderCode) &&
×
237
        Objects.equals(this.amount, debitAccountHolderRequest.amount) &&
×
238
        Objects.equals(this.bankAccountUUID, debitAccountHolderRequest.bankAccountUUID) &&
×
239
        Objects.equals(this.description, debitAccountHolderRequest.description) &&
×
240
        Objects.equals(this.merchantAccount, debitAccountHolderRequest.merchantAccount) &&
×
241
        Objects.equals(this.splits, debitAccountHolderRequest.splits);
×
242
  }
243

244
  @Override
245
  public int hashCode() {
246
    return Objects.hash(accountHolderCode, amount, bankAccountUUID, description, merchantAccount, splits);
×
247
  }
248

249
  @Override
250
  public String toString() {
251
    StringBuilder sb = new StringBuilder();
×
252
    sb.append("class DebitAccountHolderRequest {\n");
×
253
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
254
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
255
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
256
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
257
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
258
    sb.append("    splits: ").append(toIndentedString(splits)).append("\n");
×
259
    sb.append("}");
×
260
    return sb.toString();
×
261
  }
262

263
  /**
264
   * Convert the given object to string with each line indented by 4 spaces
265
   * (except the first line).
266
   */
267
  private String toIndentedString(Object o) {
268
    if (o == null) {
×
269
      return "null";
×
270
    }
271
    return o.toString().replace("\n", "\n    ");
×
272
  }
273

274
/**
275
   * Create an instance of DebitAccountHolderRequest given an JSON string
276
   *
277
   * @param jsonString JSON string
278
   * @return An instance of DebitAccountHolderRequest
279
   * @throws JsonProcessingException if the JSON string is invalid with respect to DebitAccountHolderRequest
280
   */
281
  public static DebitAccountHolderRequest fromJson(String jsonString) throws JsonProcessingException {
282
    return JSON.getMapper().readValue(jsonString, DebitAccountHolderRequest.class);
×
283
  }
284
/**
285
  * Convert an instance of DebitAccountHolderRequest to an JSON string
286
  *
287
  * @return JSON string
288
  */
289
  public String toJson() throws JsonProcessingException {
290
    return JSON.getMapper().writeValueAsString(this);
×
291
  }
292
}
293

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