Package com.adyen.model.acswebhooks
Class ChallengeInfo
- java.lang.Object
-
- com.adyen.model.acswebhooks.ChallengeInfo
-
public class ChallengeInfo extends Object
ChallengeInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChallengeInfo.ChallengeCancelEnumIndicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.static classChallengeInfo.FlowEnumThe flow used in the challenge.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHALLENGE_CANCELstatic StringJSON_PROPERTY_FLOWstatic StringJSON_PROPERTY_LAST_INTERACTIONstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_RESENDSstatic StringJSON_PROPERTY_RETRIES
-
Constructor Summary
Constructors Constructor Description ChallengeInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChallengeInfochallengeCancel(ChallengeInfo.ChallengeCancelEnum challengeCancel)Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.booleanequals(Object o)Return true if this ChallengeInfo object is equal to o.ChallengeInfoflow(ChallengeInfo.FlowEnum flow)The flow used in the challenge.static ChallengeInfofromJson(String jsonString)Create an instance of ChallengeInfo given an JSON stringChallengeInfo.ChallengeCancelEnumgetChallengeCancel()Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.ChallengeInfo.FlowEnumgetFlow()The flow used in the challenge.OffsetDateTimegetLastInteraction()The last time of interaction with the challenge.StringgetPhoneNumber()The last four digits of the phone number used in the challenge.IntegergetResends()The number of times the one-time password (OTP) was resent during the challenge.IntegergetRetries()The number of retries used in the challenge.inthashCode()ChallengeInfolastInteraction(OffsetDateTime lastInteraction)The last time of interaction with the challenge.ChallengeInfophoneNumber(String phoneNumber)The last four digits of the phone number used in the challenge.ChallengeInforesends(Integer resends)The number of times the one-time password (OTP) was resent during the challenge.ChallengeInforetries(Integer retries)The number of retries used in the challenge.voidsetChallengeCancel(ChallengeInfo.ChallengeCancelEnum challengeCancel)Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.voidsetFlow(ChallengeInfo.FlowEnum flow)The flow used in the challenge.voidsetLastInteraction(OffsetDateTime lastInteraction)The last time of interaction with the challenge.voidsetPhoneNumber(String phoneNumber)The last four digits of the phone number used in the challenge.voidsetResends(Integer resends)The number of times the one-time password (OTP) was resent during the challenge.voidsetRetries(Integer retries)The number of retries used in the challenge.StringtoJson()Convert an instance of ChallengeInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CHALLENGE_CANCEL
public static final String JSON_PROPERTY_CHALLENGE_CANCEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLOW
public static final String JSON_PROPERTY_FLOW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_INTERACTION
public static final String JSON_PROPERTY_LAST_INTERACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESENDS
public static final String JSON_PROPERTY_RESENDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RETRIES
public static final String JSON_PROPERTY_RETRIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
challengeCancel
public ChallengeInfo challengeCancel(ChallengeInfo.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
ChallengeInfoinstance, allowing for method chaining
-
getChallengeCancel
public ChallengeInfo.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(ChallengeInfo.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-
-
flow
public ChallengeInfo flow(ChallengeInfo.FlowEnum flow)
The flow used in the challenge. Possible values: * **OTP_SMS**: one-time password (OTP) flow * **OOB**: out-of-band (OOB) flow- Parameters:
flow-- Returns:
- the current
ChallengeInfoinstance, allowing for method chaining
-
getFlow
public ChallengeInfo.FlowEnum getFlow()
The flow used in the challenge. Possible values: * **OTP_SMS**: one-time password (OTP) flow * **OOB**: out-of-band (OOB) flow- Returns:
- flow
-
setFlow
public void setFlow(ChallengeInfo.FlowEnum flow)
The flow used in the challenge. Possible values: * **OTP_SMS**: one-time password (OTP) flow * **OOB**: out-of-band (OOB) flow- Parameters:
flow-
-
lastInteraction
public ChallengeInfo lastInteraction(OffsetDateTime lastInteraction)
The last time of interaction with the challenge.- Parameters:
lastInteraction-- Returns:
- the current
ChallengeInfoinstance, allowing for method chaining
-
getLastInteraction
public OffsetDateTime getLastInteraction()
The last time of interaction with the challenge.- Returns:
- lastInteraction
-
setLastInteraction
public void setLastInteraction(OffsetDateTime lastInteraction)
The last time of interaction with the challenge.- Parameters:
lastInteraction-
-
phoneNumber
public ChallengeInfo phoneNumber(String phoneNumber)
The last four digits of the phone number used in the challenge.- Parameters:
phoneNumber-- Returns:
- the current
ChallengeInfoinstance, allowing for method chaining
-
getPhoneNumber
public String getPhoneNumber()
The last four digits of the phone number used in the challenge.- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
The last four digits of the phone number used in the challenge.- Parameters:
phoneNumber-
-
resends
public ChallengeInfo resends(Integer resends)
The number of times the one-time password (OTP) was resent during the challenge.- Parameters:
resends-- Returns:
- the current
ChallengeInfoinstance, allowing for method chaining
-
getResends
public Integer getResends()
The number of times the one-time password (OTP) was resent during the challenge.- Returns:
- resends
-
setResends
public void setResends(Integer resends)
The number of times the one-time password (OTP) was resent during the challenge.- Parameters:
resends-
-
retries
public ChallengeInfo retries(Integer retries)
The number of retries used in the challenge.- Parameters:
retries-- Returns:
- the current
ChallengeInfoinstance, allowing for method chaining
-
getRetries
public Integer getRetries()
The number of retries used in the challenge.- Returns:
- retries
-
setRetries
public void setRetries(Integer retries)
The number of retries used in the challenge.- Parameters:
retries-
-
equals
public boolean equals(Object o)
Return true if this ChallengeInfo object is equal to o.
-
fromJson
public static ChallengeInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ChallengeInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ChallengeInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ChallengeInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ChallengeInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-