"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import subscriptionscheduleitems as shared_subscriptionscheduleitems
from datetime import datetime
from typing import Optional



@dataclasses.dataclass
class FetchSubscriptionScheduleRequest:
    subscription_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'subscription_id', 'style': 'simple', 'explode': False }})
    cursor: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'cursor', 'style': 'form', 'explode': True }})
    limit: Optional[int] = dataclasses.field(default=20, metadata={'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': True }})
    start_date_gt: Optional[datetime] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'start_date[gt]', 'style': 'form', 'explode': True }})
    start_date_gte: Optional[datetime] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'start_date[gte]', 'style': 'form', 'explode': True }})
    start_date_lt: Optional[datetime] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'start_date[lt]', 'style': 'form', 'explode': True }})
    start_date_lte: Optional[datetime] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'start_date[lte]', 'style': 'form', 'explode': True }})
    




@dataclasses.dataclass
class FetchSubscriptionScheduleResponse:
    content_type: str = dataclasses.field()
    r"""HTTP response content type for this operation"""
    status_code: int = dataclasses.field()
    r"""HTTP response status code for this operation"""
    raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
    r"""Raw HTTP response; suitable for custom response parsing"""
    subscription_schedule_items: Optional[shared_subscriptionscheduleitems.SubscriptionScheduleItems] = dataclasses.field(default=None)
    r"""OK"""
    

