PhilippinesIdentificationCardModel
A class derived from IDCardModel containing details specific to the Philippines ID card document
Declaration
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Summary
Public variables
Name | Type | Description | Data source |
givenNames | String? | The given names of the subject as found on the document. | OCR |
lastName | String? | The last name of the subject as found on the document. | OCR |
middleName | String? | The middle name of the subject as found on the document. | |
commonReferenceNumber | String? | The common reference number of the subject as found on the document. | OCR |
String? | The address of the subject as found on the document. | OCR | |
Date? | The date of birth of the subject as found on the document. | OCR | |
datOfIssued | Date? | The issue date of the document as found on the document. | OCR |
maritalStatus | String? | The marital status of the subject as found on the document. | |
placeOfBirth | String? | place of birth of the subject as found on the document. | OCR |
Sex | Sex? | The sex of the subject as found on the document. | OCR |
Public methods
Signature | Return Type | Description |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
Public variables
givenNames
@objc final public var
givenNames: String? { get }
Example: "JOHN JANE"
The given names of the subject as found on the document.
lastName
@objc final public var
lastName: String? { get }
Example: "DOE"
The last name of the subject as found on the document.
middleName
@objc final public var
middleName: String? { get }
Example: "JOHN DOE"
The middle name of the subject as found on the document.
commonReferenceNumber
@objc final public var
commonReferenceNumber: String? { get }
Example: "012345678912"
The common reference number of the subject as found on the document.
address
@objc final public var address: String? { get }
Example: "UNIT/HOUSE NO. BUILDING, STREET NAME, BARANGAY, CITY/MUNICIPALITY"
The address of the subject as found on the document.
dateOfBirth
@objc final public var dateOfBirth: Date? { get }
Example: 1990/01/01
The date of birth of the subject as found on the document.
datOfIssued
@objc final public var
datOfIssued: Date? { get }
Example: 1990/01/01
The issue date of the document as found on the document.
maritalStatus
@objc final public var
maritalStatus: String? { get }
Example: "Filipino"
The marital status of the subject as found on the document.
placeOfBirth
@objc final public var
placeOfBirth: String? { get }
Example: "MNL CPO"
The place of birth of the subject as found on the document.
Sex
@objc final public var
Sex: String { get }
Example: "Basic"
The sex of the subject as found on the document. Will always be either "M"
or "F"
Public methods
encode(to encoder: Encoder)
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.
See also
Last updated