Package com.adyen.model.tapi
Class TransactionStatusResponse
- java.lang.Object
-
- com.adyen.model.tapi.TransactionStatusResponse
-
public class TransactionStatusResponse extends Object
Content of the TransactionStatus Response message. It conveys Information related to the status of the last or current Payment, Loyalty or Reversal transaction.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MESSAGE_REFERENCEstatic StringJSON_PROPERTY_REPEATED_MESSAGE_RESPONSEstatic StringJSON_PROPERTY_RESPONSE
-
Constructor Summary
Constructors Constructor Description TransactionStatusResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this TransactionStatusResponse object is equal to o.static TransactionStatusResponsefromJson(String jsonString)Create an instance of TransactionStatusResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.MessageReferencegetMessageReference()Get messageReferenceRepeatedMessageResponsegetRepeatedMessageResponse()Get repeatedMessageResponseResponsegetResponse()Get responseinthashCode()TransactionStatusResponseincludeNullValues(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.TransactionStatusResponsemessageReference(MessageReference messageReference)messageReferenceTransactionStatusResponserepeatedMessageResponse(RepeatedMessageResponse repeatedMessageResponse)repeatedMessageResponseTransactionStatusResponseresponse(Response response)responsevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMessageReference(MessageReference messageReference)messageReferencevoidsetRepeatedMessageResponse(RepeatedMessageResponse repeatedMessageResponse)repeatedMessageResponsevoidsetResponse(Response response)responseStringtoJson()Convert an instance of TransactionStatusResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE_REFERENCE
public static final String JSON_PROPERTY_MESSAGE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REPEATED_MESSAGE_RESPONSE
public static final String JSON_PROPERTY_REPEATED_MESSAGE_RESPONSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
response
public TransactionStatusResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
TransactionStatusResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
messageReference
public TransactionStatusResponse messageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-- Returns:
- the current
TransactionStatusResponseinstance, allowing for method chaining
-
getMessageReference
public MessageReference getMessageReference()
Get messageReference- Returns:
- messageReference
-
setMessageReference
public void setMessageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-
-
repeatedMessageResponse
public TransactionStatusResponse repeatedMessageResponse(RepeatedMessageResponse repeatedMessageResponse)
repeatedMessageResponse- Parameters:
repeatedMessageResponse-- Returns:
- the current
TransactionStatusResponseinstance, allowing for method chaining
-
getRepeatedMessageResponse
public RepeatedMessageResponse getRepeatedMessageResponse()
Get repeatedMessageResponse- Returns:
- repeatedMessageResponse
-
setRepeatedMessageResponse
public void setRepeatedMessageResponse(RepeatedMessageResponse repeatedMessageResponse)
repeatedMessageResponse- Parameters:
repeatedMessageResponse-
-
includeNullValues
public TransactionStatusResponse 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 TransactionStatusResponse 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 TransactionStatusResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionStatusResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionStatusResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionStatusResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionStatusResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-