from __future__ import annotations
from dataclasses import dataclass, field
from decimal import Decimal
from .entity_in_version_structure import VersionedChildStructure
from .rounding_step_ref import RoundingStepRef

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


@dataclass(slots=True, kw_only=True)
class RoundingStepVersionedChildStructure(VersionedChildStructure):
    class Meta:
        name = "RoundingStep_VersionedChildStructure"

    rounding_step_ref: None | RoundingStepRef = field(
        default=None,
        metadata={
            "name": "RoundingStepRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    round_if_greater_than: Decimal = field(
        metadata={
            "name": "RoundIfGreaterThan",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    round_to: Decimal = field(
        metadata={
            "name": "RoundTo",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )