FareTransferRule

data class FareTransferRule(val fromLegGroupId: String? = null, val toLegGroupId: String? = null, val transferCount: Int? = null, val durationLimit: WholeSeconds? = null, val durationLimitType: DurationLimitType? = null, val fareTransferType: FareTransferType, val fareProductId: String? = null)(source)

Fare rules for transfers between legs of travel.

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

Constructors

Link copied to clipboard
constructor(fromLegGroupId: String? = null, toLegGroupId: String? = null, transferCount: Int? = null, durationLimit: WholeSeconds? = null, durationLimitType: DurationLimitType? = null, fareTransferType: FareTransferType, fareProductId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "duration_limit")
val durationLimit: WholeSeconds?

Defines the duration limit of the transfer.

Link copied to clipboard
@SerialName(value = "duration_limit_type")
val durationLimitType: DurationLimitType?

Defines the relative start and end of the duration limit.

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

The fare product required to transfer between two fare legs.

Link copied to clipboard
@SerialName(value = "fare_transfer_type")
val fareTransferType: FareTransferType

Indicates the cost processing method of transferring between legs.

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

Identifies a group of pre-transfer fare leg rules.

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

Identifies a group of post-transfer fare leg rules.

Link copied to clipboard
@SerialName(value = "transfer_count")
val transferCount: Int?

Defines how many consecutive transfers the transfer rule may be applied to.