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

32

33
/**
34
 * TestNotificationConfigurationRequest
35
 */
36
@JsonPropertyOrder({
37
  TestNotificationConfigurationRequest.JSON_PROPERTY_EVENT_TYPES,
38
  TestNotificationConfigurationRequest.JSON_PROPERTY_NOTIFICATION_ID
39
})
40

41
public class TestNotificationConfigurationRequest {
42
  /**
43
   * Gets or Sets eventTypes
44
   */
45
  public enum EventTypesEnum {
×
46
    ACCOUNT_CLOSED("ACCOUNT_CLOSED"),
×
47
    
48
    ACCOUNT_CREATED("ACCOUNT_CREATED"),
×
49
    
50
    ACCOUNT_FUNDS_BELOW_THRESHOLD("ACCOUNT_FUNDS_BELOW_THRESHOLD"),
×
51
    
52
    ACCOUNT_HOLDER_CREATED("ACCOUNT_HOLDER_CREATED"),
×
53
    
54
    ACCOUNT_HOLDER_LIMIT_REACHED("ACCOUNT_HOLDER_LIMIT_REACHED"),
×
55
    
56
    ACCOUNT_HOLDER_MIGRATED("ACCOUNT_HOLDER_MIGRATED"),
×
57
    
58
    ACCOUNT_HOLDER_PAYOUT("ACCOUNT_HOLDER_PAYOUT"),
×
59
    
60
    ACCOUNT_HOLDER_STATUS_CHANGE("ACCOUNT_HOLDER_STATUS_CHANGE"),
×
61
    
62
    ACCOUNT_HOLDER_STORE_STATUS_CHANGE("ACCOUNT_HOLDER_STORE_STATUS_CHANGE"),
×
63
    
64
    ACCOUNT_HOLDER_UPCOMING_DEADLINE("ACCOUNT_HOLDER_UPCOMING_DEADLINE"),
×
65
    
66
    ACCOUNT_HOLDER_UPDATED("ACCOUNT_HOLDER_UPDATED"),
×
67
    
68
    ACCOUNT_HOLDER_VERIFICATION("ACCOUNT_HOLDER_VERIFICATION"),
×
69
    
70
    ACCOUNT_UPDATED("ACCOUNT_UPDATED"),
×
71
    
72
    BENEFICIARY_SETUP("BENEFICIARY_SETUP"),
×
73
    
74
    COMPENSATE_NEGATIVE_BALANCE("COMPENSATE_NEGATIVE_BALANCE"),
×
75
    
76
    DIRECT_DEBIT_INITIATED("DIRECT_DEBIT_INITIATED"),
×
77
    
78
    FUNDS_MIGRATED("FUNDS_MIGRATED"),
×
79
    
80
    PAYMENT_FAILURE("PAYMENT_FAILURE"),
×
81
    
82
    PENDING_CREDIT("PENDING_CREDIT"),
×
83
    
84
    REFUND_FUNDS_TRANSFER("REFUND_FUNDS_TRANSFER"),
×
85
    
86
    REPORT_AVAILABLE("REPORT_AVAILABLE"),
×
87
    
88
    SCHEDULED_REFUNDS("SCHEDULED_REFUNDS"),
×
89
    
90
    SCORE_SIGNAL_TRIGGERED("SCORE_SIGNAL_TRIGGERED"),
×
91
    
92
    TRANSFER_FUNDS("TRANSFER_FUNDS"),
×
93
    
94
    TRANSFER_NOT_PAIDOUT_TRANSFERS("TRANSFER_NOT_PAIDOUT_TRANSFERS");
×
95

96
    private String value;
97

98
    EventTypesEnum(String value) {
×
99
      this.value = value;
×
100
    }
×
101

102
    @JsonValue
103
    public String getValue() {
104
      return value;
×
105
    }
106

107
    @Override
108
    public String toString() {
109
      return String.valueOf(value);
×
110
    }
111

112
    @JsonCreator
113
    public static EventTypesEnum fromValue(String value) {
114
      for (EventTypesEnum b : EventTypesEnum.values()) {
×
115
        if (b.value.equals(value)) {
×
116
          return b;
×
117
        }
118
      }
119
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
120
    }
121
  }
122

123
  public static final String JSON_PROPERTY_EVENT_TYPES = "eventTypes";
124
  private List<EventTypesEnum> eventTypes = null;
×
125

126
  public static final String JSON_PROPERTY_NOTIFICATION_ID = "notificationId";
127
  private Long notificationId;
128

129
  public TestNotificationConfigurationRequest() { 
×
130
  }
×
131

132
  public TestNotificationConfigurationRequest eventTypes(List<EventTypesEnum> eventTypes) {
133
    this.eventTypes = eventTypes;
×
134
    return this;
×
135
  }
136

137
  public TestNotificationConfigurationRequest addEventTypesItem(EventTypesEnum eventTypesItem) {
138
    if (this.eventTypes == null) {
×
139
      this.eventTypes = new ArrayList<>();
×
140
    }
141
    this.eventTypes.add(eventTypesItem);
×
142
    return this;
×
143
  }
144

145
   /**
146
   * The event types to test.  If left blank, then all of the configured event types will be tested. &gt;Permitted values: &#x60;ACCOUNT_HOLDER_CREATED&#x60;, &#x60;ACCOUNT_CREATED&#x60;, &#x60;ACCOUNT_UPDATED&#x60;, &#x60;ACCOUNT_HOLDER_UPDATED&#x60;, &#x60;ACCOUNT_HOLDER_STATUS_CHANGE&#x60;, &#x60;ACCOUNT_HOLDER_STORE_STATUS_CHANGE&#x60; &#x60;ACCOUNT_HOLDER_VERIFICATION&#x60;, &#x60;ACCOUNT_HOLDER_LIMIT_REACHED&#x60;, &#x60;ACCOUNT_HOLDER_PAYOUT&#x60;, &#x60;PAYMENT_FAILURE&#x60;, &#x60;SCHEDULED_REFUNDS&#x60;, &#x60;REPORT_AVAILABLE&#x60;, &#x60;TRANSFER_FUNDS&#x60;, &#x60;BENEFICIARY_SETUP&#x60;, &#x60;COMPENSATE_NEGATIVE_BALANCE&#x60;.
147
   * @return eventTypes
148
  **/
149
  @ApiModelProperty(value = "The event types to test.  If left blank, then all of the configured event types will be tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`.")
150
  @JsonProperty(JSON_PROPERTY_EVENT_TYPES)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152

153
  public List<EventTypesEnum> getEventTypes() {
154
    return eventTypes;
×
155
  }
156

157

158
  @JsonProperty(JSON_PROPERTY_EVENT_TYPES)
159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
160
  public void setEventTypes(List<EventTypesEnum> eventTypes) {
161
    this.eventTypes = eventTypes;
×
162
  }
×
163

164

165
  public TestNotificationConfigurationRequest notificationId(Long notificationId) {
166
    this.notificationId = notificationId;
×
167
    return this;
×
168
  }
169

170
   /**
171
   * The ID of the notification subscription configuration to be tested.
172
   * @return notificationId
173
  **/
174
  @ApiModelProperty(required = true, value = "The ID of the notification subscription configuration to be tested.")
175
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_ID)
176
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177

178
  public Long getNotificationId() {
179
    return notificationId;
×
180
  }
181

182

183
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_ID)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185
  public void setNotificationId(Long notificationId) {
186
    this.notificationId = notificationId;
×
187
  }
×
188

189

190
  /**
191
   * Return true if this TestNotificationConfigurationRequest object is equal to o.
192
   */
193
  @Override
194
  public boolean equals(Object o) {
195
    if (this == o) {
×
196
      return true;
×
197
    }
198
    if (o == null || getClass() != o.getClass()) {
×
199
      return false;
×
200
    }
201
    TestNotificationConfigurationRequest testNotificationConfigurationRequest = (TestNotificationConfigurationRequest) o;
×
202
    return Objects.equals(this.eventTypes, testNotificationConfigurationRequest.eventTypes) &&
×
203
        Objects.equals(this.notificationId, testNotificationConfigurationRequest.notificationId);
×
204
  }
205

206
  @Override
207
  public int hashCode() {
208
    return Objects.hash(eventTypes, notificationId);
×
209
  }
210

211
  @Override
212
  public String toString() {
213
    StringBuilder sb = new StringBuilder();
×
214
    sb.append("class TestNotificationConfigurationRequest {\n");
×
215
    sb.append("    eventTypes: ").append(toIndentedString(eventTypes)).append("\n");
×
216
    sb.append("    notificationId: ").append(toIndentedString(notificationId)).append("\n");
×
217
    sb.append("}");
×
218
    return sb.toString();
×
219
  }
220

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

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

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