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

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

07 Jun 2024 06:58AM UTC coverage: 11.998%. First build
#3310

push

web-flow
Merge 37b699498 into 42e533062

0 of 49 new or added lines in 2 files covered. (0.0%)

12486 of 104068 relevant lines covered (12.0%)

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/management/AndroidApp.java
1
/*
2
 * 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.management;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.management.AndroidAppError;
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 java.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * AndroidApp
35
 */
36
@JsonPropertyOrder({
37
  AndroidApp.JSON_PROPERTY_DESCRIPTION,
38
  AndroidApp.JSON_PROPERTY_ERROR_CODE,
39
  AndroidApp.JSON_PROPERTY_ERRORS,
40
  AndroidApp.JSON_PROPERTY_ID,
41
  AndroidApp.JSON_PROPERTY_LABEL,
42
  AndroidApp.JSON_PROPERTY_PACKAGE_NAME,
43
  AndroidApp.JSON_PROPERTY_STATUS,
44
  AndroidApp.JSON_PROPERTY_VERSION_CODE,
45
  AndroidApp.JSON_PROPERTY_VERSION_NAME
46
})
47

48
public class AndroidApp {
49
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
50
  private String description;
51

52
  public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
53
  @Deprecated
54
  private String errorCode;
55

56
  public static final String JSON_PROPERTY_ERRORS = "errors";
NEW
57
  private List<AndroidAppError> errors = null;
×
58

59
  public static final String JSON_PROPERTY_ID = "id";
60
  private String id;
61

62
  public static final String JSON_PROPERTY_LABEL = "label";
63
  private String label;
64

65
  public static final String JSON_PROPERTY_PACKAGE_NAME = "packageName";
66
  private String packageName;
67

68
  public static final String JSON_PROPERTY_STATUS = "status";
69
  private String status;
70

71
  public static final String JSON_PROPERTY_VERSION_CODE = "versionCode";
72
  private Integer versionCode;
73

74
  public static final String JSON_PROPERTY_VERSION_NAME = "versionName";
75
  private String versionName;
76

77
  public AndroidApp() { 
×
78
  }
×
79

80
  public AndroidApp description(String description) {
81
    this.description = description;
×
82
    return this;
×
83
  }
84

85
   /**
86
   * The description that was provided when uploading the app. The description is not shown on the terminal.
87
   * @return description
88
  **/
89
  @ApiModelProperty(value = "The description that was provided when uploading the app. The description is not shown on the terminal.")
90
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
91
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92

93
  public String getDescription() {
94
    return description;
×
95
  }
96

97

98
 /**
99
  * The description that was provided when uploading the app. The description is not shown on the terminal.
100
  *
101
  * @param description
102
  */ 
103
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105
  public void setDescription(String description) {
106
    this.description = description;
×
107
  }
×
108

109

110
  @Deprecated
111
  public AndroidApp errorCode(String errorCode) {
112
    this.errorCode = errorCode;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
118
   * @return errorCode
119
   * @deprecated
120
  **/
121
  @Deprecated
122
  @ApiModelProperty(value = "The error code of the Android app with the `status` of either **error** or **invalid**.")
123
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125

126
  public String getErrorCode() {
127
    return errorCode;
×
128
  }
129

130

131
 /**
132
  * The error code of the Android app with the &#x60;status&#x60; of either **error** or **invalid**.
133
  *
134
  * @param errorCode
135
  */ 
136
  @Deprecated
137
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139
  public void setErrorCode(String errorCode) {
140
    this.errorCode = errorCode;
×
141
  }
×
142

143

144
  public AndroidApp errors(List<AndroidAppError> errors) {
NEW
145
    this.errors = errors;
×
NEW
146
    return this;
×
147
  }
148

149
  public AndroidApp addErrorsItem(AndroidAppError errorsItem) {
NEW
150
    if (this.errors == null) {
×
NEW
151
      this.errors = new ArrayList<>();
×
152
    }
NEW
153
    this.errors.add(errorsItem);
×
NEW
154
    return this;
×
155
  }
156

157
   /**
158
   * The list of errors of the Android app.
159
   * @return errors
160
  **/
161
  @ApiModelProperty(value = "The list of errors of the Android app.")
162
  @JsonProperty(JSON_PROPERTY_ERRORS)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164

165
  public List<AndroidAppError> getErrors() {
NEW
166
    return errors;
×
167
  }
168

169

170
 /**
171
  * The list of errors of the Android app.
172
  *
173
  * @param errors
174
  */ 
175
  @JsonProperty(JSON_PROPERTY_ERRORS)
176
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177
  public void setErrors(List<AndroidAppError> errors) {
NEW
178
    this.errors = errors;
×
NEW
179
  }
×
180

181

182
  public AndroidApp id(String id) {
183
    this.id = id;
×
184
    return this;
×
185
  }
186

187
   /**
188
   * The unique identifier of the app.
189
   * @return id
190
  **/
191
  @ApiModelProperty(required = true, value = "The unique identifier of the app.")
192
  @JsonProperty(JSON_PROPERTY_ID)
193
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
194

195
  public String getId() {
196
    return id;
×
197
  }
198

199

200
 /**
201
  * The unique identifier of the app.
202
  *
203
  * @param id
204
  */ 
205
  @JsonProperty(JSON_PROPERTY_ID)
206
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
207
  public void setId(String id) {
208
    this.id = id;
×
209
  }
×
210

211

212
  public AndroidApp label(String label) {
213
    this.label = label;
×
214
    return this;
×
215
  }
216

217
   /**
218
   * The app name that is shown on the terminal.
219
   * @return label
220
  **/
221
  @ApiModelProperty(value = "The app name that is shown on the terminal.")
222
  @JsonProperty(JSON_PROPERTY_LABEL)
223
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
224

225
  public String getLabel() {
226
    return label;
×
227
  }
228

229

230
 /**
231
  * The app name that is shown on the terminal.
232
  *
233
  * @param label
234
  */ 
235
  @JsonProperty(JSON_PROPERTY_LABEL)
236
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
237
  public void setLabel(String label) {
238
    this.label = label;
×
239
  }
×
240

241

242
  public AndroidApp packageName(String packageName) {
243
    this.packageName = packageName;
×
244
    return this;
×
245
  }
246

247
   /**
248
   * The package name that uniquely identifies the Android app.
249
   * @return packageName
250
  **/
251
  @ApiModelProperty(value = "The package name that uniquely identifies the Android app.")
252
  @JsonProperty(JSON_PROPERTY_PACKAGE_NAME)
253
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
254

255
  public String getPackageName() {
256
    return packageName;
×
257
  }
258

259

260
 /**
261
  * The package name that uniquely identifies the Android app.
262
  *
263
  * @param packageName
264
  */ 
265
  @JsonProperty(JSON_PROPERTY_PACKAGE_NAME)
266
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
267
  public void setPackageName(String packageName) {
268
    this.packageName = packageName;
×
269
  }
×
270

271

272
  public AndroidApp status(String status) {
273
    this.status = status;
×
274
    return this;
×
275
  }
276

277
   /**
278
   * The status of the app. Possible values:  * &#x60;processing&#x60;: the app is being signed and converted to a format that the terminal can handle. * &#x60;error&#x60;: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * &#x60;invalid&#x60;: there is something wrong with the APK file of the app. * &#x60;ready&#x60;: the app has been signed and converted. * &#x60;archived&#x60;: the app is no longer available.
279
   * @return status
280
  **/
281
  @ApiModelProperty(required = true, value = "The status of the app. Possible values:  * `processing`: the app is being signed and converted to a format that the terminal can handle. * `error`: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: there is something wrong with the APK file of the app. * `ready`: the app has been signed and converted. * `archived`: the app is no longer available.")
282
  @JsonProperty(JSON_PROPERTY_STATUS)
283
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
284

285
  public String getStatus() {
286
    return status;
×
287
  }
288

289

290
 /**
291
  * The status of the app. Possible values:  * &#x60;processing&#x60;: the app is being signed and converted to a format that the terminal can handle. * &#x60;error&#x60;: something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * &#x60;invalid&#x60;: there is something wrong with the APK file of the app. * &#x60;ready&#x60;: the app has been signed and converted. * &#x60;archived&#x60;: the app is no longer available.
292
  *
293
  * @param status
294
  */ 
295
  @JsonProperty(JSON_PROPERTY_STATUS)
296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
297
  public void setStatus(String status) {
298
    this.status = status;
×
299
  }
×
300

301

302
  public AndroidApp versionCode(Integer versionCode) {
303
    this.versionCode = versionCode;
×
304
    return this;
×
305
  }
306

307
   /**
308
   * The version number of the app.
309
   * @return versionCode
310
  **/
311
  @ApiModelProperty(value = "The version number of the app.")
312
  @JsonProperty(JSON_PROPERTY_VERSION_CODE)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314

315
  public Integer getVersionCode() {
316
    return versionCode;
×
317
  }
318

319

320
 /**
321
  * The version number of the app.
322
  *
323
  * @param versionCode
324
  */ 
325
  @JsonProperty(JSON_PROPERTY_VERSION_CODE)
326
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
327
  public void setVersionCode(Integer versionCode) {
328
    this.versionCode = versionCode;
×
329
  }
×
330

331

332
  public AndroidApp versionName(String versionName) {
333
    this.versionName = versionName;
×
334
    return this;
×
335
  }
336

337
   /**
338
   * The app version number that is shown on the terminal.
339
   * @return versionName
340
  **/
341
  @ApiModelProperty(value = "The app version number that is shown on the terminal.")
342
  @JsonProperty(JSON_PROPERTY_VERSION_NAME)
343
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
344

345
  public String getVersionName() {
346
    return versionName;
×
347
  }
348

349

350
 /**
351
  * The app version number that is shown on the terminal.
352
  *
353
  * @param versionName
354
  */ 
355
  @JsonProperty(JSON_PROPERTY_VERSION_NAME)
356
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
357
  public void setVersionName(String versionName) {
358
    this.versionName = versionName;
×
359
  }
×
360

361

362
  /**
363
   * Return true if this AndroidApp object is equal to o.
364
   */
365
  @Override
366
  public boolean equals(Object o) {
367
    if (this == o) {
×
368
      return true;
×
369
    }
370
    if (o == null || getClass() != o.getClass()) {
×
371
      return false;
×
372
    }
373
    AndroidApp androidApp = (AndroidApp) o;
×
374
    return Objects.equals(this.description, androidApp.description) &&
×
375
        Objects.equals(this.errorCode, androidApp.errorCode) &&
×
NEW
376
        Objects.equals(this.errors, androidApp.errors) &&
×
377
        Objects.equals(this.id, androidApp.id) &&
×
378
        Objects.equals(this.label, androidApp.label) &&
×
379
        Objects.equals(this.packageName, androidApp.packageName) &&
×
380
        Objects.equals(this.status, androidApp.status) &&
×
381
        Objects.equals(this.versionCode, androidApp.versionCode) &&
×
382
        Objects.equals(this.versionName, androidApp.versionName);
×
383
  }
384

385
  @Override
386
  public int hashCode() {
NEW
387
    return Objects.hash(description, errorCode, errors, id, label, packageName, status, versionCode, versionName);
×
388
  }
389

390
  @Override
391
  public String toString() {
392
    StringBuilder sb = new StringBuilder();
×
393
    sb.append("class AndroidApp {\n");
×
394
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
395
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
NEW
396
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
×
397
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
398
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
×
399
    sb.append("    packageName: ").append(toIndentedString(packageName)).append("\n");
×
400
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
401
    sb.append("    versionCode: ").append(toIndentedString(versionCode)).append("\n");
×
402
    sb.append("    versionName: ").append(toIndentedString(versionName)).append("\n");
×
403
    sb.append("}");
×
404
    return sb.toString();
×
405
  }
406

407
  /**
408
   * Convert the given object to string with each line indented by 4 spaces
409
   * (except the first line).
410
   */
411
  private String toIndentedString(Object o) {
412
    if (o == null) {
×
413
      return "null";
×
414
    }
415
    return o.toString().replace("\n", "\n    ");
×
416
  }
417

418
/**
419
   * Create an instance of AndroidApp given an JSON string
420
   *
421
   * @param jsonString JSON string
422
   * @return An instance of AndroidApp
423
   * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidApp
424
   */
425
  public static AndroidApp fromJson(String jsonString) throws JsonProcessingException {
426
    return JSON.getMapper().readValue(jsonString, AndroidApp.class);
×
427
  }
428
/**
429
  * Convert an instance of AndroidApp to an JSON string
430
  *
431
  * @return JSON string
432
  */
433
  public String toJson() throws JsonProcessingException {
434
    return JSON.getMapper().writeValueAsString(this);
×
435
  }
436
}
437

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