Tariff

@IviExperimental(reasons = [])
data class Tariff(val dimensionType: TariffDimensionType, val cost: Cost, val restrictions: List<TariffRestriction>? = null) : Parcelable

Information about the tariff.

A simple tariff example: ENERGY: 0.25 euro per kWh (excl. VAT), 10% VAT, billed per 1 Wh.

Constructors

Link copied to clipboard
constructor(dimensionType: TariffDimensionType, cost: Cost, restrictions: List<TariffRestriction>? = null)

Properties

Link copied to clipboard
val cost: Cost

Cost of the tariff: price excluding VAT, VAT and currency used.

Link copied to clipboard

Information about tariff dimension type.

Link copied to clipboard

These restrictions describe if and when a tariff becomes active or inactive during a charging session. When more than one restriction is set, the tariff is active only if all these restrictions are satisfied.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)