Class PaymentReversalResponse


  • public class PaymentReversalResponse
    extends Object
    PaymentReversalResponse
    • Constructor Detail

      • PaymentReversalResponse

        public PaymentReversalResponse()
    • Method Detail

      • merchantAccount

        public PaymentReversalResponse merchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount - The merchant account that is used to process the payment.
        Returns:
        the current PaymentReversalResponse instance, allowing for method chaining
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account that is used to process the payment.
        Returns:
        merchantAccount The merchant account that is used to process the payment.
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount - The merchant account that is used to process the payment.
      • paymentPspReference

        public PaymentReversalResponse paymentPspReference​(String paymentPspReference)
        The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
        Parameters:
        paymentPspReference - The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
        Returns:
        the current PaymentReversalResponse instance, allowing for method chaining
      • getPaymentPspReference

        public String getPaymentPspReference()
        The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
        Returns:
        paymentPspReference The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
      • setPaymentPspReference

        public void setPaymentPspReference​(String paymentPspReference)
        The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
        Parameters:
        paymentPspReference - The [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) of the payment to reverse.
      • pspReference

        public PaymentReversalResponse pspReference​(String pspReference)
        Adyen's 16-character reference associated with the reversal request.
        Parameters:
        pspReference - Adyen's 16-character reference associated with the reversal request.
        Returns:
        the current PaymentReversalResponse instance, allowing for method chaining
      • getPspReference

        public String getPspReference()
        Adyen's 16-character reference associated with the reversal request.
        Returns:
        pspReference Adyen's 16-character reference associated with the reversal request.
      • setPspReference

        public void setPspReference​(String pspReference)
        Adyen's 16-character reference associated with the reversal request.
        Parameters:
        pspReference - Adyen's 16-character reference associated with the reversal request.
      • reference

        public PaymentReversalResponse reference​(String reference)
        Your reference for the reversal request.
        Parameters:
        reference - Your reference for the reversal request.
        Returns:
        the current PaymentReversalResponse instance, allowing for method chaining
      • getReference

        public String getReference()
        Your reference for the reversal request.
        Returns:
        reference Your reference for the reversal request.
      • setReference

        public void setReference​(String reference)
        Your reference for the reversal request.
        Parameters:
        reference - Your reference for the reversal request.
      • status

        public PaymentReversalResponse status​(PaymentReversalResponse.StatusEnum status)
        The status of your request. This will always have the value **received**.
        Parameters:
        status - The status of your request. This will always have the value **received**.
        Returns:
        the current PaymentReversalResponse instance, allowing for method chaining
      • getStatus

        public PaymentReversalResponse.StatusEnum getStatus()
        The status of your request. This will always have the value **received**.
        Returns:
        status The status of your request. This will always have the value **received**.
      • setStatus

        public void setStatus​(PaymentReversalResponse.StatusEnum status)
        The status of your request. This will always have the value **received**.
        Parameters:
        status - The status of your request. This will always have the value **received**.
      • includeNullValues

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

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