ParkingTicket

public struct ParkingTicket

Single parking ticket information. Can be duration based or time slot based.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates a new ParkingTicket.

    Declaration

    Swift

    public init(price: Decimal, duration: Duration)

    Parameters

    price

    Price of the ticket.

    duration

    The time period that is covered by the current parking ticket

Public

  • Duration can be either exact amount of time or loosely defined period of time.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Duration
    extension ParkingTicket.Duration: Equatable
  • Duration can be either exact amount of time or loosely defined period of time.

    Declaration

    Swift

    public let duration: Duration
  • Price of the ticket.

    Declaration

    Swift

    public let price: Decimal