# generated by datamodel-codegen:
#   filename:  _internal
#   timestamp: 1985-10-26T08:21:00+00:00

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel


class BaseEntity(BaseModel):
    id: Optional[str] = None
    created_at: Optional[str] = None


class RootModel(BaseModel):
    id: Optional[str] = None
    auth: Optional[Authorization] = None


class Invoice(BaseEntity):
    total: Optional[int] = None
    session: Optional[Session] = None


class Session(BaseEntity):
    status: Optional[str] = None
    root_ref: Optional[RootModel] = None


class Authorization(BaseEntity):
    amount: Optional[int] = None
    invoice: Optional[Invoice] = None


RootModel.update_forward_refs()
Invoice.update_forward_refs()
Authorization.update_forward_refs()
