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

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

30 Oct 2023 03:06PM CUT coverage: 12.824%. First build
#2775

push

web-flow
Merge 9921af673 into 891748f22

112 of 112 new or added lines in 12 files covered. (100.0%)

12346 of 96273 relevant lines covered (12.82%)

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/acswebhooks/BalancePlatformNotificationResponse.java
1
/*
2
 * Authentication webhooks
3
 *
4
 * The version of the OpenAPI document: 1
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.acswebhooks;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * BalancePlatformNotificationResponse
32
 */
33
@JsonPropertyOrder({
34
  BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE
35
})
36

37
public class BalancePlatformNotificationResponse {
38
  public static final String JSON_PROPERTY_NOTIFICATION_RESPONSE = "notificationResponse";
39
  private String notificationResponse;
40

41
  public BalancePlatformNotificationResponse() { 
×
42
  }
×
43

44
  public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) {
45
    this.notificationResponse = notificationResponse;
×
46
    return this;
×
47
  }
48

49
   /**
50
   * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
51
   * @return notificationResponse
52
  **/
53
  @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).")
54
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE)
55
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
56

57
  public String getNotificationResponse() {
58
    return notificationResponse;
×
59
  }
60

61

62
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE)
63
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64
  public void setNotificationResponse(String notificationResponse) {
65
    this.notificationResponse = notificationResponse;
×
66
  }
×
67

68

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

84
  @Override
85
  public int hashCode() {
86
    return Objects.hash(notificationResponse);
×
87
  }
88

89
  @Override
90
  public String toString() {
91
    StringBuilder sb = new StringBuilder();
×
92
    sb.append("class BalancePlatformNotificationResponse {\n");
×
93
    sb.append("    notificationResponse: ").append(toIndentedString(notificationResponse)).append("\n");
×
94
    sb.append("}");
×
95
    return sb.toString();
×
96
  }
97

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

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

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