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

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

10 Nov 2023 09:29AM UTC coverage: 12.829%. First build
#2841

push

web-flow
Merge f5e54db9e into 5fe92c1d1

2 of 200 new or added lines in 10 files covered. (1.0%)

12395 of 96617 relevant lines covered (12.83%)

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/payout/ResponseAdditionalDataDomesticError.java
1
/*
2
 * Adyen Payout API
3
 *
4
 * The version of the OpenAPI document: 68
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.payout;
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
 * ResponseAdditionalDataDomesticError
32
 */
33
@JsonPropertyOrder({
34
  ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW,
35
  ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE
36
})
37

38
public class ResponseAdditionalDataDomesticError {
39
  public static final String JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW = "domesticRefusalReasonRaw";
40
  private String domesticRefusalReasonRaw;
41

42
  public static final String JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE = "domesticShopperAdvice";
43
  private String domesticShopperAdvice;
44

NEW
45
  public ResponseAdditionalDataDomesticError() { 
×
NEW
46
  }
×
47

48
  public ResponseAdditionalDataDomesticError domesticRefusalReasonRaw(String domesticRefusalReasonRaw) {
NEW
49
    this.domesticRefusalReasonRaw = domesticRefusalReasonRaw;
×
NEW
50
    return this;
×
51
  }
52

53
   /**
54
   * The reason the transaction was declined, given by the local issuer.  Currently available for merchants in Japan.
55
   * @return domesticRefusalReasonRaw
56
  **/
57
  @ApiModelProperty(value = "The reason the transaction was declined, given by the local issuer.  Currently available for merchants in Japan.")
58
  @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW)
59
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60

61
  public String getDomesticRefusalReasonRaw() {
NEW
62
    return domesticRefusalReasonRaw;
×
63
  }
64

65

66
  @JsonProperty(JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68
  public void setDomesticRefusalReasonRaw(String domesticRefusalReasonRaw) {
NEW
69
    this.domesticRefusalReasonRaw = domesticRefusalReasonRaw;
×
NEW
70
  }
×
71

72

73
  public ResponseAdditionalDataDomesticError domesticShopperAdvice(String domesticShopperAdvice) {
NEW
74
    this.domesticShopperAdvice = domesticShopperAdvice;
×
NEW
75
    return this;
×
76
  }
77

78
   /**
79
   * The action the shopper should take, in a local language.  Currently available in Japanese, for merchants in Japan.
80
   * @return domesticShopperAdvice
81
  **/
82
  @ApiModelProperty(value = "The action the shopper should take, in a local language.  Currently available in Japanese, for merchants in Japan.")
83
  @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85

86
  public String getDomesticShopperAdvice() {
NEW
87
    return domesticShopperAdvice;
×
88
  }
89

90

91
  @JsonProperty(JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setDomesticShopperAdvice(String domesticShopperAdvice) {
NEW
94
    this.domesticShopperAdvice = domesticShopperAdvice;
×
NEW
95
  }
×
96

97

98
  /**
99
   * Return true if this ResponseAdditionalDataDomesticError object is equal to o.
100
   */
101
  @Override
102
  public boolean equals(Object o) {
NEW
103
    if (this == o) {
×
NEW
104
      return true;
×
105
    }
NEW
106
    if (o == null || getClass() != o.getClass()) {
×
NEW
107
      return false;
×
108
    }
NEW
109
    ResponseAdditionalDataDomesticError responseAdditionalDataDomesticError = (ResponseAdditionalDataDomesticError) o;
×
NEW
110
    return Objects.equals(this.domesticRefusalReasonRaw, responseAdditionalDataDomesticError.domesticRefusalReasonRaw) &&
×
NEW
111
        Objects.equals(this.domesticShopperAdvice, responseAdditionalDataDomesticError.domesticShopperAdvice);
×
112
  }
113

114
  @Override
115
  public int hashCode() {
NEW
116
    return Objects.hash(domesticRefusalReasonRaw, domesticShopperAdvice);
×
117
  }
118

119
  @Override
120
  public String toString() {
NEW
121
    StringBuilder sb = new StringBuilder();
×
NEW
122
    sb.append("class ResponseAdditionalDataDomesticError {\n");
×
NEW
123
    sb.append("    domesticRefusalReasonRaw: ").append(toIndentedString(domesticRefusalReasonRaw)).append("\n");
×
NEW
124
    sb.append("    domesticShopperAdvice: ").append(toIndentedString(domesticShopperAdvice)).append("\n");
×
NEW
125
    sb.append("}");
×
NEW
126
    return sb.toString();
×
127
  }
128

129
  /**
130
   * Convert the given object to string with each line indented by 4 spaces
131
   * (except the first line).
132
   */
133
  private String toIndentedString(Object o) {
NEW
134
    if (o == null) {
×
NEW
135
      return "null";
×
136
    }
NEW
137
    return o.toString().replace("\n", "\n    ");
×
138
  }
139

140
/**
141
   * Create an instance of ResponseAdditionalDataDomesticError given an JSON string
142
   *
143
   * @param jsonString JSON string
144
   * @return An instance of ResponseAdditionalDataDomesticError
145
   * @throws JsonProcessingException if the JSON string is invalid with respect to ResponseAdditionalDataDomesticError
146
   */
147
  public static ResponseAdditionalDataDomesticError fromJson(String jsonString) throws JsonProcessingException {
NEW
148
    return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class);
×
149
  }
150
/**
151
  * Convert an instance of ResponseAdditionalDataDomesticError to an JSON string
152
  *
153
  * @return JSON string
154
  */
155
  public String toJson() throws JsonProcessingException {
NEW
156
    return JSON.getMapper().writeValueAsString(this);
×
157
  }
158
}
159

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

© 2026 Coveralls, Inc