• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #2661

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

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/marketpayconfiguration/GetNotificationConfigurationListResponse.java
1
/*
2
 * Notification Configuration API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Notification Configuration API provides endpoints for setting up and testing notifications that inform you of events on your platform, for example when a verification check or a payout has been completed.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic/notifications). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Notification Configuration API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Notification/v6/createNotificationConfiguration ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayconfiguration;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayconfiguration.ErrorFieldType;
21
import com.adyen.model.marketpayconfiguration.NotificationConfigurationDetails;
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
 * GetNotificationConfigurationListResponse
37
 */
38
@JsonPropertyOrder({
39
  GetNotificationConfigurationListResponse.JSON_PROPERTY_CONFIGURATIONS,
40
  GetNotificationConfigurationListResponse.JSON_PROPERTY_INVALID_FIELDS,
41
  GetNotificationConfigurationListResponse.JSON_PROPERTY_PSP_REFERENCE,
42
  GetNotificationConfigurationListResponse.JSON_PROPERTY_RESULT_CODE
43
})
44

45
public class GetNotificationConfigurationListResponse {
46
  public static final String JSON_PROPERTY_CONFIGURATIONS = "configurations";
47
  private List<NotificationConfigurationDetails> configurations = null;
×
48

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

52
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
53
  private String pspReference;
54

55
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
56
  private String resultCode;
57

58
  public GetNotificationConfigurationListResponse() { 
×
59
  }
×
60

61
  public GetNotificationConfigurationListResponse configurations(List<NotificationConfigurationDetails> configurations) {
62
    this.configurations = configurations;
×
63
    return this;
×
64
  }
65

66
  public GetNotificationConfigurationListResponse addConfigurationsItem(NotificationConfigurationDetails configurationsItem) {
67
    if (this.configurations == null) {
×
68
      this.configurations = new ArrayList<>();
×
69
    }
70
    this.configurations.add(configurationsItem);
×
71
    return this;
×
72
  }
73

74
   /**
75
   * Details of the notification subscription configurations.
76
   * @return configurations
77
  **/
78
  @ApiModelProperty(value = "Details of the notification subscription configurations.")
79
  @JsonProperty(JSON_PROPERTY_CONFIGURATIONS)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81

82
  public List<NotificationConfigurationDetails> getConfigurations() {
83
    return configurations;
×
84
  }
85

86

87
  @JsonProperty(JSON_PROPERTY_CONFIGURATIONS)
88
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89
  public void setConfigurations(List<NotificationConfigurationDetails> configurations) {
90
    this.configurations = configurations;
×
91
  }
×
92

93

94
  public GetNotificationConfigurationListResponse invalidFields(List<ErrorFieldType> invalidFields) {
95
    this.invalidFields = invalidFields;
×
96
    return this;
×
97
  }
98

99
  public GetNotificationConfigurationListResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
100
    if (this.invalidFields == null) {
×
101
      this.invalidFields = new ArrayList<>();
×
102
    }
103
    this.invalidFields.add(invalidFieldsItem);
×
104
    return this;
×
105
  }
106

107
   /**
108
   * Contains field validation errors that would prevent requests from being processed.
109
   * @return invalidFields
110
  **/
111
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
112
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114

115
  public List<ErrorFieldType> getInvalidFields() {
116
    return invalidFields;
×
117
  }
118

119

120
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
123
    this.invalidFields = invalidFields;
×
124
  }
×
125

126

127
  public GetNotificationConfigurationListResponse pspReference(String pspReference) {
128
    this.pspReference = pspReference;
×
129
    return this;
×
130
  }
131

132
   /**
133
   * The reference of a request. Can be used to uniquely identify the request.
134
   * @return pspReference
135
  **/
136
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
137
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139

140
  public String getPspReference() {
141
    return pspReference;
×
142
  }
143

144

145
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147
  public void setPspReference(String pspReference) {
148
    this.pspReference = pspReference;
×
149
  }
×
150

151

152
  public GetNotificationConfigurationListResponse resultCode(String resultCode) {
153
    this.resultCode = resultCode;
×
154
    return this;
×
155
  }
156

157
   /**
158
   * The result code.
159
   * @return resultCode
160
  **/
161
  @ApiModelProperty(value = "The result code.")
162
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164

165
  public String getResultCode() {
166
    return resultCode;
×
167
  }
168

169

170
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172
  public void setResultCode(String resultCode) {
173
    this.resultCode = resultCode;
×
174
  }
×
175

176

177
  /**
178
   * Return true if this GetNotificationConfigurationListResponse object is equal to o.
179
   */
180
  @Override
181
  public boolean equals(Object o) {
182
    if (this == o) {
×
183
      return true;
×
184
    }
185
    if (o == null || getClass() != o.getClass()) {
×
186
      return false;
×
187
    }
188
    GetNotificationConfigurationListResponse getNotificationConfigurationListResponse = (GetNotificationConfigurationListResponse) o;
×
189
    return Objects.equals(this.configurations, getNotificationConfigurationListResponse.configurations) &&
×
190
        Objects.equals(this.invalidFields, getNotificationConfigurationListResponse.invalidFields) &&
×
191
        Objects.equals(this.pspReference, getNotificationConfigurationListResponse.pspReference) &&
×
192
        Objects.equals(this.resultCode, getNotificationConfigurationListResponse.resultCode);
×
193
  }
194

195
  @Override
196
  public int hashCode() {
197
    return Objects.hash(configurations, invalidFields, pspReference, resultCode);
×
198
  }
199

200
  @Override
201
  public String toString() {
202
    StringBuilder sb = new StringBuilder();
×
203
    sb.append("class GetNotificationConfigurationListResponse {\n");
×
204
    sb.append("    configurations: ").append(toIndentedString(configurations)).append("\n");
×
205
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
206
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
207
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
208
    sb.append("}");
×
209
    return sb.toString();
×
210
  }
211

212
  /**
213
   * Convert the given object to string with each line indented by 4 spaces
214
   * (except the first line).
215
   */
216
  private String toIndentedString(Object o) {
217
    if (o == null) {
×
218
      return "null";
×
219
    }
220
    return o.toString().replace("\n", "\n    ");
×
221
  }
222

223
/**
224
   * Create an instance of GetNotificationConfigurationListResponse given an JSON string
225
   *
226
   * @param jsonString JSON string
227
   * @return An instance of GetNotificationConfigurationListResponse
228
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetNotificationConfigurationListResponse
229
   */
230
  public static GetNotificationConfigurationListResponse fromJson(String jsonString) throws JsonProcessingException {
231
    return JSON.getMapper().readValue(jsonString, GetNotificationConfigurationListResponse.class);
×
232
  }
233
/**
234
  * Convert an instance of GetNotificationConfigurationListResponse to an JSON string
235
  *
236
  * @return JSON string
237
  */
238
  public String toJson() throws JsonProcessingException {
239
    return JSON.getMapper().writeValueAsString(this);
×
240
  }
241
}
242

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