BookingRule

data class BookingRule(val bookingRuleId: String, val bookingType: BookingType, val priorNoticeDurationMin: WholeMinutes? = null, val priorNoticeDurationMax: WholeMinutes? = null, val priorNoticeLastDay: Int? = null, val priorNoticeLastTime: ServiceTime? = null, val priorNoticeStartDay: Int? = null, val priorNoticeStartTime: ServiceTime? = null, val priorNoticeServiceId: String? = null, val message: String? = null, val pickupMessage: String? = null, val dropOffMessage: String? = null, val phoneNumber: String? = null, val infoUrl: Url? = null, val bookingUrl: Url? = null)(source)

Booking rules for rider-requested services.

This class represents a record in the booking_rules.txt file.

Constructors

Link copied to clipboard
constructor(bookingRuleId: String, bookingType: BookingType, priorNoticeDurationMin: WholeMinutes? = null, priorNoticeDurationMax: WholeMinutes? = null, priorNoticeLastDay: Int? = null, priorNoticeLastTime: ServiceTime? = null, priorNoticeStartDay: Int? = null, priorNoticeStartTime: ServiceTime? = null, priorNoticeServiceId: String? = null, message: String? = null, pickupMessage: String? = null, dropOffMessage: String? = null, phoneNumber: String? = null, infoUrl: Url? = null, bookingUrl: Url? = null)

Properties

Link copied to clipboard
@SerialName(value = "booking_rule_id")
val bookingRuleId: String

Identifies the booking rule.

Link copied to clipboard
@SerialName(value = "booking_type")
val bookingType: BookingType

Indicates when booking can be made.

Link copied to clipboard
@SerialName(value = "booking_url")
val bookingUrl: Url?

URL to an online interface or app to make the booking request.

Link copied to clipboard
@SerialName(value = "drop_off_message")
val dropOffMessage: String?

Message to riders when requesting to be dropped off at a stop.

Link copied to clipboard
@SerialName(value = "info_url")
val infoUrl: Url?

URL providing information about the booking rule.

Link copied to clipboard
@SerialName(value = "message")
val message: String?

Message to riders utilizing service at a stop.

Link copied to clipboard
@SerialName(value = "phone_number")
val phoneNumber: String?

Phone number to call to make the booking request.

Link copied to clipboard
@SerialName(value = "pickup_message")
val pickupMessage: String?

Message to riders when requesting to be picked up at a stop.

Link copied to clipboard
@SerialName(value = "prior_notice_duration_max")
val priorNoticeDurationMax: WholeMinutes?

Maximum number of minutes before travel to make the request.

Link copied to clipboard
@SerialName(value = "prior_notice_duration_min")
val priorNoticeDurationMin: WholeMinutes?

Minimum number of minutes before travel to make the request.

Link copied to clipboard
@SerialName(value = "prior_notice_last_day")
val priorNoticeLastDay: Int?

Latest time on the day prior to travel to make the booking request.

Link copied to clipboard
@SerialName(value = "prior_notice_last_time")
val priorNoticeLastTime: ServiceTime?

Latest time on the service day to make the booking request.

Link copied to clipboard
@SerialName(value = "prior_notice_service_id")
val priorNoticeServiceId: String?

Service days relative to the day of travel to make the request by.

Link copied to clipboard
@SerialName(value = "prior_notice_start_day")
val priorNoticeStartDay: Int?

Latest time on the day prior to the service day to make the booking request.

Link copied to clipboard
@SerialName(value = "prior_notice_start_time")
val priorNoticeStartTime: ServiceTime?

Earliest time on the service day to make the booking request.