IdInformation
public struct IdInformation : Codable
This structure contains id information attached to an consumer in the system.
-
The type of identity document.
Declaration
Swift
public var typeString: String?
-
The type of identity document. Check
typeString
ifnil
.Declaration
Swift
public var type: IdType? { get }
-
The identity document number.
Declaration
Swift
public var number: String?
-
Three-letter country code (ISO 3166-1 alpha-3). Country that issued the identity document.
Declaration
Swift
public var country: String?
-
The id expiry date.
Declaration
Swift
public var expiryDate: String?
-
Auxiliary constructor.
Declaration
Swift
public init( typeString: String? = nil, number: String? = nil, country: String? = nil, expiryDate: String? = nil)
Parameters
typeString
The type of identity document. Can be mapped from
IdType
.number
The identity document number.
country
Three-letter country code (ISO 3166-1 alpha-3). Country that issued the identity document.
expiryDate
The id expiry date.
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes the instance by encoding to the given decoder.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.