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

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

08 Dec 2023 12:05PM UTC coverage: 12.838%. First build
#2905

push

web-flow
Merge caa3554a7 into ec0c20882

1 of 151 new or added lines in 12 files covered. (0.66%)

12463 of 97080 relevant lines covered (12.84%)

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/payment/ResponseAdditionalDataDomesticError.java
1
/*
2
 * Adyen Payment API
3
 * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods.  To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration).  ## Authentication You need an [API credential](https://docs.adyen.com/development-resources/api-credentials) to authenticate to the API.  If using an API key, 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@Company.YOUR_COMPANY_ACCOUNT\":\"YOUR_BASIC_AUTHENTICATION_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ```  ## Versioning Payments 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://pal-test.adyen.com/pal/servlet/Payment/v68/authorise ```  ## Going live  To authenticate to the live endpoints, you need an [API credential](https://docs.adyen.com/development-resources/api-credentials) from your live Customer Area.  The live endpoint URLs contain a prefix which is unique to your company account: ```  https://{PREFIX}-pal-live.adyenpayments.com/pal/servlet/Payment/v68/authorise ```  Get your `{PREFIX}` from your live Customer Area under **Developers** > **API URLs** > **Prefix**.
4
 *
5
 * The version of the OpenAPI document: 68
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.payment;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * ResponseAdditionalDataDomesticError
33
 */
34
@JsonPropertyOrder({
35
  ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_REFUSAL_REASON_RAW,
36
  ResponseAdditionalDataDomesticError.JSON_PROPERTY_DOMESTIC_SHOPPER_ADVICE
37
})
38

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

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

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

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

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

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

66

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

73

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

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

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

91

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

98

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

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

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

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

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

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