SWBooking
public class SWBooking : NSObject, Codable
This model is used to describe a booking that a user has made. It will be returned in the raiseIssueWithBooking delegate callback contained in SplytWidgetDelegate.
-
Unique id of the booking.
Declaration
Swift
@objc public internal(set) var bookingId: String -
Unique id of the user.
Declaration
Swift
@objc public internal(set) var userId: String -
An array of the status transitions of the booking.
Declaration
Swift
@objc public internal(set) var statusTransitions: [SWStatusTransition] -
An array of stops. First item will always be the pickup location.
Declaration
Swift
@objc public internal(set) var stops: [SWLocation] -
Flight number, if pickup is from airport for example.
Declaration
Swift
@objc public internal(set) var flightNumber: String? -
ID for the booking tracked in clients system.
Declaration
Swift
@objc public internal(set) var clientBookingId: String? -
Key/Value pair of data to associate with the journey.
Declaration
Swift
@objc public internal(set) var metadata: [String : String]?
SWBooking Class Reference