Identity iOS
1.12
Search
K
Comment on page

PhilippinesSocialSecurityIDModel

A class derived from DocumentModel containing details specific to the Philippines social security ID document

Declaration

@objc final public class PhilippinesSocialSecurityIDModel : DocumentModel {
@objc final public var socialSecurityNumber: String? { get }
@objc final public var fullName: String? { get }
@objc final public var dateOfBirth: 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

Name
Type
Description
Data source
String?
The social security number of the subject as found on the document.
OCR
fullName
String?
The full name of the subject as found on the document.
OCR
Date?
The date of birth 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

socialSecurityNumber

@objc final public var socialSecurityNumber: String? { get }
Example: "01-2345678-9"
The social security number of the subject as found on the document.

fullName

@objc final public var fullName: String? { get }
Example: "JOHN DOE"
The full name 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.

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