3030 * <enumeration value="CardInserted"/>
3131 * <enumeration value="CardRemoved"/>
3232 * <enumeration value="Reject"/>
33+ * <enumeration value="NetworkConnected"/>
34+ * <enumeration value="NetworkDisconnected"/>
3335 * </restriction>
3436 * </simpleType>
3537 * </pre>
@@ -141,7 +143,22 @@ public enum EventToNotifyType {
141143 @ Schema (
142144 description =
143145 "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+
145162 private final String value ;
146163
147164 EventToNotifyType (String v ) {
@@ -165,8 +182,8 @@ public String value() {
165182 */
166183 public static EventToNotifyType fromValue (String v ) {
167184 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 ));
171188 }
172189}
0 commit comments