PhilippinesProfessionalRegulationCommissionCardModel

A class derived from DocumentModel containing details specific to the Philippines professional regulation commission card document

Declaration

@objc final public class PhilippinesProfessionalRegulationCommissionCardModel : DocumentModel {
    @objc final public var lastName: String? { get }
    @objc final public var firstName: String? { get }
    @objc final public var middleInitialName: String? { get }
    @objc final public var registrationNumber: String? { get }
    @objc final public var registrationDate: Date? { get }
    @objc final public var validUntil: Date? { get }
    @objc final public var profession: String? { get }
    @objc final public var dateOfBirth: Date? { get }
    @objc final public var dateIssued: Date? { 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

lastName

@objc final public var lastName: String? { get }

Example: "DOE"

The last name of the subject as found on the document.

firstName

@objc final public var firstName: String? { get }

Example: "JOHN"

The first name of the subject as found on the document.

middleInitialName

@objc final public var middleInitialName: String? { get }

Example: "MARTIN"

The middle name or initial of the subject as found on the document.

registrationNumber

@objc final public var registrationNumber: String? { get }

Example: "0123456"

The registration number as found on the document.

registrationDate

@objc final public var registrationDate: Date? { get }

Example: 1990/01/01

The registration date as found on the document.

validUntil

@objc final public var validUntil: Date? { get }

Example: 1990/01/01

The expiry date of the document as found on the document.

profession

@objc final public var profession: String? { get }

Example: "PHYSICIAN"

The profession of the subject as found on the document.

dateOfBirth

@objc final public var dateOfBirth: Date? { get }

Value can be nil because it is not included on all documents

Example: 1990/01/01

The date of birth of the subject as found on the document.

dateIssued

@objc final public var dateIssued: Date? { get }

Value can be nil because it is not included on all documents

Example: 1990/01/01

The issue date of the document as found on the document.

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