Package com.adyen.model.tapi
Class AbortRequest
- java.lang.Object
-
- com.adyen.model.tapi.AbortRequest
-
public class AbortRequest extends Object
Body of the Abort Request message. It conveys Information requested for identification of the message request carrying the transaction to abort. A message to display on the CustomerError Device could be sent by the Sale System (DisplayOutput).
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ABORT_REASONstatic StringJSON_PROPERTY_DISPLAY_OUTPUTstatic StringJSON_PROPERTY_MESSAGE_REFERENCE
-
Constructor Summary
Constructors Constructor Description AbortRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbortRequestabortReason(String abortReason)Reason of aborting a transaction.AbortRequestdisplayOutput(DisplayOutput displayOutput)displayOutputbooleanequals(Object o)Return true if this AbortRequest object is equal to o.static AbortRequestfromJson(String jsonString)Create an instance of AbortRequest given an JSON stringStringgetAbortReason()Reason of aborting a transaction.DisplayOutputgetDisplayOutput()Get displayOutputMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.MessageReferencegetMessageReference()Get messageReferenceinthashCode()AbortRequestincludeNullValues(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.AbortRequestmessageReference(MessageReference messageReference)messageReferencevoidsetAbortReason(String abortReason)Reason of aborting a transaction.voidsetDisplayOutput(DisplayOutput displayOutput)displayOutputvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMessageReference(MessageReference messageReference)messageReferenceStringtoJson()Convert an instance of AbortRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MESSAGE_REFERENCE
public static final String JSON_PROPERTY_MESSAGE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ABORT_REASON
public static final String JSON_PROPERTY_ABORT_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPLAY_OUTPUT
public static final String JSON_PROPERTY_DISPLAY_OUTPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
messageReference
public AbortRequest messageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-- Returns:
- the current
AbortRequestinstance, allowing for method chaining
-
getMessageReference
public MessageReference getMessageReference()
Get messageReference- Returns:
- messageReference
-
setMessageReference
public void setMessageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-
-
abortReason
public AbortRequest abortReason(String abortReason)
Reason of aborting a transaction.- Parameters:
abortReason- Reason of aborting a transaction.- Returns:
- the current
AbortRequestinstance, allowing for method chaining
-
getAbortReason
public String getAbortReason()
Reason of aborting a transaction.- Returns:
- abortReason Reason of aborting a transaction.
-
setAbortReason
public void setAbortReason(String abortReason)
Reason of aborting a transaction.- Parameters:
abortReason- Reason of aborting a transaction.
-
displayOutput
public AbortRequest displayOutput(DisplayOutput displayOutput)
displayOutput- Parameters:
displayOutput-- Returns:
- the current
AbortRequestinstance, allowing for method chaining
-
getDisplayOutput
public DisplayOutput getDisplayOutput()
Get displayOutput- Returns:
- displayOutput
-
setDisplayOutput
public void setDisplayOutput(DisplayOutput displayOutput)
displayOutput- Parameters:
displayOutput-
-
includeNullValues
public AbortRequest 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 AbortRequest 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 AbortRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AbortRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AbortRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AbortRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AbortRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-