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

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

13 Nov 2024 12:20PM CUT coverage: 12.206%. First build
#3755

push

web-flow
Merge 01fcec3b9 into 964c7f7a4

12945 of 106057 relevant lines covered (12.21%)

0.12 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
  /**
45
   * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
46
   *
47
   * @param notificationResponse
48
   * @return the current {@code BalancePlatformNotificationResponse} instance, allowing for method chaining
49
   */
50
  public BalancePlatformNotificationResponse notificationResponse(String notificationResponse) {
51
    this.notificationResponse = notificationResponse;
×
52
    return this;
×
53
  }
54

55
  /**
56
   * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
57
   * @return notificationResponse
58
   */
59
  @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).")
60
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE)
61
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62
  public String getNotificationResponse() {
63
    return notificationResponse;
×
64
  }
65

66
  /**
67
   * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
68
   *
69
   * @param notificationResponse
70
   */ 
71
  @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setNotificationResponse(String notificationResponse) {
74
    this.notificationResponse = notificationResponse;
×
75
  }
×
76

77
  /**
78
   * Return true if this BalancePlatformNotificationResponse 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
    BalancePlatformNotificationResponse balancePlatformNotificationResponse = (BalancePlatformNotificationResponse) o;
×
89
    return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse);
×
90
  }
91

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

97
  @Override
98
  public String toString() {
99
    StringBuilder sb = new StringBuilder();
×
100
    sb.append("class BalancePlatformNotificationResponse {\n");
×
101
    sb.append("    notificationResponse: ").append(toIndentedString(notificationResponse)).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 BalancePlatformNotificationResponse given an JSON string
119
   *
120
   * @param jsonString JSON string
121
   * @return An instance of BalancePlatformNotificationResponse
122
   * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatformNotificationResponse
123
   */
124
  public static BalancePlatformNotificationResponse fromJson(String jsonString) throws JsonProcessingException {
125
    return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class);
×
126
  }
127
/**
128
  * Convert an instance of BalancePlatformNotificationResponse to an JSON string
129
  *
130
  * @return JSON string
131
  */
132
  public String toJson() throws JsonProcessingException {
133
    return JSON.getMapper().writeValueAsString(this);
×
134
  }
135
}
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