PurchasedTicket

public struct PurchasedTicket : Codable, Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias Status = Fare.Status
  • Undocumented

    Declaration

    Swift

    public typealias Identifier = String
  • id

    Undocumented

    Declaration

    Swift

    public let id: Identifier
  • Undocumented

    Declaration

    Swift

    public let status: Status?
  • URL to fetch ticket details, provided if status == .activated

    Declaration

    Swift

    public let ticketURL: URL?
  • Undocumented

    Declaration

    Swift

    public let qrCode: String?
  • Undocumented

    Declaration

    Swift

    @DefaultEmptyArray
    public var actions: [Action] { get set }
  • Timestamp when an activated ticket expires, might be provided if status == .activated

    Declaration

    Swift

    @OptionalISO8601
    public var ticketExpiration: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @OptionalISO8601
    public var purchased: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @OptionalISO8601
    public var validFrom: Date? { get set }
  • Undocumented

    Declaration

    Swift

    @OptionalISO8601
    public var validUntil: Date? { get set }
  • Undocumented

    Declaration

    Swift

    public let fare: Fare
  • Undocumented

    See more

    Declaration

    Swift

    public enum CodingKeys : String, CodingKey