• 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/RefundFundsTransferNotificationContent.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.adyen.model.marketpaywebhooks.ErrorFieldType;
21
import com.adyen.model.marketpaywebhooks.OperationStatus;
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
 * RefundFundsTransferNotificationContent
37
 */
38
@JsonPropertyOrder({
39
  RefundFundsTransferNotificationContent.JSON_PROPERTY_AMOUNT,
40
  RefundFundsTransferNotificationContent.JSON_PROPERTY_INVALID_FIELDS,
41
  RefundFundsTransferNotificationContent.JSON_PROPERTY_MERCHANT_REFERENCE,
42
  RefundFundsTransferNotificationContent.JSON_PROPERTY_ORIGINAL_REFERENCE,
43
  RefundFundsTransferNotificationContent.JSON_PROPERTY_STATUS
44
})
45

46
public class RefundFundsTransferNotificationContent {
47
  public static final String JSON_PROPERTY_AMOUNT = "amount";
48
  private Amount amount;
49

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

53
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
54
  private String merchantReference;
55

56
  public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference";
57
  private String originalReference;
58

59
  public static final String JSON_PROPERTY_STATUS = "status";
60
  private OperationStatus status;
61

62
  public RefundFundsTransferNotificationContent() { 
×
63
  }
×
64

65
  public RefundFundsTransferNotificationContent amount(Amount amount) {
66
    this.amount = amount;
×
67
    return this;
×
68
  }
69

70
   /**
71
   * Get amount
72
   * @return amount
73
  **/
74
  @ApiModelProperty(required = true, value = "")
75
  @JsonProperty(JSON_PROPERTY_AMOUNT)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

78
  public Amount getAmount() {
79
    return amount;
×
80
  }
81

82

83
  @JsonProperty(JSON_PROPERTY_AMOUNT)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85
  public void setAmount(Amount amount) {
86
    this.amount = amount;
×
87
  }
×
88

89

90
  public RefundFundsTransferNotificationContent invalidFields(List<ErrorFieldType> invalidFields) {
91
    this.invalidFields = invalidFields;
×
92
    return this;
×
93
  }
94

95
  public RefundFundsTransferNotificationContent addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
96
    if (this.invalidFields == null) {
×
97
      this.invalidFields = new ArrayList<>();
×
98
    }
99
    this.invalidFields.add(invalidFieldsItem);
×
100
    return this;
×
101
  }
102

103
   /**
104
   * Invalid fields list.
105
   * @return invalidFields
106
  **/
107
  @ApiModelProperty(value = "Invalid fields list.")
108
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110

111
  public List<ErrorFieldType> getInvalidFields() {
112
    return invalidFields;
×
113
  }
114

115

116
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
119
    this.invalidFields = invalidFields;
×
120
  }
×
121

122

123
  public RefundFundsTransferNotificationContent merchantReference(String merchantReference) {
124
    this.merchantReference = merchantReference;
×
125
    return this;
×
126
  }
127

128
   /**
129
   * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
130
   * @return merchantReference
131
  **/
132
  @ApiModelProperty(value = "A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.")
133
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135

136
  public String getMerchantReference() {
137
    return merchantReference;
×
138
  }
139

140

141
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143
  public void setMerchantReference(String merchantReference) {
144
    this.merchantReference = merchantReference;
×
145
  }
×
146

147

148
  public RefundFundsTransferNotificationContent originalReference(String originalReference) {
149
    this.originalReference = originalReference;
×
150
    return this;
×
151
  }
152

153
   /**
154
   * A PSP reference of the original fund transfer.
155
   * @return originalReference
156
  **/
157
  @ApiModelProperty(required = true, value = "A PSP reference of the original fund transfer.")
158
  @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE)
159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
160

161
  public String getOriginalReference() {
162
    return originalReference;
×
163
  }
164

165

166
  @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE)
167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
168
  public void setOriginalReference(String originalReference) {
169
    this.originalReference = originalReference;
×
170
  }
×
171

172

173
  public RefundFundsTransferNotificationContent status(OperationStatus status) {
174
    this.status = status;
×
175
    return this;
×
176
  }
177

178
   /**
179
   * Get status
180
   * @return status
181
  **/
182
  @ApiModelProperty(value = "")
183
  @JsonProperty(JSON_PROPERTY_STATUS)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185

186
  public OperationStatus getStatus() {
187
    return status;
×
188
  }
189

190

191
  @JsonProperty(JSON_PROPERTY_STATUS)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193
  public void setStatus(OperationStatus status) {
194
    this.status = status;
×
195
  }
×
196

197

198
  /**
199
   * Return true if this RefundFundsTransferNotificationContent object is equal to o.
200
   */
201
  @Override
202
  public boolean equals(Object o) {
203
    if (this == o) {
×
204
      return true;
×
205
    }
206
    if (o == null || getClass() != o.getClass()) {
×
207
      return false;
×
208
    }
209
    RefundFundsTransferNotificationContent refundFundsTransferNotificationContent = (RefundFundsTransferNotificationContent) o;
×
210
    return Objects.equals(this.amount, refundFundsTransferNotificationContent.amount) &&
×
211
        Objects.equals(this.invalidFields, refundFundsTransferNotificationContent.invalidFields) &&
×
212
        Objects.equals(this.merchantReference, refundFundsTransferNotificationContent.merchantReference) &&
×
213
        Objects.equals(this.originalReference, refundFundsTransferNotificationContent.originalReference) &&
×
214
        Objects.equals(this.status, refundFundsTransferNotificationContent.status);
×
215
  }
216

217
  @Override
218
  public int hashCode() {
219
    return Objects.hash(amount, invalidFields, merchantReference, originalReference, status);
×
220
  }
221

222
  @Override
223
  public String toString() {
224
    StringBuilder sb = new StringBuilder();
×
225
    sb.append("class RefundFundsTransferNotificationContent {\n");
×
226
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
227
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
228
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
229
    sb.append("    originalReference: ").append(toIndentedString(originalReference)).append("\n");
×
230
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
231
    sb.append("}");
×
232
    return sb.toString();
×
233
  }
234

235
  /**
236
   * Convert the given object to string with each line indented by 4 spaces
237
   * (except the first line).
238
   */
239
  private String toIndentedString(Object o) {
240
    if (o == null) {
×
241
      return "null";
×
242
    }
243
    return o.toString().replace("\n", "\n    ");
×
244
  }
245

246
/**
247
   * Create an instance of RefundFundsTransferNotificationContent given an JSON string
248
   *
249
   * @param jsonString JSON string
250
   * @return An instance of RefundFundsTransferNotificationContent
251
   * @throws JsonProcessingException if the JSON string is invalid with respect to RefundFundsTransferNotificationContent
252
   */
253
  public static RefundFundsTransferNotificationContent fromJson(String jsonString) throws JsonProcessingException {
254
    return JSON.getMapper().readValue(jsonString, RefundFundsTransferNotificationContent.class);
×
255
  }
256
/**
257
  * Convert an instance of RefundFundsTransferNotificationContent to an JSON string
258
  *
259
  * @return JSON string
260
  */
261
  public String toJson() throws JsonProcessingException {
262
    return JSON.getMapper().writeValueAsString(this);
×
263
  }
264
}
265

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