# generated by datamodel-codegen:
#   filename:  order-events.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Annotated, TypeAlias

from msgspec import UNSET, Meta, Struct, UnsetType


class Money(Struct):
    amount: float
    currency: Annotated[str, Meta(max_length=3, min_length=3)]


class OrderCreatedOrderCreatedHeaders(Struct):
    correlationId: str | UnsetType = UNSET


class Order(Struct):
    id: str
    total: Money
    note: str | None | UnsetType = UNSET
    legacyName: str | UnsetType = UNSET


class OrderCreatedPayload(Struct):
    order: Order


OrderCreatedOrderCreatedPayload: TypeAlias = OrderCreatedPayload
