Class RefundResult
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.RefundResult
-
public class RefundResult extends Object
RefundResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ORIGINAL_TRANSACTIONstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_RESPONSE
-
Constructor Summary
Constructors Constructor Description RefundResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this RefundResult object is equal to o.static RefundResultfromJson(String jsonString)Create an instance of RefundResult given an JSON stringTransactiongetOriginalTransaction()Get originalTransactionStringgetPspReference()The reference of the refund.StringgetResponse()The response indicating if the refund has been received for processing.inthashCode()RefundResultoriginalTransaction(Transaction originalTransaction)RefundResultpspReference(String pspReference)RefundResultresponse(String response)voidsetOriginalTransaction(Transaction originalTransaction)voidsetPspReference(String pspReference)voidsetResponse(String response)StringtoJson()Convert an instance of RefundResult to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ORIGINAL_TRANSACTION
public static final String JSON_PROPERTY_ORIGINAL_TRANSACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
originalTransaction
public RefundResult originalTransaction(Transaction originalTransaction)
-
getOriginalTransaction
public Transaction getOriginalTransaction()
Get originalTransaction- Returns:
- originalTransaction
-
setOriginalTransaction
public void setOriginalTransaction(Transaction originalTransaction)
-
pspReference
public RefundResult pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The reference of the refund.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
response
public RefundResult response(String response)
-
getResponse
public String getResponse()
The response indicating if the refund has been received for processing.- Returns:
- response
-
setResponse
public void setResponse(String response)
-
equals
public boolean equals(Object o)
Return true if this RefundResult object is equal to o.
-
fromJson
public static RefundResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of RefundResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RefundResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to RefundResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of RefundResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-