Class AbortRequest


  • public class AbortRequest
    extends Object
    Body of the Abort Request message. It conveys Information requested for identification of the message request carrying the transaction to abort. A message to display on the CustomerError Device could be sent by the Sale System (DisplayOutput).
    • Constructor Detail

      • AbortRequest

        public AbortRequest()
    • Method Detail

      • messageReference

        public AbortRequest messageReference​(MessageReference messageReference)
        messageReference
        Parameters:
        messageReference -
        Returns:
        the current AbortRequest instance, allowing for method chaining
      • getMessageReference

        public MessageReference getMessageReference()
        Get messageReference
        Returns:
        messageReference
      • setMessageReference

        public void setMessageReference​(MessageReference messageReference)
        messageReference
        Parameters:
        messageReference -
      • abortReason

        public AbortRequest abortReason​(String abortReason)
        Reason of aborting a transaction.
        Parameters:
        abortReason - Reason of aborting a transaction.
        Returns:
        the current AbortRequest instance, allowing for method chaining
      • getAbortReason

        public String getAbortReason()
        Reason of aborting a transaction.
        Returns:
        abortReason Reason of aborting a transaction.
      • setAbortReason

        public void setAbortReason​(String abortReason)
        Reason of aborting a transaction.
        Parameters:
        abortReason - Reason of aborting a transaction.
      • displayOutput

        public AbortRequest displayOutput​(DisplayOutput displayOutput)
        displayOutput
        Parameters:
        displayOutput -
        Returns:
        the current AbortRequest instance, allowing for method chaining
      • getDisplayOutput

        public DisplayOutput getDisplayOutput()
        Get displayOutput
        Returns:
        displayOutput
      • setDisplayOutput

        public void setDisplayOutput​(DisplayOutput displayOutput)
        displayOutput
        Parameters:
        displayOutput -
      • includeNullValues

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

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