PhilippinesIdentificationCardModel

A class derived from IDCardModel containing details specific to the Philippines ID card document

Declaration

@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

Summary

Public variables

Public methods

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