from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDateTime
from .component_orientation_enumeration import ComponentOrientationEnumeration
from .customer_ref import CustomerRef
from .deck_ref import DeckRef
from .entity_in_version_structure import VersionedChildStructure
from .facility_set_ref import FacilitySetRef
from .luggage_spot_ref import LuggageSpotRef
from .multilingual_string import MultilingualString
from .other_deck_space_ref import OtherDeckSpaceRef
from .passenger_space_ref import PassengerSpaceRef
from .passenger_spot_ref import PassengerSpotRef
from .passenger_vehicle_spot_ref import PassengerVehicleSpotRef
from .restricted_service_facility_set_ref import RestrictedServiceFacilitySetRef
from .scheduled_stop_point_ref_structure import ScheduledStopPointRefStructure
from .seat_allocation_method_enumeration import SeatAllocationMethodEnumeration
from .service_facility_set_ref import ServiceFacilitySetRef
from .site_facility_set_ref import SiteFacilitySetRef
from .spot_availability_status_enumeration import SpotAvailabilityStatusEnumeration

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


@dataclass(slots=True, kw_only=True)
class PassengerSpotAllocationVersionedChildStructure(VersionedChildStructure):
    class Meta:
        name = "PassengerSpotAllocation_VersionedChildStructure"

    last_updated: XmlDateTime = field(
        metadata={
            "name": "LastUpdated",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    deck_ref: None | DeckRef = field(
        default=None,
        metadata={
            "name": "DeckRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    deck_space_ref: None | OtherDeckSpaceRef | PassengerSpaceRef = field(
        default=None,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "OtherDeckSpaceRef",
                    "type": OtherDeckSpaceRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "PassengerSpaceRef",
                    "type": PassengerSpaceRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )
    locatable_spot_ref: None | LuggageSpotRef | PassengerVehicleSpotRef | PassengerSpotRef = field(
        default=None,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "LuggageSpotRef",
                    "type": LuggageSpotRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "PassengerVehicleSpotRef",
                    "type": PassengerVehicleSpotRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "PassengerSpotRef",
                    "type": PassengerSpotRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )
    label: MultilingualString = field(
        metadata={
            "name": "Label",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    description: None | MultilingualString = field(
        default=None,
        metadata={
            "name": "Description",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    service_facility_set_ref_or_facility_set_ref: None | RestrictedServiceFacilitySetRef | ServiceFacilitySetRef | SiteFacilitySetRef | FacilitySetRef = field(
        default=None,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "RestrictedServiceFacilitySetRef",
                    "type": RestrictedServiceFacilitySetRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "ServiceFacilitySetRef",
                    "type": ServiceFacilitySetRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "SiteFacilitySetRef",
                    "type": SiteFacilitySetRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "FacilitySetRef",
                    "type": FacilitySetRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )
    primary_orientation: None | ComponentOrientationEnumeration = field(
        default=None,
        metadata={
            "name": "PrimaryOrientation",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    start_stop_point_ref: None | ScheduledStopPointRefStructure = field(
        default=None,
        metadata={
            "name": "StartStopPointRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    end_stop_point_ref: None | ScheduledStopPointRefStructure = field(
        default=None,
        metadata={
            "name": "EndStopPointRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    customer_ref: None | CustomerRef = field(
        default=None,
        metadata={
            "name": "CustomerRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    spot_availability_status: None | SpotAvailabilityStatusEnumeration = field(
        default=None,
        metadata={
            "name": "SpotAvailabilityStatus",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    seat_allocation_method: None | SeatAllocationMethodEnumeration = field(
        default=None,
        metadata={
            "name": "SeatAllocationMethod",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )