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

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

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

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/management/AndroidApp.java
1
/*
2
 * Management API
3
 *
4
 * The version of the OpenAPI document: 1
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.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
 * AndroidApp
32
 */
33
@JsonPropertyOrder({
34
  AndroidApp.JSON_PROPERTY_DESCRIPTION,
35
  AndroidApp.JSON_PROPERTY_ERROR_CODE,
36
  AndroidApp.JSON_PROPERTY_ID,
37
  AndroidApp.JSON_PROPERTY_LABEL,
38
  AndroidApp.JSON_PROPERTY_PACKAGE_NAME,
39
  AndroidApp.JSON_PROPERTY_STATUS,
40
  AndroidApp.JSON_PROPERTY_VERSION_CODE,
41
  AndroidApp.JSON_PROPERTY_VERSION_NAME
42
})
43

44
public class AndroidApp {
45
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
46
  private String description;
47

48
  public static final String JSON_PROPERTY_ERROR_CODE = "errorCode";
49
  private String errorCode;
50

51
  public static final String JSON_PROPERTY_ID = "id";
52
  private String id;
53

54
  public static final String JSON_PROPERTY_LABEL = "label";
55
  private String label;
56

57
  public static final String JSON_PROPERTY_PACKAGE_NAME = "packageName";
58
  private String packageName;
59

60
  public static final String JSON_PROPERTY_STATUS = "status";
61
  private String status;
62

63
  public static final String JSON_PROPERTY_VERSION_CODE = "versionCode";
64
  private Integer versionCode;
65

66
  public static final String JSON_PROPERTY_VERSION_NAME = "versionName";
67
  private String versionName;
68

69
  public AndroidApp() { 
×
70
  }
×
71

72
  public AndroidApp description(String description) {
73
    this.description = description;
×
74
    return this;
×
75
  }
76

77
   /**
78
   * The description that was provided when uploading the app. The description is not shown on the terminal.
79
   * @return description
80
  **/
81
  @ApiModelProperty(value = "The description that was provided when uploading the app. The description is not shown on the terminal.")
82
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
83
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84

85
  public String getDescription() {
86
    return description;
×
87
  }
88

89

90
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
91
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92
  public void setDescription(String description) {
93
    this.description = description;
×
94
  }
×
95

96

97
  public AndroidApp errorCode(String errorCode) {
98
    this.errorCode = errorCode;
×
99
    return this;
×
100
  }
101

102
   /**
103
   * The error code of the app. It exists if the status is error or invalid.
104
   * @return errorCode
105
  **/
106
  @ApiModelProperty(value = "The error code of the app. It exists if the status is error or invalid.")
107
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109

110
  public String getErrorCode() {
111
    return errorCode;
×
112
  }
113

114

115
  @JsonProperty(JSON_PROPERTY_ERROR_CODE)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117
  public void setErrorCode(String errorCode) {
118
    this.errorCode = errorCode;
×
119
  }
×
120

121

122
  public AndroidApp id(String id) {
123
    this.id = id;
×
124
    return this;
×
125
  }
126

127
   /**
128
   * The unique identifier of the app.
129
   * @return id
130
  **/
131
  @ApiModelProperty(required = true, value = "The unique identifier of the app.")
132
  @JsonProperty(JSON_PROPERTY_ID)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134

135
  public String getId() {
136
    return id;
×
137
  }
138

139

140
  @JsonProperty(JSON_PROPERTY_ID)
141
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142
  public void setId(String id) {
143
    this.id = id;
×
144
  }
×
145

146

147
  public AndroidApp label(String label) {
148
    this.label = label;
×
149
    return this;
×
150
  }
151

152
   /**
153
   * The app name that is shown on the terminal.
154
   * @return label
155
  **/
156
  @ApiModelProperty(value = "The app name that is shown on the terminal.")
157
  @JsonProperty(JSON_PROPERTY_LABEL)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159

160
  public String getLabel() {
161
    return label;
×
162
  }
163

164

165
  @JsonProperty(JSON_PROPERTY_LABEL)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167
  public void setLabel(String label) {
168
    this.label = label;
×
169
  }
×
170

171

172
  public AndroidApp packageName(String packageName) {
173
    this.packageName = packageName;
×
174
    return this;
×
175
  }
176

177
   /**
178
   * The package name that uniquely identifies the Android app.
179
   * @return packageName
180
  **/
181
  @ApiModelProperty(value = "The package name that uniquely identifies the Android app.")
182
  @JsonProperty(JSON_PROPERTY_PACKAGE_NAME)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184

185
  public String getPackageName() {
186
    return packageName;
×
187
  }
188

189

190
  @JsonProperty(JSON_PROPERTY_PACKAGE_NAME)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192
  public void setPackageName(String packageName) {
193
    this.packageName = packageName;
×
194
  }
×
195

196

197
  public AndroidApp status(String status) {
198
    this.status = status;
×
199
    return this;
×
200
  }
201

202
   /**
203
   * 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.
204
   * @return status
205
  **/
206
  @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.")
207
  @JsonProperty(JSON_PROPERTY_STATUS)
208
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
209

210
  public String getStatus() {
211
    return status;
×
212
  }
213

214

215
  @JsonProperty(JSON_PROPERTY_STATUS)
216
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
217
  public void setStatus(String status) {
218
    this.status = status;
×
219
  }
×
220

221

222
  public AndroidApp versionCode(Integer versionCode) {
223
    this.versionCode = versionCode;
×
224
    return this;
×
225
  }
226

227
   /**
228
   * The version number of the app.
229
   * @return versionCode
230
  **/
231
  @ApiModelProperty(value = "The version number of the app.")
232
  @JsonProperty(JSON_PROPERTY_VERSION_CODE)
233
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
234

235
  public Integer getVersionCode() {
236
    return versionCode;
×
237
  }
238

239

240
  @JsonProperty(JSON_PROPERTY_VERSION_CODE)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242
  public void setVersionCode(Integer versionCode) {
243
    this.versionCode = versionCode;
×
244
  }
×
245

246

247
  public AndroidApp versionName(String versionName) {
248
    this.versionName = versionName;
×
249
    return this;
×
250
  }
251

252
   /**
253
   * The app version number that is shown on the terminal.
254
   * @return versionName
255
  **/
256
  @ApiModelProperty(value = "The app version number that is shown on the terminal.")
257
  @JsonProperty(JSON_PROPERTY_VERSION_NAME)
258
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
259

260
  public String getVersionName() {
261
    return versionName;
×
262
  }
263

264

265
  @JsonProperty(JSON_PROPERTY_VERSION_NAME)
266
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
267
  public void setVersionName(String versionName) {
268
    this.versionName = versionName;
×
269
  }
×
270

271

272
  /**
273
   * Return true if this AndroidApp object is equal to o.
274
   */
275
  @Override
276
  public boolean equals(Object o) {
277
    if (this == o) {
×
278
      return true;
×
279
    }
280
    if (o == null || getClass() != o.getClass()) {
×
281
      return false;
×
282
    }
283
    AndroidApp androidApp = (AndroidApp) o;
×
284
    return Objects.equals(this.description, androidApp.description) &&
×
285
        Objects.equals(this.errorCode, androidApp.errorCode) &&
×
286
        Objects.equals(this.id, androidApp.id) &&
×
287
        Objects.equals(this.label, androidApp.label) &&
×
288
        Objects.equals(this.packageName, androidApp.packageName) &&
×
289
        Objects.equals(this.status, androidApp.status) &&
×
290
        Objects.equals(this.versionCode, androidApp.versionCode) &&
×
291
        Objects.equals(this.versionName, androidApp.versionName);
×
292
  }
293

294
  @Override
295
  public int hashCode() {
296
    return Objects.hash(description, errorCode, id, label, packageName, status, versionCode, versionName);
×
297
  }
298

299
  @Override
300
  public String toString() {
301
    StringBuilder sb = new StringBuilder();
×
302
    sb.append("class AndroidApp {\n");
×
303
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
304
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
×
305
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
306
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
×
307
    sb.append("    packageName: ").append(toIndentedString(packageName)).append("\n");
×
308
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
309
    sb.append("    versionCode: ").append(toIndentedString(versionCode)).append("\n");
×
310
    sb.append("    versionName: ").append(toIndentedString(versionName)).append("\n");
×
311
    sb.append("}");
×
312
    return sb.toString();
×
313
  }
314

315
  /**
316
   * Convert the given object to string with each line indented by 4 spaces
317
   * (except the first line).
318
   */
319
  private String toIndentedString(Object o) {
320
    if (o == null) {
×
321
      return "null";
×
322
    }
323
    return o.toString().replace("\n", "\n    ");
×
324
  }
325

326
/**
327
   * Create an instance of AndroidApp given an JSON string
328
   *
329
   * @param jsonString JSON string
330
   * @return An instance of AndroidApp
331
   * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidApp
332
   */
333
  public static AndroidApp fromJson(String jsonString) throws JsonProcessingException {
334
    return JSON.getMapper().readValue(jsonString, AndroidApp.class);
×
335
  }
336
/**
337
  * Convert an instance of AndroidApp to an JSON string
338
  *
339
  * @return JSON string
340
  */
341
  public String toJson() throws JsonProcessingException {
342
    return JSON.getMapper().writeValueAsString(this);
×
343
  }
344
}
345

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