"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from moovio_sdk.models.components import (
    createinvoice as components_createinvoice,
    invoice as components_invoice,
)
from moovio_sdk.types import BaseModel
from moovio_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
import pydantic
from typing import Dict, List
from typing_extensions import Annotated, TypedDict


class CreateInvoiceRequestTypedDict(TypedDict):
    account_id: str
    create_invoice: components_createinvoice.CreateInvoiceTypedDict


class CreateInvoiceRequest(BaseModel):
    account_id: Annotated[
        str,
        pydantic.Field(alias="accountID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

    create_invoice: Annotated[
        components_createinvoice.CreateInvoice,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class CreateInvoiceResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: components_invoice.InvoiceTypedDict


class CreateInvoiceResponse(BaseModel):
    headers: Dict[str, List[str]]

    result: components_invoice.Invoice
