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

from __future__ import annotations
from .dto_updatescheduledtaskrequest import (
    DtoUpdateScheduledTaskRequest,
    DtoUpdateScheduledTaskRequestTypedDict,
)
from flexprice_temp.types import BaseModel
from flexprice_temp.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class UpdateScheduledTaskRequestTypedDict(TypedDict):
    id: str
    r"""Scheduled Task ID"""
    body: DtoUpdateScheduledTaskRequestTypedDict
    r"""Update request (enabled: true/false to pause/resume)"""


class UpdateScheduledTaskRequest(BaseModel):
    id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Scheduled Task ID"""

    body: Annotated[
        DtoUpdateScheduledTaskRequest,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]
    r"""Update request (enabled: true/false to pause/resume)"""
