from __future__ import annotations
from dataclasses import dataclass, field
from .fare_contract_ref import FareContractRef
from .log_entry_version_structure import LogEntryVersionStructure
from .type_of_fare_contract_entry_ref import TypeOfFareContractEntryRef

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class FareContractEntryVersionStructure(LogEntryVersionStructure):
    class Meta:
        name = "FareContractEntry_VersionStructure"

    is_valid: None | bool = field(
        default=None,
        metadata={
            "name": "IsValid",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    type_of_fare_contract_entry_ref: None | TypeOfFareContractEntryRef = field(
        default=None,
        metadata={
            "name": "TypeOfFareContractEntryRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    fare_contract_ref: None | FareContractRef = field(
        default=None,
        metadata={
            "name": "FareContractRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )