OfferTxCodeSpec

data class OfferTxCodeSpec(val length: Int?, val numeric: Boolean, val description: String?)

Describes the transaction code a pre-authorized credential offer expects the user to enter, mapped from the issuer's offer metadata into an SDK-native type (so apps never touch EUDI's TxCode).

Obtained from com.dewa.walletsdk.api.oidc.oidc4vci.ReceiveDocument.resolveTxCodeSpec; a null result there means the offer is not pre-authorized and no code is required.

Constructors

Link copied to clipboard
constructor(length: Int?, numeric: Boolean, description: String?)

Properties

Link copied to clipboard

Optional human-readable hint from the issuer about where to find / how to obtain the code.

Link copied to clipboard
val length: Int?

Expected number of characters, or null if the issuer did not specify a fixed length.

Link copied to clipboard

true when the code is digits-only (show a numeric keyboard); false for free text.