• 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

29.17
/src/main/java/com/adyen/model/marketpayconfiguration/CreateNotificationConfigurationRequest.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.NotificationConfigurationDetails;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * CreateNotificationConfigurationRequest
34
 */
35
@JsonPropertyOrder({
36
  CreateNotificationConfigurationRequest.JSON_PROPERTY_CONFIGURATION_DETAILS
37
})
38

39
public class CreateNotificationConfigurationRequest {
40
  public static final String JSON_PROPERTY_CONFIGURATION_DETAILS = "configurationDetails";
41
  private NotificationConfigurationDetails configurationDetails;
42

43
  public CreateNotificationConfigurationRequest() { 
1✔
44
  }
1✔
45

46
  public CreateNotificationConfigurationRequest configurationDetails(NotificationConfigurationDetails configurationDetails) {
47
    this.configurationDetails = configurationDetails;
×
48
    return this;
×
49
  }
50

51
   /**
52
   * Get configurationDetails
53
   * @return configurationDetails
54
  **/
55
  @ApiModelProperty(required = true, value = "")
56
  @JsonProperty(JSON_PROPERTY_CONFIGURATION_DETAILS)
57
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
58

59
  public NotificationConfigurationDetails getConfigurationDetails() {
60
    return configurationDetails;
1✔
61
  }
62

63

64
  @JsonProperty(JSON_PROPERTY_CONFIGURATION_DETAILS)
65
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
66
  public void setConfigurationDetails(NotificationConfigurationDetails configurationDetails) {
67
    this.configurationDetails = configurationDetails;
1✔
68
  }
1✔
69

70

71
  /**
72
   * Return true if this CreateNotificationConfigurationRequest object is equal to o.
73
   */
74
  @Override
75
  public boolean equals(Object o) {
76
    if (this == o) {
×
77
      return true;
×
78
    }
79
    if (o == null || getClass() != o.getClass()) {
×
80
      return false;
×
81
    }
82
    CreateNotificationConfigurationRequest createNotificationConfigurationRequest = (CreateNotificationConfigurationRequest) o;
×
83
    return Objects.equals(this.configurationDetails, createNotificationConfigurationRequest.configurationDetails);
×
84
  }
85

86
  @Override
87
  public int hashCode() {
88
    return Objects.hash(configurationDetails);
×
89
  }
90

91
  @Override
92
  public String toString() {
93
    StringBuilder sb = new StringBuilder();
×
94
    sb.append("class CreateNotificationConfigurationRequest {\n");
×
95
    sb.append("    configurationDetails: ").append(toIndentedString(configurationDetails)).append("\n");
×
96
    sb.append("}");
×
97
    return sb.toString();
×
98
  }
99

100
  /**
101
   * Convert the given object to string with each line indented by 4 spaces
102
   * (except the first line).
103
   */
104
  private String toIndentedString(Object o) {
105
    if (o == null) {
×
106
      return "null";
×
107
    }
108
    return o.toString().replace("\n", "\n    ");
×
109
  }
110

111
/**
112
   * Create an instance of CreateNotificationConfigurationRequest given an JSON string
113
   *
114
   * @param jsonString JSON string
115
   * @return An instance of CreateNotificationConfigurationRequest
116
   * @throws JsonProcessingException if the JSON string is invalid with respect to CreateNotificationConfigurationRequest
117
   */
118
  public static CreateNotificationConfigurationRequest fromJson(String jsonString) throws JsonProcessingException {
119
    return JSON.getMapper().readValue(jsonString, CreateNotificationConfigurationRequest.class);
1✔
120
  }
121
/**
122
  * Convert an instance of CreateNotificationConfigurationRequest to an JSON string
123
  *
124
  * @return JSON string
125
  */
126
  public String toJson() throws JsonProcessingException {
127
    return JSON.getMapper().writeValueAsString(this);
1✔
128
  }
129
}
130

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