Document

An enumeration containing the supported documents

Declaration

@objc public enum Document : Int, CaseIterable {
    case AngolaPassport
    case BangladeshPassport
    case BotswanaPassport
    case DemocraticRepublicOfTheCongoPassport
    case EgyptPassport
    case EthiopiaPassport
    case GenericDocument
    case GenericIDCard
    case GenericPassport
    case GhanaPassport
    case KenyaIDCard
    case KenyaPassport
    case LesothoPassport
    case MalawiPassport
    case MauritiusPassport
    case MozambiqueIDCard
    case MozambiquePassport
    case NamibiaPassport
    case NigeriaPassport
    case PakistanPassport
    case PhilippinesDriversLicense
    case PhilippinesFirearmsLicense
    case PhilippinesIntegratedBarID
    case PhilippinesPassport
    case PhilippinesPhilHealthInsuranceCard
    case PhilippinesPostalID
    case PhilippinesProfessionalRegulationCommissionCard
    case PhilippinesSeafarerIdentificationDocument
    case PhilippinesSeafarerIdentificationRecordBook
    case PhilippinesSocialSecurityID
    case PhilippinesUnifiedMultipurposeID
    case SomaliaPassport
    case SouthAfricaDriversLicense
    case SouthAfricaGeneralWorkVisa
    case SouthAfricaGreenBook
    case SouthAfricaIDCard
    case SouthAfricaPassport
    case SouthAfricaRetiredPersonVisa
    case SouthAfricaStudyPermit
    case SouthAfricaStudyVisa
    case SouthAfricaVisitorVisa
    case TanzaniaPassport
    case UgandaIDCard
    case UgandaPassport
    case UnitedKingdomPassport
    case ZambiaPassport
    case ZimbabwePassport
    
    public var name: String { get }
    public var country: Country { get }
    public var documentType: DocumentType { get }
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Cases

Name

Description

Indicates the document is a Angola Passport.

Indicates the document is a Bangladesh Passport.

Indicates the document is a Botswana Passport.

Indicates the document is a Democratic Republic of the Congo Passport.

Indicates the document is a Egypt Passport.

Indicates the document is a Ehtiopia Passport.

Indicates the document is a Generic document

Indicates the document is a Generic ID card.

Indicates the document is a Generic Passport.

Indicates the document is a Ghana Passport.

Indicates the document is a Kenya ID Card.

Indicates the document is a Kenya Passport.

Indicates the document is a Lesotho Passport.

Indicates the document is a Malawi Passport.

Indicates the document is a Mauritius Passport.

Indicates the document is a Mozambique ID Card.

Indicates the document is a Mozambique Passport.

Indicates the document is a Namibia Passport.

Indicates the document is a Nigeria Passport.

Indicates the document is a Pakistan Passport.

Indicates the document is a Philippines Drivers License.

Indicates the document is a Philippines Firearms License.

Indicates the document is a Philippines Integrated Bar ID.

Indicates the document is a Philippines Passport.

Indicates the document is a Philippines Phil Health Insurance Card.

Indicates the document is a Philippines Postal ID.

Indicates the document is a Philippines Professional Regulation Commission Card.

Indicates the document is a Philippines Seafarer Identification Document.

Indicates the document is a Philippines Seafarer Identification Record Book (Seamans Book).

Indicates the document is a Philippines Social Security ID.

Indicates the document is a Philippines Unified Multipurpose ID.

Indicates the document is a Somalia Passport.

Indicates the document is a South Africa Drivers License.

Indicated the document is a South Africa General Work Visa.

Indicates the document is a South Africa Green Book.

Indicates the document is a South Africa ID Card.

Indicates the document is a South Africa Passport.

Indicates the document is a South Africa Retired Person Visa.

Indicates the document is a South Africa Study Permit.

Indicates the document is a South Africa Study Visa.

Indicates the document is a South Africa Visitor Visa.

Indicates the document is a Tanzania Passport.

Indicates the document is a Uganda ID Card.

Indicates the document is a Uganda Passport.

Indicates the document is a United Kingdom Passport.

Indicates the document is a Zambia Passport.

Indicates the document is a Zimbabwe Passport.

Public variables

Name

Type

Description

String

Returns the document name.

Returns the country of the document.

Returns the document type of the document.

Cases

AngolaPassport

case AngolaPassport

Indicates the document is a Angola Passport.

BangladeshPassport

case BangladeshPassport

Indicates the document is a Bangladesh Passport.

BotswanaPassport

case BotswanaPassport

Indicates the document is a Botswana Passport.

DemocraticRepublicOfTheCongoPassport

case DemocraticRepublicOfTheCongoPassport

Indicates the document is a DemocraticRepublic of the Congo Passport.

EgyptPassport

case EgyptPassport

Indicates the document is a Egypt Passport.

EthiopiaPassport

case EthiopiaPassport

Indicates the document is a Ethiopia Passport.

GenericDocument

case GenericDocument

Indicates the document is a Generic Document.

GenericIDCard

case GenericIDCard

Indicates the document is a Generic ID Card.

GenericPassport

case GenericPassport

Indicates the document is a Generic Passport.

GhanaPassport

case GhanaPassport

Indicates the document is a Ghana Passport.

KenyaIDCard

case KenyaIDCard

Indicates the document is a Kenya ID Card.

KenyaPassport

case KenyaPassport

Indicates the document is a Kenya Passport.

LesothoPassport

case LesothoPassport

Indicates the document is a Lesotho Passport.

MalawiPassport

case MalawiPassport

Indicates the document is a Malawi Passport.

MauritiusPassport

case MauritiusPassport

Indicates the document is a Mauritius Passport.

MozambiqueIDCard

case MozambiqueIDCard

Indicates the document is a Mozambique ID Card.

MozambiquePassport

case MozambiquePassport

Indicates the document is a Mozambique Passport.

NamibiaPassport

case NamibiaPassport

Indicates the document is a Namibia Passport.

NigeriaPassport

case NigeriaPassport

Indicates the document is a Nigeria Passport.

PakistanPassport

case PakistanPassport

Indicates the document is a Pakistan Passport.

PhilippinesDriversLicense

case PhilippinesDriversLicense

Indicates the document is a Philippines Drivers License.

PhilippinesFirearmsLicense

case PhilippinesFirearmsLicense

Indicates the document is a Philippines Firearms License.

PhilippinesIntegratedBarID

case PhilippinesIntegratedBarID

Indicates the document is a Philippines Integrated Bar ID.

PhilippinesPassport

case PhilippinesPassport

Indicates the document is a Philippines Passport.

PhilippinesPhilHealthInsuranceCard

case PhilippinesPhilHealthInsuranceCard

Indicates the document is a Philippines Phil Health Insurance Card.

PhilippinesPostalID

case PhilippinesPostalID

Indicates the document is a Philippines Postal ID.

PhilippinesProfessionalRegulationCommissionCard

case PhilippinesProfessionalRegulationCommissionCard

Indicates the document is a Philippines Professional Regulation Commission Card.

PhilippinesSeafarerIdentificationDocument

case PhilippinesSeafarerIdentificationDocument

Indicates the document is a Philippines Seafarer Identification Document.

PhilippinesSeafarerIdentificationRecordBook

case PhilippinesSeafarerIdentificationRecordBook

Indicates the document is a Philippines Seafarer Identification Record Book (Seamans Book).

PhilippinesSocialSecurityID

case PhilippinesSocialSecurityID

Indicates the document is a Philippines Social Security ID.

PhilippinesUnifiedMultipurposeID

case PhilippinesUnifiedMultipurposeID

Indicates the document is a Philippines Unified Multipurpose ID.

PhilippinesIdentificationCard

case PhilippinesIdentificationCard

Indicates the document is a Philippines Identification Card.

SomaliaPassport

case SomaliaPassport

Indicates the document is a Somalia Passport.

SouthAfricaDriversLicense

case SouthAfricaDriversLicense

Indicates the document is a South Africa Drivers License.

SouthAfricaGeneralWorkVisa

case GeneralWorkVisa

Indicates the document is a South Africa General Work Visa.

SouthAfricaGreenBook

case SouthAfricaGreenBook

Indicates the document is a South Africa Green Book.

SouthAfricaIDCard

case SouthAfricaIDCard

Indicates the document is a South Africa ID Card.

SouthAfricaPassport

case SouthAfricaPassport

Indicates the document is a South Africa Passport.

SouthAfricaRetiredPersonVisa

case SouthAfricaRetiredPersonVisa

Indicates the document is a South Africa Retired Person Visa.

SouthAfricaStudyPermit

case SouthAfricaStudyPermit

Indicates the document is a South Africa Study Permit.

SouthAfricaStudentVisa

case SouthAfricaStudentVisa

Indicates the document is a South Africa Student Visa.

SouthAfricaVisitorVisa

case SouthAfricaVisitorVisa

Indicates the document is a South Africa Visitor Visa.

TanzaniaPassport

case TanzaniaPassport

Indicates the document is a Tanzania Passport.

UgandaIDCard

case UgandaIDCard

Indicates the document is a Uganda ID Card.

UgandaPassport

case UgandaPassport

Indicates the document is a Uganda Passport.

UnitedKingdomPassport

case UnitedKingdomPassport

Indicates the document is a United Kingdom Passport

ZambiaPassport

case ZambiaPassport

Indicates the document is a Zambia Passport.

ZimbabwePassport

case ZimbabwePassport

Indicates the document is a Zimbabwe Passport.

Public variables

name

public var name: String { get }

Example: "South Africa ID Card"

Returns the document name.

country

public var country: Country { get }

Example: Country.SouthAfrica

Returns the country of the document.

documentType

public var documentType: DocumentType { get }

Example: DocumentType.IDCard

Returns the document type of the document.

See also

Where this is used

Last updated