You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewFDSMException("Services requiring payment are not supported by fdsm. Please use the Android app!");
122
+
JsonNodeservice;
123
+
try {
124
+
service = client.rpc(client.getURI(FidesmoApiClient.SERVICE_FOR_CARD_URL, appId, serviceId, HexUtils.bin2hex(card.getCIN())), null);
125
+
} catch (HttpResponseExceptione) {
126
+
switch(e.getStatusCode()) {
127
+
case404:
128
+
thrownewServiceNotAvailableException("Unknown service ID: " + serviceId, ServiceNotAvailableException.ErrorCode.UNKNOWN_SERVICE, e);
129
+
case403:
130
+
thrownewServiceNotAvailableException("Service is not available for this device", ServiceNotAvailableException.ErrorCode.NOT_AVAILABLE_FOR_DEVICE, e);
131
+
case406:
132
+
thrownewServiceNotAvailableException("Service is not available for this client", ServiceNotAvailableException.ErrorCode.NOT_AVAILABLE_FOR_DEVICE, e);
133
+
case412:
134
+
thrownewServiceNotAvailableException("Service is not available for the current device state", ServiceNotAvailableException.ErrorCode.NOT_AVAILABLE_IN_CURRENT_STATE, e);
0 commit comments