• 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/AccountHolderBalanceRequest.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.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * AccountHolderBalanceRequest
33
 */
34
@JsonPropertyOrder({
35
  AccountHolderBalanceRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE
36
})
37

38
public class AccountHolderBalanceRequest {
39
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
40
  private String accountHolderCode;
41

42
  public AccountHolderBalanceRequest() { 
×
43
  }
×
44

45
  public AccountHolderBalanceRequest accountHolderCode(String accountHolderCode) {
46
    this.accountHolderCode = accountHolderCode;
×
47
    return this;
×
48
  }
49

50
   /**
51
   * The code of the Account Holder of which to retrieve the balance.
52
   * @return accountHolderCode
53
  **/
54
  @ApiModelProperty(required = true, value = "The code of the Account Holder of which to retrieve the balance.")
55
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
56
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
57

58
  public String getAccountHolderCode() {
59
    return accountHolderCode;
×
60
  }
61

62

63
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
64
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65
  public void setAccountHolderCode(String accountHolderCode) {
66
    this.accountHolderCode = accountHolderCode;
×
67
  }
×
68

69

70
  /**
71
   * Return true if this AccountHolderBalanceRequest object is equal to o.
72
   */
73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    AccountHolderBalanceRequest accountHolderBalanceRequest = (AccountHolderBalanceRequest) o;
×
82
    return Objects.equals(this.accountHolderCode, accountHolderBalanceRequest.accountHolderCode);
×
83
  }
84

85
  @Override
86
  public int hashCode() {
87
    return Objects.hash(accountHolderCode);
×
88
  }
89

90
  @Override
91
  public String toString() {
92
    StringBuilder sb = new StringBuilder();
×
93
    sb.append("class AccountHolderBalanceRequest {\n");
×
94
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
95
    sb.append("}");
×
96
    return sb.toString();
×
97
  }
98

99
  /**
100
   * Convert the given object to string with each line indented by 4 spaces
101
   * (except the first line).
102
   */
103
  private String toIndentedString(Object o) {
104
    if (o == null) {
×
105
      return "null";
×
106
    }
107
    return o.toString().replace("\n", "\n    ");
×
108
  }
109

110
/**
111
   * Create an instance of AccountHolderBalanceRequest given an JSON string
112
   *
113
   * @param jsonString JSON string
114
   * @return An instance of AccountHolderBalanceRequest
115
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderBalanceRequest
116
   */
117
  public static AccountHolderBalanceRequest fromJson(String jsonString) throws JsonProcessingException {
118
    return JSON.getMapper().readValue(jsonString, AccountHolderBalanceRequest.class);
×
119
  }
120
/**
121
  * Convert an instance of AccountHolderBalanceRequest to an JSON string
122
  *
123
  * @return JSON string
124
  */
125
  public String toJson() throws JsonProcessingException {
126
    return JSON.getMapper().writeValueAsString(this);
×
127
  }
128
}
129

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