Package com.adyen.model.payment
Class ThreeDSecureData
- java.lang.Object
-
- com.adyen.model.payment.ThreeDSecureData
-
public class ThreeDSecureData extends Object
ThreeDSecureData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreeDSecureData.AuthenticationResponseEnumIn 3D Secure 2, this is the `transStatus` from the challenge result.static classThreeDSecureData.ChallengeCancelEnumIndicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.static classThreeDSecureData.DirectoryResponseEnumIn 3D Secure 2, this is the `transStatus` from the `ARes`.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHENTICATION_RESPONSEstatic StringJSON_PROPERTY_CAVVstatic StringJSON_PROPERTY_CAVV_ALGORITHMstatic StringJSON_PROPERTY_CHALLENGE_CANCELstatic StringJSON_PROPERTY_DIRECTORY_RESPONSEstatic StringJSON_PROPERTY_DS_TRANS_I_Dstatic StringJSON_PROPERTY_ECIstatic StringJSON_PROPERTY_RISK_SCOREstatic StringJSON_PROPERTY_THREE_D_S_VERSIONstatic StringJSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUEstatic StringJSON_PROPERTY_TRANS_STATUS_REASONstatic StringJSON_PROPERTY_XID
-
Constructor Summary
Constructors Constructor Description ThreeDSecureData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreeDSecureDataauthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)In 3D Secure 2, this is the `transStatus` from the challenge result.ThreeDSecureDatacavv(byte[] cavv)The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).ThreeDSecureDatacavvAlgorithm(String cavvAlgorithm)The CAVV algorithm used.ThreeDSecureDatachallengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.ThreeDSecureDatadirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)In 3D Secure 2, this is the `transStatus` from the `ARes`.ThreeDSecureDatadsTransID(String dsTransID)Supported for 3D Secure 2.ThreeDSecureDataeci(String eci)The electronic commerce indicator.booleanequals(Object o)Return true if this ThreeDSecureData object is equal to o.static ThreeDSecureDatafromJson(String jsonString)Create an instance of ThreeDSecureData given an JSON stringThreeDSecureData.AuthenticationResponseEnumgetAuthenticationResponse()In 3D Secure 2, this is the `transStatus` from the challenge result.byte[]getCavv()The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).StringgetCavvAlgorithm()The CAVV algorithm used.ThreeDSecureData.ChallengeCancelEnumgetChallengeCancel()Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.ThreeDSecureData.DirectoryResponseEnumgetDirectoryResponse()In 3D Secure 2, this is the `transStatus` from the `ARes`.StringgetDsTransID()Supported for 3D Secure 2.StringgetEci()The electronic commerce indicator.StringgetRiskScore()Risk score calculated by Directory Server (DS).StringgetThreeDSVersion()The version of the 3D Secure protocol.byte[]getTokenAuthenticationVerificationValue()Network token authentication verification value (TAVV).StringgetTransStatusReason()Provides information on why the `transStatus` field has the specified value.byte[]getXid()Supported for 3D Secure 1.inthashCode()ThreeDSecureDatariskScore(String riskScore)Risk score calculated by Directory Server (DS).voidsetAuthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)In 3D Secure 2, this is the `transStatus` from the challenge result.voidsetCavv(byte[] cavv)The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).voidsetCavvAlgorithm(String cavvAlgorithm)The CAVV algorithm used.voidsetChallengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.voidsetDirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)In 3D Secure 2, this is the `transStatus` from the `ARes`.voidsetDsTransID(String dsTransID)Supported for 3D Secure 2.voidsetEci(String eci)The electronic commerce indicator.voidsetRiskScore(String riskScore)Risk score calculated by Directory Server (DS).voidsetThreeDSVersion(String threeDSVersion)The version of the 3D Secure protocol.voidsetTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)Network token authentication verification value (TAVV).voidsetTransStatusReason(String transStatusReason)Provides information on why the `transStatus` field has the specified value.voidsetXid(byte[] xid)Supported for 3D Secure 1.ThreeDSecureDatathreeDSVersion(String threeDSVersion)The version of the 3D Secure protocol.StringtoJson()Convert an instance of ThreeDSecureData to an JSON stringThreeDSecureDatatokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)Network token authentication verification value (TAVV).StringtoString()ThreeDSecureDatatransStatusReason(String transStatusReason)Provides information on why the `transStatus` field has the specified value.ThreeDSecureDataxid(byte[] xid)Supported for 3D Secure 1.
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHENTICATION_RESPONSE
public static final String JSON_PROPERTY_AUTHENTICATION_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAVV
public static final String JSON_PROPERTY_CAVV
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAVV_ALGORITHM
public static final String JSON_PROPERTY_CAVV_ALGORITHM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHALLENGE_CANCEL
public static final String JSON_PROPERTY_CHALLENGE_CANCEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DIRECTORY_RESPONSE
public static final String JSON_PROPERTY_DIRECTORY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DS_TRANS_I_D
public static final String JSON_PROPERTY_DS_TRANS_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ECI
public static final String JSON_PROPERTY_ECI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RISK_SCORE
public static final String JSON_PROPERTY_RISK_SCORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_S_VERSION
public static final String JSON_PROPERTY_THREE_D_S_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE
public static final String JSON_PROPERTY_TOKEN_AUTHENTICATION_VERIFICATION_VALUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANS_STATUS_REASON
public static final String JSON_PROPERTY_TRANS_STATUS_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_XID
public static final String JSON_PROPERTY_XID
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticationResponse
public ThreeDSecureData authenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.- Parameters:
authenticationResponse- In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getAuthenticationResponse
public ThreeDSecureData.AuthenticationResponseEnum getAuthenticationResponse()
In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.- Returns:
- authenticationResponse In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.
-
setAuthenticationResponse
public void setAuthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.- Parameters:
authenticationResponse- In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.
-
cavv
public ThreeDSecureData cavv(byte[] cavv)
The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).- Parameters:
cavv- The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getCavv
public byte[] getCavv()
The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).- Returns:
- cavv The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).
-
setCavv
public void setCavv(byte[] cavv)
The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).- Parameters:
cavv- The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).
-
cavvAlgorithm
public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm)
The CAVV algorithm used. Include this only for 3D Secure 1.- Parameters:
cavvAlgorithm- The CAVV algorithm used. Include this only for 3D Secure 1.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getCavvAlgorithm
public String getCavvAlgorithm()
The CAVV algorithm used. Include this only for 3D Secure 1.- Returns:
- cavvAlgorithm The CAVV algorithm used. Include this only for 3D Secure 1.
-
setCavvAlgorithm
public void setCavvAlgorithm(String cavvAlgorithm)
The CAVV algorithm used. Include this only for 3D Secure 1.- Parameters:
cavvAlgorithm- The CAVV algorithm used. Include this only for 3D Secure 1.
-
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- 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:
- the current
ThreeDSecureDatainstance, 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 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).
-
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- 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).
-
directoryResponse
public ThreeDSecureData directoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
In 3D Secure 2, this is the `transStatus` from the `ARes`.- Parameters:
directoryResponse- In 3D Secure 2, this is the `transStatus` from the `ARes`.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getDirectoryResponse
public ThreeDSecureData.DirectoryResponseEnum getDirectoryResponse()
In 3D Secure 2, this is the `transStatus` from the `ARes`.- Returns:
- directoryResponse In 3D Secure 2, this is the `transStatus` from the `ARes`.
-
setDirectoryResponse
public void setDirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
In 3D Secure 2, this is the `transStatus` from the `ARes`.- Parameters:
directoryResponse- In 3D Secure 2, this is the `transStatus` from the `ARes`.
-
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- Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.- Returns:
- the current
ThreeDSecureDatainstance, 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 Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.
-
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- Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.
-
eci
public ThreeDSecureData eci(String eci)
The electronic commerce indicator.- Parameters:
eci- The electronic commerce indicator.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getEci
public String getEci()
The electronic commerce indicator.- Returns:
- eci The electronic commerce indicator.
-
setEci
public void setEci(String eci)
The electronic commerce indicator.- Parameters:
eci- The electronic commerce indicator.
-
riskScore
public ThreeDSecureData riskScore(String riskScore)
Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.- Parameters:
riskScore- Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getRiskScore
public String getRiskScore()
Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.- Returns:
- riskScore Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.
-
setRiskScore
public void setRiskScore(String riskScore)
Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.- Parameters:
riskScore- Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.
-
threeDSVersion
public ThreeDSecureData threeDSVersion(String threeDSVersion)
The version of the 3D Secure protocol.- Parameters:
threeDSVersion- The version of the 3D Secure protocol.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getThreeDSVersion
public String getThreeDSVersion()
The version of the 3D Secure protocol.- Returns:
- threeDSVersion The version of the 3D Secure protocol.
-
setThreeDSVersion
public void setThreeDSVersion(String threeDSVersion)
The version of the 3D Secure protocol.- Parameters:
threeDSVersion- The version of the 3D Secure protocol.
-
tokenAuthenticationVerificationValue
public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)
Network token authentication verification value (TAVV). The network token cryptogram.- Parameters:
tokenAuthenticationVerificationValue- Network token authentication verification value (TAVV). The network token cryptogram.- Returns:
- the current
ThreeDSecureDatainstance, allowing for method chaining
-
getTokenAuthenticationVerificationValue
public byte[] getTokenAuthenticationVerificationValue()
Network token authentication verification value (TAVV). The network token cryptogram.- Returns:
- tokenAuthenticationVerificationValue Network token authentication verification value (TAVV). The network token cryptogram.
-
setTokenAuthenticationVerificationValue
public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)
Network token authentication verification value (TAVV). The network token cryptogram.- Parameters:
tokenAuthenticationVerificationValue- Network token authentication verification value (TAVV). The network token cryptogram.
-
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- 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:
- the current
ThreeDSecureDatainstance, 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 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).
-
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- 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).
-
xid
public ThreeDSecureData xid(byte[] xid)
Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).- Parameters:
xid- Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).- Returns:
- the current
ThreeDSecureDatainstance, 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 Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).
-
setXid
public void setXid(byte[] xid)
Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).- Parameters:
xid- Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).
-
equals
public boolean equals(Object o)
Return true if this ThreeDSecureData object is equal to o.
-
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
-
-