from __future__ import annotations
from dataclasses import dataclass, field
from .fare_scheduled_stop_point_ref import FareScheduledStopPointRef
from .one_to_many_relationship_structure import OneToManyRelationshipStructure
from .scheduled_stop_point_ref import ScheduledStopPointRef

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


@dataclass(slots=True, kw_only=True)
class ScheduledStopPointRefsRelStructure(OneToManyRelationshipStructure):
    class Meta:
        name = "scheduledStopPointRefs_RelStructure"

    scheduled_stop_point_ref: list[FareScheduledStopPointRef | ScheduledStopPointRef] = field(
        default_factory=list,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "FareScheduledStopPointRef",
                    "type": FareScheduledStopPointRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "ScheduledStopPointRef",
                    "type": ScheduledStopPointRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )