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

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

02 Oct 2024 09:21AM UTC coverage: 11.815%. First build
#3609

push

web-flow
Merge 53e60049d into 3aab4fab9

0 of 7 new or added lines in 6 files covered. (0.0%)

12578 of 106461 relevant lines covered (11.81%)

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/legalentitymanagement/GetTermsOfServiceDocumentResponse.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
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
 * GetTermsOfServiceDocumentResponse
32
 */
33
@JsonPropertyOrder({
34
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_DOCUMENT,
35
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_ID,
36
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_LANGUAGE,
37
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT,
38
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID,
39
  GetTermsOfServiceDocumentResponse.JSON_PROPERTY_TYPE
40
})
41

42
public class GetTermsOfServiceDocumentResponse {
43
  public static final String JSON_PROPERTY_DOCUMENT = "document";
44
  private byte[] document;
45

46
  public static final String JSON_PROPERTY_ID = "id";
47
  private String id;
48

49
  public static final String JSON_PROPERTY_LANGUAGE = "language";
50
  private String language;
51

52
  public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat";
53
  private String termsOfServiceDocumentFormat;
54

55
  public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID = "termsOfServiceDocumentId";
56
  private String termsOfServiceDocumentId;
57

58
  /**
59
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
60
   */
61
  public enum TypeEnum {
×
62
    ADYENACCOUNT("adyenAccount"),
×
63
    
64
    ADYENCAPITAL("adyenCapital"),
×
65
    
66
    ADYENCARD("adyenCard"),
×
67
    
NEW
68
    ADYENCHARGECARD("adyenChargeCard"),
×
69
    
70
    ADYENFORPLATFORMSADVANCED("adyenForPlatformsAdvanced"),
×
71
    
72
    ADYENFORPLATFORMSMANAGE("adyenForPlatformsManage"),
×
73
    
74
    ADYENFRANCHISEE("adyenFranchisee"),
×
75
    
76
    ADYENISSUING("adyenIssuing"),
×
77
    
78
    ADYENPCCR("adyenPccr");
×
79

80
    private String value;
81

82
    TypeEnum(String value) {
×
83
      this.value = value;
×
84
    }
×
85

86
    @JsonValue
87
    public String getValue() {
88
      return value;
×
89
    }
90

91
    @Override
92
    public String toString() {
93
      return String.valueOf(value);
×
94
    }
95

96
    @JsonCreator
97
    public static TypeEnum fromValue(String value) {
98
      for (TypeEnum b : TypeEnum.values()) {
×
99
        if (b.value.equals(value)) {
×
100
          return b;
×
101
        }
102
      }
103
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
104
    }
105
  }
106

107
  public static final String JSON_PROPERTY_TYPE = "type";
108
  private TypeEnum type;
109

110
  public GetTermsOfServiceDocumentResponse() { 
×
111
  }
×
112

113
  public GetTermsOfServiceDocumentResponse document(byte[] document) {
114
    this.document = document;
×
115
    return this;
×
116
  }
117

118
   /**
119
   * The Terms of Service document in Base64-encoded format.
120
   * @return document
121
  **/
122
  @ApiModelProperty(value = "The Terms of Service document in Base64-encoded format.")
123
  @JsonProperty(JSON_PROPERTY_DOCUMENT)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125

126
  public byte[] getDocument() {
127
    return document;
×
128
  }
129

130

131
 /**
132
  * The Terms of Service document in Base64-encoded format.
133
  *
134
  * @param document
135
  */ 
136
  @JsonProperty(JSON_PROPERTY_DOCUMENT)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138
  public void setDocument(byte[] document) {
139
    this.document = document;
×
140
  }
×
141

142

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

148
   /**
149
   * The unique identifier of the legal entity.
150
   * @return id
151
  **/
152
  @ApiModelProperty(value = "The unique identifier of the legal entity.")
153
  @JsonProperty(JSON_PROPERTY_ID)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155

156
  public String getId() {
157
    return id;
×
158
  }
159

160

161
 /**
162
  * The unique identifier of the legal entity.
163
  *
164
  * @param id
165
  */ 
166
  @JsonProperty(JSON_PROPERTY_ID)
167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
168
  public void setId(String id) {
169
    this.id = id;
×
170
  }
×
171

172

173
  public GetTermsOfServiceDocumentResponse language(String language) {
174
    this.language = language;
×
175
    return this;
×
176
  }
177

178
   /**
179
   * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
180
   * @return language
181
  **/
182
  @ApiModelProperty(value = "The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.")
183
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185

186
  public String getLanguage() {
187
    return language;
×
188
  }
189

190

191
 /**
192
  * The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
193
  *
194
  * @param language
195
  */ 
196
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198
  public void setLanguage(String language) {
199
    this.language = language;
×
200
  }
×
201

202

203
  public GetTermsOfServiceDocumentResponse termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
204
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
205
    return this;
×
206
  }
207

208
   /**
209
   * The format of the Terms of Service document.
210
   * @return termsOfServiceDocumentFormat
211
  **/
212
  @ApiModelProperty(value = "The format of the Terms of Service document.")
213
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
214
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
215

216
  public String getTermsOfServiceDocumentFormat() {
217
    return termsOfServiceDocumentFormat;
×
218
  }
219

220

221
 /**
222
  * The format of the Terms of Service document.
223
  *
224
  * @param termsOfServiceDocumentFormat
225
  */ 
226
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
227
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
228
  public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
229
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
230
  }
×
231

232

233
  public GetTermsOfServiceDocumentResponse termsOfServiceDocumentId(String termsOfServiceDocumentId) {
234
    this.termsOfServiceDocumentId = termsOfServiceDocumentId;
×
235
    return this;
×
236
  }
237

238
   /**
239
   * The unique identifier of the Terms of Service document.
240
   * @return termsOfServiceDocumentId
241
  **/
242
  @ApiModelProperty(value = "The unique identifier of the Terms of Service document.")
243
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID)
244
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
245

246
  public String getTermsOfServiceDocumentId() {
247
    return termsOfServiceDocumentId;
×
248
  }
249

250

251
 /**
252
  * The unique identifier of the Terms of Service document.
253
  *
254
  * @param termsOfServiceDocumentId
255
  */ 
256
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_ID)
257
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
258
  public void setTermsOfServiceDocumentId(String termsOfServiceDocumentId) {
259
    this.termsOfServiceDocumentId = termsOfServiceDocumentId;
×
260
  }
×
261

262

263
  public GetTermsOfServiceDocumentResponse type(TypeEnum type) {
264
    this.type = type;
×
265
    return this;
×
266
  }
267

268
   /**
269
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
270
   * @return type
271
  **/
272
  @ApiModelProperty(value = "The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  ")
273
  @JsonProperty(JSON_PROPERTY_TYPE)
274
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
275

276
  public TypeEnum getType() {
277
    return type;
×
278
  }
279

280

281
 /**
282
  * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
283
  *
284
  * @param type
285
  */ 
286
  @JsonProperty(JSON_PROPERTY_TYPE)
287
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
288
  public void setType(TypeEnum type) {
289
    this.type = type;
×
290
  }
×
291

292

293
  /**
294
   * Return true if this GetTermsOfServiceDocumentResponse object is equal to o.
295
   */
296
  @Override
297
  public boolean equals(Object o) {
298
    if (this == o) {
×
299
      return true;
×
300
    }
301
    if (o == null || getClass() != o.getClass()) {
×
302
      return false;
×
303
    }
304
    GetTermsOfServiceDocumentResponse getTermsOfServiceDocumentResponse = (GetTermsOfServiceDocumentResponse) o;
×
305
    return Arrays.equals(this.document, getTermsOfServiceDocumentResponse.document) &&
×
306
        Objects.equals(this.id, getTermsOfServiceDocumentResponse.id) &&
×
307
        Objects.equals(this.language, getTermsOfServiceDocumentResponse.language) &&
×
308
        Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentResponse.termsOfServiceDocumentFormat) &&
×
309
        Objects.equals(this.termsOfServiceDocumentId, getTermsOfServiceDocumentResponse.termsOfServiceDocumentId) &&
×
310
        Objects.equals(this.type, getTermsOfServiceDocumentResponse.type);
×
311
  }
312

313
  @Override
314
  public int hashCode() {
315
    return Objects.hash(Arrays.hashCode(document), id, language, termsOfServiceDocumentFormat, termsOfServiceDocumentId, type);
×
316
  }
317

318
  @Override
319
  public String toString() {
320
    StringBuilder sb = new StringBuilder();
×
321
    sb.append("class GetTermsOfServiceDocumentResponse {\n");
×
322
    sb.append("    document: ").append(toIndentedString(document)).append("\n");
×
323
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
324
    sb.append("    language: ").append(toIndentedString(language)).append("\n");
×
325
    sb.append("    termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n");
×
326
    sb.append("    termsOfServiceDocumentId: ").append(toIndentedString(termsOfServiceDocumentId)).append("\n");
×
327
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
328
    sb.append("}");
×
329
    return sb.toString();
×
330
  }
331

332
  /**
333
   * Convert the given object to string with each line indented by 4 spaces
334
   * (except the first line).
335
   */
336
  private String toIndentedString(Object o) {
337
    if (o == null) {
×
338
      return "null";
×
339
    }
340
    return o.toString().replace("\n", "\n    ");
×
341
  }
342

343
/**
344
   * Create an instance of GetTermsOfServiceDocumentResponse given an JSON string
345
   *
346
   * @param jsonString JSON string
347
   * @return An instance of GetTermsOfServiceDocumentResponse
348
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentResponse
349
   */
350
  public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) throws JsonProcessingException {
351
    return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentResponse.class);
×
352
  }
353
/**
354
  * Convert an instance of GetTermsOfServiceDocumentResponse to an JSON string
355
  *
356
  * @return JSON string
357
  */
358
  public String toJson() throws JsonProcessingException {
359
    return JSON.getMapper().writeValueAsString(this);
×
360
  }
361
}
362

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