Skip to content

Commit

Permalink
feat(subscription): apply enums for rate_plan.id (#2421)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 4, 2025
1 parent dc321e3 commit ce37e3c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1525
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7d3d9376efe25aacad78ef5293b32f9e7bd403951e846671affe19b882a0af32.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e342173dad9584a0439eeec0f609a40c16844e18a138f65e8c9787885da92013.yml
16 changes: 15 additions & 1 deletion src/cloudflare/types/shared/rate_plan.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from typing_extensions import Literal

from ..._models import BaseModel

__all__ = ["RatePlan"]


class RatePlan(BaseModel):
id: Optional[str] = None
id: Optional[
Literal[
"free",
"lite",
"pro",
"pro_plus",
"business",
"enterprise",
"partners_free",
"partners_pro",
"partners_business",
"partners_enterprise",
]
] = None
"""The ID of the rate plan."""

currency: Optional[str] = None
Expand Down
15 changes: 13 additions & 2 deletions src/cloudflare/types/shared_params/rate_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
from __future__ import annotations

from typing import List
from typing_extensions import TypedDict
from typing_extensions import Literal, TypedDict

__all__ = ["RatePlan"]


class RatePlan(TypedDict, total=False):
id: str
id: Literal[
"free",
"lite",
"pro",
"pro_plus",
"business",
"enterprise",
"partners_free",
"partners_pro",
"partners_business",
"partners_enterprise",
]
"""The ID of the rate plan."""

currency: str
Expand Down

0 comments on commit ce37e3c

Please sign in to comment.