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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/AccountHolderTransactionListRequest.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.TransactionListForAccount;
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.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * AccountHolderTransactionListRequest
36
 */
37
@JsonPropertyOrder({
38
  AccountHolderTransactionListRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
39
  AccountHolderTransactionListRequest.JSON_PROPERTY_TRANSACTION_LISTS_PER_ACCOUNT,
40
  AccountHolderTransactionListRequest.JSON_PROPERTY_TRANSACTION_STATUSES
41
})
42

43
public class AccountHolderTransactionListRequest {
44
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
45
  private String accountHolderCode;
46

47
  public static final String JSON_PROPERTY_TRANSACTION_LISTS_PER_ACCOUNT = "transactionListsPerAccount";
48
  private List<TransactionListForAccount> transactionListsPerAccount = null;
×
49

50
  /**
51
   * Gets or Sets transactionStatuses
52
   */
53
  public enum TransactionStatusesEnum {
×
54
    BALANCENOTPAIDOUTTRANSFER("BalanceNotPaidOutTransfer"),
×
55
    
56
    BALANCEPLATFORMSWEEP("BalancePlatformSweep"),
×
57
    
58
    BALANCEPLATFORMSWEEPRETURNED("BalancePlatformSweepReturned"),
×
59
    
60
    CHARGEBACK("Chargeback"),
×
61
    
62
    CHARGEBACKCORRECTION("ChargebackCorrection"),
×
63
    
64
    CHARGEBACKCORRECTIONRECEIVED("ChargebackCorrectionReceived"),
×
65
    
66
    CHARGEBACKRECEIVED("ChargebackReceived"),
×
67
    
68
    CHARGEBACKREVERSED("ChargebackReversed"),
×
69
    
70
    CHARGEBACKREVERSEDCORRECTION("ChargebackReversedCorrection"),
×
71
    
72
    CHARGEBACKREVERSEDCORRECTIONRECEIVED("ChargebackReversedCorrectionReceived"),
×
73
    
74
    CHARGEBACKREVERSEDRECEIVED("ChargebackReversedReceived"),
×
75
    
76
    CONVERTED("Converted"),
×
77
    
78
    CREDITCLOSED("CreditClosed"),
×
79
    
80
    CREDITFAILED("CreditFailed"),
×
81
    
82
    CREDITREVERSED("CreditReversed"),
×
83
    
84
    CREDITREVERSEDRECEIVED("CreditReversedReceived"),
×
85
    
86
    CREDITSUSPENDED("CreditSuspended"),
×
87
    
88
    CREDITED("Credited"),
×
89
    
90
    DEBITFAILED("DebitFailed"),
×
91
    
92
    DEBITREVERSEDRECEIVED("DebitReversedReceived"),
×
93
    
94
    DEBITED("Debited"),
×
95
    
96
    DEBITEDREVERSED("DebitedReversed"),
×
97
    
98
    DEPOSITCORRECTIONCREDITED("DepositCorrectionCredited"),
×
99
    
100
    DEPOSITCORRECTIONDEBITED("DepositCorrectionDebited"),
×
101
    
102
    FEE("Fee"),
×
103
    
104
    FUNDTRANSFER("FundTransfer"),
×
105
    
106
    FUNDTRANSFERREVERSED("FundTransferReversed"),
×
107
    
108
    INVOICEDEDUCTIONCREDITED("InvoiceDeductionCredited"),
×
109
    
110
    INVOICEDEDUCTIONDEBITED("InvoiceDeductionDebited"),
×
111
    
112
    MANUALCORRECTED("ManualCorrected"),
×
113
    
114
    MANUALCORRECTIONCREDITED("ManualCorrectionCredited"),
×
115
    
116
    MANUALCORRECTIONDEBITED("ManualCorrectionDebited"),
×
117
    
118
    MERCHANTPAYIN("MerchantPayin"),
×
119
    
120
    MERCHANTPAYINREVERSED("MerchantPayinReversed"),
×
121
    
122
    PAYOUT("Payout"),
×
123
    
124
    PAYOUTREVERSED("PayoutReversed"),
×
125
    
126
    PENDINGCREDIT("PendingCredit"),
×
127
    
128
    PENDINGDEBIT("PendingDebit"),
×
129
    
130
    PENDINGFUNDTRANSFER("PendingFundTransfer"),
×
131
    
132
    RECREDITED("ReCredited"),
×
133
    
134
    RECREDITEDRECEIVED("ReCreditedReceived"),
×
135
    
136
    SECONDCHARGEBACK("SecondChargeback"),
×
137
    
138
    SECONDCHARGEBACKCORRECTION("SecondChargebackCorrection"),
×
139
    
140
    SECONDCHARGEBACKCORRECTIONRECEIVED("SecondChargebackCorrectionReceived"),
×
141
    
142
    SECONDCHARGEBACKRECEIVED("SecondChargebackReceived");
×
143

144
    private String value;
145

146
    TransactionStatusesEnum(String value) {
×
147
      this.value = value;
×
148
    }
×
149

150
    @JsonValue
151
    public String getValue() {
152
      return value;
×
153
    }
154

155
    @Override
156
    public String toString() {
157
      return String.valueOf(value);
×
158
    }
159

160
    @JsonCreator
161
    public static TransactionStatusesEnum fromValue(String value) {
162
      for (TransactionStatusesEnum b : TransactionStatusesEnum.values()) {
×
163
        if (b.value.equals(value)) {
×
164
          return b;
×
165
        }
166
      }
167
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
168
    }
169
  }
170

171
  public static final String JSON_PROPERTY_TRANSACTION_STATUSES = "transactionStatuses";
172
  private List<TransactionStatusesEnum> transactionStatuses = null;
×
173

174
  public AccountHolderTransactionListRequest() { 
×
175
  }
×
176

177
  public AccountHolderTransactionListRequest accountHolderCode(String accountHolderCode) {
178
    this.accountHolderCode = accountHolderCode;
×
179
    return this;
×
180
  }
181

182
   /**
183
   * The code of the account holder that owns the account(s) of which retrieve the transaction list.
184
   * @return accountHolderCode
185
  **/
186
  @ApiModelProperty(required = true, value = "The code of the account holder that owns the account(s) of which retrieve the transaction list.")
187
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
188
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189

190
  public String getAccountHolderCode() {
191
    return accountHolderCode;
×
192
  }
193

194

195
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197
  public void setAccountHolderCode(String accountHolderCode) {
198
    this.accountHolderCode = accountHolderCode;
×
199
  }
×
200

201

202
  public AccountHolderTransactionListRequest transactionListsPerAccount(List<TransactionListForAccount> transactionListsPerAccount) {
203
    this.transactionListsPerAccount = transactionListsPerAccount;
×
204
    return this;
×
205
  }
206

207
  public AccountHolderTransactionListRequest addTransactionListsPerAccountItem(TransactionListForAccount transactionListsPerAccountItem) {
208
    if (this.transactionListsPerAccount == null) {
×
209
      this.transactionListsPerAccount = new ArrayList<>();
×
210
    }
211
    this.transactionListsPerAccount.add(transactionListsPerAccountItem);
×
212
    return this;
×
213
  }
214

215
   /**
216
   * A list of accounts to include in the transaction list. If left blank, the last fifty (50) transactions for all accounts of the account holder will be included.
217
   * @return transactionListsPerAccount
218
  **/
219
  @ApiModelProperty(value = "A list of accounts to include in the transaction list. If left blank, the last fifty (50) transactions for all accounts of the account holder will be included.")
220
  @JsonProperty(JSON_PROPERTY_TRANSACTION_LISTS_PER_ACCOUNT)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222

223
  public List<TransactionListForAccount> getTransactionListsPerAccount() {
224
    return transactionListsPerAccount;
×
225
  }
226

227

228
  @JsonProperty(JSON_PROPERTY_TRANSACTION_LISTS_PER_ACCOUNT)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setTransactionListsPerAccount(List<TransactionListForAccount> transactionListsPerAccount) {
231
    this.transactionListsPerAccount = transactionListsPerAccount;
×
232
  }
×
233

234

235
  public AccountHolderTransactionListRequest transactionStatuses(List<TransactionStatusesEnum> transactionStatuses) {
236
    this.transactionStatuses = transactionStatuses;
×
237
    return this;
×
238
  }
239

240
  public AccountHolderTransactionListRequest addTransactionStatusesItem(TransactionStatusesEnum transactionStatusesItem) {
241
    if (this.transactionStatuses == null) {
×
242
      this.transactionStatuses = new ArrayList<>();
×
243
    }
244
    this.transactionStatuses.add(transactionStatusesItem);
×
245
    return this;
×
246
  }
247

248
   /**
249
   * A list of statuses to include in the transaction list. If left blank, all transactions will be included. &gt;Permitted values: &gt;* &#x60;PendingCredit&#x60; - a pending balance credit. &gt;* &#x60;CreditFailed&#x60; - a pending credit failure; the balance will not be credited. &gt;* &#x60;Credited&#x60; - a credited balance. &gt;* &#x60;PendingDebit&#x60; - a pending balance debit (e.g., a refund). &gt;* &#x60;CreditClosed&#x60; - a pending credit closed; the balance will not be credited. &gt;* &#x60;CreditSuspended&#x60; - a pending credit closed; the balance will not be credited. &gt;* &#x60;DebitFailed&#x60; - a pending debit failure; the balance will not be debited. &gt;* &#x60;Debited&#x60; - a debited balance (e.g., a refund). &gt;* &#x60;DebitReversedReceived&#x60; - a pending refund reversal. &gt;* &#x60;DebitedReversed&#x60; - a reversed refund. &gt;* &#x60;ChargebackReceived&#x60; - a received chargeback request. &gt;* &#x60;Chargeback&#x60; - a processed chargeback. &gt;* &#x60;ChargebackReversedReceived&#x60; - a pending chargeback reversal. &gt;* &#x60;ChargebackReversed&#x60; - a reversed chargeback. &gt;* &#x60;Converted&#x60; - converted. &gt;* &#x60;ManualCorrected&#x60; - manual booking/adjustment by Adyen. &gt;* &#x60;Payout&#x60; - a payout. &gt;* &#x60;PayoutReversed&#x60; - a reversed payout. &gt;* &#x60;PendingFundTransfer&#x60; - a pending transfer of funds from one account to another. &gt;* &#x60;FundTransfer&#x60; - a transfer of funds from one account to another.
250
   * @return transactionStatuses
251
  **/
252
  @ApiModelProperty(value = "A list of statuses to include in the transaction list. If left blank, all transactions will be included. >Permitted values: >* `PendingCredit` - a pending balance credit. >* `CreditFailed` - a pending credit failure; the balance will not be credited. >* `Credited` - a credited balance. >* `PendingDebit` - a pending balance debit (e.g., a refund). >* `CreditClosed` - a pending credit closed; the balance will not be credited. >* `CreditSuspended` - a pending credit closed; the balance will not be credited. >* `DebitFailed` - a pending debit failure; the balance will not be debited. >* `Debited` - a debited balance (e.g., a refund). >* `DebitReversedReceived` - a pending refund reversal. >* `DebitedReversed` - a reversed refund. >* `ChargebackReceived` - a received chargeback request. >* `Chargeback` - a processed chargeback. >* `ChargebackReversedReceived` - a pending chargeback reversal. >* `ChargebackReversed` - a reversed chargeback. >* `Converted` - converted. >* `ManualCorrected` - manual booking/adjustment by Adyen. >* `Payout` - a payout. >* `PayoutReversed` - a reversed payout. >* `PendingFundTransfer` - a pending transfer of funds from one account to another. >* `FundTransfer` - a transfer of funds from one account to another.")
253
  @JsonProperty(JSON_PROPERTY_TRANSACTION_STATUSES)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255

256
  public List<TransactionStatusesEnum> getTransactionStatuses() {
257
    return transactionStatuses;
×
258
  }
259

260

261
  @JsonProperty(JSON_PROPERTY_TRANSACTION_STATUSES)
262
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
263
  public void setTransactionStatuses(List<TransactionStatusesEnum> transactionStatuses) {
264
    this.transactionStatuses = transactionStatuses;
×
265
  }
×
266

267

268
  /**
269
   * Return true if this AccountHolderTransactionListRequest object is equal to o.
270
   */
271
  @Override
272
  public boolean equals(Object o) {
273
    if (this == o) {
×
274
      return true;
×
275
    }
276
    if (o == null || getClass() != o.getClass()) {
×
277
      return false;
×
278
    }
279
    AccountHolderTransactionListRequest accountHolderTransactionListRequest = (AccountHolderTransactionListRequest) o;
×
280
    return Objects.equals(this.accountHolderCode, accountHolderTransactionListRequest.accountHolderCode) &&
×
281
        Objects.equals(this.transactionListsPerAccount, accountHolderTransactionListRequest.transactionListsPerAccount) &&
×
282
        Objects.equals(this.transactionStatuses, accountHolderTransactionListRequest.transactionStatuses);
×
283
  }
284

285
  @Override
286
  public int hashCode() {
287
    return Objects.hash(accountHolderCode, transactionListsPerAccount, transactionStatuses);
×
288
  }
289

290
  @Override
291
  public String toString() {
292
    StringBuilder sb = new StringBuilder();
×
293
    sb.append("class AccountHolderTransactionListRequest {\n");
×
294
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
295
    sb.append("    transactionListsPerAccount: ").append(toIndentedString(transactionListsPerAccount)).append("\n");
×
296
    sb.append("    transactionStatuses: ").append(toIndentedString(transactionStatuses)).append("\n");
×
297
    sb.append("}");
×
298
    return sb.toString();
×
299
  }
300

301
  /**
302
   * Convert the given object to string with each line indented by 4 spaces
303
   * (except the first line).
304
   */
305
  private String toIndentedString(Object o) {
306
    if (o == null) {
×
307
      return "null";
×
308
    }
309
    return o.toString().replace("\n", "\n    ");
×
310
  }
311

312
/**
313
   * Create an instance of AccountHolderTransactionListRequest given an JSON string
314
   *
315
   * @param jsonString JSON string
316
   * @return An instance of AccountHolderTransactionListRequest
317
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderTransactionListRequest
318
   */
319
  public static AccountHolderTransactionListRequest fromJson(String jsonString) throws JsonProcessingException {
320
    return JSON.getMapper().readValue(jsonString, AccountHolderTransactionListRequest.class);
×
321
  }
322
/**
323
  * Convert an instance of AccountHolderTransactionListRequest to an JSON string
324
  *
325
  * @return JSON string
326
  */
327
  public String toJson() throws JsonProcessingException {
328
    return JSON.getMapper().writeValueAsString(this);
×
329
  }
330
}
331

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