from dataclasses import dataclass


@dataclass
class Measurement:
    """A numeric value with a physical unit, e.g. {"value": 2.4, "quantity": "metres"}."""
    value: float
    quantity: str


@dataclass
class DescriptionV1:
    """Localised description object used in schemas 17.x, 18.x, 19.x, and 21.0.1."""
    value: str
    language: str


@dataclass
class CostAmount:
    """Monetary amount used in schemas 17.x, 18.x, and 19.x."""
    value: int
    currency: str
