FuelPrice
public struct FuelPrice
Fuel price per unit of volume.
The amount that has to be paid according to the price.
Declaration
Swift
public let amount: Decimal
The currency in which the price is defined.
Declaration
Swift
public let currency: String
Initializes a fuel price per unit structure with specified parameters.
Declaration
Swift
public init(
amount: Decimal,
currency: String,
volumeUnit: UnitVolume
)
The volume unit for which the price is defined.
Declaration
Swift
public let volumeUnit: UnitVolume