# FinancialCardTrackTwo

This class represents the second track of a financial card.

package | Application

### Methods

## Gets the account number of the card in track two.

    getAccountNumber() : string

### Response

`string`

## Gets the discretionary data on the second track of the card.

    getDiscretionaryData() : string

### Response

`string`

## Gets the expiration date of the card.

    getExpiration() : \com\scriptel\Date

### Response

`\com\scriptel\Date`

## Gets the service code on the card.

    getServiceCode() : string

### Response

`string`

## This method attempts to parse track two of the raw track string.

    parse(stringtrackData) : \com\scriptel\FinancialCardTrackTwo

static

### Arguments

#### trackData

`string`

Track data to parse.

### Response

`\com\scriptel\FinancialCardTrackTwo`

data if data found, null otherwise.

## Sets the account number of the card in track two.

    setAccountNumber(stringaccountNumber) : mixed

### Arguments

#### accountNumber

`string`

### Response

`mixed`

## Sets the discretionary data on the second track of the card.

    setDiscretionaryData(stringdiscretionaryData) : mixed

### Arguments

#### discretionaryData

`string`

### Response

`mixed`

## Sets the expiration date of the card.

    setExpiration(\com\scriptel\Dateexpiration) : mixed

### Arguments

#### expiration

`\com\scriptel\Date`

### Response

`mixed`

## Sets the service code on the card.

    setServiceCode(stringserviceCode) : mixed

### Arguments

#### serviceCode

`string`

### Response

`mixed`

## Returns this object as a human readable string.

    toString() : mixed

### Response

`mixed`

### Properties

## Credit card number.

    accountNumber : string

var |

### Type(s)

`string`

## Expiration date.

    expiration : \com\scriptel\Date

var |

### Type(s)

`\com\scriptel\Date`

## Service code.

    serviceCode : string

var |

### Type(s)

`string`

## Discretionary Data

    discretionaryData : string

var |

### Type(s)

`string`