• 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/ScheduledRefundsNotificationContent.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.ErrorFieldType;
20
import com.adyen.model.marketpaywebhooks.RefundResult;
21
import com.adyen.model.marketpaywebhooks.Transaction;
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
 * ScheduledRefundsNotificationContent
37
 */
38
@JsonPropertyOrder({
39
  ScheduledRefundsNotificationContent.JSON_PROPERTY_ACCOUNT_CODE,
40
  ScheduledRefundsNotificationContent.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
41
  ScheduledRefundsNotificationContent.JSON_PROPERTY_INVALID_FIELDS,
42
  ScheduledRefundsNotificationContent.JSON_PROPERTY_LAST_PAYOUT,
43
  ScheduledRefundsNotificationContent.JSON_PROPERTY_REFUND_RESULTS
44
})
45

46
public class ScheduledRefundsNotificationContent {
47
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
48
  private String accountCode;
49

50
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
51
  private String accountHolderCode;
52

53
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
54
  private List<ErrorFieldType> invalidFields = null;
×
55

56
  public static final String JSON_PROPERTY_LAST_PAYOUT = "lastPayout";
57
  private Transaction lastPayout;
58

59
  public static final String JSON_PROPERTY_REFUND_RESULTS = "refundResults";
60
  private List<RefundResult> refundResults = null;
×
61

62
  public ScheduledRefundsNotificationContent() { 
×
63
  }
×
64

65
  public ScheduledRefundsNotificationContent accountCode(String accountCode) {
66
    this.accountCode = accountCode;
×
67
    return this;
×
68
  }
69

70
   /**
71
   * The code of the account.
72
   * @return accountCode
73
  **/
74
  @ApiModelProperty(value = "The code of the account.")
75
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

78
  public String getAccountCode() {
79
    return accountCode;
×
80
  }
81

82

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

89

90
  public ScheduledRefundsNotificationContent accountHolderCode(String accountHolderCode) {
91
    this.accountHolderCode = accountHolderCode;
×
92
    return this;
×
93
  }
94

95
   /**
96
   * The code of the Account Holder.
97
   * @return accountHolderCode
98
  **/
99
  @ApiModelProperty(value = "The code of the Account Holder.")
100
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102

103
  public String getAccountHolderCode() {
104
    return accountHolderCode;
×
105
  }
106

107

108
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110
  public void setAccountHolderCode(String accountHolderCode) {
111
    this.accountHolderCode = accountHolderCode;
×
112
  }
×
113

114

115
  public ScheduledRefundsNotificationContent invalidFields(List<ErrorFieldType> invalidFields) {
116
    this.invalidFields = invalidFields;
×
117
    return this;
×
118
  }
119

120
  public ScheduledRefundsNotificationContent addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
121
    if (this.invalidFields == null) {
×
122
      this.invalidFields = new ArrayList<>();
×
123
    }
124
    this.invalidFields.add(invalidFieldsItem);
×
125
    return this;
×
126
  }
127

128
   /**
129
   * Invalid fields list.
130
   * @return invalidFields
131
  **/
132
  @ApiModelProperty(value = "Invalid fields list.")
133
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135

136
  public List<ErrorFieldType> getInvalidFields() {
137
    return invalidFields;
×
138
  }
139

140

141
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
144
    this.invalidFields = invalidFields;
×
145
  }
×
146

147

148
  public ScheduledRefundsNotificationContent lastPayout(Transaction lastPayout) {
149
    this.lastPayout = lastPayout;
×
150
    return this;
×
151
  }
152

153
   /**
154
   * Get lastPayout
155
   * @return lastPayout
156
  **/
157
  @ApiModelProperty(value = "")
158
  @JsonProperty(JSON_PROPERTY_LAST_PAYOUT)
159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
160

161
  public Transaction getLastPayout() {
162
    return lastPayout;
×
163
  }
164

165

166
  @JsonProperty(JSON_PROPERTY_LAST_PAYOUT)
167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
168
  public void setLastPayout(Transaction lastPayout) {
169
    this.lastPayout = lastPayout;
×
170
  }
×
171

172

173
  public ScheduledRefundsNotificationContent refundResults(List<RefundResult> refundResults) {
174
    this.refundResults = refundResults;
×
175
    return this;
×
176
  }
177

178
  public ScheduledRefundsNotificationContent addRefundResultsItem(RefundResult refundResultsItem) {
179
    if (this.refundResults == null) {
×
180
      this.refundResults = new ArrayList<>();
×
181
    }
182
    this.refundResults.add(refundResultsItem);
×
183
    return this;
×
184
  }
185

186
   /**
187
   * A list of the refunds that have been scheduled and their results.
188
   * @return refundResults
189
  **/
190
  @ApiModelProperty(value = "A list of the refunds that have been scheduled and their results.")
191
  @JsonProperty(JSON_PROPERTY_REFUND_RESULTS)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193

194
  public List<RefundResult> getRefundResults() {
195
    return refundResults;
×
196
  }
197

198

199
  @JsonProperty(JSON_PROPERTY_REFUND_RESULTS)
200
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
201
  public void setRefundResults(List<RefundResult> refundResults) {
202
    this.refundResults = refundResults;
×
203
  }
×
204

205

206
  /**
207
   * Return true if this ScheduledRefundsNotificationContent object is equal to o.
208
   */
209
  @Override
210
  public boolean equals(Object o) {
211
    if (this == o) {
×
212
      return true;
×
213
    }
214
    if (o == null || getClass() != o.getClass()) {
×
215
      return false;
×
216
    }
217
    ScheduledRefundsNotificationContent scheduledRefundsNotificationContent = (ScheduledRefundsNotificationContent) o;
×
218
    return Objects.equals(this.accountCode, scheduledRefundsNotificationContent.accountCode) &&
×
219
        Objects.equals(this.accountHolderCode, scheduledRefundsNotificationContent.accountHolderCode) &&
×
220
        Objects.equals(this.invalidFields, scheduledRefundsNotificationContent.invalidFields) &&
×
221
        Objects.equals(this.lastPayout, scheduledRefundsNotificationContent.lastPayout) &&
×
222
        Objects.equals(this.refundResults, scheduledRefundsNotificationContent.refundResults);
×
223
  }
224

225
  @Override
226
  public int hashCode() {
227
    return Objects.hash(accountCode, accountHolderCode, invalidFields, lastPayout, refundResults);
×
228
  }
229

230
  @Override
231
  public String toString() {
232
    StringBuilder sb = new StringBuilder();
×
233
    sb.append("class ScheduledRefundsNotificationContent {\n");
×
234
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
235
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
236
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
237
    sb.append("    lastPayout: ").append(toIndentedString(lastPayout)).append("\n");
×
238
    sb.append("    refundResults: ").append(toIndentedString(refundResults)).append("\n");
×
239
    sb.append("}");
×
240
    return sb.toString();
×
241
  }
242

243
  /**
244
   * Convert the given object to string with each line indented by 4 spaces
245
   * (except the first line).
246
   */
247
  private String toIndentedString(Object o) {
248
    if (o == null) {
×
249
      return "null";
×
250
    }
251
    return o.toString().replace("\n", "\n    ");
×
252
  }
253

254
/**
255
   * Create an instance of ScheduledRefundsNotificationContent given an JSON string
256
   *
257
   * @param jsonString JSON string
258
   * @return An instance of ScheduledRefundsNotificationContent
259
   * @throws JsonProcessingException if the JSON string is invalid with respect to ScheduledRefundsNotificationContent
260
   */
261
  public static ScheduledRefundsNotificationContent fromJson(String jsonString) throws JsonProcessingException {
262
    return JSON.getMapper().readValue(jsonString, ScheduledRefundsNotificationContent.class);
×
263
  }
264
/**
265
  * Convert an instance of ScheduledRefundsNotificationContent to an JSON string
266
  *
267
  * @return JSON string
268
  */
269
  public String toJson() throws JsonProcessingException {
270
    return JSON.getMapper().writeValueAsString(this);
×
271
  }
272
}
273

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