Class ResultDetails
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.ResultDetails
-
public class ResultDetails extends Object
ResultDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_REASON_CODEstatic StringJSON_PROPERTY_TRANSFER_ID
-
Constructor Summary
Constructors Constructor Description ResultDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this resultDetails object is equal to o.static ResultDetailsfromJson(String jsonString)Create an instance of ResultDetails given an JSON stringStringgetReason()The reason why the execution was not successful.StringgetReasonCode()The numeric code of the reason.StringgetTransferId()The unique identifier of the transfer created for this execution.inthashCode()ResultDetailsreason(String reason)The reason why the execution was not successful.ResultDetailsreasonCode(String reasonCode)The numeric code of the reason.voidsetReason(String reason)The reason why the execution was not successful.voidsetReasonCode(String reasonCode)The numeric code of the reason.voidsetTransferId(String transferId)The unique identifier of the transfer created for this execution.StringtoJson()Convert an instance of ResultDetails to an JSON stringStringtoString()ResultDetailstransferId(String transferId)The unique identifier of the transfer created for this execution.
-
-
-
Field Detail
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON_CODE
public static final String JSON_PROPERTY_REASON_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_ID
public static final String JSON_PROPERTY_TRANSFER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
reason
public ResultDetails reason(String reason)
The reason why the execution was not successful.- Parameters:
reason- The reason why the execution was not successful.- Returns:
- the current
ResultDetailsinstance, allowing for method chaining
-
getReason
public String getReason()
The reason why the execution was not successful.- Returns:
- reason The reason why the execution was not successful.
-
setReason
public void setReason(String reason)
The reason why the execution was not successful.- Parameters:
reason- The reason why the execution was not successful.
-
reasonCode
public ResultDetails reasonCode(String reasonCode)
The numeric code of the reason.- Parameters:
reasonCode- The numeric code of the reason.- Returns:
- the current
ResultDetailsinstance, allowing for method chaining
-
getReasonCode
public String getReasonCode()
The numeric code of the reason.- Returns:
- reasonCode The numeric code of the reason.
-
setReasonCode
public void setReasonCode(String reasonCode)
The numeric code of the reason.- Parameters:
reasonCode- The numeric code of the reason.
-
transferId
public ResultDetails transferId(String transferId)
The unique identifier of the transfer created for this execution.- Parameters:
transferId- The unique identifier of the transfer created for this execution.- Returns:
- the current
ResultDetailsinstance, allowing for method chaining
-
getTransferId
public String getTransferId()
The unique identifier of the transfer created for this execution.- Returns:
- transferId The unique identifier of the transfer created for this execution.
-
setTransferId
public void setTransferId(String transferId)
The unique identifier of the transfer created for this execution.- Parameters:
transferId- The unique identifier of the transfer created for this execution.
-
equals
public boolean equals(Object o)
Return true if this resultDetails object is equal to o.
-
fromJson
public static ResultDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ResultDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ResultDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ResultDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ResultDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-