Comment on page
SouthAfricaGeneralWorkVisaModel
A class derived from DocumentModel containing details specific to the South Africa General Work Visa document
@objc final public class SouthAfricaGeneralWorkVisaModel : DocumentModel {
@objc public final var names: String? { get }
@objc public final var passportNumber: String? }
@objc public final var numberOfEntries: String? }
@objc public final var on: Date? { get }
@objc public final var referenceNumber: String? }
@objc public final var dateOfExpiry: Date? { get }
@objc public final var issuedAt: String? { get }
@objc public final var controlNumber: String? }
@objc public final var barcodeData: String? }
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 |
String? | Data found within the document's barcode. | OCR | |
String? | The document's control number as specified on the South Africa General Work Visa. | OCR | |
Date? | The date of expiry of the visa as specified on the South Africa General Work Visa. | OCR | |
String? | The location that the visa was issued at. | OCR | |
String? | The names and surnames of the subject as specified on the South Africa General Work Visa. | OCR | |
String? | The number of entries as specified on the South Africa General Work Visa. | OCR | |
Date? | The date of issue of the visa as specified on the South Africa General Work Visa. | OCR | |
String? | The document's passport number. | OCR | |
String? | The document's reference number. | OCR |
Signature | Return Type | Description |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON |
@objc final public var barcodeData: String? { get }
Example:
LQQBC7D
Data found within the document's barcode.
@objc final public var controlNumber: String? { get }
Example:
AA0064341
The document's control number as specified on the South Africa General Work Visa.
@objc final public var dateOfExpiry: Date? { get }
Example: 2020-08-29
The date of expiry of the visa as specified on the South Africa General Work Visa.
@objc final public var issuedAt: String? { get }
Example:
HEAD OFFICE
The location that the visa was issued at.
@objc final public var names: String? { get }
Example:
John P Smith
The names and surnames of the subject as specified on the South Africa General Work Visa.
@objc final public var numberOfEntries: String? { get }
Example:
Multiple
The number of entries as specified on the South Africa General Work Visa.
@objc final public var on: Date? { get }
Example: 2020-08-29
The date of issue of the visa as specified on the South Africa General Work Visa.
@objc final public var passportNumber: String? { get }
Example:
BA0934030
The document's passport number.
@objc final public var referenceNumber: String? { get }
Example:
BFT 51135/2018/TRVC
The document's reference number.
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