Class AuthResponseBuilder


  • public class AuthResponseBuilder
    extends Object
    The builder class of AuthResponseDTO.
    Author:
    Loganathan Sekar
    • Method Detail

      • setTxnID

        public AuthResponseBuilder setTxnID​(String txnID)
        Sets the txn ID.
        Parameters:
        txnID - the txn ID
        Returns:
        the auth response builder
      • addErrors

        public AuthResponseBuilder addErrors​(AuthError... errors)
        Adds the errors.
        Parameters:
        errors - the errors
        Returns:
        the auth response builder
      • addAuthStatusInfo

        public AuthResponseBuilder addAuthStatusInfo​(AuthStatusInfo authStatusInfo)
        Adds the auth status info.
        Parameters:
        authStatusInfo - the auth status info
        Returns:
        the auth response builder
      • setAuthTokenId

        public AuthResponseBuilder setAuthTokenId​(String authTokenId)
        Sets the auth Token Id.
        Parameters:
        authTokenId - the auth token id
        Returns:
        the auth response builder
      • setVersion

        public AuthResponseBuilder setVersion​(String ver)
        Sets the version.
        Parameters:
        ver - the ver
        Returns:
        the auth response builder
      • build

        public AuthResponseDTO build​(String tokenID)
        Builds the.
        Parameters:
        tokenID - the auth token ID
        Returns:
        the auth response DTO
      • newInstance

        public static AuthResponseBuilder newInstance()
        Get new instance of AuthResponseBuilder.
        Parameters:
        dateTimePattern - the date time pattern
        Returns:
        the auth response builder