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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

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/marketpayhop/GetPciUrlResponse.java
1
/*
2
 * Hosted onboarding API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Hosted onboarding API provides endpoints that you can use to generate links to Adyen-hosted pages, such as an [onboarding page](https://docs.adyen.com/marketplaces-and-platforms/classic/hosted-onboarding-page) or a [PCI compliance questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners). You can provide these links to your account holders so that they can complete their onboarding.  ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, 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@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` 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 The Hosted onboarding 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://cal-test.adyen.com/cal/services/Hop/v6/getOnboardingUrl ```
4
 *
5
 * The version of the OpenAPI document: 6
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.marketpayhop;
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.marketpayhop.ErrorFieldType;
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 java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * GetPciUrlResponse
36
 */
37
@JsonPropertyOrder({
38
  GetPciUrlResponse.JSON_PROPERTY_INVALID_FIELDS,
39
  GetPciUrlResponse.JSON_PROPERTY_PSP_REFERENCE,
40
  GetPciUrlResponse.JSON_PROPERTY_REDIRECT_URL,
41
  GetPciUrlResponse.JSON_PROPERTY_RESULT_CODE
42
})
43

44
public class GetPciUrlResponse {
45
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
46
  private List<ErrorFieldType> invalidFields = null;
×
47

48
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
49
  private String pspReference;
50

51
  public static final String JSON_PROPERTY_REDIRECT_URL = "redirectUrl";
52
  private String redirectUrl;
53

54
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
55
  private String resultCode;
56

57
  public GetPciUrlResponse() { 
×
58
  }
×
59

60
  public GetPciUrlResponse invalidFields(List<ErrorFieldType> invalidFields) {
61
    this.invalidFields = invalidFields;
×
62
    return this;
×
63
  }
64

65
  public GetPciUrlResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
66
    if (this.invalidFields == null) {
×
67
      this.invalidFields = new ArrayList<>();
×
68
    }
69
    this.invalidFields.add(invalidFieldsItem);
×
70
    return this;
×
71
  }
72

73
   /**
74
   * Information about any invalid fields.
75
   * @return invalidFields
76
  **/
77
  @ApiModelProperty(value = "Information about any invalid fields.")
78
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
79
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80

81
  public List<ErrorFieldType> getInvalidFields() {
82
    return invalidFields;
×
83
  }
84

85

86
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
87
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
89
    this.invalidFields = invalidFields;
×
90
  }
×
91

92

93
  public GetPciUrlResponse pspReference(String pspReference) {
94
    this.pspReference = pspReference;
×
95
    return this;
×
96
  }
97

98
   /**
99
   * The reference of a request. Can be used to uniquely identify the request.
100
   * @return pspReference
101
  **/
102
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
103
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105

106
  public String getPspReference() {
107
    return pspReference;
×
108
  }
109

110

111
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113
  public void setPspReference(String pspReference) {
114
    this.pspReference = pspReference;
×
115
  }
×
116

117

118
  public GetPciUrlResponse redirectUrl(String redirectUrl) {
119
    this.redirectUrl = redirectUrl;
×
120
    return this;
×
121
  }
122

123
   /**
124
   * The URL to the PCI compliance questionnaire where you should redirect your account holder. This URL must be used within 30 seconds and can only be used once.
125
   * @return redirectUrl
126
  **/
127
  @ApiModelProperty(value = "The URL to the PCI compliance questionnaire where you should redirect your account holder. This URL must be used within 30 seconds and can only be used once.")
128
  @JsonProperty(JSON_PROPERTY_REDIRECT_URL)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130

131
  public String getRedirectUrl() {
132
    return redirectUrl;
×
133
  }
134

135

136
  @JsonProperty(JSON_PROPERTY_REDIRECT_URL)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138
  public void setRedirectUrl(String redirectUrl) {
139
    this.redirectUrl = redirectUrl;
×
140
  }
×
141

142

143
  public GetPciUrlResponse resultCode(String resultCode) {
144
    this.resultCode = resultCode;
×
145
    return this;
×
146
  }
147

148
   /**
149
   * The result code.
150
   * @return resultCode
151
  **/
152
  @ApiModelProperty(value = "The result code.")
153
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155

156
  public String getResultCode() {
157
    return resultCode;
×
158
  }
159

160

161
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163
  public void setResultCode(String resultCode) {
164
    this.resultCode = resultCode;
×
165
  }
×
166

167

168
  /**
169
   * Return true if this GetPciUrlResponse object is equal to o.
170
   */
171
  @Override
172
  public boolean equals(Object o) {
173
    if (this == o) {
×
174
      return true;
×
175
    }
176
    if (o == null || getClass() != o.getClass()) {
×
177
      return false;
×
178
    }
179
    GetPciUrlResponse getPciUrlResponse = (GetPciUrlResponse) o;
×
180
    return Objects.equals(this.invalidFields, getPciUrlResponse.invalidFields) &&
×
181
        Objects.equals(this.pspReference, getPciUrlResponse.pspReference) &&
×
182
        Objects.equals(this.redirectUrl, getPciUrlResponse.redirectUrl) &&
×
183
        Objects.equals(this.resultCode, getPciUrlResponse.resultCode);
×
184
  }
185

186
  @Override
187
  public int hashCode() {
188
    return Objects.hash(invalidFields, pspReference, redirectUrl, resultCode);
×
189
  }
190

191
  @Override
192
  public String toString() {
193
    StringBuilder sb = new StringBuilder();
×
194
    sb.append("class GetPciUrlResponse {\n");
×
195
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
196
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
197
    sb.append("    redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n");
×
198
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
199
    sb.append("}");
×
200
    return sb.toString();
×
201
  }
202

203
  /**
204
   * Convert the given object to string with each line indented by 4 spaces
205
   * (except the first line).
206
   */
207
  private String toIndentedString(Object o) {
208
    if (o == null) {
×
209
      return "null";
×
210
    }
211
    return o.toString().replace("\n", "\n    ");
×
212
  }
213

214
/**
215
   * Create an instance of GetPciUrlResponse given an JSON string
216
   *
217
   * @param jsonString JSON string
218
   * @return An instance of GetPciUrlResponse
219
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciUrlResponse
220
   */
221
  public static GetPciUrlResponse fromJson(String jsonString) throws JsonProcessingException {
222
    return JSON.getMapper().readValue(jsonString, GetPciUrlResponse.class);
×
223
  }
224
/**
225
  * Convert an instance of GetPciUrlResponse to an JSON string
226
  *
227
  * @return JSON string
228
  */
229
  public String toJson() throws JsonProcessingException {
230
    return JSON.getMapper().writeValueAsString(this);
×
231
  }
232
}
233

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