SouthAfricaGreenBookModel
A class derived from GreenBookModel containing details specific to the South Africa green book document
Last updated
A class derived from GreenBookModel containing details specific to the South Africa green book document
Last updated
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
@objc final public var identityNumberDateOfBirth: Date? { get }
Example: 1988/01/23
The date of birth for the South African identity number.
@objc final public var identityNumberSex:
Sex
{ get }
Example: Sex.Male
The sex for the South African identity number.
@objc final public var identityNumberCitizenship:
CitizenshipType
{ get }
Example: CitizenshipType.Citizen
The citizenship type for the South African identity number.
@objc final public var identityNumberADigit: Int { get }
Example: 8
The A digit for the South African identity number.
@objc final public var identityNumberCheckDigit: Int { get }
Example: 8
The check digit for the South African identity number.
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
Date?
The date of birth for the South African identity number.
The sex for the South African identity number.
The citizenship type for the South African identity number.
Int
The A digit for the South African identity number.
Int
The check digit for the South African identity number.
Signature
Return Type
Description
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.