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
idTypeStringifnil.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
idNumberThe unique number of the ID.
idTypeThe type of ID.
countryOfIssuanceThe country that issued the ID.
expirationDateThe 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
View on GitHub