ParkingRate
public struct ParkingRate
Detailed information related to calculating parking price.
Preferably this should be used only for display purpose.
To get a calculated parking price, please refer to ParkingPrice
.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
ParkingRate
.Declaration
Swift
public init( isFreeOutsideHours: Bool, currency: String, prices: [ParkingRateDetails], additionalTax: Double?, category: ParkingRateCategory? )
Parameters
isFreeOutsideHours
Indicates whether parking is free outside parking hours.
currency
Currency used for the price.
prices
List of
ParkingRateDetails
for a single parking service type.additionalTax
Additional tax rate which might not be included in the listed price.
category
Parking rate category that may affect parking price.
-
Indicates whether parking is free outside parking hours.
Declaration
Swift
public let isFreeOutsideHours: Bool
-
Currency used for the price.
Declaration
Swift
public let currency: String
-
List of
ParkingRateDetails
for a single parking service type.Declaration
Swift
public let prices: [ParkingRateDetails]
-
Additional tax rate which might not be included in the listed price.
Declaration
Swift
public let additionalTax: Double?
-
Parking rate category that may affect parking price.
Declaration
Swift
public let category: ParkingRateCategory?