Package com.adyen.model.tapi
Class POIStatus
- java.lang.Object
-
- com.adyen.model.tapi.POIStatus
-
public class POIStatus extends Object
Indicate the availability of the POI Terminal components. The data element is absent if the component is not part of the POI Terminal. State of a POI Terminal.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_READER_O_K_FLAGstatic StringJSON_PROPERTY_COMMUNICATION_O_K_FLAGstatic StringJSON_PROPERTY_FRAUD_PREVENTION_FLAGstatic StringJSON_PROPERTY_GLOBAL_STATUSstatic StringJSON_PROPERTY_PE_D_O_K_FLAGstatic StringJSON_PROPERTY_PRINTER_STATUSstatic StringJSON_PROPERTY_SECURITY_O_K_FLAG
-
Constructor Summary
Constructors Constructor Description POIStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description POIStatuscardReaderOKFlag(Boolean cardReaderOKFlag)Indicates if the card readers are working and usable.POIStatuscommunicationOKFlag(Boolean communicationOKFlag)Indicates if the communication infrastructure is working and usable.booleanequals(Object o)Return true if this POIStatus object is equal to o.POIStatusfraudPreventionFlag(Boolean fraudPreventionFlag)Indicates a suspicion of fraud by the POI System.static POIStatusfromJson(String jsonString)Create an instance of POIStatus given an JSON stringBooleangetCardReaderOKFlag()Indicates if the card readers are working and usable.BooleangetCommunicationOKFlag()Indicates if the communication infrastructure is working and usable.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetFraudPreventionFlag()Indicates a suspicion of fraud by the POI System.GlobalStatusgetGlobalStatus()Get globalStatusBooleangetPeDOKFlag()Indicates if the PED is working and usable.PrinterStatusgetPrinterStatus()Get printerStatusBooleangetSecurityOKFlag()Indicates if the security module of the POI is working and usable.POIStatusglobalStatus(GlobalStatus globalStatus)globalStatusinthashCode()POIStatusincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.POIStatuspeDOKFlag(Boolean peDOKFlag)Indicates if the PED is working and usable.POIStatusprinterStatus(PrinterStatus printerStatus)printerStatusPOIStatussecurityOKFlag(Boolean securityOKFlag)Indicates if the security module of the POI is working and usable.voidsetCardReaderOKFlag(Boolean cardReaderOKFlag)Indicates if the card readers are working and usable.voidsetCommunicationOKFlag(Boolean communicationOKFlag)Indicates if the communication infrastructure is working and usable.voidsetFraudPreventionFlag(Boolean fraudPreventionFlag)Indicates a suspicion of fraud by the POI System.voidsetGlobalStatus(GlobalStatus globalStatus)globalStatusvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPeDOKFlag(Boolean peDOKFlag)Indicates if the PED is working and usable.voidsetPrinterStatus(PrinterStatus printerStatus)printerStatusvoidsetSecurityOKFlag(Boolean securityOKFlag)Indicates if the security module of the POI is working and usable.StringtoJson()Convert an instance of POIStatus to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_GLOBAL_STATUS
public static final String JSON_PROPERTY_GLOBAL_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECURITY_O_K_FLAG
public static final String JSON_PROPERTY_SECURITY_O_K_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PE_D_O_K_FLAG
public static final String JSON_PROPERTY_PE_D_O_K_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_READER_O_K_FLAG
public static final String JSON_PROPERTY_CARD_READER_O_K_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINTER_STATUS
public static final String JSON_PROPERTY_PRINTER_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMMUNICATION_O_K_FLAG
public static final String JSON_PROPERTY_COMMUNICATION_O_K_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FRAUD_PREVENTION_FLAG
public static final String JSON_PROPERTY_FRAUD_PREVENTION_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
globalStatus
public POIStatus globalStatus(GlobalStatus globalStatus)
globalStatus- Parameters:
globalStatus-- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getGlobalStatus
public GlobalStatus getGlobalStatus()
Get globalStatus- Returns:
- globalStatus
-
setGlobalStatus
public void setGlobalStatus(GlobalStatus globalStatus)
globalStatus- Parameters:
globalStatus-
-
securityOKFlag
public POIStatus securityOKFlag(Boolean securityOKFlag)
Indicates if the security module of the POI is working and usable. If security module present.- Parameters:
securityOKFlag- Indicates if the security module of the POI is working and usable. If security module present.- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getSecurityOKFlag
public Boolean getSecurityOKFlag()
Indicates if the security module of the POI is working and usable. If security module present.- Returns:
- securityOKFlag Indicates if the security module of the POI is working and usable. If security module present.
-
setSecurityOKFlag
public void setSecurityOKFlag(Boolean securityOKFlag)
Indicates if the security module of the POI is working and usable. If security module present.- Parameters:
securityOKFlag- Indicates if the security module of the POI is working and usable. If security module present.
-
peDOKFlag
public POIStatus peDOKFlag(Boolean peDOKFlag)
Indicates if the PED is working and usable. If PED present.- Parameters:
peDOKFlag- Indicates if the PED is working and usable. If PED present.- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getPeDOKFlag
public Boolean getPeDOKFlag()
Indicates if the PED is working and usable. If PED present.- Returns:
- peDOKFlag Indicates if the PED is working and usable. If PED present.
-
setPeDOKFlag
public void setPeDOKFlag(Boolean peDOKFlag)
Indicates if the PED is working and usable. If PED present.- Parameters:
peDOKFlag- Indicates if the PED is working and usable. If PED present.
-
cardReaderOKFlag
public POIStatus cardReaderOKFlag(Boolean cardReaderOKFlag)
Indicates if the card readers are working and usable. If card reader device present.- Parameters:
cardReaderOKFlag- Indicates if the card readers are working and usable. If card reader device present.- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getCardReaderOKFlag
public Boolean getCardReaderOKFlag()
Indicates if the card readers are working and usable. If card reader device present.- Returns:
- cardReaderOKFlag Indicates if the card readers are working and usable. If card reader device present.
-
setCardReaderOKFlag
public void setCardReaderOKFlag(Boolean cardReaderOKFlag)
Indicates if the card readers are working and usable. If card reader device present.- Parameters:
cardReaderOKFlag- Indicates if the card readers are working and usable. If card reader device present.
-
printerStatus
public POIStatus printerStatus(PrinterStatus printerStatus)
printerStatus- Parameters:
printerStatus-- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getPrinterStatus
public PrinterStatus getPrinterStatus()
Get printerStatus- Returns:
- printerStatus
-
setPrinterStatus
public void setPrinterStatus(PrinterStatus printerStatus)
printerStatus- Parameters:
printerStatus-
-
communicationOKFlag
public POIStatus communicationOKFlag(Boolean communicationOKFlag)
Indicates if the communication infrastructure is working and usable. If communication infrastructure present.- Parameters:
communicationOKFlag- Indicates if the communication infrastructure is working and usable. If communication infrastructure present.- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getCommunicationOKFlag
public Boolean getCommunicationOKFlag()
Indicates if the communication infrastructure is working and usable. If communication infrastructure present.- Returns:
- communicationOKFlag Indicates if the communication infrastructure is working and usable. If communication infrastructure present.
-
setCommunicationOKFlag
public void setCommunicationOKFlag(Boolean communicationOKFlag)
Indicates if the communication infrastructure is working and usable. If communication infrastructure present.- Parameters:
communicationOKFlag- Indicates if the communication infrastructure is working and usable. If communication infrastructure present.
-
fraudPreventionFlag
public POIStatus fraudPreventionFlag(Boolean fraudPreventionFlag)
Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.- Parameters:
fraudPreventionFlag- Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.- Returns:
- the current
POIStatusinstance, allowing for method chaining
-
getFraudPreventionFlag
public Boolean getFraudPreventionFlag()
Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.- Returns:
- fraudPreventionFlag Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.
-
setFraudPreventionFlag
public void setFraudPreventionFlag(Boolean fraudPreventionFlag)
Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.- Parameters:
fraudPreventionFlag- Indicates a suspicion of fraud by the POI System. Could be set to True by the POI system to notify to the Sale system and the Cashier that a suspicion of fraud had been detected on the POI as an unexpected reboot of the POI.
-
includeNullValues
public POIStatus includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this POIStatus object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static POIStatus fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of POIStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of POIStatus
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to POIStatus
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of POIStatus to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-