
## MandatoryFields class

**Namespace:** `Aspose.Barcode.ComplexBarcode`


Mandatory elements (fields) of the card


## Constructors

| Name | Description |
| --- | --- |
| [__construct](#constructor) |  |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [AddressCity](#addresscity) | Read/Write | DAI, City portion of the cardholder address, DL/ID, V20ANS |
| [AddressPostalCode](#addresspostalcode) | Read/Write | DAK, Postal code portion of the cardholder address in the U.S.and Canada. If the trailing portion of the postal code in the U.S. is not known, zeros will be used to fill the trailing set of numbers up to 9 digits, DL/ID, F11ANS |
| [AddressState](#addressstate) | Read/Write | DAJ, State portion of the cardholder address, DL/ID, F2A |
| [AddressStreet1](#addressstreet1) | Read/Write | DAG, Street portion of the cardholder address, DL/ID, V35ANS |
| [CountryIdentification](#countryidentification) | Read/Write | DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A |
| [CustomerIDNumber](#customeridnumber) | Read/Write | DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS |
| [DateOfBirth](#dateofbirth) | Read/Write | DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N |
| [DocumentDiscriminator](#documentdiscriminator) | Read/Write | DCF, Number must uniquely identify a particular document issued to that customer from others that may have been issued in the past. This number may serve multiple purposes of document discrimination, audit information number, and/or inventory control, DL/ID, V25ANS |
| [EndorsementCodes](#endorsementcodes) | Read/Write | DCD, Jurisdiction specific endorsement codes, DL, V5ANS |
| [EyeColor](#eyecolor) | Read/Write | DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A |
| [FamilyName](#familyname) | Read/Write | DCS, Family name of the cardholder, DL/ID, V40ANS |
| [FamilyNameTruncation](#familynametruncation) | Read/Write | DDE, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A |
| [FirstName](#firstname) | Read/Write | DAC, First name of the cardholder, DL/ID, V40ANS |
| [FirstNameTruncation](#firstnametruncation) | Read/Write | DDF, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A |
| [Height](#height) | Read/Write | DAU, Height of cardholder. Inches (in): number of inches followed by " in" ex. 6'1'' = "073 in" Centimeters(cm) : number of centimeters followed by " cm" ex. 181 centimeters="181 cm" , DL/ID, F6ANS |
| [MiddleName](#middlename) | Read/Write | DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be separated by a comma ",". , DL/ID, V40ANS |
| [MiddleNameTruncation](#middlenametruncation) | Read/Write | DDG, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A |
| [RestrictionCodes](#restrictioncodes) | Read/Write | DCB, Jurisdiction-specific restrictions codes, DL, V12ANS |
| [Sex](#sex) | Read/Write | DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N |
| [VehicleClass](#vehicleclass) | Read/Write | DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS |

### MandatoryFields__construct() {#constructor}

### AddressCity {#addresscity}

**Access:** Read/Write

DAI, City portion of the cardholder address, DL/ID, V20ANS

DAI, City portion of the cardholder address, DL/ID, V20ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### AddressPostalCode {#addresspostalcode}

**Access:** Read/Write

DAK, Postal code portion of the cardholder address in the U.S.and Canada. If the trailing portion of the postal code in the U.S. is not known, zeros will be used to fill the trailing set of numbers up to 9 digits, DL/ID, F11ANS

DAK, Postal code portion of the cardholder address in the U.S.and Canada. If the trailing portion of the postal code in the U.S. is not known, zeros will be used to fill the trailing set of numbers up to 9 digits, DL/ID, F11ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### AddressState {#addressstate}

**Access:** Read/Write

DAJ, State portion of the cardholder address, DL/ID, F2A

DAJ, State portion of the cardholder address, DL/ID, F2A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### AddressStreet1 {#addressstreet1}

**Access:** Read/Write

DAG, Street portion of the cardholder address, DL/ID, V35ANS

DAG, Street portion of the cardholder address, DL/ID, V35ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### CountryIdentification {#countryidentification}

**Access:** Read/Write

DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A

DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### CustomerIDNumber {#customeridnumber}

**Access:** Read/Write

DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS

DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### DateOfBirth {#dateofbirth}

**Access:** Read/Write

DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N

DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `DateTimeImmutable` |  |

### DocumentDiscriminator {#documentdiscriminator}

**Access:** Read/Write

DCF, Number must uniquely identify a particular document issued to that customer from others that may have been issued in the past. This number may serve multiple purposes of document discrimination, audit information number, and/or inventory control, DL/ID, V25ANS

DCF, Number must uniquely identify a particular document issued to that customer from others that may have been issued in the past. This number may serve multiple purposes of document discrimination, audit information number, and/or inventory control, DL/ID, V25ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### EndorsementCodes {#endorsementcodes}

**Access:** Read/Write

DCD, Jurisdiction specific endorsement codes, DL, V5ANS

DCD, Jurisdiction specific endorsement codes, DL, V5ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### EyeColor {#eyecolor}

**Access:** Read/Write

DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A

DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### FamilyName {#familyname}

**Access:** Read/Write

DCS, Family name of the cardholder, DL/ID, V40ANS

DCS, Family name of the cardholder, DL/ID, V40ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### FamilyNameTruncation {#familynametruncation}

**Access:** Read/Write

DDE, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

DDE, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### FirstName {#firstname}

**Access:** Read/Write

DAC, First name of the cardholder, DL/ID, V40ANS

DAC, First name of the cardholder, DL/ID, V40ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### FirstNameTruncation {#firstnametruncation}

**Access:** Read/Write

DDF, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

DDF, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### Height {#height}

**Access:** Read/Write

DAU, Height of cardholder. Inches (in): number of inches followed by " in" ex. 6'1'' = "073 in" Centimeters(cm) : number of centimeters followed by " cm" ex. 181 centimeters="181 cm" , DL/ID, F6ANS

DAU, Height of cardholder. Inches (in): number of inches followed by " in" ex. 6'1'' = "073 in" Centimeters(cm) : number of centimeters followed by " cm" ex. 181 centimeters="181 cm" , DL/ID, F6ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### MiddleName {#middlename}

**Access:** Read/Write

DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be separated by a comma ",". , DL/ID, V40ANS

DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be separated by a comma ",". , DL/ID, V40ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### MiddleNameTruncation {#middlenametruncation}

**Access:** Read/Write

DDG, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

DDG, A code that indicates whether a field has been truncated(T), has not been truncated(N), or unknown whether truncated(U), DL/ID, F1A

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### RestrictionCodes {#restrictioncodes}

**Access:** Read/Write

DCB, Jurisdiction-specific restrictions codes, DL, V12ANS

DCB, Jurisdiction-specific restrictions codes, DL, V12ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### Sex {#sex}

**Access:** Read/Write

DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N

DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### VehicleClass {#vehicleclass}

**Access:** Read/Write

DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS

DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

