MozambiquePassportModel
A class derived from PassportModel containing details specific to the Mozambique passport document
Last updated
A class derived from PassportModel containing details specific to the Mozambique passport document
Last updated
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
@objc final public var mrzLine1: String? { get }
Example: "P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<"
The top MRZ line of the passport document.
@objc final public var mrzLine2: String? { get }
Example: "L898902C36UTO7408122F1204159ZE184226B<<<<<10"
The bottom MRZ line of the passport document.
@objc final public var passportNumberCheckDigit: Int { get }
Example: 6
The check digit for passportNumber.
@objc final public var dateOfBirthCheckDigit: Int { get }
Example: 2
The check digit for dateOfBirth.
@objc final public var dateOfExpiryCheckDigit: Int { get }
Example: 9
The check digit for dateOfExpiry.
@objc final public var identityNumber: String? { get }
Example: "ZE184226B"
The identity number of the subject as found on the passport document.
@objc final public var identityNumberCheckDigit: Int { get }
Example: 1
The check digit for identityNumber.
@objc final public var compositeCheckDigit: Int { get }
Example: 0
The check digit for the entire MRZ.
override final public func encode(to encoder: Encoder) throws
This function also calls its super function
Encodes the model using the encoder provided. Used to convert the model to JSON.
Name
Type
Description
String?
The top MRZ line of the passport document.
String?
The bottom MRZ line of the passport document.
Int
The check digit for passportNumber.
Int
The check digit for dateOfBirth.
Int
The check digit for dateOfExpiry.
String?
The identity number of the subject as found on the passport document.
Int
The check digit for identityNumber.
Int
The check digit for the entire MRZ.
Signature
Return Type
Description
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.