FareLegRule

data class FareLegRule(val legGroupId: String? = null, val networkId: String? = null, val fromAreaId: String? = null, val toAreaId: String? = null, val fromTimeframeGroupId: String? = null, val toTimeframeGroupId: String? = null, val fareProductId: String, val rulePriority: Int? = null)(source)

Fare rules for individual legs of travel.

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

Constructors

Link copied to clipboard
constructor(legGroupId: String? = null, networkId: String? = null, fromAreaId: String? = null, toAreaId: String? = null, fromTimeframeGroupId: String? = null, toTimeframeGroupId: String? = null, fareProductId: String, rulePriority: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "fare_product_id")
val fareProductId: String

The fare product required to travel the leg.

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

Identifies a departure area.

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

Defines the timeframe for the fare validation event at the start of the fare leg.

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

Identifies a group of fare leg rules.

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

Identifies a route network that applies for the fare leg rule.

Link copied to clipboard
@SerialName(value = "rule_priority")
val rulePriority: Int?

Defines the order of priority in which matching rules are applied to legs.

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

Identifies an arrival area.

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

Defines the timeframe for the fare validation event at the end of the fare leg.