from __future__ import annotations
from dataclasses import dataclass, field
from decimal import Decimal
from .general_group_of_entities_ref import GeneralGroupOfEntitiesRef
from .type_of_concession_ref import TypeOfConcessionRef
from .usage_parameter_version_structure import UsageParameterVersionStructure

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


@dataclass(slots=True, kw_only=True)
class CommercialProfileVersionStructure(UsageParameterVersionStructure):
    class Meta:
        name = "CommercialProfile_VersionStructure"

    type_of_concession_ref: None | TypeOfConcessionRef = field(
        default=None,
        metadata={
            "name": "TypeOfConcessionRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    consumption_amount: None | Decimal = field(
        default=None,
        metadata={
            "name": "ConsumptionAmount",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    consumption_units: None | Decimal = field(
        default=None,
        metadata={
            "name": "ConsumptionUnits",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    general_group_of_entities_ref: None | GeneralGroupOfEntitiesRef = field(
        default=None,
        metadata={
            "name": "GeneralGroupOfEntitiesRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )