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

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel


class BalanceTransaction(BaseModel):
    id: Optional[str] = None
    amount: Optional[int] = None
    source: Optional[Authorization] = None


class Subscription(BaseModel):
    id: Optional[str] = None
    plan: Optional[str] = None


class Invoice(BaseModel):
    id: Optional[str] = None
    session: Optional[Session] = None
    subscription: Optional[Subscription] = None


class LineItem(BaseModel):
    id: Optional[str] = None
    price: Optional[int] = None


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


class Cardholder(BaseModel):
    id: Optional[str] = None
    name: Optional[str] = None


class Authorization(BaseModel):
    id: Optional[str] = None
    invoice: Optional[Invoice] = None
    cardholder: Optional[Cardholder] = None


BalanceTransaction.update_forward_refs()
Invoice.update_forward_refs()
Authorization.update_forward_refs()
