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

from __future__ import annotations
from flexprice_py.types import (
    BaseModel,
    dto_updatesubscriptionlineitemrequest as types_dto_updatesubscriptionlineitemrequest,
)
from flexprice_py.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class UpdateSubscriptionLineItemRequestTypedDict(TypedDict):
    id: str
    r"""Line Item ID"""
    body: types_dto_updatesubscriptionlineitemrequest.DtoUpdateSubscriptionLineItemRequestTypedDict
    r"""Update Line Item Request"""


class UpdateSubscriptionLineItemRequest(BaseModel):
    id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Line Item ID"""

    body: Annotated[
        types_dto_updatesubscriptionlineitemrequest.DtoUpdateSubscriptionLineItemRequest,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]
    r"""Update Line Item Request"""
