Hierarchy (View Summary)

Constructors

Properties

id: string

Methods

  • Return the modality of the restriction based on it's defaultType and drivingProfiles as listed below;

    +-------------------+-------------+------------------+-------------------------------------------+ | Modality | defaultType | driveProfileType | Semantics | +-------------------+-------------+------------------+-------------------------------------------+ | DRIVING_BLOCKED | FREE | BLOCKED | Some vehicles are blocked, others allowed | | DRIVING_BLOCKED | BLOCKED | N/A | All vehicles are blocked | | DRIVING_ALLOWED | BLOCKED | FREE | Some vehicles are allowed, others blocked | | DRIVING_TOLL_FREE | TOLL | FREE | Some vehicles don't pay, others pay | +-------------------+-------------+------------------+-------------------------------------------+

    Returns null | "DRIVING_ALLOWED" | "DRIVING_BLOCKED" | "DRIVING_TOLL_FREE"

    The modality

  • Returns {
        defaultType: null | RESTRICTION_TYPE;
        description: undefined | null | string;
        driveProfiles: { [key: string]: DriveProfileAttributes[] };
        editable: boolean;
        timeFrames: {
            daysOfMonth: null | DAYS_OF_MONTH;
            endDate: null | string;
            fromTime: null | string;
            repeatYearly: null | boolean;
            startDate: null | string;
            timeZone: null | string;
            toTime: null | string;
            weekdays: null | number;
        }[];
    }