Class ThreeDSecureData


  • public class ThreeDSecureData
    extends Object
    ThreeDSecureData
    • Constructor Detail

      • ThreeDSecureData

        public ThreeDSecureData()
    • Method Detail

      • authenticationResponse

        public ThreeDSecureData authenticationResponse​(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
        In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.
        Parameters:
        authenticationResponse -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getAuthenticationResponse

        public ThreeDSecureData.AuthenticationResponseEnum getAuthenticationResponse()
        In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.
        Returns:
        authenticationResponse
      • setAuthenticationResponse

        public void setAuthenticationResponse​(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
        In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.
        Parameters:
        authenticationResponse -
      • cavv

        public ThreeDSecureData cavv​(byte[] cavv)
        The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).
        Parameters:
        cavv -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getCavv

        public byte[] getCavv()
        The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).
        Returns:
        cavv
      • setCavv

        public void setCavv​(byte[] cavv)
        The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).
        Parameters:
        cavv -
      • cavvAlgorithm

        public ThreeDSecureData cavvAlgorithm​(String cavvAlgorithm)
        The CAVV algorithm used. Include this only for 3D Secure 1.
        Parameters:
        cavvAlgorithm -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getCavvAlgorithm

        public String getCavvAlgorithm()
        The CAVV algorithm used. Include this only for 3D Secure 1.
        Returns:
        cavvAlgorithm
      • setCavvAlgorithm

        public void setCavvAlgorithm​(String cavvAlgorithm)
        The CAVV algorithm used. Include this only for 3D Secure 1.
        Parameters:
        cavvAlgorithm -
      • challengeCancel

        public ThreeDSecureData challengeCancel​(ThreeDSecureData.ChallengeCancelEnum challengeCancel)
        Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
        Parameters:
        challengeCancel -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getChallengeCancel

        public ThreeDSecureData.ChallengeCancelEnum getChallengeCancel()
        Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
        Returns:
        challengeCancel
      • setChallengeCancel

        public void setChallengeCancel​(ThreeDSecureData.ChallengeCancelEnum challengeCancel)
        Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
        Parameters:
        challengeCancel -
      • directoryResponse

        public ThreeDSecureData directoryResponse​(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
        In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`.
        Parameters:
        directoryResponse -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getDirectoryResponse

        public ThreeDSecureData.DirectoryResponseEnum getDirectoryResponse()
        In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`.
        Returns:
        directoryResponse
      • setDirectoryResponse

        public void setDirectoryResponse​(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
        In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`.
        Parameters:
        directoryResponse -
      • dsTransID

        public ThreeDSecureData dsTransID​(String dsTransID)
        Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.
        Parameters:
        dsTransID -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getDsTransID

        public String getDsTransID()
        Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.
        Returns:
        dsTransID
      • setDsTransID

        public void setDsTransID​(String dsTransID)
        Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.
        Parameters:
        dsTransID -
      • eci

        public ThreeDSecureData eci​(String eci)
        The electronic commerce indicator.
        Parameters:
        eci -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getEci

        public String getEci()
        The electronic commerce indicator.
        Returns:
        eci
      • setEci

        public void setEci​(String eci)
        The electronic commerce indicator.
        Parameters:
        eci -
      • riskScore

        public ThreeDSecureData riskScore​(String riskScore)
        Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.
        Parameters:
        riskScore -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getRiskScore

        public String getRiskScore()
        Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.
        Returns:
        riskScore
      • setRiskScore

        public void setRiskScore​(String riskScore)
        Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.
        Parameters:
        riskScore -
      • threeDSVersion

        public ThreeDSecureData threeDSVersion​(String threeDSVersion)
        The version of the 3D Secure protocol.
        Parameters:
        threeDSVersion -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getThreeDSVersion

        public String getThreeDSVersion()
        The version of the 3D Secure protocol.
        Returns:
        threeDSVersion
      • setThreeDSVersion

        public void setThreeDSVersion​(String threeDSVersion)
        The version of the 3D Secure protocol.
        Parameters:
        threeDSVersion -
      • tokenAuthenticationVerificationValue

        public ThreeDSecureData tokenAuthenticationVerificationValue​(byte[] tokenAuthenticationVerificationValue)
        Network token authentication verification value (TAVV). The network token cryptogram.
        Parameters:
        tokenAuthenticationVerificationValue -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getTokenAuthenticationVerificationValue

        public byte[] getTokenAuthenticationVerificationValue()
        Network token authentication verification value (TAVV). The network token cryptogram.
        Returns:
        tokenAuthenticationVerificationValue
      • setTokenAuthenticationVerificationValue

        public void setTokenAuthenticationVerificationValue​(byte[] tokenAuthenticationVerificationValue)
        Network token authentication verification value (TAVV). The network token cryptogram.
        Parameters:
        tokenAuthenticationVerificationValue -
      • transStatusReason

        public ThreeDSecureData transStatusReason​(String transStatusReason)
        Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
        Parameters:
        transStatusReason -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getTransStatusReason

        public String getTransStatusReason()
        Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
        Returns:
        transStatusReason
      • setTransStatusReason

        public void setTransStatusReason​(String transStatusReason)
        Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
        Parameters:
        transStatusReason -
      • xid

        public ThreeDSecureData xid​(byte[] xid)
        Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).
        Parameters:
        xid -
        Returns:
        the current ThreeDSecureData instance, allowing for method chaining
      • getXid

        public byte[] getXid()
        Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).
        Returns:
        xid
      • setXid

        public void setXid​(byte[] xid)
        Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).
        Parameters:
        xid -
      • equals

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

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

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

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