FuelPrice

public struct FuelPrice

Fuel price per unit of volume.

Lifecycle

  • Initializes a fuel price per unit structure with specified parameters.

    Declaration

    Swift

    public init(
        amount: Decimal,
        currency: String,
        volumeUnit: UnitVolume
    )

Public

  • 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
  • The volume unit for which the price is defined.

    Declaration

    Swift

    public let volumeUnit: UnitVolume