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

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

16 Oct 2023 12:23PM UTC coverage: 12.422%. First build
#2713

push

web-flow
Merge 1d29d686b into c99ba89a9

1137 of 1137 new or added lines in 7 files covered. (100.0%)

11852 of 95411 relevant lines covered (12.42%)

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/binlookup/DSPublicKeyDetail.java
1
/*
2
 * Adyen BinLookup API
3
 * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN.  ## 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 The BinLookup 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/BinLookup/v54/get3dsAvailability ```## Going live  To authneticate 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/BinLookup/v54/get3dsAvailability ```  Get your `{PREFIX}` from your live Customer Area under **Developers** > **API URLs** > **Prefix**.
4
 *
5
 * The version of the OpenAPI document: 54
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.binlookup;
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
 * DSPublicKeyDetail
33
 */
34
@JsonPropertyOrder({
35
  DSPublicKeyDetail.JSON_PROPERTY_BRAND,
36
  DSPublicKeyDetail.JSON_PROPERTY_DIRECTORY_SERVER_ID,
37
  DSPublicKeyDetail.JSON_PROPERTY_FROM_S_D_K_VERSION,
38
  DSPublicKeyDetail.JSON_PROPERTY_PUBLIC_KEY,
39
  DSPublicKeyDetail.JSON_PROPERTY_ROOT_CERTIFICATES
40
})
41

42
public class DSPublicKeyDetail {
43
  public static final String JSON_PROPERTY_BRAND = "brand";
44
  private String brand;
45

46
  public static final String JSON_PROPERTY_DIRECTORY_SERVER_ID = "directoryServerId";
47
  private String directoryServerId;
48

49
  public static final String JSON_PROPERTY_FROM_S_D_K_VERSION = "fromSDKVersion";
50
  private String fromSDKVersion;
51

52
  public static final String JSON_PROPERTY_PUBLIC_KEY = "publicKey";
53
  private byte[] publicKey;
54

55
  public static final String JSON_PROPERTY_ROOT_CERTIFICATES = "rootCertificates";
56
  private String rootCertificates;
57

58
  public DSPublicKeyDetail() { 
×
59
  }
×
60

61
  public DSPublicKeyDetail brand(String brand) {
62
    this.brand = brand;
×
63
    return this;
×
64
  }
65

66
   /**
67
   * Card brand.
68
   * @return brand
69
  **/
70
  @ApiModelProperty(value = "Card brand.")
71
  @JsonProperty(JSON_PROPERTY_BRAND)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

74
  public String getBrand() {
75
    return brand;
×
76
  }
77

78

79
  @JsonProperty(JSON_PROPERTY_BRAND)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setBrand(String brand) {
82
    this.brand = brand;
×
83
  }
×
84

85

86
  public DSPublicKeyDetail directoryServerId(String directoryServerId) {
87
    this.directoryServerId = directoryServerId;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * Directory Server (DS) identifier.
93
   * @return directoryServerId
94
  **/
95
  @ApiModelProperty(value = "Directory Server (DS) identifier.")
96
  @JsonProperty(JSON_PROPERTY_DIRECTORY_SERVER_ID)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getDirectoryServerId() {
100
    return directoryServerId;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_DIRECTORY_SERVER_ID)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setDirectoryServerId(String directoryServerId) {
107
    this.directoryServerId = directoryServerId;
×
108
  }
×
109

110

111
  public DSPublicKeyDetail fromSDKVersion(String fromSDKVersion) {
112
    this.fromSDKVersion = fromSDKVersion;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases).
118
   * @return fromSDKVersion
119
  **/
120
  @ApiModelProperty(value = "The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases).")
121
  @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public String getFromSDKVersion() {
125
    return fromSDKVersion;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_FROM_S_D_K_VERSION)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setFromSDKVersion(String fromSDKVersion) {
132
    this.fromSDKVersion = fromSDKVersion;
×
133
  }
×
134

135

136
  public DSPublicKeyDetail publicKey(byte[] publicKey) {
137
    this.publicKey = publicKey;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key.
143
   * @return publicKey
144
  **/
145
  @ApiModelProperty(value = "Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key.")
146
  @JsonProperty(JSON_PROPERTY_PUBLIC_KEY)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public byte[] getPublicKey() {
150
    return publicKey;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_PUBLIC_KEY)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setPublicKey(byte[] publicKey) {
157
    this.publicKey = publicKey;
×
158
  }
×
159

160

161
  public DSPublicKeyDetail rootCertificates(String rootCertificates) {
162
    this.rootCertificates = rootCertificates;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates.
168
   * @return rootCertificates
169
  **/
170
  @ApiModelProperty(value = "Directory Server root certificates. The 3D Secure 2 SDK verifies the ACS signed content using the rootCertificates.")
171
  @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public String getRootCertificates() {
175
    return rootCertificates;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_ROOT_CERTIFICATES)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setRootCertificates(String rootCertificates) {
182
    this.rootCertificates = rootCertificates;
×
183
  }
×
184

185

186
  /**
187
   * Return true if this DSPublicKeyDetail object is equal to o.
188
   */
189
  @Override
190
  public boolean equals(Object o) {
191
    if (this == o) {
×
192
      return true;
×
193
    }
194
    if (o == null || getClass() != o.getClass()) {
×
195
      return false;
×
196
    }
197
    DSPublicKeyDetail dsPublicKeyDetail = (DSPublicKeyDetail) o;
×
198
    return Objects.equals(this.brand, dsPublicKeyDetail.brand) &&
×
199
        Objects.equals(this.directoryServerId, dsPublicKeyDetail.directoryServerId) &&
×
200
        Objects.equals(this.fromSDKVersion, dsPublicKeyDetail.fromSDKVersion) &&
×
201
        Arrays.equals(this.publicKey, dsPublicKeyDetail.publicKey) &&
×
202
        Objects.equals(this.rootCertificates, dsPublicKeyDetail.rootCertificates);
×
203
  }
204

205
  @Override
206
  public int hashCode() {
207
    return Objects.hash(brand, directoryServerId, fromSDKVersion, Arrays.hashCode(publicKey), rootCertificates);
×
208
  }
209

210
  @Override
211
  public String toString() {
212
    StringBuilder sb = new StringBuilder();
×
213
    sb.append("class DSPublicKeyDetail {\n");
×
214
    sb.append("    brand: ").append(toIndentedString(brand)).append("\n");
×
215
    sb.append("    directoryServerId: ").append(toIndentedString(directoryServerId)).append("\n");
×
216
    sb.append("    fromSDKVersion: ").append(toIndentedString(fromSDKVersion)).append("\n");
×
217
    sb.append("    publicKey: ").append(toIndentedString(publicKey)).append("\n");
×
218
    sb.append("    rootCertificates: ").append(toIndentedString(rootCertificates)).append("\n");
×
219
    sb.append("}");
×
220
    return sb.toString();
×
221
  }
222

223
  /**
224
   * Convert the given object to string with each line indented by 4 spaces
225
   * (except the first line).
226
   */
227
  private String toIndentedString(Object o) {
228
    if (o == null) {
×
229
      return "null";
×
230
    }
231
    return o.toString().replace("\n", "\n    ");
×
232
  }
233

234
/**
235
   * Create an instance of DSPublicKeyDetail given an JSON string
236
   *
237
   * @param jsonString JSON string
238
   * @return An instance of DSPublicKeyDetail
239
   * @throws JsonProcessingException if the JSON string is invalid with respect to DSPublicKeyDetail
240
   */
241
  public static DSPublicKeyDetail fromJson(String jsonString) throws JsonProcessingException {
242
    return JSON.getMapper().readValue(jsonString, DSPublicKeyDetail.class);
×
243
  }
244
/**
245
  * Convert an instance of DSPublicKeyDetail to an JSON string
246
  *
247
  * @return JSON string
248
  */
249
  public String toJson() throws JsonProcessingException {
250
    return JSON.getMapper().writeValueAsString(this);
×
251
  }
252
}
253

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