Class RouteTollOptions

    • Method Detail

      • allTransponders

        public final Boolean allTransponders()

        Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used.

        Returns:
        Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used.
      • allVignettes

        public final Boolean allVignettes()

        Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary.

        Returns:
        Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary.
      • currency

        public final String currency()

        Currency code corresponding to the price. This is the same as Currency specified in the request.

        Returns:
        Currency code corresponding to the price. This is the same as Currency specified in the request.
      • emissionType

        public final RouteEmissionType emissionType()

        Emission type of the vehicle for toll cost calculation.

        Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

        Returns:
        Emission type of the vehicle for toll cost calculation.

        Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)