Comment on page
PhilippinesIdentificationCardModel
A class derived from IDCardModel containing details specific to the Philippines ID card document
@objc final public class PhilippinesIdentificationCardModel: IDCardModel {
@objc final public var address: String? { get }
@objc final public var bloodType: String? { get }
@objc final public var dateOfIissued: Date? { get }
@objc final public var dateOfBirth: Date? { get }
@objc final public var givenNames: String? { get }
@objc final public var lastNme: String? { get }
@objc final public var middleName: String? { get }
@objc final public var placeOfBirth: String { get }
@objc final public var sex: Sex{ get }
@objc final public var commonReferenceNumber: String { get }
override final public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
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 |
Signature | Return Type | Description |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
@objc final public var
givenNames: String? { get }
Example:
"JOHN JANE"
The given names of the subject as found on the document.
@objc final public var
lastName: String? { get }
Example:
"DOE"
The last name of the subject as found on the document.
@objc final public var
middleName: String? { get }
Example:
"JOHN DOE"
The middle name of the subject as found on the document.
@objc final public var
commonReferenceNumber: String? { get }
Example:
"012345678912"
The common reference number of the subject as found on the document.
@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.
@objc final public var dateOfBirth: Date? { get }
Example:
1990/01/01
The date of birth of the subject as found on the document.
@objc final public var
datOfIssued: Date? { get }
Example:
1990/01/01
The issue date of the document as found on the document.
@objc final public var
maritalStatus: String? { get }
Example:
"Filipino"
The marital status of the subject as found on the document.
@objc final public var
placeOfBirth: String? { get }
Example:
"MNL CPO"
The place of birth of the subject as found on the document.
@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"
override final public func encode(to encoder: Encoder) throws
Encodes the model using the encoder provided. Used to convert the model to JSON.
Last modified 1yr ago