Class ThreeDSRequestData


  • public class ThreeDSRequestData
    extends Object
    ThreeDSRequestData
    • Constructor Detail

      • ThreeDSRequestData

        public ThreeDSRequestData()
    • Method Detail

      • challengeWindowSize

        public ThreeDSRequestData challengeWindowSize​(ThreeDSRequestData.ChallengeWindowSizeEnum challengeWindowSize)
        Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
        Parameters:
        challengeWindowSize -
        Returns:
        the current ThreeDSRequestData instance, allowing for method chaining
      • getChallengeWindowSize

        public ThreeDSRequestData.ChallengeWindowSizeEnum getChallengeWindowSize()
        Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
        Returns:
        challengeWindowSize
      • setChallengeWindowSize

        public void setChallengeWindowSize​(ThreeDSRequestData.ChallengeWindowSizeEnum challengeWindowSize)
        Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen
        Parameters:
        challengeWindowSize -
      • nativeThreeDS

        public ThreeDSRequestData nativeThreeDS​(ThreeDSRequestData.NativeThreeDSEnum nativeThreeDS)
        Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Only use the redirect 3D Secure authentication flow.
        Parameters:
        nativeThreeDS -
        Returns:
        the current ThreeDSRequestData instance, allowing for method chaining
      • getNativeThreeDS

        public ThreeDSRequestData.NativeThreeDSEnum getNativeThreeDS()
        Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Only use the redirect 3D Secure authentication flow.
        Returns:
        nativeThreeDS
      • setNativeThreeDS

        public void setNativeThreeDS​(ThreeDSRequestData.NativeThreeDSEnum nativeThreeDS)
        Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Only use the redirect 3D Secure authentication flow.
        Parameters:
        nativeThreeDS -
      • threeDSVersion

        public ThreeDSRequestData threeDSVersion​(ThreeDSRequestData.ThreeDSVersionEnum threeDSVersion)
        The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0**
        Parameters:
        threeDSVersion -
        Returns:
        the current ThreeDSRequestData instance, allowing for method chaining
      • setThreeDSVersion

        public void setThreeDSVersion​(ThreeDSRequestData.ThreeDSVersionEnum threeDSVersion)
        The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0**
        Parameters:
        threeDSVersion -
      • equals

        public boolean equals​(Object o)
        Return true if this ThreeDSRequestData object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ThreeDSRequestData fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ThreeDSRequestData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ThreeDSRequestData
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ThreeDSRequestData
      • toJson

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