Class KlarnaResponseInfo


  • public class KlarnaResponseInfo
    extends Object
    KlarnaResponseInfo
    • Constructor Detail

      • KlarnaResponseInfo

        public KlarnaResponseInfo()
    • Method Detail

      • autoCapture

        public KlarnaResponseInfo autoCapture​(Boolean autoCapture)
        Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
        Parameters:
        autoCapture - Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
        Returns:
        the current KlarnaResponseInfo instance, allowing for method chaining
      • getAutoCapture

        public Boolean getAutoCapture()
        Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
        Returns:
        autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
      • setAutoCapture

        public void setAutoCapture​(Boolean autoCapture)
        Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
        Parameters:
        autoCapture - Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
      • disputeEmail

        public KlarnaResponseInfo disputeEmail​(String disputeEmail)
        The email address for disputes.
        Parameters:
        disputeEmail - The email address for disputes.
        Returns:
        the current KlarnaResponseInfo instance, allowing for method chaining
      • getDisputeEmail

        public String getDisputeEmail()
        The email address for disputes.
        Returns:
        disputeEmail The email address for disputes.
      • setDisputeEmail

        public void setDisputeEmail​(String disputeEmail)
        The email address for disputes.
        Parameters:
        disputeEmail - The email address for disputes.
      • region

        public KlarnaResponseInfo region​(KlarnaResponseInfo.RegionEnum region)
        The region of operation.
        Parameters:
        region - The region of operation.
        Returns:
        the current KlarnaResponseInfo instance, allowing for method chaining
      • setRegion

        public void setRegion​(KlarnaResponseInfo.RegionEnum region)
        The region of operation.
        Parameters:
        region - The region of operation.
      • supportEmail

        public KlarnaResponseInfo supportEmail​(String supportEmail)
        The email address of merchant support.
        Parameters:
        supportEmail - The email address of merchant support.
        Returns:
        the current KlarnaResponseInfo instance, allowing for method chaining
      • getSupportEmail

        public String getSupportEmail()
        The email address of merchant support.
        Returns:
        supportEmail The email address of merchant support.
      • setSupportEmail

        public void setSupportEmail​(String supportEmail)
        The email address of merchant support.
        Parameters:
        supportEmail - The email address of merchant support.
      • includeNullValues

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

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