SWRideParameters

@objc
public class SWRideParameters : NSObject, Codable

This model allows you to pre-configure the ride options for the user. This can be used to set the userId, pick up, drop off and payment methods.

Properties

  • The id of the user of your application.

    Declaration

    Swift

    @objc
    public internal(set) var userId: String?
  • Predetermined pickup location.

    Declaration

    Swift

    @objc
    public internal(set) var pickupLocation: SWLocation?
  • Predetermined dropoff location.

    Declaration

    Swift

    @objc
    public internal(set) var dropoffLocation: 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]?
  • Deeplink. This can be extracted from push notiifcations

    Declaration

    Swift

    @objc
    public internal(set) var deeplink: String?