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

from __future__ import annotations

from typing import TypeAlias, TypedDict

from typing_extensions import NotRequired


class Money(TypedDict):
    amount: float
    currency: str


class OrderCreatedOrderCreatedHeaders(TypedDict):
    correlationId: NotRequired[str]


class Order(TypedDict):
    id: str
    total: Money
    note: NotRequired[str | None]
    legacyName: NotRequired[str]


class OrderCreatedPayload(TypedDict):
    order: Order


OrderCreatedOrderCreatedPayload: TypeAlias = OrderCreatedPayload
