• 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/DeleteNotificationConfigurationRequest.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
 * DeleteNotificationConfigurationRequest
35
 */
36
@JsonPropertyOrder({
37
  DeleteNotificationConfigurationRequest.JSON_PROPERTY_NOTIFICATION_IDS
38
})
39

40
public class DeleteNotificationConfigurationRequest {
41
  public static final String JSON_PROPERTY_NOTIFICATION_IDS = "notificationIds";
42
  private List<Long> notificationIds = new ArrayList<>();
×
43

44
  public DeleteNotificationConfigurationRequest() { 
×
45
  }
×
46

47
  public DeleteNotificationConfigurationRequest notificationIds(List<Long> notificationIds) {
48
    this.notificationIds = notificationIds;
×
49
    return this;
×
50
  }
51

52
  public DeleteNotificationConfigurationRequest addNotificationIdsItem(Long notificationIdsItem) {
53
    this.notificationIds.add(notificationIdsItem);
×
54
    return this;
×
55
  }
56

57
   /**
58
   * A list of IDs of the notification subscription configurations to be deleted.
59
   * @return notificationIds
60
  **/
61
  @ApiModelProperty(required = true, value = "A list of IDs of the notification subscription configurations to be deleted.")
62
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_IDS)
63
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64

65
  public List<Long> getNotificationIds() {
66
    return notificationIds;
×
67
  }
68

69

70
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_IDS)
71
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72
  public void setNotificationIds(List<Long> notificationIds) {
73
    this.notificationIds = notificationIds;
×
74
  }
×
75

76

77
  /**
78
   * Return true if this DeleteNotificationConfigurationRequest object is equal to o.
79
   */
80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
88
    DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest = (DeleteNotificationConfigurationRequest) o;
×
89
    return Objects.equals(this.notificationIds, deleteNotificationConfigurationRequest.notificationIds);
×
90
  }
91

92
  @Override
93
  public int hashCode() {
94
    return Objects.hash(notificationIds);
×
95
  }
96

97
  @Override
98
  public String toString() {
99
    StringBuilder sb = new StringBuilder();
×
100
    sb.append("class DeleteNotificationConfigurationRequest {\n");
×
101
    sb.append("    notificationIds: ").append(toIndentedString(notificationIds)).append("\n");
×
102
    sb.append("}");
×
103
    return sb.toString();
×
104
  }
105

106
  /**
107
   * Convert the given object to string with each line indented by 4 spaces
108
   * (except the first line).
109
   */
110
  private String toIndentedString(Object o) {
111
    if (o == null) {
×
112
      return "null";
×
113
    }
114
    return o.toString().replace("\n", "\n    ");
×
115
  }
116

117
/**
118
   * Create an instance of DeleteNotificationConfigurationRequest given an JSON string
119
   *
120
   * @param jsonString JSON string
121
   * @return An instance of DeleteNotificationConfigurationRequest
122
   * @throws JsonProcessingException if the JSON string is invalid with respect to DeleteNotificationConfigurationRequest
123
   */
124
  public static DeleteNotificationConfigurationRequest fromJson(String jsonString) throws JsonProcessingException {
125
    return JSON.getMapper().readValue(jsonString, DeleteNotificationConfigurationRequest.class);
×
126
  }
127
/**
128
  * Convert an instance of DeleteNotificationConfigurationRequest to an JSON string
129
  *
130
  * @return JSON string
131
  */
132
  public String toJson() throws JsonProcessingException {
133
    return JSON.getMapper().writeValueAsString(this);
×
134
  }
135
}
136

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