EVChargingTariffPriceComponent
public struct EVChargingTariffPriceComponent : Hashable
Represents the price component of an EV charging tariff. 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.
-
The dimension or type of the price component.
Declaration
Swift
public var dimension: EVChargingTariffDimension -
The price per unit, excluding VAT. The units are defined by the
EVChargingTariffPriceComponent.dimensionDeclaration
Swift
public var price: Double -
The VAT percentage of the price component. If not present, no VAT is applicable.
Declaration
Swift
public var vat: Double? -
Dimension quantity used as a unit of billing. Present for all other dimensions except
EVChargingTariffDimension.flat. The customer is charged price for each full or partial step of the dimension consumed. ForEVChargingTariffDimension.energy, the step size unit is 1 Wh, forEVChargingTariffDimension.timeandEVChargingTariffDimension.parkingTimeit is 1 second. For example, if step is 300 for time, then time is billed in 5 minute steps, rounded upwards. Similarly, if step is 100 for energy, then energy is billed in 100 Wh = 0.1 kWh steps.Declaration
Swift
public var step: Double? -
Creates a new instance.
Declaration
Swift
public init(dimension: EVChargingTariffDimension = EVChargingTariffDimension.flat, price: Double = 0.0, vat: Double? = nil, step: Double? = nil)