• 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/ReportAvailableNotificationContent.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.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import java.time.OffsetDateTime;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * ReportAvailableNotificationContent
33
 */
34
@JsonPropertyOrder({
35
  ReportAvailableNotificationContent.JSON_PROPERTY_ACCOUNT_CODE,
36
  ReportAvailableNotificationContent.JSON_PROPERTY_ACCOUNT_TYPE,
37
  ReportAvailableNotificationContent.JSON_PROPERTY_EVENT_DATE,
38
  ReportAvailableNotificationContent.JSON_PROPERTY_REMOTE_ACCESS_URL,
39
  ReportAvailableNotificationContent.JSON_PROPERTY_SUCCESS
40
})
41

42
public class ReportAvailableNotificationContent {
43
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
44
  private String accountCode;
45

46
  public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
47
  private String accountType;
48

49
  public static final String JSON_PROPERTY_EVENT_DATE = "eventDate";
50
  private OffsetDateTime eventDate;
51

52
  public static final String JSON_PROPERTY_REMOTE_ACCESS_URL = "remoteAccessUrl";
53
  private String remoteAccessUrl;
54

55
  public static final String JSON_PROPERTY_SUCCESS = "success";
56
  private Boolean success;
57

58
  public ReportAvailableNotificationContent() { 
×
59
  }
×
60

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

66
   /**
67
   * The code of the Account to which the report applies.
68
   * @return accountCode
69
  **/
70
  @ApiModelProperty(value = "The code of the Account to which the report applies.")
71
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

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

78

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

85

86
  public ReportAvailableNotificationContent accountType(String accountType) {
87
    this.accountType = accountType;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * The type of Account to which the report applies.
93
   * @return accountType
94
  **/
95
  @ApiModelProperty(value = "The type of Account to which the report applies.")
96
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getAccountType() {
100
    return accountType;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setAccountType(String accountType) {
107
    this.accountType = accountType;
×
108
  }
×
109

110

111
  public ReportAvailableNotificationContent eventDate(OffsetDateTime eventDate) {
112
    this.eventDate = eventDate;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The date of the event to which the report applies.
118
   * @return eventDate
119
  **/
120
  @ApiModelProperty(value = "The date of the event to which the report applies.")
121
  @JsonProperty(JSON_PROPERTY_EVENT_DATE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public OffsetDateTime getEventDate() {
125
    return eventDate;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_EVENT_DATE)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setEventDate(OffsetDateTime eventDate) {
132
    this.eventDate = eventDate;
×
133
  }
×
134

135

136
  public ReportAvailableNotificationContent remoteAccessUrl(String remoteAccessUrl) {
137
    this.remoteAccessUrl = remoteAccessUrl;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * The URL at which the report can be accessed.
143
   * @return remoteAccessUrl
144
  **/
145
  @ApiModelProperty(value = "The URL at which the report can be accessed.")
146
  @JsonProperty(JSON_PROPERTY_REMOTE_ACCESS_URL)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public String getRemoteAccessUrl() {
150
    return remoteAccessUrl;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_REMOTE_ACCESS_URL)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setRemoteAccessUrl(String remoteAccessUrl) {
157
    this.remoteAccessUrl = remoteAccessUrl;
×
158
  }
×
159

160

161
  public ReportAvailableNotificationContent success(Boolean success) {
162
    this.success = success;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * Indicates whether the event resulted in a success.
168
   * @return success
169
  **/
170
  @ApiModelProperty(value = "Indicates whether the event resulted in a success.")
171
  @JsonProperty(JSON_PROPERTY_SUCCESS)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public Boolean getSuccess() {
175
    return success;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_SUCCESS)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setSuccess(Boolean success) {
182
    this.success = success;
×
183
  }
×
184

185

186
  /**
187
   * Return true if this ReportAvailableNotificationContent object is equal to o.
188
   */
189
  @Override
190
  public boolean equals(Object o) {
191
    if (this == o) {
×
192
      return true;
×
193
    }
194
    if (o == null || getClass() != o.getClass()) {
×
195
      return false;
×
196
    }
197
    ReportAvailableNotificationContent reportAvailableNotificationContent = (ReportAvailableNotificationContent) o;
×
198
    return Objects.equals(this.accountCode, reportAvailableNotificationContent.accountCode) &&
×
199
        Objects.equals(this.accountType, reportAvailableNotificationContent.accountType) &&
×
200
        Objects.equals(this.eventDate, reportAvailableNotificationContent.eventDate) &&
×
201
        Objects.equals(this.remoteAccessUrl, reportAvailableNotificationContent.remoteAccessUrl) &&
×
202
        Objects.equals(this.success, reportAvailableNotificationContent.success);
×
203
  }
204

205
  @Override
206
  public int hashCode() {
207
    return Objects.hash(accountCode, accountType, eventDate, remoteAccessUrl, success);
×
208
  }
209

210
  @Override
211
  public String toString() {
212
    StringBuilder sb = new StringBuilder();
×
213
    sb.append("class ReportAvailableNotificationContent {\n");
×
214
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
215
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
×
216
    sb.append("    eventDate: ").append(toIndentedString(eventDate)).append("\n");
×
217
    sb.append("    remoteAccessUrl: ").append(toIndentedString(remoteAccessUrl)).append("\n");
×
218
    sb.append("    success: ").append(toIndentedString(success)).append("\n");
×
219
    sb.append("}");
×
220
    return sb.toString();
×
221
  }
222

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

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

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