IdInformation

public struct IdInformation : Codable, Sendable

Id information.

  • The unique number of the ID.

    Declaration

    Swift

    public let idNumber: String
  • The type of ID.

    Declaration

    Swift

    public var idTypeString: String
  • The type of ID. Check idTypeString if nil.

    Declaration

    Swift

    public var idType: IdType? { get }
  • The country that issued the ID.

    Declaration

    Swift

    public let countryOfIssuance: String
  • The expiration date of the ID, if applicable.

    Declaration

    Swift

    public let expirationDate: String?
  • Auxiliary constructor.

    Declaration

    Swift

    public init(
        idNumber: String,
        idType: IdType,
        countryOfIssuance: String,
        expirationDate: String? = nil
    )

    Parameters

    idNumber

    The unique number of the ID.

    idType

    The type of ID.

    countryOfIssuance

    The country that issued the ID.

    expirationDate

    The expiration date of the ID, if applicable.

  • Auxiliary constructor

    Declaration

    Swift

    public init(from decoder: any Decoder) throws
  • Encode object.

    Declaration

    Swift

    public func encode(to encoder: any Encoder) throws