EVChargingTariffElementCondition class
Condition that the charging session needs to meet to apply the tariff element.
Tariff elements may include conditions that define when they apply:
- Time of day (e.g., 22:00–06:00)
- Day of week (e.g., weekends only)
- Date range (e.g., seasonal pricing)
- Charging session duration
- Battery level thresholds (e.g., overstay fees)
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Constructors
Properties
- date ↔ DateRange?
-
Date range when the tariff element is valid. This is typically used to indicate seasonal
tariffs or to announce an update to the tariff in advance. It may also be used to indicate
spot prices, together with time period.
getter/setter pair
-
days
↔ List<
DayOfWeek> -
Day(s) of the week when the tariff element is valid.
An example would be to specify lower prices for weekends
getter/setter pair
- duration ↔ EVChargingDurationRange?
-
Duration of the charging session when the tariff element is valid, in seconds.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- overstayBatteryLevel ↔ int?
-
Minimum battery level when the tariff element is valid, in percentages. This can be used to
set additional fees for charging a full or nearly full battery.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time ↔ TimeOfDayRange?
-
Time period when the tariff element is valid, in local time. The time period wraps around to
the next day, when end time of the period TimeOfDayRange.to
is smaller than the beginning TimeOfDayRange.from.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.