• 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/AccountFundsBelowThresholdNotificationContent.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.Amount;
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 java.time.LocalDate;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * AccountFundsBelowThresholdNotificationContent
34
 */
35
@JsonPropertyOrder({
36
  AccountFundsBelowThresholdNotificationContent.JSON_PROPERTY_ACCOUNT_CODE,
37
  AccountFundsBelowThresholdNotificationContent.JSON_PROPERTY_BALANCE_DATE,
38
  AccountFundsBelowThresholdNotificationContent.JSON_PROPERTY_CURRENT_FUNDS,
39
  AccountFundsBelowThresholdNotificationContent.JSON_PROPERTY_FUND_THRESHOLD,
40
  AccountFundsBelowThresholdNotificationContent.JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
41
})
42

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

47
  public static final String JSON_PROPERTY_BALANCE_DATE = "balanceDate";
48
  private LocalDate balanceDate;
49

50
  public static final String JSON_PROPERTY_CURRENT_FUNDS = "currentFunds";
51
  private Amount currentFunds;
52

53
  public static final String JSON_PROPERTY_FUND_THRESHOLD = "fundThreshold";
54
  private Amount fundThreshold;
55

56
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE = "merchantAccountCode";
57
  private String merchantAccountCode;
58

59
  public AccountFundsBelowThresholdNotificationContent() { 
×
60
  }
×
61

62
  public AccountFundsBelowThresholdNotificationContent accountCode(String accountCode) {
63
    this.accountCode = accountCode;
×
64
    return this;
×
65
  }
66

67
   /**
68
   * The code of the account with funds under threshold
69
   * @return accountCode
70
  **/
71
  @ApiModelProperty(value = "The code of the account with funds under threshold")
72
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
73
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74

75
  public String getAccountCode() {
76
    return accountCode;
×
77
  }
78

79

80
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
81
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
82
  public void setAccountCode(String accountCode) {
83
    this.accountCode = accountCode;
×
84
  }
×
85

86

87
  public AccountFundsBelowThresholdNotificationContent balanceDate(LocalDate balanceDate) {
88
    this.balanceDate = balanceDate;
×
89
    return this;
×
90
  }
91

92
   /**
93
   * Get balanceDate
94
   * @return balanceDate
95
  **/
96
  @ApiModelProperty(value = "")
97
  @JsonProperty(JSON_PROPERTY_BALANCE_DATE)
98
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99

100
  public LocalDate getBalanceDate() {
101
    return balanceDate;
×
102
  }
103

104

105
  @JsonProperty(JSON_PROPERTY_BALANCE_DATE)
106
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
107
  public void setBalanceDate(LocalDate balanceDate) {
108
    this.balanceDate = balanceDate;
×
109
  }
×
110

111

112
  public AccountFundsBelowThresholdNotificationContent currentFunds(Amount currentFunds) {
113
    this.currentFunds = currentFunds;
×
114
    return this;
×
115
  }
116

117
   /**
118
   * Get currentFunds
119
   * @return currentFunds
120
  **/
121
  @ApiModelProperty(value = "")
122
  @JsonProperty(JSON_PROPERTY_CURRENT_FUNDS)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124

125
  public Amount getCurrentFunds() {
126
    return currentFunds;
×
127
  }
128

129

130
  @JsonProperty(JSON_PROPERTY_CURRENT_FUNDS)
131
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
132
  public void setCurrentFunds(Amount currentFunds) {
133
    this.currentFunds = currentFunds;
×
134
  }
×
135

136

137
  public AccountFundsBelowThresholdNotificationContent fundThreshold(Amount fundThreshold) {
138
    this.fundThreshold = fundThreshold;
×
139
    return this;
×
140
  }
141

142
   /**
143
   * Get fundThreshold
144
   * @return fundThreshold
145
  **/
146
  @ApiModelProperty(required = true, value = "")
147
  @JsonProperty(JSON_PROPERTY_FUND_THRESHOLD)
148
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
149

150
  public Amount getFundThreshold() {
151
    return fundThreshold;
×
152
  }
153

154

155
  @JsonProperty(JSON_PROPERTY_FUND_THRESHOLD)
156
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157
  public void setFundThreshold(Amount fundThreshold) {
158
    this.fundThreshold = fundThreshold;
×
159
  }
×
160

161

162
  public AccountFundsBelowThresholdNotificationContent merchantAccountCode(String merchantAccountCode) {
163
    this.merchantAccountCode = merchantAccountCode;
×
164
    return this;
×
165
  }
166

167
   /**
168
   * The code of the merchant account.
169
   * @return merchantAccountCode
170
  **/
171
  @ApiModelProperty(required = true, value = "The code of the merchant account.")
172
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE)
173
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
174

175
  public String getMerchantAccountCode() {
176
    return merchantAccountCode;
×
177
  }
178

179

180
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT_CODE)
181
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
182
  public void setMerchantAccountCode(String merchantAccountCode) {
183
    this.merchantAccountCode = merchantAccountCode;
×
184
  }
×
185

186

187
  /**
188
   * Return true if this AccountFundsBelowThresholdNotificationContent object is equal to o.
189
   */
190
  @Override
191
  public boolean equals(Object o) {
192
    if (this == o) {
×
193
      return true;
×
194
    }
195
    if (o == null || getClass() != o.getClass()) {
×
196
      return false;
×
197
    }
198
    AccountFundsBelowThresholdNotificationContent accountFundsBelowThresholdNotificationContent = (AccountFundsBelowThresholdNotificationContent) o;
×
199
    return Objects.equals(this.accountCode, accountFundsBelowThresholdNotificationContent.accountCode) &&
×
200
        Objects.equals(this.balanceDate, accountFundsBelowThresholdNotificationContent.balanceDate) &&
×
201
        Objects.equals(this.currentFunds, accountFundsBelowThresholdNotificationContent.currentFunds) &&
×
202
        Objects.equals(this.fundThreshold, accountFundsBelowThresholdNotificationContent.fundThreshold) &&
×
203
        Objects.equals(this.merchantAccountCode, accountFundsBelowThresholdNotificationContent.merchantAccountCode);
×
204
  }
205

206
  @Override
207
  public int hashCode() {
208
    return Objects.hash(accountCode, balanceDate, currentFunds, fundThreshold, merchantAccountCode);
×
209
  }
210

211
  @Override
212
  public String toString() {
213
    StringBuilder sb = new StringBuilder();
×
214
    sb.append("class AccountFundsBelowThresholdNotificationContent {\n");
×
215
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
216
    sb.append("    balanceDate: ").append(toIndentedString(balanceDate)).append("\n");
×
217
    sb.append("    currentFunds: ").append(toIndentedString(currentFunds)).append("\n");
×
218
    sb.append("    fundThreshold: ").append(toIndentedString(fundThreshold)).append("\n");
×
219
    sb.append("    merchantAccountCode: ").append(toIndentedString(merchantAccountCode)).append("\n");
×
220
    sb.append("}");
×
221
    return sb.toString();
×
222
  }
223

224
  /**
225
   * Convert the given object to string with each line indented by 4 spaces
226
   * (except the first line).
227
   */
228
  private String toIndentedString(Object o) {
229
    if (o == null) {
×
230
      return "null";
×
231
    }
232
    return o.toString().replace("\n", "\n    ");
×
233
  }
234

235
/**
236
   * Create an instance of AccountFundsBelowThresholdNotificationContent given an JSON string
237
   *
238
   * @param jsonString JSON string
239
   * @return An instance of AccountFundsBelowThresholdNotificationContent
240
   * @throws JsonProcessingException if the JSON string is invalid with respect to AccountFundsBelowThresholdNotificationContent
241
   */
242
  public static AccountFundsBelowThresholdNotificationContent fromJson(String jsonString) throws JsonProcessingException {
243
    return JSON.getMapper().readValue(jsonString, AccountFundsBelowThresholdNotificationContent.class);
×
244
  }
245
/**
246
  * Convert an instance of AccountFundsBelowThresholdNotificationContent to an JSON string
247
  *
248
  * @return JSON string
249
  */
250
  public String toJson() throws JsonProcessingException {
251
    return JSON.getMapper().writeValueAsString(this);
×
252
  }
253
}
254

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