Package com.adyen.model.tapi
Class ReversalResponse
- java.lang.Object
-
- com.adyen.model.tapi.ReversalResponse
-
public class ReversalResponse extends Object
It conveys Information related to the reversal processed by the POI System. Content of the Reversal Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ORIGINAL_P_O_I_TRANSACTIONstatic StringJSON_PROPERTY_PAYMENT_RECEIPTstatic StringJSON_PROPERTY_POI_DATAstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_REVERSED_AMOUNT
-
Constructor Summary
Constructors Constructor Description ReversalResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReversalResponseaddPaymentReceiptItem(PaymentReceipt paymentReceiptItem)booleanequals(Object o)Return true if this ReversalResponse object is equal to o.static ReversalResponsefromJson(String jsonString)Create an instance of ReversalResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.OriginalPOITransactiongetOriginalPOITransaction()Get originalPOITransactionList<PaymentReceipt>getPaymentReceipt()Get paymentReceiptPOIDatagetPoiData()Get poiDataResponsegetResponse()Get responseBigDecimalgetReversedAmount()Amount of the payment or loyalty to reverse.inthashCode()ReversalResponseincludeNullValues(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.ReversalResponseoriginalPOITransaction(OriginalPOITransaction originalPOITransaction)originalPOITransactionReversalResponsepaymentReceipt(List<PaymentReceipt> paymentReceipt)paymentReceiptReversalResponsepoiData(POIData poiData)poiDataReversalResponseresponse(Response response)responseReversalResponsereversedAmount(BigDecimal reversedAmount)Amount of the payment or loyalty to reverse.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOriginalPOITransaction(OriginalPOITransaction originalPOITransaction)originalPOITransactionvoidsetPaymentReceipt(List<PaymentReceipt> paymentReceipt)paymentReceiptvoidsetPoiData(POIData poiData)poiDatavoidsetResponse(Response response)responsevoidsetReversedAmount(BigDecimal reversedAmount)Amount of the payment or loyalty to reverse.StringtoJson()Convert an instance of ReversalResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POI_DATA
public static final String JSON_PROPERTY_POI_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_P_O_I_TRANSACTION
public static final String JSON_PROPERTY_ORIGINAL_P_O_I_TRANSACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REVERSED_AMOUNT
public static final String JSON_PROPERTY_REVERSED_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_RECEIPT
public static final String JSON_PROPERTY_PAYMENT_RECEIPT
- See Also:
- Constant Field Values
-
-
Method Detail
-
response
public ReversalResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
ReversalResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
poiData
public ReversalResponse poiData(POIData poiData)
poiData- Parameters:
poiData-- Returns:
- the current
ReversalResponseinstance, allowing for method chaining
-
getPoiData
public POIData getPoiData()
Get poiData- Returns:
- poiData
-
setPoiData
public void setPoiData(POIData poiData)
poiData- Parameters:
poiData-
-
originalPOITransaction
public ReversalResponse originalPOITransaction(OriginalPOITransaction originalPOITransaction)
originalPOITransaction- Parameters:
originalPOITransaction-- Returns:
- the current
ReversalResponseinstance, allowing for method chaining
-
getOriginalPOITransaction
public OriginalPOITransaction getOriginalPOITransaction()
Get originalPOITransaction- Returns:
- originalPOITransaction
-
setOriginalPOITransaction
public void setOriginalPOITransaction(OriginalPOITransaction originalPOITransaction)
originalPOITransaction- Parameters:
originalPOITransaction-
-
reversedAmount
public ReversalResponse reversedAmount(BigDecimal reversedAmount)
Amount of the payment or loyalty to reverse. Copy.- Parameters:
reversedAmount- Amount of the payment or loyalty to reverse. Copy.- Returns:
- the current
ReversalResponseinstance, allowing for method chaining
-
getReversedAmount
public BigDecimal getReversedAmount()
Amount of the payment or loyalty to reverse. Copy. minimum: 0.0 maximum: 99999999.999999- Returns:
- reversedAmount Amount of the payment or loyalty to reverse. Copy.
-
setReversedAmount
public void setReversedAmount(BigDecimal reversedAmount)
Amount of the payment or loyalty to reverse. Copy.- Parameters:
reversedAmount- Amount of the payment or loyalty to reverse. Copy.
-
paymentReceipt
public ReversalResponse paymentReceipt(List<PaymentReceipt> paymentReceipt)
paymentReceipt- Parameters:
paymentReceipt-- Returns:
- the current
ReversalResponseinstance, allowing for method chaining
-
addPaymentReceiptItem
public ReversalResponse addPaymentReceiptItem(PaymentReceipt paymentReceiptItem)
-
getPaymentReceipt
public List<PaymentReceipt> getPaymentReceipt()
Get paymentReceipt- Returns:
- paymentReceipt
-
setPaymentReceipt
public void setPaymentReceipt(List<PaymentReceipt> paymentReceipt)
paymentReceipt- Parameters:
paymentReceipt-
-
includeNullValues
public ReversalResponse 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 ReversalResponse 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 ReversalResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ReversalResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReversalResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ReversalResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ReversalResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-