Package com.adyen.model.tapi
Class DisplayResponse
- java.lang.Object
-
- com.adyen.model.tapi.DisplayResponse
-
public class DisplayResponse extends Object
It conveys the result of the display, parallel to the message request, except if response not required and absent. Content of the Display Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_OUTPUT_RESULT
-
Constructor Summary
Constructors Constructor Description DisplayResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayResponseaddOutputResultItem(OutputResult outputResultItem)booleanequals(Object o)Return true if this DisplayResponse object is equal to o.static DisplayResponsefromJson(String jsonString)Create an instance of DisplayResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<OutputResult>getOutputResult()Information related to the result the output (display, print, input).inthashCode()DisplayResponseincludeNullValues(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.DisplayResponseoutputResult(List<OutputResult> outputResult)Information related to the result the output (display, print, input).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOutputResult(List<OutputResult> outputResult)Information related to the result the output (display, print, input).StringtoJson()Convert an instance of DisplayResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_OUTPUT_RESULT
public static final String JSON_PROPERTY_OUTPUT_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
outputResult
public DisplayResponse outputResult(List<OutputResult> outputResult)
Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.- Parameters:
outputResult- Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.- Returns:
- the current
DisplayResponseinstance, allowing for method chaining
-
addOutputResultItem
public DisplayResponse addOutputResultItem(OutputResult outputResultItem)
-
getOutputResult
public List<OutputResult> getOutputResult()
Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.- Returns:
- outputResult Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.
-
setOutputResult
public void setOutputResult(List<OutputResult> outputResult)
Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.- Parameters:
outputResult- Information related to the result the output (display, print, input). One per DisplayOutput item of the request, and in the same order.
-
includeNullValues
public DisplayResponse 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 DisplayResponse 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 DisplayResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DisplayResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisplayResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DisplayResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DisplayResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-