Class ChallengeInfo


  • public class ChallengeInfo
    extends Object
    ChallengeInfo
    • Constructor Detail

      • ChallengeInfo

        public ChallengeInfo()
    • 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 ChallengeInfo instance, 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 ChallengeInfo instance, 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 ChallengeInfo instance, 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 ChallengeInfo instance, 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 ChallengeInfo instance, 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 ChallengeInfo instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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