• 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/ReportAvailableNotification.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.NotificationErrorContainer;
20
import com.adyen.model.marketpaywebhooks.ReportAvailableNotificationContent;
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.time.OffsetDateTime;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * ReportAvailableNotification
35
 */
36
@JsonPropertyOrder({
37
  ReportAvailableNotification.JSON_PROPERTY_CONTENT,
38
  ReportAvailableNotification.JSON_PROPERTY_ERROR,
39
  ReportAvailableNotification.JSON_PROPERTY_EVENT_DATE,
40
  ReportAvailableNotification.JSON_PROPERTY_EVENT_TYPE,
41
  ReportAvailableNotification.JSON_PROPERTY_EXECUTING_USER_KEY,
42
  ReportAvailableNotification.JSON_PROPERTY_LIVE,
43
  ReportAvailableNotification.JSON_PROPERTY_PSP_REFERENCE
44
})
45

46
public class ReportAvailableNotification {
47
  public static final String JSON_PROPERTY_CONTENT = "content";
48
  private ReportAvailableNotificationContent content;
49

50
  public static final String JSON_PROPERTY_ERROR = "error";
51
  private NotificationErrorContainer error;
52

53
  public static final String JSON_PROPERTY_EVENT_DATE = "eventDate";
54
  private OffsetDateTime eventDate;
55

56
  public static final String JSON_PROPERTY_EVENT_TYPE = "eventType";
57
  private String eventType;
58

59
  public static final String JSON_PROPERTY_EXECUTING_USER_KEY = "executingUserKey";
60
  private String executingUserKey;
61

62
  public static final String JSON_PROPERTY_LIVE = "live";
63
  private Boolean live;
64

65
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
66
  private String pspReference;
67

68
  public ReportAvailableNotification() { 
×
69
  }
×
70

71
  public ReportAvailableNotification content(ReportAvailableNotificationContent content) {
72
    this.content = content;
×
73
    return this;
×
74
  }
75

76
   /**
77
   * Get content
78
   * @return content
79
  **/
80
  @ApiModelProperty(value = "")
81
  @JsonProperty(JSON_PROPERTY_CONTENT)
82
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
83

84
  public ReportAvailableNotificationContent getContent() {
85
    return content;
×
86
  }
87

88

89
  @JsonProperty(JSON_PROPERTY_CONTENT)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91
  public void setContent(ReportAvailableNotificationContent content) {
92
    this.content = content;
×
93
  }
×
94

95

96
  public ReportAvailableNotification error(NotificationErrorContainer error) {
97
    this.error = error;
×
98
    return this;
×
99
  }
100

101
   /**
102
   * Get error
103
   * @return error
104
  **/
105
  @ApiModelProperty(value = "")
106
  @JsonProperty(JSON_PROPERTY_ERROR)
107
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
108

109
  public NotificationErrorContainer getError() {
110
    return error;
×
111
  }
112

113

114
  @JsonProperty(JSON_PROPERTY_ERROR)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116
  public void setError(NotificationErrorContainer error) {
117
    this.error = error;
×
118
  }
×
119

120

121
  public ReportAvailableNotification eventDate(OffsetDateTime eventDate) {
122
    this.eventDate = eventDate;
×
123
    return this;
×
124
  }
125

126
   /**
127
   * The date and time when an event has been completed.
128
   * @return eventDate
129
  **/
130
  @ApiModelProperty(required = true, value = "The date and time when an event has been completed.")
131
  @JsonProperty(JSON_PROPERTY_EVENT_DATE)
132
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133

134
  public OffsetDateTime getEventDate() {
135
    return eventDate;
×
136
  }
137

138

139
  @JsonProperty(JSON_PROPERTY_EVENT_DATE)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141
  public void setEventDate(OffsetDateTime eventDate) {
142
    this.eventDate = eventDate;
×
143
  }
×
144

145

146
  public ReportAvailableNotification eventType(String eventType) {
147
    this.eventType = eventType;
×
148
    return this;
×
149
  }
150

151
   /**
152
   * The event type of the notification.
153
   * @return eventType
154
  **/
155
  @ApiModelProperty(required = true, value = "The event type of the notification.")
156
  @JsonProperty(JSON_PROPERTY_EVENT_TYPE)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158

159
  public String getEventType() {
160
    return eventType;
×
161
  }
162

163

164
  @JsonProperty(JSON_PROPERTY_EVENT_TYPE)
165
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
166
  public void setEventType(String eventType) {
167
    this.eventType = eventType;
×
168
  }
×
169

170

171
  public ReportAvailableNotification executingUserKey(String executingUserKey) {
172
    this.executingUserKey = executingUserKey;
×
173
    return this;
×
174
  }
175

176
   /**
177
   * The user or process that has triggered the notification.
178
   * @return executingUserKey
179
  **/
180
  @ApiModelProperty(required = true, value = "The user or process that has triggered the notification.")
181
  @JsonProperty(JSON_PROPERTY_EXECUTING_USER_KEY)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183

184
  public String getExecutingUserKey() {
185
    return executingUserKey;
×
186
  }
187

188

189
  @JsonProperty(JSON_PROPERTY_EXECUTING_USER_KEY)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191
  public void setExecutingUserKey(String executingUserKey) {
192
    this.executingUserKey = executingUserKey;
×
193
  }
×
194

195

196
  public ReportAvailableNotification live(Boolean live) {
197
    this.live = live;
×
198
    return this;
×
199
  }
200

201
   /**
202
   * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment.
203
   * @return live
204
  **/
205
  @ApiModelProperty(required = true, value = "Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment.")
206
  @JsonProperty(JSON_PROPERTY_LIVE)
207
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208

209
  public Boolean getLive() {
210
    return live;
×
211
  }
212

213

214
  @JsonProperty(JSON_PROPERTY_LIVE)
215
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
216
  public void setLive(Boolean live) {
217
    this.live = live;
×
218
  }
×
219

220

221
  public ReportAvailableNotification pspReference(String pspReference) {
222
    this.pspReference = pspReference;
×
223
    return this;
×
224
  }
225

226
   /**
227
   * The PSP reference of the request from which the notification originates.
228
   * @return pspReference
229
  **/
230
  @ApiModelProperty(required = true, value = "The PSP reference of the request from which the notification originates.")
231
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
232
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
233

234
  public String getPspReference() {
235
    return pspReference;
×
236
  }
237

238

239
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
240
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241
  public void setPspReference(String pspReference) {
242
    this.pspReference = pspReference;
×
243
  }
×
244

245

246
  /**
247
   * Return true if this ReportAvailableNotification object is equal to o.
248
   */
249
  @Override
250
  public boolean equals(Object o) {
251
    if (this == o) {
×
252
      return true;
×
253
    }
254
    if (o == null || getClass() != o.getClass()) {
×
255
      return false;
×
256
    }
257
    ReportAvailableNotification reportAvailableNotification = (ReportAvailableNotification) o;
×
258
    return Objects.equals(this.content, reportAvailableNotification.content) &&
×
259
        Objects.equals(this.error, reportAvailableNotification.error) &&
×
260
        Objects.equals(this.eventDate, reportAvailableNotification.eventDate) &&
×
261
        Objects.equals(this.eventType, reportAvailableNotification.eventType) &&
×
262
        Objects.equals(this.executingUserKey, reportAvailableNotification.executingUserKey) &&
×
263
        Objects.equals(this.live, reportAvailableNotification.live) &&
×
264
        Objects.equals(this.pspReference, reportAvailableNotification.pspReference);
×
265
  }
266

267
  @Override
268
  public int hashCode() {
269
    return Objects.hash(content, error, eventDate, eventType, executingUserKey, live, pspReference);
×
270
  }
271

272
  @Override
273
  public String toString() {
274
    StringBuilder sb = new StringBuilder();
×
275
    sb.append("class ReportAvailableNotification {\n");
×
276
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
×
277
    sb.append("    error: ").append(toIndentedString(error)).append("\n");
×
278
    sb.append("    eventDate: ").append(toIndentedString(eventDate)).append("\n");
×
279
    sb.append("    eventType: ").append(toIndentedString(eventType)).append("\n");
×
280
    sb.append("    executingUserKey: ").append(toIndentedString(executingUserKey)).append("\n");
×
281
    sb.append("    live: ").append(toIndentedString(live)).append("\n");
×
282
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
283
    sb.append("}");
×
284
    return sb.toString();
×
285
  }
286

287
  /**
288
   * Convert the given object to string with each line indented by 4 spaces
289
   * (except the first line).
290
   */
291
  private String toIndentedString(Object o) {
292
    if (o == null) {
×
293
      return "null";
×
294
    }
295
    return o.toString().replace("\n", "\n    ");
×
296
  }
297

298
/**
299
   * Create an instance of ReportAvailableNotification given an JSON string
300
   *
301
   * @param jsonString JSON string
302
   * @return An instance of ReportAvailableNotification
303
   * @throws JsonProcessingException if the JSON string is invalid with respect to ReportAvailableNotification
304
   */
305
  public static ReportAvailableNotification fromJson(String jsonString) throws JsonProcessingException {
306
    return JSON.getMapper().readValue(jsonString, ReportAvailableNotification.class);
×
307
  }
308
/**
309
  * Convert an instance of ReportAvailableNotification to an JSON string
310
  *
311
  * @return JSON string
312
  */
313
  public String toJson() throws JsonProcessingException {
314
    return JSON.getMapper().writeValueAsString(this);
×
315
  }
316
}
317

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