• 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/AccountHolderTransactionListResponse.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.AccountTransactionList;
21
import com.adyen.model.marketpayfund.ErrorFieldType;
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
 * AccountHolderTransactionListResponse
37
 */
38
@JsonPropertyOrder({
39
  AccountHolderTransactionListResponse.JSON_PROPERTY_ACCOUNT_TRANSACTION_LISTS,
40
  AccountHolderTransactionListResponse.JSON_PROPERTY_INVALID_FIELDS,
41
  AccountHolderTransactionListResponse.JSON_PROPERTY_PSP_REFERENCE,
42
  AccountHolderTransactionListResponse.JSON_PROPERTY_RESULT_CODE
43
})
44

45
public class AccountHolderTransactionListResponse {
46
  public static final String JSON_PROPERTY_ACCOUNT_TRANSACTION_LISTS = "accountTransactionLists";
47
  private List<AccountTransactionList> accountTransactionLists = null;
×
48

49
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
50
  private List<ErrorFieldType> invalidFields = null;
×
51

52
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
53
  private String pspReference;
54

55
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
56
  private String resultCode;
57

58
  public AccountHolderTransactionListResponse() { 
×
59
  }
×
60

61
  public AccountHolderTransactionListResponse accountTransactionLists(List<AccountTransactionList> accountTransactionLists) {
62
    this.accountTransactionLists = accountTransactionLists;
×
63
    return this;
×
64
  }
65

66
  public AccountHolderTransactionListResponse addAccountTransactionListsItem(AccountTransactionList accountTransactionListsItem) {
67
    if (this.accountTransactionLists == null) {
×
68
      this.accountTransactionLists = new ArrayList<>();
×
69
    }
70
    this.accountTransactionLists.add(accountTransactionListsItem);
×
71
    return this;
×
72
  }
73

74
   /**
75
   * A list of the transactions.
76
   * @return accountTransactionLists
77
  **/
78
  @ApiModelProperty(value = "A list of the transactions.")
79
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TRANSACTION_LISTS)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81

82
  public List<AccountTransactionList> getAccountTransactionLists() {
83
    return accountTransactionLists;
×
84
  }
85

86

87
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TRANSACTION_LISTS)
88
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89
  public void setAccountTransactionLists(List<AccountTransactionList> accountTransactionLists) {
90
    this.accountTransactionLists = accountTransactionLists;
×
91
  }
×
92

93

94
  public AccountHolderTransactionListResponse invalidFields(List<ErrorFieldType> invalidFields) {
95
    this.invalidFields = invalidFields;
×
96
    return this;
×
97
  }
98

99
  public AccountHolderTransactionListResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
100
    if (this.invalidFields == null) {
×
101
      this.invalidFields = new ArrayList<>();
×
102
    }
103
    this.invalidFields.add(invalidFieldsItem);
×
104
    return this;
×
105
  }
106

107
   /**
108
   * Contains field validation errors that would prevent requests from being processed.
109
   * @return invalidFields
110
  **/
111
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
112
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114

115
  public List<ErrorFieldType> getInvalidFields() {
116
    return invalidFields;
×
117
  }
118

119

120
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
123
    this.invalidFields = invalidFields;
×
124
  }
×
125

126

127
  public AccountHolderTransactionListResponse pspReference(String pspReference) {
128
    this.pspReference = pspReference;
×
129
    return this;
×
130
  }
131

132
   /**
133
   * The reference of a request. Can be used to uniquely identify the request.
134
   * @return pspReference
135
  **/
136
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
137
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139

140
  public String getPspReference() {
141
    return pspReference;
×
142
  }
143

144

145
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147
  public void setPspReference(String pspReference) {
148
    this.pspReference = pspReference;
×
149
  }
×
150

151

152
  public AccountHolderTransactionListResponse resultCode(String resultCode) {
153
    this.resultCode = resultCode;
×
154
    return this;
×
155
  }
156

157
   /**
158
   * The result code.
159
   * @return resultCode
160
  **/
161
  @ApiModelProperty(value = "The result code.")
162
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164

165
  public String getResultCode() {
166
    return resultCode;
×
167
  }
168

169

170
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172
  public void setResultCode(String resultCode) {
173
    this.resultCode = resultCode;
×
174
  }
×
175

176

177
  /**
178
   * Return true if this AccountHolderTransactionListResponse object is equal to o.
179
   */
180
  @Override
181
  public boolean equals(Object o) {
182
    if (this == o) {
×
183
      return true;
×
184
    }
185
    if (o == null || getClass() != o.getClass()) {
×
186
      return false;
×
187
    }
188
    AccountHolderTransactionListResponse accountHolderTransactionListResponse = (AccountHolderTransactionListResponse) o;
×
189
    return Objects.equals(this.accountTransactionLists, accountHolderTransactionListResponse.accountTransactionLists) &&
×
190
        Objects.equals(this.invalidFields, accountHolderTransactionListResponse.invalidFields) &&
×
191
        Objects.equals(this.pspReference, accountHolderTransactionListResponse.pspReference) &&
×
192
        Objects.equals(this.resultCode, accountHolderTransactionListResponse.resultCode);
×
193
  }
194

195
  @Override
196
  public int hashCode() {
197
    return Objects.hash(accountTransactionLists, invalidFields, pspReference, resultCode);
×
198
  }
199

200
  @Override
201
  public String toString() {
202
    StringBuilder sb = new StringBuilder();
×
203
    sb.append("class AccountHolderTransactionListResponse {\n");
×
204
    sb.append("    accountTransactionLists: ").append(toIndentedString(accountTransactionLists)).append("\n");
×
205
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
206
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
207
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
208
    sb.append("}");
×
209
    return sb.toString();
×
210
  }
211

212
  /**
213
   * Convert the given object to string with each line indented by 4 spaces
214
   * (except the first line).
215
   */
216
  private String toIndentedString(Object o) {
217
    if (o == null) {
×
218
      return "null";
×
219
    }
220
    return o.toString().replace("\n", "\n    ");
×
221
  }
222

223
/**
224
   * Create an instance of AccountHolderTransactionListResponse given an JSON string
225
   *
226
   * @param jsonString JSON string
227
   * @return An instance of AccountHolderTransactionListResponse
228
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderTransactionListResponse
229
   */
230
  public static AccountHolderTransactionListResponse fromJson(String jsonString) throws JsonProcessingException {
231
    return JSON.getMapper().readValue(jsonString, AccountHolderTransactionListResponse.class);
×
232
  }
233
/**
234
  * Convert an instance of AccountHolderTransactionListResponse to an JSON string
235
  *
236
  * @return JSON string
237
  */
238
  public String toJson() throws JsonProcessingException {
239
    return JSON.getMapper().writeValueAsString(this);
×
240
  }
241
}
242

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