Exemple #1
0
 public static string NotAllowedForbiddenCardReaderSequence(NexoResponseType r, string messagename, string state)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotAllowed; r.AdditionalResponse = messagename + " not allowed in this state: " + state; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #2
0
 public static string GenericEror(NexoResponseType r, ResultEnumeration result, ErrorConditionEnumeration errorCondition, string addtionalInformation)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = result; r.ErrorCondition = errorCondition; r.AdditionalResponse = addtionalInformation; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #3
0
 public static string DeviceOutPOIPermanentlyUnavailable(NexoResponseType r, string device, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.DeviceOut; r.AdditionalResponse = "POI " + device + " is permanently unavailable: " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #4
0
 public static string UnavailableServiceUnavailableAdministrativeService(NexoResponseType r)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableService; r.AdditionalResponse = "Unavailable administrative service"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #5
0
 public static string UnreachableHostNoHostAnswer(NexoResponseType r, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnreachableHost; r.AdditionalResponse = "No answer from host: " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #6
0
 public static string UnavailableDeviceUnavailablePINVerificationMethod(NexoResponseType r, string method)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = "Unavaible PIN verification method: " + method; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #7
0
 public static string UnavailableServiceTooOldProtocolVersion(NexoResponseType r, string saleversion, string serverversion)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableService; r.AdditionalResponse = "Sale protocol version " + saleversion + " too old for server implemented version: " + serverversion; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #8
0
 public static string NotFoundKeyReferenceNotFound(NexoResponseType r, string keyref)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Key reference " + keyref + " not found"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #9
0
 public static string NotFoundPredefinedMessageReferenceNotFound(NexoResponseType r, string messageid)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Message reference " + messageid + " not found"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #10
0
 public static string NotFoundMessageNotFound(NexoResponseType r, string messagecategory, string id)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Message not found, last " + messagecategory + " has ID " + id; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #11
0
 public static string NotFoundReconciliationNotFound(NexoResponseType r, string reconciliationid, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Reconciliation " + reconciliationid + " not found: " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #12
0
 public static string NotFoundTransactionNotFound(NexoResponseType r, string txnid, string component)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Transaction " + txnid + " not Found in " + component + " link"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #13
0
 public static string BusyPOIBusy(NexoResponseType r, string request)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.Busy; r.AdditionalResponse = "POI terminal busy processing another request: " + request; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #14
0
 public static string NotAllowedForbiddenCardReaderAPDURequest(NexoResponseType r, string apdu, string cardbrand)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotAllowed; r.AdditionalResponse = apdu + " APDU request not allowed for the card: " + cardbrand; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #15
0
 public static string UnavailableDeviceUnavailableInputCommand(NexoResponseType r, string command)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = "Unavaible input command: " + command; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #16
0
 public static string NotFoundLanguageNotSupported(NexoResponseType r, string language)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Language " + language + " not supported"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #17
0
 public static string UnavailableDeviceUnavailablePrintingMode(NexoResponseType r, string parameter, string value)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = "Unavaible printing mode: " + parameter + " (" + value + ")"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #18
0
 public static string NotFoundCardRemoved(NexoResponseType r, string lastmessage)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotFound; r.AdditionalResponse = "Card removed by the customer: " + lastmessage; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #19
0
 public static string UnavailableDeviceUnavailableSoundFormat(NexoResponseType r, string format)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = "Unavailable sound format: " + format; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #20
0
 public static string PaymentRestriction(NexoResponseType r, string number, string brand)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.PaymentRestriction; r.AdditionalResponse = number + " products not payable by " + brand + " card"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #21
0
 public static string UnavailableServiceUnavailableServiceForTheCard(NexoResponseType r, string service, string cardbrand)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableService; r.AdditionalResponse = "Service " + service + " unavailable for card: " + cardbrand; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #22
0
 public static string RefusalLocalDecline(NexoResponseType r, string transaction, string acquirer, string reason, string code)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.Refusal; r.AdditionalResponse = transaction + " refused locally : " + acquirer + " - Reason: " + reason + " - Code: " + code; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #23
0
 public static string CancelUserCancellation(NexoResponseType r, string status)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.Cancel; r.AdditionalResponse = "User cancellation during " + status; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #24
0
 public static string BusyDeviceBusy(NexoResponseType r, string system, string device)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.Busy; r.AdditionalResponse = system + " terminal " + device + " busy processing the device request"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #25
0
 public static string WrongPIN(NexoResponseType r, string nbretries, string remainingretries)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.WrongPIN; r.AdditionalResponse = "Wrong PIN: " + nbretries + " retries – Remaining retries: " + remainingretries; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #26
0
 public static string UnavailableDevice(NexoResponseType r, string devicetype, string infoqualify)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = devicetype + " (" + infoqualify + ") Device unavailable absent or not configured"; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #27
0
 public static string CancelSystemCancellation(NexoResponseType r, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.Cancel; r.AdditionalResponse = "System cancellation during " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #28
0
 public static string UnavailableDeviceUnavailableDisplayFormat(NexoResponseType r, string format, string feature)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.UnavailableDevice; r.AdditionalResponse = "Unavailable display format: " + format + " for feature: " + feature; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #29
0
 public static string DeviceOutDeviceTemporaryOut(NexoResponseType r, string device, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.DeviceOut; r.AdditionalResponse = device + " is temporarily out of service: " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }
Exemple #30
0
 public static string NotAllowedInvalidPaymentReservation(NexoResponseType r, string reason)
 {
     if (ResultEnumeration.Success != r.Result)
     {
         return(r.AdditionalResponse);
     }
     r.Result = ResultEnumeration.Failure; r.ErrorCondition = ErrorConditionEnumeration.NotAllowed; r.AdditionalResponse = "Invalid payment reservation: " + reason; CLog.Add(r.AdditionalResponse, TLog.ERROR); return(r.AdditionalResponse);
 }