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

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

21 Mar 2024 10:28AM UTC coverage: 12.294%. First build
#3177

push

web-flow
Merge 3d6ff7572 into d61048882

0 of 208 new or added lines in 10 files covered. (0.0%)

12446 of 101233 relevant lines covered (12.29%)

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/Terminal.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.TerminalAssignment;
20
import com.adyen.model.management.TerminalConnectivity;
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.time.OffsetDateTime;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * Terminal
35
 */
36
@JsonPropertyOrder({
37
  Terminal.JSON_PROPERTY_ASSIGNMENT,
38
  Terminal.JSON_PROPERTY_CONNECTIVITY,
39
  Terminal.JSON_PROPERTY_FIRMWARE_VERSION,
40
  Terminal.JSON_PROPERTY_ID,
41
  Terminal.JSON_PROPERTY_LAST_ACTIVITY_AT,
42
  Terminal.JSON_PROPERTY_LAST_TRANSACTION_AT,
43
  Terminal.JSON_PROPERTY_MODEL,
44
  Terminal.JSON_PROPERTY_RESTART_LOCAL_TIME,
45
  Terminal.JSON_PROPERTY_SERIAL_NUMBER
46
})
47

48
public class Terminal {
49
  public static final String JSON_PROPERTY_ASSIGNMENT = "assignment";
50
  private TerminalAssignment assignment;
51

52
  public static final String JSON_PROPERTY_CONNECTIVITY = "connectivity";
53
  private TerminalConnectivity connectivity;
54

55
  public static final String JSON_PROPERTY_FIRMWARE_VERSION = "firmwareVersion";
56
  private String firmwareVersion;
57

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

61
  public static final String JSON_PROPERTY_LAST_ACTIVITY_AT = "lastActivityAt";
62
  private OffsetDateTime lastActivityAt;
63

64
  public static final String JSON_PROPERTY_LAST_TRANSACTION_AT = "lastTransactionAt";
65
  private OffsetDateTime lastTransactionAt;
66

67
  public static final String JSON_PROPERTY_MODEL = "model";
68
  private String model;
69

70
  public static final String JSON_PROPERTY_RESTART_LOCAL_TIME = "restartLocalTime";
71
  private String restartLocalTime;
72

73
  public static final String JSON_PROPERTY_SERIAL_NUMBER = "serialNumber";
74
  private String serialNumber;
75

76
  public Terminal() { 
×
77
  }
×
78

79
  public Terminal assignment(TerminalAssignment assignment) {
80
    this.assignment = assignment;
×
81
    return this;
×
82
  }
83

84
   /**
85
   * Get assignment
86
   * @return assignment
87
  **/
88
  @ApiModelProperty(value = "")
89
  @JsonProperty(JSON_PROPERTY_ASSIGNMENT)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91

92
  public TerminalAssignment getAssignment() {
93
    return assignment;
×
94
  }
95

96

97
 /**
98
  * assignment
99
  *
100
  * @param assignment
101
  */ 
102
  @JsonProperty(JSON_PROPERTY_ASSIGNMENT)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104
  public void setAssignment(TerminalAssignment assignment) {
105
    this.assignment = assignment;
×
106
  }
×
107

108

109
  public Terminal connectivity(TerminalConnectivity connectivity) {
110
    this.connectivity = connectivity;
×
111
    return this;
×
112
  }
113

114
   /**
115
   * Get connectivity
116
   * @return connectivity
117
  **/
118
  @ApiModelProperty(value = "")
119
  @JsonProperty(JSON_PROPERTY_CONNECTIVITY)
120
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
121

122
  public TerminalConnectivity getConnectivity() {
123
    return connectivity;
×
124
  }
125

126

127
 /**
128
  * connectivity
129
  *
130
  * @param connectivity
131
  */ 
132
  @JsonProperty(JSON_PROPERTY_CONNECTIVITY)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134
  public void setConnectivity(TerminalConnectivity connectivity) {
135
    this.connectivity = connectivity;
×
136
  }
×
137

138

139
  public Terminal firmwareVersion(String firmwareVersion) {
140
    this.firmwareVersion = firmwareVersion;
×
141
    return this;
×
142
  }
143

144
   /**
145
   * The software release currently in use on the terminal.
146
   * @return firmwareVersion
147
  **/
148
  @ApiModelProperty(value = "The software release currently in use on the terminal.")
149
  @JsonProperty(JSON_PROPERTY_FIRMWARE_VERSION)
150
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151

152
  public String getFirmwareVersion() {
153
    return firmwareVersion;
×
154
  }
155

156

157
 /**
158
  * The software release currently in use on the terminal.
159
  *
160
  * @param firmwareVersion
161
  */ 
162
  @JsonProperty(JSON_PROPERTY_FIRMWARE_VERSION)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164
  public void setFirmwareVersion(String firmwareVersion) {
165
    this.firmwareVersion = firmwareVersion;
×
166
  }
×
167

168

169
  public Terminal id(String id) {
170
    this.id = id;
×
171
    return this;
×
172
  }
173

174
   /**
175
   * The unique identifier of the terminal.
176
   * @return id
177
  **/
178
  @ApiModelProperty(value = "The unique identifier of the terminal.")
179
  @JsonProperty(JSON_PROPERTY_ID)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181

182
  public String getId() {
183
    return id;
×
184
  }
185

186

187
 /**
188
  * The unique identifier of the terminal.
189
  *
190
  * @param id
191
  */ 
192
  @JsonProperty(JSON_PROPERTY_ID)
193
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
194
  public void setId(String id) {
195
    this.id = id;
×
196
  }
×
197

198

199
  public Terminal lastActivityAt(OffsetDateTime lastActivityAt) {
200
    this.lastActivityAt = lastActivityAt;
×
201
    return this;
×
202
  }
203

204
   /**
205
   * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.
206
   * @return lastActivityAt
207
  **/
208
  @ApiModelProperty(value = "Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.")
209
  @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211

212
  public OffsetDateTime getLastActivityAt() {
213
    return lastActivityAt;
×
214
  }
215

216

217
 /**
218
  * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago.
219
  *
220
  * @param lastActivityAt
221
  */ 
222
  @JsonProperty(JSON_PROPERTY_LAST_ACTIVITY_AT)
223
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
224
  public void setLastActivityAt(OffsetDateTime lastActivityAt) {
225
    this.lastActivityAt = lastActivityAt;
×
226
  }
×
227

228

229
  public Terminal lastTransactionAt(OffsetDateTime lastTransactionAt) {
230
    this.lastTransactionAt = lastTransactionAt;
×
231
    return this;
×
232
  }
233

234
   /**
235
   * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.
236
   * @return lastTransactionAt
237
  **/
238
  @ApiModelProperty(value = "Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.")
239
  @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT)
240
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241

242
  public OffsetDateTime getLastTransactionAt() {
243
    return lastTransactionAt;
×
244
  }
245

246

247
 /**
248
  * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago.
249
  *
250
  * @param lastTransactionAt
251
  */ 
252
  @JsonProperty(JSON_PROPERTY_LAST_TRANSACTION_AT)
253
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
254
  public void setLastTransactionAt(OffsetDateTime lastTransactionAt) {
255
    this.lastTransactionAt = lastTransactionAt;
×
256
  }
×
257

258

259
  public Terminal model(String model) {
260
    this.model = model;
×
261
    return this;
×
262
  }
263

264
   /**
265
   * The model name of the terminal.
266
   * @return model
267
  **/
268
  @ApiModelProperty(value = "The model name of the terminal.")
269
  @JsonProperty(JSON_PROPERTY_MODEL)
270
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
271

272
  public String getModel() {
273
    return model;
×
274
  }
275

276

277
 /**
278
  * The model name of the terminal.
279
  *
280
  * @param model
281
  */ 
282
  @JsonProperty(JSON_PROPERTY_MODEL)
283
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
284
  public void setModel(String model) {
285
    this.model = model;
×
286
  }
×
287

288

289
  public Terminal restartLocalTime(String restartLocalTime) {
NEW
290
    this.restartLocalTime = restartLocalTime;
×
NEW
291
    return this;
×
292
  }
293

294
   /**
295
   * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.
296
   * @return restartLocalTime
297
  **/
298
  @ApiModelProperty(value = "The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.")
299
  @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME)
300
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
301

302
  public String getRestartLocalTime() {
NEW
303
    return restartLocalTime;
×
304
  }
305

306

307
 /**
308
  * The exact time of the terminal reboot, in the timezone of the terminal in **HH:mm** format.
309
  *
310
  * @param restartLocalTime
311
  */ 
312
  @JsonProperty(JSON_PROPERTY_RESTART_LOCAL_TIME)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314
  public void setRestartLocalTime(String restartLocalTime) {
NEW
315
    this.restartLocalTime = restartLocalTime;
×
NEW
316
  }
×
317

318

319
  public Terminal serialNumber(String serialNumber) {
320
    this.serialNumber = serialNumber;
×
321
    return this;
×
322
  }
323

324
   /**
325
   * The serial number of the terminal.
326
   * @return serialNumber
327
  **/
328
  @ApiModelProperty(value = "The serial number of the terminal.")
329
  @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER)
330
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
331

332
  public String getSerialNumber() {
333
    return serialNumber;
×
334
  }
335

336

337
 /**
338
  * The serial number of the terminal.
339
  *
340
  * @param serialNumber
341
  */ 
342
  @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER)
343
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
344
  public void setSerialNumber(String serialNumber) {
345
    this.serialNumber = serialNumber;
×
346
  }
×
347

348

349
  /**
350
   * Return true if this Terminal object is equal to o.
351
   */
352
  @Override
353
  public boolean equals(Object o) {
354
    if (this == o) {
×
355
      return true;
×
356
    }
357
    if (o == null || getClass() != o.getClass()) {
×
358
      return false;
×
359
    }
360
    Terminal terminal = (Terminal) o;
×
361
    return Objects.equals(this.assignment, terminal.assignment) &&
×
362
        Objects.equals(this.connectivity, terminal.connectivity) &&
×
363
        Objects.equals(this.firmwareVersion, terminal.firmwareVersion) &&
×
364
        Objects.equals(this.id, terminal.id) &&
×
365
        Objects.equals(this.lastActivityAt, terminal.lastActivityAt) &&
×
366
        Objects.equals(this.lastTransactionAt, terminal.lastTransactionAt) &&
×
367
        Objects.equals(this.model, terminal.model) &&
×
NEW
368
        Objects.equals(this.restartLocalTime, terminal.restartLocalTime) &&
×
369
        Objects.equals(this.serialNumber, terminal.serialNumber);
×
370
  }
371

372
  @Override
373
  public int hashCode() {
NEW
374
    return Objects.hash(assignment, connectivity, firmwareVersion, id, lastActivityAt, lastTransactionAt, model, restartLocalTime, serialNumber);
×
375
  }
376

377
  @Override
378
  public String toString() {
379
    StringBuilder sb = new StringBuilder();
×
380
    sb.append("class Terminal {\n");
×
381
    sb.append("    assignment: ").append(toIndentedString(assignment)).append("\n");
×
382
    sb.append("    connectivity: ").append(toIndentedString(connectivity)).append("\n");
×
383
    sb.append("    firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n");
×
384
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
385
    sb.append("    lastActivityAt: ").append(toIndentedString(lastActivityAt)).append("\n");
×
386
    sb.append("    lastTransactionAt: ").append(toIndentedString(lastTransactionAt)).append("\n");
×
387
    sb.append("    model: ").append(toIndentedString(model)).append("\n");
×
NEW
388
    sb.append("    restartLocalTime: ").append(toIndentedString(restartLocalTime)).append("\n");
×
389
    sb.append("    serialNumber: ").append(toIndentedString(serialNumber)).append("\n");
×
390
    sb.append("}");
×
391
    return sb.toString();
×
392
  }
393

394
  /**
395
   * Convert the given object to string with each line indented by 4 spaces
396
   * (except the first line).
397
   */
398
  private String toIndentedString(Object o) {
399
    if (o == null) {
×
400
      return "null";
×
401
    }
402
    return o.toString().replace("\n", "\n    ");
×
403
  }
404

405
/**
406
   * Create an instance of Terminal given an JSON string
407
   *
408
   * @param jsonString JSON string
409
   * @return An instance of Terminal
410
   * @throws JsonProcessingException if the JSON string is invalid with respect to Terminal
411
   */
412
  public static Terminal fromJson(String jsonString) throws JsonProcessingException {
413
    return JSON.getMapper().readValue(jsonString, Terminal.class);
×
414
  }
415
/**
416
  * Convert an instance of Terminal to an JSON string
417
  *
418
  * @return JSON string
419
  */
420
  public String toJson() throws JsonProcessingException {
421
    return JSON.getMapper().writeValueAsString(this);
×
422
  }
423
}
424

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