Skip to content

Commit

Permalink
Merge branch 'pre-refactor/swiftify' into stable-v4
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Apr 17, 2023
2 parents 14416ea + 4fc1250 commit aa32f07
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Sources/TripKit/model/TKBookingTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public enum TKBooking {
public let internalURL: URL?
public let externalAction: String?
public let type: ActionType?
@available(*, deprecated, message: "confirmationMessage property is deprecated, please use confirmation.message instead.")
public let confirmationMessage: String?
public let confirmation: ActionConfirmation?
public var input: [ActionInput]?

public enum ActionType: String, Codable, CaseIterable {
Expand Down Expand Up @@ -65,10 +67,17 @@ public enum TKBooking {
case internalURL
case externalAction = "externalURL"
case type
case input
case confirmationMessage
case confirmation
case input
}
}

public struct ActionConfirmation: Codable, Hashable {
public let message: String
public let abortActionTitle: String
public let confirmActionTitle: String
}

public struct TSPBranding: Codable, Hashable {
private let rgbColor: TKAPI.RGBColor?
Expand Down

0 comments on commit aa32f07

Please sign in to comment.