Class CollectResponse

java.lang.Object
se.swedenconnect.bankid.rpapi.types.CollectResponse
All Implemented Interfaces:
Serializable

public class CollectResponse extends Object implements Serializable
Representation of the response received from a collect call.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • CollectResponse

      public CollectResponse()
  • Method Details

    • getOrderReference

      public String getOrderReference()
      Returns the orderRef corresponding to the auth or sign call.
      Returns:
      the order reference
    • setOrderReference

      public void setOrderReference(String orderReference)
      Assigns the order reference.
      Parameters:
      orderReference - the order reference
    • getStatus

      public CollectResponse.Status getStatus()
      Returns the overall status for the collect call.
      Returns:
      the status
    • setStatus

      public void setStatus(CollectResponse.Status status)
      Assigns the overall status for the collect call.
      Parameters:
      status - the status
    • getProgressStatus

      public ProgressStatus getProgressStatus()
      Returns the progess status of the operation.
      Returns:
      the progress status
    • getErrorCode

      public ErrorCode getErrorCode()
      If the overall status is "failed", this method returns the error code found in hint code.
      Returns:
      the error code, or null
    • getCompletionData

      public CompletionData getCompletionData()
      If the progress status is ProgressStatus.COMPLETE this method will return the completion data.
      Returns:
      the completion data
    • setCompletionData

      public void setCompletionData(CompletionData completionData)
      Assigns the completion data.
      Parameters:
      completionData - the completion data
    • getHintCode

      public String getHintCode()
      Gets the hint code.
      Returns:
      the hint code
    • setHintCode

      public void setHintCode(String hintCode)
      Assigns the hint code.
      Parameters:
      hintCode - the hint code
    • toString

      public String toString()
      Overrides:
      toString in class Object