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

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

04 Sep 2024 10:05AM UTC coverage: 11.82%. First build
#3484

push

web-flow
Merge 528bc9298 into ff99db3d6

0 of 403 new or added lines in 11 files covered. (0.0%)

12570 of 106343 relevant lines covered (11.82%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.23
/src/main/java/com/adyen/model/management/Connectivity.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.EventUrl;
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
 * Connectivity
33
 */
34
@JsonPropertyOrder({
35
  Connectivity.JSON_PROPERTY_SIMCARD_STATUS,
36
  Connectivity.JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L
37
})
38

39
public class Connectivity {
40
  /**
41
   * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity.  Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.
42
   */
43
  public enum SimcardStatusEnum {
1✔
44
    ACTIVATED("ACTIVATED"),
1✔
45
    
46
    INVENTORY("INVENTORY");
1✔
47

48
    private String value;
49

50
    SimcardStatusEnum(String value) {
1✔
51
      this.value = value;
1✔
52
    }
1✔
53

54
    @JsonValue
55
    public String getValue() {
56
      return value;
×
57
    }
58

59
    @Override
60
    public String toString() {
61
      return String.valueOf(value);
×
62
    }
63

64
    @JsonCreator
65
    public static SimcardStatusEnum fromValue(String value) {
66
      for (SimcardStatusEnum b : SimcardStatusEnum.values()) {
1✔
67
        if (b.value.equals(value)) {
1✔
68
          return b;
1✔
69
        }
70
      }
71
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
72
    }
73
  }
74

75
  public static final String JSON_PROPERTY_SIMCARD_STATUS = "simcardStatus";
76
  private SimcardStatusEnum simcardStatus;
77

78
  public static final String JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L = "terminalIPAddressURL";
79
  private EventUrl terminalIPAddressURL;
80

81
  public Connectivity() { 
1✔
82
  }
1✔
83

84
  public Connectivity simcardStatus(SimcardStatusEnum simcardStatus) {
85
    this.simcardStatus = simcardStatus;
×
86
    return this;
×
87
  }
88

89
   /**
90
   * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity.  Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.
91
   * @return simcardStatus
92
  **/
93
  @ApiModelProperty(value = "Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity.  Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.")
94
  @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS)
95
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
96

97
  public SimcardStatusEnum getSimcardStatus() {
98
    return simcardStatus;
×
99
  }
100

101

102
 /**
103
  * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity.  Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.
104
  *
105
  * @param simcardStatus
106
  */ 
107
  @JsonProperty(JSON_PROPERTY_SIMCARD_STATUS)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109
  public void setSimcardStatus(SimcardStatusEnum simcardStatus) {
110
    this.simcardStatus = simcardStatus;
1✔
111
  }
1✔
112

113

114
  public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) {
NEW
115
    this.terminalIPAddressURL = terminalIPAddressURL;
×
NEW
116
    return this;
×
117
  }
118

119
   /**
120
   * Get terminalIPAddressURL
121
   * @return terminalIPAddressURL
122
  **/
123
  @ApiModelProperty(value = "")
124
  @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

127
  public EventUrl getTerminalIPAddressURL() {
NEW
128
    return terminalIPAddressURL;
×
129
  }
130

131

132
 /**
133
  * terminalIPAddressURL
134
  *
135
  * @param terminalIPAddressURL
136
  */ 
137
  @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139
  public void setTerminalIPAddressURL(EventUrl terminalIPAddressURL) {
NEW
140
    this.terminalIPAddressURL = terminalIPAddressURL;
×
NEW
141
  }
×
142

143

144
  /**
145
   * Return true if this Connectivity object is equal to o.
146
   */
147
  @Override
148
  public boolean equals(Object o) {
149
    if (this == o) {
×
150
      return true;
×
151
    }
152
    if (o == null || getClass() != o.getClass()) {
×
153
      return false;
×
154
    }
155
    Connectivity connectivity = (Connectivity) o;
×
NEW
156
    return Objects.equals(this.simcardStatus, connectivity.simcardStatus) &&
×
NEW
157
        Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL);
×
158
  }
159

160
  @Override
161
  public int hashCode() {
NEW
162
    return Objects.hash(simcardStatus, terminalIPAddressURL);
×
163
  }
164

165
  @Override
166
  public String toString() {
167
    StringBuilder sb = new StringBuilder();
×
168
    sb.append("class Connectivity {\n");
×
169
    sb.append("    simcardStatus: ").append(toIndentedString(simcardStatus)).append("\n");
×
NEW
170
    sb.append("    terminalIPAddressURL: ").append(toIndentedString(terminalIPAddressURL)).append("\n");
×
171
    sb.append("}");
×
172
    return sb.toString();
×
173
  }
174

175
  /**
176
   * Convert the given object to string with each line indented by 4 spaces
177
   * (except the first line).
178
   */
179
  private String toIndentedString(Object o) {
180
    if (o == null) {
×
181
      return "null";
×
182
    }
183
    return o.toString().replace("\n", "\n    ");
×
184
  }
185

186
/**
187
   * Create an instance of Connectivity given an JSON string
188
   *
189
   * @param jsonString JSON string
190
   * @return An instance of Connectivity
191
   * @throws JsonProcessingException if the JSON string is invalid with respect to Connectivity
192
   */
193
  public static Connectivity fromJson(String jsonString) throws JsonProcessingException {
194
    return JSON.getMapper().readValue(jsonString, Connectivity.class);
×
195
  }
196
/**
197
  * Convert an instance of Connectivity to an JSON string
198
  *
199
  * @return JSON string
200
  */
201
  public String toJson() throws JsonProcessingException {
202
    return JSON.getMapper().writeValueAsString(this);
×
203
  }
204
}
205

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