Class ReversalRequest


  • public class ReversalRequest
    extends Object
    It conveys Information related to the reversal of a previous payment or a loyalty transaction. Content of the Reversal Request message.
    • Constructor Detail

      • ReversalRequest

        public ReversalRequest()
    • Method Detail

      • saleData

        public ReversalRequest saleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
        Returns:
        the current ReversalRequest instance, allowing for method chaining
      • getSaleData

        public SaleData getSaleData()
        Get saleData
        Returns:
        saleData
      • setSaleData

        public void setSaleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
      • originalPOITransaction

        public ReversalRequest originalPOITransaction​(OriginalPOITransaction originalPOITransaction)
        originalPOITransaction
        Parameters:
        originalPOITransaction -
        Returns:
        the current ReversalRequest instance, allowing for method chaining
      • getOriginalPOITransaction

        public OriginalPOITransaction getOriginalPOITransaction()
        Get originalPOITransaction
        Returns:
        originalPOITransaction
      • setOriginalPOITransaction

        public void setOriginalPOITransaction​(OriginalPOITransaction originalPOITransaction)
        originalPOITransaction
        Parameters:
        originalPOITransaction -
      • reversedAmount

        public ReversalRequest reversedAmount​(BigDecimal reversedAmount)
        Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent.
        Parameters:
        reversedAmount - Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent.
        Returns:
        the current ReversalRequest instance, allowing for method chaining
      • getReversedAmount

        public BigDecimal getReversedAmount()
        Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent. minimum: 0.0 maximum: 99999999.999999
        Returns:
        reversedAmount Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent.
      • setReversedAmount

        public void setReversedAmount​(BigDecimal reversedAmount)
        Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent.
        Parameters:
        reversedAmount - Amount of the payment or loyalty to reverse. ReversedAmount is implicitly equal to the AuthorizedAmount if absent.
      • reversalReason

        public ReversalRequest reversalReason​(ReversalReason reversalReason)
        reversalReason
        Parameters:
        reversalReason -
        Returns:
        the current ReversalRequest instance, allowing for method chaining
      • getReversalReason

        public ReversalReason getReversalReason()
        Get reversalReason
        Returns:
        reversalReason
      • setReversalReason

        public void setReversalReason​(ReversalReason reversalReason)
        reversalReason
        Parameters:
        reversalReason -
      • includeNullValues

        public ReversalRequest 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 ReversalRequest 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 ReversalRequest fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ReversalRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ReversalRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ReversalRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ReversalRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException