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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/UpdateAccountResponse.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.marketpaywebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.marketpaywebhooks.ErrorFieldType;
20
import com.adyen.model.marketpaywebhooks.PayoutScheduleResponse;
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.HashMap;
30
import java.util.List;
31
import java.util.Map;
32
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
import com.fasterxml.jackson.core.JsonProcessingException;
34

35

36
/**
37
 * UpdateAccountResponse
38
 */
39
@JsonPropertyOrder({
40
  UpdateAccountResponse.JSON_PROPERTY_ACCOUNT_CODE,
41
  UpdateAccountResponse.JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D,
42
  UpdateAccountResponse.JSON_PROPERTY_DESCRIPTION,
43
  UpdateAccountResponse.JSON_PROPERTY_INVALID_FIELDS,
44
  UpdateAccountResponse.JSON_PROPERTY_METADATA,
45
  UpdateAccountResponse.JSON_PROPERTY_PAYOUT_METHOD_CODE,
46
  UpdateAccountResponse.JSON_PROPERTY_PAYOUT_SCHEDULE,
47
  UpdateAccountResponse.JSON_PROPERTY_PAYOUT_SPEED,
48
  UpdateAccountResponse.JSON_PROPERTY_PSP_REFERENCE,
49
  UpdateAccountResponse.JSON_PROPERTY_RESULT_CODE
50
})
51

52
public class UpdateAccountResponse {
53
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
54
  private String accountCode;
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_INVALID_FIELDS = "invalidFields";
63
  private List<ErrorFieldType> invalidFields = null;
×
64

65
  public static final String JSON_PROPERTY_METADATA = "metadata";
66
  private Map<String, String> metadata = null;
×
67

68
  public static final String JSON_PROPERTY_PAYOUT_METHOD_CODE = "payoutMethodCode";
69
  private String payoutMethodCode;
70

71
  public static final String JSON_PROPERTY_PAYOUT_SCHEDULE = "payoutSchedule";
72
  private PayoutScheduleResponse payoutSchedule;
73

74
  /**
75
   * Speed with which payouts for this account are processed. Permitted values: &#x60;STANDARD&#x60;, &#x60;SAME_DAY&#x60;.
76
   */
77
  public enum PayoutSpeedEnum {
×
78
    INSTANT("INSTANT"),
×
79
    
80
    SAME_DAY("SAME_DAY"),
×
81
    
82
    STANDARD("STANDARD");
×
83

84
    private String value;
85

86
    PayoutSpeedEnum(String value) {
×
87
      this.value = value;
×
88
    }
×
89

90
    @JsonValue
91
    public String getValue() {
92
      return value;
×
93
    }
94

95
    @Override
96
    public String toString() {
97
      return String.valueOf(value);
×
98
    }
99

100
    @JsonCreator
101
    public static PayoutSpeedEnum fromValue(String value) {
102
      for (PayoutSpeedEnum b : PayoutSpeedEnum.values()) {
×
103
        if (b.value.equals(value)) {
×
104
          return b;
×
105
        }
106
      }
107
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
108
    }
109
  }
110

111
  public static final String JSON_PROPERTY_PAYOUT_SPEED = "payoutSpeed";
112
  private PayoutSpeedEnum payoutSpeed;
113

114
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
115
  private String pspReference;
116

117
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
118
  private String resultCode;
119

120
  public UpdateAccountResponse() { 
×
121
  }
×
122

123
  public UpdateAccountResponse accountCode(String accountCode) {
124
    this.accountCode = accountCode;
×
125
    return this;
×
126
  }
127

128
   /**
129
   * The code of the account.
130
   * @return accountCode
131
  **/
132
  @ApiModelProperty(required = true, value = "The code of the account.")
133
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135

136
  public String getAccountCode() {
137
    return accountCode;
×
138
  }
139

140

141
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143
  public void setAccountCode(String accountCode) {
144
    this.accountCode = accountCode;
×
145
  }
×
146

147

148
  public UpdateAccountResponse bankAccountUUID(String bankAccountUUID) {
149
    this.bankAccountUUID = bankAccountUUID;
×
150
    return this;
×
151
  }
152

153
   /**
154
   * The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
155
   * @return bankAccountUUID
156
  **/
157
  @ApiModelProperty(value = "The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.")
158
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
160

161
  public String getBankAccountUUID() {
162
    return bankAccountUUID;
×
163
  }
164

165

166
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_U_U_I_D)
167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
168
  public void setBankAccountUUID(String bankAccountUUID) {
169
    this.bankAccountUUID = bankAccountUUID;
×
170
  }
×
171

172

173
  public UpdateAccountResponse description(String description) {
174
    this.description = description;
×
175
    return this;
×
176
  }
177

178
   /**
179
   * The description of the account.
180
   * @return description
181
  **/
182
  @ApiModelProperty(value = "The description of the account.")
183
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185

186
  public String getDescription() {
187
    return description;
×
188
  }
189

190

191
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193
  public void setDescription(String description) {
194
    this.description = description;
×
195
  }
×
196

197

198
  public UpdateAccountResponse invalidFields(List<ErrorFieldType> invalidFields) {
199
    this.invalidFields = invalidFields;
×
200
    return this;
×
201
  }
202

203
  public UpdateAccountResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
204
    if (this.invalidFields == null) {
×
205
      this.invalidFields = new ArrayList<>();
×
206
    }
207
    this.invalidFields.add(invalidFieldsItem);
×
208
    return this;
×
209
  }
210

211
   /**
212
   * A list of fields that caused the &#x60;/updateAccount&#x60; request to fail.
213
   * @return invalidFields
214
  **/
215
  @ApiModelProperty(value = "A list of fields that caused the `/updateAccount` request to fail.")
216
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218

219
  public List<ErrorFieldType> getInvalidFields() {
220
    return invalidFields;
×
221
  }
222

223

224
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
227
    this.invalidFields = invalidFields;
×
228
  }
×
229

230

231
  public UpdateAccountResponse metadata(Map<String, String> metadata) {
232
    this.metadata = metadata;
×
233
    return this;
×
234
  }
235

236
  public UpdateAccountResponse putMetadataItem(String key, String metadataItem) {
237
    if (this.metadata == null) {
×
238
      this.metadata = new HashMap<>();
×
239
    }
240
    this.metadata.put(key, metadataItem);
×
241
    return this;
×
242
  }
243

244
   /**
245
   * A set of key and value pairs containing metadata.
246
   * @return metadata
247
  **/
248
  @ApiModelProperty(value = "A set of key and value pairs containing metadata.")
249
  @JsonProperty(JSON_PROPERTY_METADATA)
250
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
251

252
  public Map<String, String> getMetadata() {
253
    return metadata;
×
254
  }
255

256

257
  @JsonProperty(JSON_PROPERTY_METADATA)
258
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
259
  public void setMetadata(Map<String, String> metadata) {
260
    this.metadata = metadata;
×
261
  }
×
262

263

264
  public UpdateAccountResponse payoutMethodCode(String payoutMethodCode) {
265
    this.payoutMethodCode = payoutMethodCode;
×
266
    return this;
×
267
  }
268

269
   /**
270
   * The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
271
   * @return payoutMethodCode
272
  **/
273
  @ApiModelProperty(value = "The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.")
274
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
275
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
276

277
  public String getPayoutMethodCode() {
278
    return payoutMethodCode;
×
279
  }
280

281

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

288

289
  public UpdateAccountResponse payoutSchedule(PayoutScheduleResponse payoutSchedule) {
290
    this.payoutSchedule = payoutSchedule;
×
291
    return this;
×
292
  }
293

294
   /**
295
   * Get payoutSchedule
296
   * @return payoutSchedule
297
  **/
298
  @ApiModelProperty(value = "")
299
  @JsonProperty(JSON_PROPERTY_PAYOUT_SCHEDULE)
300
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
301

302
  public PayoutScheduleResponse getPayoutSchedule() {
303
    return payoutSchedule;
×
304
  }
305

306

307
  @JsonProperty(JSON_PROPERTY_PAYOUT_SCHEDULE)
308
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
309
  public void setPayoutSchedule(PayoutScheduleResponse payoutSchedule) {
310
    this.payoutSchedule = payoutSchedule;
×
311
  }
×
312

313

314
  public UpdateAccountResponse payoutSpeed(PayoutSpeedEnum payoutSpeed) {
315
    this.payoutSpeed = payoutSpeed;
×
316
    return this;
×
317
  }
318

319
   /**
320
   * Speed with which payouts for this account are processed. Permitted values: &#x60;STANDARD&#x60;, &#x60;SAME_DAY&#x60;.
321
   * @return payoutSpeed
322
  **/
323
  @ApiModelProperty(value = "Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.")
324
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
325
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
326

327
  public PayoutSpeedEnum getPayoutSpeed() {
328
    return payoutSpeed;
×
329
  }
330

331

332
  @JsonProperty(JSON_PROPERTY_PAYOUT_SPEED)
333
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
334
  public void setPayoutSpeed(PayoutSpeedEnum payoutSpeed) {
335
    this.payoutSpeed = payoutSpeed;
×
336
  }
×
337

338

339
  public UpdateAccountResponse pspReference(String pspReference) {
340
    this.pspReference = pspReference;
×
341
    return this;
×
342
  }
343

344
   /**
345
   * The reference of a request. Can be used to uniquely identify the request.
346
   * @return pspReference
347
  **/
348
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
349
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
350
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
351

352
  public String getPspReference() {
353
    return pspReference;
×
354
  }
355

356

357
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
358
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
359
  public void setPspReference(String pspReference) {
360
    this.pspReference = pspReference;
×
361
  }
×
362

363

364
  public UpdateAccountResponse resultCode(String resultCode) {
365
    this.resultCode = resultCode;
×
366
    return this;
×
367
  }
368

369
   /**
370
   * The result code.
371
   * @return resultCode
372
  **/
373
  @ApiModelProperty(value = "The result code.")
374
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
375
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
376

377
  public String getResultCode() {
378
    return resultCode;
×
379
  }
380

381

382
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
383
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
384
  public void setResultCode(String resultCode) {
385
    this.resultCode = resultCode;
×
386
  }
×
387

388

389
  /**
390
   * Return true if this UpdateAccountResponse object is equal to o.
391
   */
392
  @Override
393
  public boolean equals(Object o) {
394
    if (this == o) {
×
395
      return true;
×
396
    }
397
    if (o == null || getClass() != o.getClass()) {
×
398
      return false;
×
399
    }
400
    UpdateAccountResponse updateAccountResponse = (UpdateAccountResponse) o;
×
401
    return Objects.equals(this.accountCode, updateAccountResponse.accountCode) &&
×
402
        Objects.equals(this.bankAccountUUID, updateAccountResponse.bankAccountUUID) &&
×
403
        Objects.equals(this.description, updateAccountResponse.description) &&
×
404
        Objects.equals(this.invalidFields, updateAccountResponse.invalidFields) &&
×
405
        Objects.equals(this.metadata, updateAccountResponse.metadata) &&
×
406
        Objects.equals(this.payoutMethodCode, updateAccountResponse.payoutMethodCode) &&
×
407
        Objects.equals(this.payoutSchedule, updateAccountResponse.payoutSchedule) &&
×
408
        Objects.equals(this.payoutSpeed, updateAccountResponse.payoutSpeed) &&
×
409
        Objects.equals(this.pspReference, updateAccountResponse.pspReference) &&
×
410
        Objects.equals(this.resultCode, updateAccountResponse.resultCode);
×
411
  }
412

413
  @Override
414
  public int hashCode() {
415
    return Objects.hash(accountCode, bankAccountUUID, description, invalidFields, metadata, payoutMethodCode, payoutSchedule, payoutSpeed, pspReference, resultCode);
×
416
  }
417

418
  @Override
419
  public String toString() {
420
    StringBuilder sb = new StringBuilder();
×
421
    sb.append("class UpdateAccountResponse {\n");
×
422
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
423
    sb.append("    bankAccountUUID: ").append(toIndentedString(bankAccountUUID)).append("\n");
×
424
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
425
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
426
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
427
    sb.append("    payoutMethodCode: ").append(toIndentedString(payoutMethodCode)).append("\n");
×
428
    sb.append("    payoutSchedule: ").append(toIndentedString(payoutSchedule)).append("\n");
×
429
    sb.append("    payoutSpeed: ").append(toIndentedString(payoutSpeed)).append("\n");
×
430
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
431
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
432
    sb.append("}");
×
433
    return sb.toString();
×
434
  }
435

436
  /**
437
   * Convert the given object to string with each line indented by 4 spaces
438
   * (except the first line).
439
   */
440
  private String toIndentedString(Object o) {
441
    if (o == null) {
×
442
      return "null";
×
443
    }
444
    return o.toString().replace("\n", "\n    ");
×
445
  }
446

447
/**
448
   * Create an instance of UpdateAccountResponse given an JSON string
449
   *
450
   * @param jsonString JSON string
451
   * @return An instance of UpdateAccountResponse
452
   * @throws JsonProcessingException if the JSON string is invalid with respect to UpdateAccountResponse
453
   */
454
  public static UpdateAccountResponse fromJson(String jsonString) throws JsonProcessingException {
455
    return JSON.getMapper().readValue(jsonString, UpdateAccountResponse.class);
×
456
  }
457
/**
458
  * Convert an instance of UpdateAccountResponse to an JSON string
459
  *
460
  * @return JSON string
461
  */
462
  public String toJson() throws JsonProcessingException {
463
    return JSON.getMapper().writeValueAsString(this);
×
464
  }
465
}
466

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