• 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/AccountTransactionList.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.Transaction;
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
 * AccountTransactionList
36
 */
37
@JsonPropertyOrder({
38
  AccountTransactionList.JSON_PROPERTY_ACCOUNT_CODE,
39
  AccountTransactionList.JSON_PROPERTY_HAS_NEXT_PAGE,
40
  AccountTransactionList.JSON_PROPERTY_TRANSACTIONS
41
})
42

43
public class AccountTransactionList {
44
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
45
  private String accountCode;
46

47
  public static final String JSON_PROPERTY_HAS_NEXT_PAGE = "hasNextPage";
48
  private Boolean hasNextPage;
49

50
  public static final String JSON_PROPERTY_TRANSACTIONS = "transactions";
51
  private List<Transaction> transactions = null;
×
52

53
  public AccountTransactionList() { 
×
54
  }
×
55

56
  public AccountTransactionList accountCode(String accountCode) {
57
    this.accountCode = accountCode;
×
58
    return this;
×
59
  }
60

61
   /**
62
   * The code of the account.
63
   * @return accountCode
64
  **/
65
  @ApiModelProperty(value = "The code of the account.")
66
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68

69
  public String getAccountCode() {
70
    return accountCode;
×
71
  }
72

73

74
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76
  public void setAccountCode(String accountCode) {
77
    this.accountCode = accountCode;
×
78
  }
×
79

80

81
  public AccountTransactionList hasNextPage(Boolean hasNextPage) {
82
    this.hasNextPage = hasNextPage;
×
83
    return this;
×
84
  }
85

86
   /**
87
   * Indicates whether there is a next page of transactions available.
88
   * @return hasNextPage
89
  **/
90
  @ApiModelProperty(value = "Indicates whether there is a next page of transactions available.")
91
  @JsonProperty(JSON_PROPERTY_HAS_NEXT_PAGE)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93

94
  public Boolean getHasNextPage() {
95
    return hasNextPage;
×
96
  }
97

98

99
  @JsonProperty(JSON_PROPERTY_HAS_NEXT_PAGE)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101
  public void setHasNextPage(Boolean hasNextPage) {
102
    this.hasNextPage = hasNextPage;
×
103
  }
×
104

105

106
  public AccountTransactionList transactions(List<Transaction> transactions) {
107
    this.transactions = transactions;
×
108
    return this;
×
109
  }
110

111
  public AccountTransactionList addTransactionsItem(Transaction transactionsItem) {
112
    if (this.transactions == null) {
×
113
      this.transactions = new ArrayList<>();
×
114
    }
115
    this.transactions.add(transactionsItem);
×
116
    return this;
×
117
  }
118

119
   /**
120
   * The list of transactions.
121
   * @return transactions
122
  **/
123
  @ApiModelProperty(value = "The list of transactions.")
124
  @JsonProperty(JSON_PROPERTY_TRANSACTIONS)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

127
  public List<Transaction> getTransactions() {
128
    return transactions;
×
129
  }
130

131

132
  @JsonProperty(JSON_PROPERTY_TRANSACTIONS)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134
  public void setTransactions(List<Transaction> transactions) {
135
    this.transactions = transactions;
×
136
  }
×
137

138

139
  /**
140
   * Return true if this AccountTransactionList object is equal to o.
141
   */
142
  @Override
143
  public boolean equals(Object o) {
144
    if (this == o) {
×
145
      return true;
×
146
    }
147
    if (o == null || getClass() != o.getClass()) {
×
148
      return false;
×
149
    }
150
    AccountTransactionList accountTransactionList = (AccountTransactionList) o;
×
151
    return Objects.equals(this.accountCode, accountTransactionList.accountCode) &&
×
152
        Objects.equals(this.hasNextPage, accountTransactionList.hasNextPage) &&
×
153
        Objects.equals(this.transactions, accountTransactionList.transactions);
×
154
  }
155

156
  @Override
157
  public int hashCode() {
158
    return Objects.hash(accountCode, hasNextPage, transactions);
×
159
  }
160

161
  @Override
162
  public String toString() {
163
    StringBuilder sb = new StringBuilder();
×
164
    sb.append("class AccountTransactionList {\n");
×
165
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
166
    sb.append("    hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n");
×
167
    sb.append("    transactions: ").append(toIndentedString(transactions)).append("\n");
×
168
    sb.append("}");
×
169
    return sb.toString();
×
170
  }
171

172
  /**
173
   * Convert the given object to string with each line indented by 4 spaces
174
   * (except the first line).
175
   */
176
  private String toIndentedString(Object o) {
177
    if (o == null) {
×
178
      return "null";
×
179
    }
180
    return o.toString().replace("\n", "\n    ");
×
181
  }
182

183
/**
184
   * Create an instance of AccountTransactionList given an JSON string
185
   *
186
   * @param jsonString JSON string
187
   * @return An instance of AccountTransactionList
188
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountTransactionList
189
   */
190
  public static AccountTransactionList fromJson(String jsonString) throws JsonProcessingException {
191
    return JSON.getMapper().readValue(jsonString, AccountTransactionList.class);
×
192
  }
193
/**
194
  * Convert an instance of AccountTransactionList to an JSON string
195
  *
196
  * @return JSON string
197
  */
198
  public String toJson() throws JsonProcessingException {
199
    return JSON.getMapper().writeValueAsString(this);
×
200
  }
201
}
202

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