complex-barcode/mandatory-fields.js

const _MwWrapper = require("../_mwbridge/_mw-wrapper");


/**
 * <p>
 * Mandatory elements (fields) of the card
 * </p>
 */
class MandatoryFields extends _MwWrapper
{
    constructor(nativeObject)
    {
        super(nativeObject);
    }
    // Mandatory elements in DL/ID subfiles
    // Types of data / field lengths are encoded as
    // (A = alpha A-Z, N = numeric 0-9, S = special, F = fixed length, V = variable length).
    // Use of padding for variable length fields is optional.
    /**
     * <p>
     * DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS
     * </p>
     */

    getVehicleClass()
    {
        return this.getJavaClass().getVehicleClassSync();
    }
    // Mandatory elements in DL/ID subfiles
    // Types of data / field lengths are encoded as
    // (A = alpha A-Z, N = numeric 0-9, S = special, F = fixed length, V = variable length).
    // Use of padding for variable length fields is optional.
    /**
     * <p>
     * DCA, Jurisdiction-specific vehicle class / group code, DL, V6ANS
     * </p>
     */

    setVehicleClass(value)
    {
        this.getJavaClass().setVehicleClassSync(value);
    }

    /**
     * <p>
     * DCB, Jurisdiction-specific restrictions codes, DL, V12ANS
     * </p>
     */
    getRestrictionCodes()
    {
        return this.getJavaClass().getRestrictionCodesSync();
    }
    /**
     * <p>
     * DCB, Jurisdiction-specific restrictions codes, DL, V12ANS
     * </p>
     */
    setRestrictionCodes(value)
    {
        this.getJavaClass().setRestrictionCodesSync(value);
    }
    /**
     * <p>
     * DCD, Jurisdiction specific endorsement codes, DL, V5ANS
     * </p>
     */
    getEndorsementCodes()
    {
        return this.getJavaClass().getEndorsementCodesSync();
    }
    /**
     * <p>
     * DCD, Jurisdiction specific endorsement codes, DL, V5ANS
     * </p>
     */
    setEndorsementCodes(value)
    {
        this.getJavaClass().setEndorsementCodesSync(value);
    }


    /**
     * <p>
     * DCS, Family name of the cardholder, DL/ID, V40ANS
     * </p>
     */
    getFamilyName()
    {
        return this.getJavaClass().getFamilyNameSync();
    }
    /**
     * <p>
     * DCS, Family name of the cardholder, DL/ID, V40ANS
     * </p>
     */
    setFamilyName(value)
    {
        this.getJavaClass().setFamilyNameSync(value);
    }

    /**
     * <p>
     * DAC, First name of the cardholder, DL/ID, V40ANS
     * </p>
     */
    getFirstName()
    {
        return this.getJavaClass().getFirstNameSync();
    }
    /**
     * <p>
     * DAC, First name of the cardholder, DL/ID, V40ANS
     * </p>
     */
    setFirstName(value)
    {
        this.getJavaClass().setFirstNameSync(value);
    }

    /**
     * <p>
     * DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be
     * separated by a comma ",". , DL/ID, V40ANS
     * </p>
     */
    getMiddleName()
    {
        return this.getJavaClass().getMiddleNameSync();
    }
    /**
     * <p>
     * DAD, Middle name(s) of the cardholder. In the case of multiple middle names they shall be
     * separated by a comma ",". , DL/ID, V40ANS
     * </p>
     */
    setMiddleName(value)
    {
        this.getJavaClass().setMiddleNameSync(value);
    }

    /**
     * <p>
     * DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N
     * </p>
     */
    getDateOfBirth()
    {
        return new Date(this.getJavaClass().getDateOfBirthSync());
    }
    /**
     * <p>
     * DBB, Date on which the document was issued, MMDDCCYY for U.S., CCYYMMDD for Canada, DL/ID, F8N
     * </p>
     */
    setDateOfBirth(value)
    {
        this.getJavaClass().setDateOfBirthSync(value.toISOString().slice(0, 10));
    }

    /**
     * <p>
     * DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N
     * </p>
     */
    getSex()
    {
        return this.getJavaClass().getSexSync();
    }

    /**
     * <p>
     * DBC, Gender of the cardholder. 1 = male, 2 = female, 9 = not specified, DL/ID, F1N
     * </p>
     */
    setSex(value)
    {
        this.getJavaClass().setSexSync(value);
    }

    /**
     * <p>
     * DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A
     * </p>
     */
    getEyeColor()
    {
        return this.getJavaClass().getEyeColorSync();
    }
    /**
     * <p>
     * DAY, Color of cardholder's eyes. (ANSI D-20 codes). DL/ID, F3A
     * </p>
     */
    setEyeColor(value)
    {
        this.getJavaClass().setEyeColorSync(value);
    }

    /**
     * <p>
     * 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
     * </p>
     */
    getHeight()
    {
        return this.getJavaClass().getHeightSync();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setHeight(value)
    {
        this.getJavaClass().setHeightSync(value);
    }

    /**
     * <p>
     * DAG, Street portion of the cardholder address, DL/ID, V35ANS
     * </p>
     */
    getAddressStreet1()
    {
        return this.getJavaClass().getAddressStreet1Sync();
    }
    /**
     * <p>
     * DAG, Street portion of the cardholder address, DL/ID, V35ANS
     * </p>
     */
    setAddressStreet1(value)
    {
        this.getJavaClass().setAddressStreet1Sync(value);
    }

    /**
     * <p>
     * DAI, City portion of the cardholder address, DL/ID, V20ANS
     * </p>
     */
    getAddressCity()
    {
        return this.getJavaClass().getAddressCitySync();
    }
    /**
     * <p>
     * DAI, City portion of the cardholder address, DL/ID, V20ANS
     * </p>
     */
    setAddressCity(value)
    {
        this.getJavaClass().setAddressCitySync(value);
    }

    /**
     * <p>
     * DAJ, State portion of the cardholder address, DL/ID, F2A
     * </p>
     */
    getAddressState()
    {
        return this.getJavaClass().getAddressStateSync();
    }
    /**
     * <p>
     * DAJ, State portion of the cardholder address, DL/ID, F2A
     * </p>
     */
    setAddressState(value)
    {
        this.getJavaClass().setAddressStateSync(value);
    }

    /**
     * <p>
     * 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
     * </p>
     */
    getAddressPostalCode()
    {
        return this.getJavaClass().getAddressPostalCodeSync();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setAddressPostalCode(value)
    {
        this.getJavaClass().setAddressPostalCodeSync(value);
    }

    /**
     * <p>
     * DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS
     * </p>
     */
    getCustomerIDNumber()
    {
        return this.getJavaClass().getCustomerIDNumberSync();
    }
    /**
     * <p>
     * DAQ, The number assigned or calculated by the issuing authority, DL/ID, V25ANS
     * </p>
     */
    setCustomerIDNumber(value)
    {
        this.getJavaClass().setCustomerIDNumberSync(value);
    }

    /**
     * <p>
     * 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
     * </p>
     */
    getDocumentDiscriminator()
    {
        return this.getJavaClass().getDocumentDiscriminatorSync();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setDocumentDiscriminator(value)
    {
        this.getJavaClass().setDocumentDiscriminatorSync(value);
    }

    /**
     * <p>
     * DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A
     * </p>
     */
    getCountryIdentification()
    {
        return this.getJavaClass().getCountryIdentificationSync();
    }
    /**
     * <p>
     * DCG, Country in which DL/ID is issued. U.S. = USA, Canada = CAN, DL/ID, F3A
     * </p>
     */
    setCountryIdentification(value)
    {
        this.getJavaClass().setCountryIdentificationSync(value);
    }


    /**
     * <p>
     * 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
     * </p>
     */
    getFamilyNameTruncation()
    {
        return this.getJavaClass().getFamilyNameTruncationSync();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setFamilyNameTruncation(value)
    {
        this.getJavaClass().setFamilyNameTruncationSync(value);
    }

    /**
     * <p>
     * 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
     * </p>
     */
    getFirstNameTruncation()
    {
        return this.getJavaClass().getFirstNameTruncationSync();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setFirstNameTruncation(value)
    {
        this.getJavaClass().setFirstNameTruncationSync(value);
    }

    /**
     * <p>
     * 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
     * </p>
     */
    getMiddleNameTruncation()
    {
        return this.getJavaClass().getMiddleNameTruncation();
    }
    /**
     * <p>
     * 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
     * </p>
     */
    setMiddleNameTruncation(value)
    {
        this.getJavaClass().setMiddleNameTruncationSync(value);
    }

    _initializeWrapperMembers()
    {

    }
}

module.exports = MandatoryFields