Package com.adyen.model.tapi
Class DiagnosisRequest
- java.lang.Object
-
- com.adyen.model.tapi.DiagnosisRequest
-
public class DiagnosisRequest extends Object
It conveys Information related to the target POI for which the diagnosis is requested. Content of the Diagnosis Request message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRER_I_Dstatic StringJSON_PROPERTY_HOST_DIAGNOSIS_FLAGstatic StringJSON_PROPERTY_P_O_I_I_D
-
Constructor Summary
Constructors Constructor Description DiagnosisRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagnosisRequestacquirerID(List<Integer> acquirerID)Identification of the Acquirer.DiagnosisRequestaddAcquirerIDItem(Integer acquirerIDItem)booleanequals(Object o)Return true if this DiagnosisRequest object is equal to o.static DiagnosisRequestfromJson(String jsonString)Create an instance of DiagnosisRequest given an JSON stringList<Integer>getAcquirerID()Identification of the Acquirer.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetHostDiagnosisFlag()Indicates if Host Diagnosis are required.StringgetPOIID()Identification of a POI System or a POI Terminal for the Sale to POI protocol.inthashCode()DiagnosisRequesthostDiagnosisFlag(Boolean hostDiagnosisFlag)Indicates if Host Diagnosis are required.DiagnosisRequestincludeNullValues(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.DiagnosisRequestPOIID(String POIID)Identification of a POI System or a POI Terminal for the Sale to POI protocol.voidsetAcquirerID(List<Integer> acquirerID)Identification of the Acquirer.voidsetHostDiagnosisFlag(Boolean hostDiagnosisFlag)Indicates if Host Diagnosis are required.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPOIID(String POIID)Identification of a POI System or a POI Terminal for the Sale to POI protocol.StringtoJson()Convert an instance of DiagnosisRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_P_O_I_I_D
public static final String JSON_PROPERTY_P_O_I_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_DIAGNOSIS_FLAG
public static final String JSON_PROPERTY_HOST_DIAGNOSIS_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACQUIRER_I_D
public static final String JSON_PROPERTY_ACQUIRER_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
POIID
public DiagnosisRequest POIID(String POIID)
Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.- Parameters:
POIID- Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.- Returns:
- the current
DiagnosisRequestinstance, allowing for method chaining
-
getPOIID
public String getPOIID()
Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.- Returns:
- POIID Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.
-
setPOIID
public void setPOIID(String POIID)
Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.- Parameters:
POIID- Identification of a POI System or a POI Terminal for the Sale to POI protocol. MessageHeader.POIID.
-
hostDiagnosisFlag
public DiagnosisRequest hostDiagnosisFlag(Boolean hostDiagnosisFlag)
Indicates if Host Diagnosis are required.- Parameters:
hostDiagnosisFlag- Indicates if Host Diagnosis are required.- Returns:
- the current
DiagnosisRequestinstance, allowing for method chaining
-
getHostDiagnosisFlag
public Boolean getHostDiagnosisFlag()
Indicates if Host Diagnosis are required.- Returns:
- hostDiagnosisFlag Indicates if Host Diagnosis are required.
-
setHostDiagnosisFlag
public void setHostDiagnosisFlag(Boolean hostDiagnosisFlag)
Indicates if Host Diagnosis are required.- Parameters:
hostDiagnosisFlag- Indicates if Host Diagnosis are required.
-
acquirerID
public DiagnosisRequest acquirerID(List<Integer> acquirerID)
Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.- Parameters:
acquirerID- Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.- Returns:
- the current
DiagnosisRequestinstance, allowing for method chaining
-
addAcquirerIDItem
public DiagnosisRequest addAcquirerIDItem(Integer acquirerIDItem)
-
getAcquirerID
public List<Integer> getAcquirerID()
Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.- Returns:
- acquirerID Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.
-
setAcquirerID
public void setAcquirerID(List<Integer> acquirerID)
Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.- Parameters:
acquirerID- Identification of the Acquirer. Present if requesting the diagnosis of these hosts only.
-
includeNullValues
public DiagnosisRequest 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 DiagnosisRequest 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 DiagnosisRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DiagnosisRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DiagnosisRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DiagnosisRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DiagnosisRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-