State

public enum State : Sendable

State of the card digitization process that is initiated with digitizeCard(withTNC:pushToken:language:authenticationToken:)

  • The state returned when DigitalCard is ready for green flow.

    Declaration

    Swift

    case digitizationApproved(_: String)

    Parameters

    digitalCardID

    Digital Card ID

  • The state returned when digitization is declined for red flow.

    Declaration

    Swift

    case digitizationDeclined
  • The state returned when DigitalCard is digitized for yellow flow. The cardholder’s identity verfication is required to complete the digitization flow. Cardholder is required to select an IDV method.

    Declaration

    Swift

    case digitizationApprovedWithIDV(_: String, _: IDVMethodSelector)

    Parameters

    digitalCardID

    Digital Card ID

    idvMethodSelector

    IDVMethodSelector contains the information of available IDV methods and function to select an IDV method.

  • The state that is returned when the IDV method has been selected by the cardholder. MPA will proceed with the card activation based on the IDV method selected and the state of the pending activation.

    Declaration

    Swift

    case activationRequired(_: PendingCardActivation)
  • This state is returned when there is an invalid input. For example: Invalid IDV method, Invalid OTP and so on.

    Declaration

    Swift

    case invalidInput(_: String)

    Parameters

    message

    Error message

  • The state returned when the digitization flow has been cancelled.

    Declaration

    Swift

    case cancelled
  • The state returned when cardholder’s identity verfication is sucessfully completed.

    Declaration

    Swift

    case activatedByIDV(_: String)

    Parameters

    digitalCardID

    Digital Card ID

  • The state that is returned when the digitization flow encounters an error.

    Declaration

    Swift

    case errorEncountered(_: Swift.Error)