30
30
* <enumeration value="CardInserted"/>
31
31
* <enumeration value="CardRemoved"/>
32
32
* <enumeration value="Reject"/>
33
+ * <enumeration value="NetworkConnected"/>
34
+ * <enumeration value="NetworkDisconnected"/>
33
35
* </restriction>
34
36
* </simpleType>
35
37
* </pre>
@@ -141,7 +143,22 @@ public enum EventToNotifyType {
141
143
@ Schema (
142
144
description =
143
145
"A message request is rejected. An error explanation and the message in error have to be put in the EventDetails data element." )
144
- REJECT ("Reject" );
146
+ REJECT ("Reject" ),
147
+
148
+ /**
149
+ * The terminal has established a network connection to the POS and is online.
150
+ */
151
+ @ XmlEnumValue ("NetworkConnected" )
152
+ @ Schema (description = "The terminal is connected to the POS over the Internet." )
153
+ NETWORK_CONNECTED ("NetworkConnected" ),
154
+
155
+ /**
156
+ * The terminal has lost its network connection to the POS and is offline.
157
+ */
158
+ @ XmlEnumValue ("NetworkDisconnected" )
159
+ @ Schema (description = "The terminal is disconnected from the POS." )
160
+ NETWORK_DISCONNECTED ("NetworkDisconnected" );
161
+
145
162
private final String value ;
146
163
147
164
EventToNotifyType (String v ) {
@@ -165,8 +182,8 @@ public String value() {
165
182
*/
166
183
public static EventToNotifyType fromValue (String v ) {
167
184
return Arrays .stream (values ())
168
- .filter (s -> s .value .equals (v ))
169
- .findFirst ()
170
- .orElseThrow (() -> new IllegalArgumentException (v ));
185
+ .filter (s -> s .value .equals (v ))
186
+ .findFirst ()
187
+ .orElseThrow (() -> new IllegalArgumentException (v ));
171
188
}
172
189
}
0 commit comments