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

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

13 Oct 2023 01:23PM UTC coverage: 12.744%. First build
#2694

push

web-flow
Merge a1c66a0d9 into b9e6d393c

744 of 744 new or added lines in 20 files covered. (100.0%)

11251 of 88288 relevant lines covered (12.74%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java
1
/*
2
 * Disputes API
3
 * You can use the [Disputes API](https://docs.adyen.com/risk-management/disputes-api) to automate the dispute handling process so that you can respond to disputes and chargebacks as soon as they are initiated. The Disputes API lets you retrieve defense reasons, supply and delete defense documents, and accept or defend disputes.  ## Authentication Each request to the Disputes API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example:  ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_API_key\" \\ ... ``` Note that 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 Disputes 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://ca-test.adyen.com/ca/services/DisputeService/v30/defendDispute ```
4
 *
5
 * The version of the OpenAPI document: 30
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.disputes;
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.disputes.DisputeServiceResult;
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
 * DefendDisputeResponse
34
 */
35
@JsonPropertyOrder({
36
  DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT
37
})
38

39
public class DefendDisputeResponse {
40
  public static final String JSON_PROPERTY_DISPUTE_SERVICE_RESULT = "disputeServiceResult";
41
  private DisputeServiceResult disputeServiceResult;
42

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

46
  public DefendDisputeResponse disputeServiceResult(DisputeServiceResult disputeServiceResult) {
47
    this.disputeServiceResult = disputeServiceResult;
×
48
    return this;
×
49
  }
50

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

59
  public DisputeServiceResult getDisputeServiceResult() {
60
    return disputeServiceResult;
1✔
61
  }
62

63

64
  @JsonProperty(JSON_PROPERTY_DISPUTE_SERVICE_RESULT)
65
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
66
  public void setDisputeServiceResult(DisputeServiceResult disputeServiceResult) {
67
    this.disputeServiceResult = disputeServiceResult;
1✔
68
  }
1✔
69

70

71
  /**
72
   * Return true if this DefendDisputeResponse 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
    DefendDisputeResponse defendDisputeResponse = (DefendDisputeResponse) o;
×
83
    return Objects.equals(this.disputeServiceResult, defendDisputeResponse.disputeServiceResult);
×
84
  }
85

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

91
  @Override
92
  public String toString() {
93
    StringBuilder sb = new StringBuilder();
×
94
    sb.append("class DefendDisputeResponse {\n");
×
95
    sb.append("    disputeServiceResult: ").append(toIndentedString(disputeServiceResult)).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 DefendDisputeResponse given an JSON string
113
   *
114
   * @param jsonString JSON string
115
   * @return An instance of DefendDisputeResponse
116
   * @throws JsonProcessingException if the JSON string is invalid with respect to DefendDisputeResponse
117
   */
118
  public static DefendDisputeResponse fromJson(String jsonString) throws JsonProcessingException {
119
    return JSON.getMapper().readValue(jsonString, DefendDisputeResponse.class);
1✔
120
  }
121
/**
122
  * Convert an instance of DefendDisputeResponse to an JSON string
123
  *
124
  * @return JSON string
125
  */
126
  public String toJson() throws JsonProcessingException {
127
    return JSON.getMapper().writeValueAsString(this);
×
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