Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/PassCore/Barcode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ extension Pass.Barcode {
case pdf = "PKBarcodeFormatPDF417"
case aztec = "PKBarcodeFormatAztec"
case code128 = "PKBarcodeFormatCode128"
case code39 = "PKBarcodeFormatCode39"
case codabar = "PKBarcodeFormatCodabar"
case ean13 = "PKBarcodeFormatEAN13"
case i2of5 = "PKBarcodeFormatI2of5"
}

/// See: https://docs.lansa.com/14/en/lansa093/content/lansa/intb7_0510.htm
Expand Down
8 changes: 6 additions & 2 deletions Sources/PassCore/Pass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ public struct Pass: Codable, Equatable, Hashable, Sendable {

/// A URL to request a wheel chair.
public var requestWheelchairURL: URL?


/// A URL to track baggage through the airline app.
public var trackBagsURL: URL?

/// The email for the transit provider.
public var transitProviderEmail: String?

Expand All @@ -316,7 +319,6 @@ public struct Pass: Codable, Equatable, Hashable, Sendable {

/// The URL for the transit provider.
public var transitProviderWebsiteURL: URL?


public init(
description: String,
Expand Down Expand Up @@ -383,6 +385,7 @@ public struct Pass: Codable, Equatable, Hashable, Sendable {
registerServiceAnimalURL: URL? = nil,
reportLostBagURL: URL? = nil,
requestWheelchairURL: URL? = nil,
trackBagsURL: URL? = nil,
transitProviderEmail: String? = nil,
transitProviderPhoneNumber: String? = nil,
transitProviderWebsiteURL: URL? = nil
Expand Down Expand Up @@ -452,6 +455,7 @@ public struct Pass: Codable, Equatable, Hashable, Sendable {
self.registerServiceAnimalURL = registerServiceAnimalURL
self.reportLostBagURL = reportLostBagURL
self.requestWheelchairURL = requestWheelchairURL
self.trackBagsURL = trackBagsURL
self.transitProviderEmail = transitProviderEmail
self.transitProviderPhoneNumber = transitProviderPhoneNumber
self.transitProviderWebsiteURL = transitProviderWebsiteURL
Expand Down
13 changes: 12 additions & 1 deletion Sources/PassCore/SemanticTags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ extension SemanticTags {
case priorityBoarding = "PKPassengerCapabilityPriorityBoarding"
case carryon = "PKPassengerCapabilityCarryon"
case personalItem = "PKPassengerCapabilityPersonalItem"
case lapInfant = "PKPassengerCapabilityLapInfant"
}

public enum TransitSecurityProgram: String, Codable, Equatable, Hashable, CaseIterable, Sendable {
Expand Down Expand Up @@ -935,12 +936,22 @@ public enum SemanticTagType {
/// The name for the WiFi network.
public var ssid: String

/// Token credential required to log in to Captive Portal.
public var captiveToken: String?

/// The URL of the authentication server that verifies the client using a token credential.
public var captiveTokenAuthURL: String?

public init(
password: String,
ssid: String
ssid: String,
captiveToken: String? = nil,
captiveTokenAuthURL: String? = nil
) {
self.password = password
self.ssid = ssid
self.captiveToken = captiveToken
self.captiveTokenAuthURL = captiveTokenAuthURL
}
}
}
Loading