Class RouteTollPrice

    • Method Detail

      • 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.
      • estimate

        public final Boolean estimate()

        If the price is an estimate or an exact value.

        Returns:
        If the price is an estimate or an exact value.
      • perDuration

        public final Long perDuration()

        Duration for which the price corresponds to.

        Unit: seconds

        Returns:
        Duration for which the price corresponds to.

        Unit: seconds

      • range

        public final Boolean range()

        If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.

        Returns:
        If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.
      • rangeValue

        public final RouteTollPriceValueRange rangeValue()

        Price range with a minimum and maximum value, if a range.

        Returns:
        Price range with a minimum and maximum value, if a range.
      • value

        public final Double value()

        Exact price, if not a range.

        Returns:
        Exact price, if not a range.
      • 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)