Class ReversalResponse


  • public class ReversalResponse
    extends Object
    It conveys Information related to the reversal processed by the POI System. Content of the Reversal Response message.
    • Constructor Detail

      • ReversalResponse

        public ReversalResponse()
    • Method Detail

      • response

        public ReversalResponse response​(Response response)
        response
        Parameters:
        response -
        Returns:
        the current ReversalResponse instance, 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 ReversalResponse instance, 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 ReversalResponse instance, 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 ReversalResponse instance, 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 ReversalResponse instance, allowing for method chaining
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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