IdentificationCardTrackTwo

This class represents track two of a magnetic strip identification card such as a United States driver's license.

package

Application

Methods

Gets the birth date of the card-holder.

getBirthDate() : \com\scriptel\Date

Response

\com\scriptel\Date

Gets the expiration date of the document.

getExpiration() : \com\scriptel\Date

Response

\com\scriptel\Date

Gets the identification number of the document.

getIdNumber() : string

Response

string

Gets the issuer identification number. This can be used to determine which state issued the document.

getIssuerNumber() : string

Response

string

This method attempts to parse track two of an identification card.

parse(stringtrackData) : \IdentificationCardTrackTwo
static

Arguments

trackData

string

Response

\IdentificationCardTrackTwo

Sets the birth date of the card-holder.

setBirthDate(\com\scriptel\DatebirthDate) : mixed

Arguments

birthDate

\com\scriptel\Date

Response

mixed

Sets the expiration date of the document.

setExpiration(\com\scriptel\Dateexpiration) : mixed

Arguments

expiration

\com\scriptel\Date

Response

mixed

Sets the identification number of the document.

setIdNumber(stringidNumber) : mixed

Arguments

idNumber

string

Response

mixed

Sets the issuer identification number.

setIssuerNumber(stringissuerNumber) : mixed

Arguments

issuerNumber

string

Response

mixed

Returns this object as a human readable string.

toString() : string

Response

string

Properties

Issuer identification number.

issuerNumber : string
var

Type(s)

string

Document number.

idNumber : string
var

Type(s)

string

Document Expiration date.

expiration : \com\scriptel\Date
var

Type(s)

\com\scriptel\Date

Card-holder Birth date.

birthDate : \com\scriptel\Date
var

Type(s)

\com\scriptel\Date