Class PayPalResponseInfo


  • public class PayPalResponseInfo
    extends Object
    PayPalResponseInfo
    • Constructor Detail

      • PayPalResponseInfo

        public PayPalResponseInfo()
    • Method Detail

      • directCapture

        public PayPalResponseInfo directCapture​(Boolean directCapture)
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Parameters:
        directCapture - Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Returns:
        the current PayPalResponseInfo instance, allowing for method chaining
      • getDirectCapture

        public Boolean getDirectCapture()
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Returns:
        directCapture Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
      • setDirectCapture

        public void setDirectCapture​(Boolean directCapture)
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Parameters:
        directCapture - Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
      • payerId

        public PayPalResponseInfo payerId​(String payerId)
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Parameters:
        payerId - PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Returns:
        the current PayPalResponseInfo instance, allowing for method chaining
      • getPayerId

        public String getPayerId()
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Returns:
        payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
      • setPayerId

        public void setPayerId​(String payerId)
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Parameters:
        payerId - PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
      • subject

        public PayPalResponseInfo subject​(String subject)
        Your business email address.
        Parameters:
        subject - Your business email address.
        Returns:
        the current PayPalResponseInfo instance, allowing for method chaining
      • getSubject

        public String getSubject()
        Your business email address.
        Returns:
        subject Your business email address.
      • setSubject

        public void setSubject​(String subject)
        Your business email address.
        Parameters:
        subject - Your business email address.
      • includeNullValues

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

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