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

from __future__ import annotations

from pydantic import BaseModel


class BalanceTransaction(BaseModel):
    id: str | None = None
    amount: int | None = None
    source: Authorization | None = None


class Subscription(BaseModel):
    id: str | None = None
    plan: str | None = None


class Invoice(BaseModel):
    id: str | None = None
    session: Session | None = None
    subscription: Subscription | None = None


class LineItem(BaseModel):
    id: str | None = None
    price: int | None = None


class Session(BaseModel):
    id: str | None = None
    transaction: BalanceTransaction | None = None
    line_items: list[LineItem] | None = None


class Cardholder(BaseModel):
    id: str | None = None
    name: str | None = None


class Authorization(BaseModel):
    id: str | None = None
    invoice: Invoice | None = None
    cardholder: Cardholder | None = None


BalanceTransaction.model_rebuild()
Invoice.model_rebuild()
