diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9e5024f2..052d78b7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.17.0" + ".": "4.18.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 232a1ab7..d522ff7b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-96a2f34503f9348f8d7ce82035fe09c917860d77e17bc6817e034b891902599a.yml -openapi_spec_hash: 3719dd8f962e6b0051a95015aecb0e53 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-42aa43f3893eef31a351e066bf0cf8c56da8c857ccbb45eb7dd58739ad43bd86.yml +openapi_spec_hash: e6b8c1e707036539d88a7b79af864a49 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a54da05..c5ddb8dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 4.18.0 (2025-09-19) + +Full Changelog: [v4.17.0...v4.18.0](https://github.com/orbcorp/orb-python/compare/v4.17.0...v4.18.0) + +### Features + +* **api:** api update ([dbf6aa2](https://github.com/orbcorp/orb-python/commit/dbf6aa2d3ce26ed36f06ff498852fb7a24bcd961)) + + +### Chores + +* do not install brew dependencies in ./scripts/bootstrap by default ([1e5179b](https://github.com/orbcorp/orb-python/commit/1e5179b2b1e4ecb99133c5b29906f4b93881330b)) +* **internal:** update pydantic dependency ([87c1a17](https://github.com/orbcorp/orb-python/commit/87c1a17cffa15cd5b5ba8b4b4c664293ac8621d4)) +* **types:** change optional parameter type from NotGiven to Omit ([a15b380](https://github.com/orbcorp/orb-python/commit/a15b380ba6a89174a979373c53c982c23653c3a2)) + ## 4.17.0 (2025-09-16) Full Changelog: [v4.16.0...v4.17.0](https://github.com/orbcorp/orb-python/compare/v4.16.0...v4.17.0) diff --git a/pyproject.toml b/pyproject.toml index 08eef786..d9b8e377 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "4.17.0" +version = "4.18.0" description = "The official Python library for the orb API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/requirements-dev.lock b/requirements-dev.lock index 32438c4a..121aba44 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -88,9 +88,9 @@ pluggy==1.5.0 propcache==0.3.1 # via aiohttp # via yarl -pydantic==2.10.3 +pydantic==2.11.9 # via orb-billing -pydantic-core==2.27.1 +pydantic-core==2.33.2 # via pydantic pygments==2.18.0 # via rich @@ -126,6 +126,9 @@ typing-extensions==4.12.2 # via pydantic # via pydantic-core # via pyright + # via typing-inspection +typing-inspection==0.4.1 + # via pydantic virtualenv==20.24.5 # via nox yarl==1.20.0 diff --git a/requirements.lock b/requirements.lock index 89eca7e0..c5d72751 100644 --- a/requirements.lock +++ b/requirements.lock @@ -55,9 +55,9 @@ multidict==6.4.4 propcache==0.3.1 # via aiohttp # via yarl -pydantic==2.10.3 +pydantic==2.11.9 # via orb-billing -pydantic-core==2.27.1 +pydantic-core==2.33.2 # via pydantic sniffio==1.3.0 # via anyio @@ -68,5 +68,8 @@ typing-extensions==4.12.2 # via orb-billing # via pydantic # via pydantic-core + # via typing-inspection +typing-inspection==0.4.1 + # via pydantic yarl==1.20.0 # via aiohttp diff --git a/scripts/bootstrap b/scripts/bootstrap index e84fe62c..b430fee3 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -4,10 +4,18 @@ set -e cd "$(dirname "$0")/.." -if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then brew bundle check >/dev/null 2>&1 || { - echo "==> Installing Homebrew dependencies…" - brew bundle + echo -n "==> Install Homebrew dependencies? (y/N): " + read -r response + case "$response" in + [yY][eE][sS]|[yY]) + brew bundle + ;; + *) + ;; + esac + echo } fi diff --git a/src/orb/__init__.py b/src/orb/__init__.py index aea8a5cb..9bd40a35 100644 --- a/src/orb/__init__.py +++ b/src/orb/__init__.py @@ -3,7 +3,7 @@ import typing as _t from . import types -from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes +from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given from ._utils import file_from_path from ._client import Orb, Client, Stream, Timeout, AsyncOrb, Transport, AsyncClient, AsyncStream, RequestOptions from ._models import BaseModel @@ -50,7 +50,9 @@ "ProxiesTypes", "NotGiven", "NOT_GIVEN", + "not_given", "Omit", + "omit", "OrbError", "APIError", "APIStatusError", diff --git a/src/orb/_base_client.py b/src/orb/_base_client.py index 2aa10a03..57fd87d8 100644 --- a/src/orb/_base_client.py +++ b/src/orb/_base_client.py @@ -42,7 +42,6 @@ from ._qs import Querystring from ._files import to_httpx_files, async_to_httpx_files from ._types import ( - NOT_GIVEN, Body, Omit, Query, @@ -57,6 +56,7 @@ RequestOptions, HttpxRequestFiles, ModelBuilderProtocol, + not_given, ) from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping from ._compat import PYDANTIC_V1, model_copy, model_dump @@ -146,9 +146,9 @@ def __init__( def __init__( self, *, - url: URL | NotGiven = NOT_GIVEN, - json: Body | NotGiven = NOT_GIVEN, - params: Query | NotGiven = NOT_GIVEN, + url: URL | NotGiven = not_given, + json: Body | NotGiven = not_given, + params: Query | NotGiven = not_given, ) -> None: self.url = url self.json = json @@ -596,7 +596,7 @@ def _maybe_override_cast_to(self, cast_to: type[ResponseT], options: FinalReques # we internally support defining a temporary header to override the # default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response` # see _response.py for implementation details - override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, NOT_GIVEN) + override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given) if is_given(override_cast_to): options.headers = headers return cast(Type[ResponseT], override_cast_to) @@ -826,7 +826,7 @@ def __init__( version: str, base_url: str | URL, max_retries: int = DEFAULT_MAX_RETRIES, - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, http_client: httpx.Client | None = None, custom_headers: Mapping[str, str] | None = None, custom_query: Mapping[str, object] | None = None, @@ -1371,7 +1371,7 @@ def __init__( base_url: str | URL, _strict_response_validation: bool, max_retries: int = DEFAULT_MAX_RETRIES, - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, http_client: httpx.AsyncClient | None = None, custom_headers: Mapping[str, str] | None = None, custom_query: Mapping[str, object] | None = None, @@ -1847,8 +1847,8 @@ def make_request_options( extra_query: Query | None = None, extra_body: Body | None = None, idempotency_key: str | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - post_parser: PostParser | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + post_parser: PostParser | NotGiven = not_given, ) -> RequestOptions: """Create a dict of type RequestOptions without keys of NotGiven values.""" options: RequestOptions = {} diff --git a/src/orb/_client.py b/src/orb/_client.py index 6549d77e..988bde1a 100644 --- a/src/orb/_client.py +++ b/src/orb/_client.py @@ -3,7 +3,7 @@ from __future__ import annotations import os -from typing import TYPE_CHECKING, Any, Union, Mapping +from typing import TYPE_CHECKING, Any, Mapping from typing_extensions import Self, override import httpx @@ -11,13 +11,13 @@ from . import _exceptions from ._qs import Querystring from ._types import ( - NOT_GIVEN, Omit, Timeout, NotGiven, Transport, ProxiesTypes, RequestOptions, + not_given, ) from ._utils import ( is_given, @@ -88,7 +88,7 @@ def __init__( api_key: str | None = None, webhook_secret: str | None = None, base_url: str | httpx.URL | None = None, - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, max_retries: int = DEFAULT_MAX_RETRIES, default_headers: Mapping[str, str] | None = None, default_query: Mapping[str, object] | None = None, @@ -278,9 +278,9 @@ def copy( api_key: str | None = None, webhook_secret: str | None = None, base_url: str | httpx.URL | None = None, - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, http_client: httpx.Client | None = None, - max_retries: int | NotGiven = NOT_GIVEN, + max_retries: int | NotGiven = not_given, default_headers: Mapping[str, str] | None = None, set_default_headers: Mapping[str, str] | None = None, default_query: Mapping[str, object] | None = None, @@ -418,7 +418,7 @@ def __init__( api_key: str | None = None, webhook_secret: str | None = None, base_url: str | httpx.URL | None = None, - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, max_retries: int = DEFAULT_MAX_RETRIES, default_headers: Mapping[str, str] | None = None, default_query: Mapping[str, object] | None = None, @@ -608,9 +608,9 @@ def copy( api_key: str | None = None, webhook_secret: str | None = None, base_url: str | httpx.URL | None = None, - timeout: float | Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | Timeout | None | NotGiven = not_given, http_client: httpx.AsyncClient | None = None, - max_retries: int | NotGiven = NOT_GIVEN, + max_retries: int | NotGiven = not_given, default_headers: Mapping[str, str] | None = None, set_default_headers: Mapping[str, str] | None = None, default_query: Mapping[str, object] | None = None, diff --git a/src/orb/_models.py b/src/orb/_models.py index 3a6017ef..6a3cd1d2 100644 --- a/src/orb/_models.py +++ b/src/orb/_models.py @@ -256,7 +256,7 @@ def model_dump( mode: Literal["json", "python"] | str = "python", include: IncEx | None = None, exclude: IncEx | None = None, - by_alias: bool = False, + by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, @@ -264,6 +264,7 @@ def model_dump( warnings: bool | Literal["none", "warn", "error"] = True, context: dict[str, Any] | None = None, serialize_as_any: bool = False, + fallback: Callable[[Any], Any] | None = None, ) -> dict[str, Any]: """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump @@ -295,10 +296,12 @@ def model_dump( raise ValueError("context is only supported in Pydantic v2") if serialize_as_any != False: raise ValueError("serialize_as_any is only supported in Pydantic v2") + if fallback is not None: + raise ValueError("fallback is only supported in Pydantic v2") dumped = super().dict( # pyright: ignore[reportDeprecated] include=include, exclude=exclude, - by_alias=by_alias, + by_alias=by_alias if by_alias is not None else False, exclude_unset=exclude_unset, exclude_defaults=exclude_defaults, exclude_none=exclude_none, @@ -313,13 +316,14 @@ def model_dump_json( indent: int | None = None, include: IncEx | None = None, exclude: IncEx | None = None, - by_alias: bool = False, + by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip: bool = False, warnings: bool | Literal["none", "warn", "error"] = True, context: dict[str, Any] | None = None, + fallback: Callable[[Any], Any] | None = None, serialize_as_any: bool = False, ) -> str: """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json @@ -348,11 +352,13 @@ def model_dump_json( raise ValueError("context is only supported in Pydantic v2") if serialize_as_any != False: raise ValueError("serialize_as_any is only supported in Pydantic v2") + if fallback is not None: + raise ValueError("fallback is only supported in Pydantic v2") return super().json( # type: ignore[reportDeprecated] indent=indent, include=include, exclude=exclude, - by_alias=by_alias, + by_alias=by_alias if by_alias is not None else False, exclude_unset=exclude_unset, exclude_defaults=exclude_defaults, exclude_none=exclude_none, diff --git a/src/orb/_qs.py b/src/orb/_qs.py index 274320ca..ada6fd3f 100644 --- a/src/orb/_qs.py +++ b/src/orb/_qs.py @@ -4,7 +4,7 @@ from urllib.parse import parse_qs, urlencode from typing_extensions import Literal, get_args -from ._types import NOT_GIVEN, NotGiven, NotGivenOr +from ._types import NotGiven, not_given from ._utils import flatten _T = TypeVar("_T") @@ -41,8 +41,8 @@ def stringify( self, params: Params, *, - array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN, - nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, ) -> str: return urlencode( self.stringify_items( @@ -56,8 +56,8 @@ def stringify_items( self, params: Params, *, - array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN, - nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, ) -> list[tuple[str, str]]: opts = Options( qs=self, @@ -143,8 +143,8 @@ def __init__( self, qs: Querystring = _qs, *, - array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN, - nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN, + array_format: ArrayFormat | NotGiven = not_given, + nested_format: NestedFormat | NotGiven = not_given, ) -> None: self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format diff --git a/src/orb/_types.py b/src/orb/_types.py index f0ca0275..915bc7d1 100644 --- a/src/orb/_types.py +++ b/src/orb/_types.py @@ -118,18 +118,21 @@ class RequestOptions(TypedDict, total=False): # Sentinel class used until PEP 0661 is accepted class NotGiven: """ - A sentinel singleton class used to distinguish omitted keyword arguments - from those passed in with the value None (which may have different behavior). + For parameters with a meaningful None value, we need to distinguish between + the user explicitly passing None, and the user not passing the parameter at + all. + + User code shouldn't need to use not_given directly. For example: ```py - def get(timeout: Union[int, NotGiven, None] = NotGiven()) -> Response: ... + def create(timeout: Timeout | None | NotGiven = not_given): ... - get(timeout=1) # 1s timeout - get(timeout=None) # No timeout - get() # Default timeout behavior, which may not be statically known at the method definition. + create(timeout=1) # 1s timeout + create(timeout=None) # No timeout + create() # Default timeout behavior ``` """ @@ -141,13 +144,14 @@ def __repr__(self) -> str: return "NOT_GIVEN" -NotGivenOr = Union[_T, NotGiven] +not_given = NotGiven() +# for backwards compatibility: NOT_GIVEN = NotGiven() class Omit: - """In certain situations you need to be able to represent a case where a default value has - to be explicitly removed and `None` is not an appropriate substitute, for example: + """ + To explicitly omit something from being sent in a request, use `omit`. ```py # as the default `Content-Type` header is `application/json` that will be sent @@ -157,8 +161,8 @@ class Omit: # to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983' client.post(..., headers={"Content-Type": "multipart/form-data"}) - # instead you can remove the default `application/json` header by passing Omit - client.post(..., headers={"Content-Type": Omit()}) + # instead you can remove the default `application/json` header by passing omit + client.post(..., headers={"Content-Type": omit}) ``` """ @@ -166,6 +170,9 @@ def __bool__(self) -> Literal[False]: return False +omit = Omit() + + @runtime_checkable class ModelBuilderProtocol(Protocol): @classmethod diff --git a/src/orb/_utils/_transform.py b/src/orb/_utils/_transform.py index c19124f0..52075492 100644 --- a/src/orb/_utils/_transform.py +++ b/src/orb/_utils/_transform.py @@ -268,7 +268,7 @@ def _transform_typeddict( annotations = get_type_hints(expected_type, include_extras=True) for key, value in data.items(): if not is_given(value): - # we don't need to include `NotGiven` values here as they'll + # we don't need to include omitted values here as they'll # be stripped out before the request is sent anyway continue @@ -434,7 +434,7 @@ async def _async_transform_typeddict( annotations = get_type_hints(expected_type, include_extras=True) for key, value in data.items(): if not is_given(value): - # we don't need to include `NotGiven` values here as they'll + # we don't need to include omitted values here as they'll # be stripped out before the request is sent anyway continue diff --git a/src/orb/_utils/_utils.py b/src/orb/_utils/_utils.py index f0818595..50d59269 100644 --- a/src/orb/_utils/_utils.py +++ b/src/orb/_utils/_utils.py @@ -21,7 +21,7 @@ import sniffio -from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike +from .._types import Omit, NotGiven, FileTypes, HeadersLike _T = TypeVar("_T") _TupleT = TypeVar("_TupleT", bound=Tuple[object, ...]) @@ -63,7 +63,7 @@ def _extract_items( try: key = path[index] except IndexError: - if isinstance(obj, NotGiven): + if not is_given(obj): # no value was provided - we can safely ignore return [] @@ -126,8 +126,8 @@ def _extract_items( return [] -def is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]: - return not isinstance(obj, NotGiven) +def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]: + return not isinstance(obj, NotGiven) and not isinstance(obj, Omit) # Type safe methods for narrowing types with TypeVars. diff --git a/src/orb/_version.py b/src/orb/_version.py index 98d7f61a..de68ab7c 100644 --- a/src/orb/_version.py +++ b/src/orb/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "orb" -__version__ = "4.17.0" # x-release-please-version +__version__ = "4.18.0" # x-release-please-version diff --git a/src/orb/resources/alerts.py b/src/orb/resources/alerts.py index ed1e43fd..84f485f9 100644 --- a/src/orb/resources/alerts.py +++ b/src/orb/resources/alerts.py @@ -18,7 +18,7 @@ alert_create_for_subscription_params, alert_create_for_external_customer_params, ) -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -60,7 +60,7 @@ def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Alert: """ This endpoint retrieves an alert by its ID. @@ -94,7 +94,7 @@ def update( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """ @@ -133,21 +133,21 @@ def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Alert]: """ This endpoint returns a list of alerts within Orb. @@ -214,13 +214,13 @@ def create_for_customer( *, currency: str, type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], - thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, + thresholds: Optional[Iterable[ThresholdParam]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint creates a new alert to monitor a customer's credit balance. @@ -279,13 +279,13 @@ def create_for_external_customer( *, currency: str, type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], - thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, + thresholds: Optional[Iterable[ThresholdParam]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint creates a new alert to monitor a customer's credit balance. @@ -346,13 +346,13 @@ def create_for_subscription( *, thresholds: Iterable[ThresholdParam], type: Literal["usage_exceeded", "cost_exceeded"], - metric_id: Optional[str] | NotGiven = NOT_GIVEN, + metric_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """ @@ -411,13 +411,13 @@ def disable( self, alert_configuration_id: str, *, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint allows you to disable an alert. @@ -460,13 +460,13 @@ def enable( self, alert_configuration_id: str, *, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint allows you to enable an alert. @@ -535,7 +535,7 @@ async def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Alert: """ This endpoint retrieves an alert by its ID. @@ -569,7 +569,7 @@ async def update( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """ @@ -608,21 +608,21 @@ async def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + limit: int | Omit = omit, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Alert, AsyncPage[Alert]]: """ This endpoint returns a list of alerts within Orb. @@ -689,13 +689,13 @@ async def create_for_customer( *, currency: str, type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], - thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, + thresholds: Optional[Iterable[ThresholdParam]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint creates a new alert to monitor a customer's credit balance. @@ -754,13 +754,13 @@ async def create_for_external_customer( *, currency: str, type: Literal["credit_balance_depleted", "credit_balance_dropped", "credit_balance_recovered"], - thresholds: Optional[Iterable[ThresholdParam]] | NotGiven = NOT_GIVEN, + thresholds: Optional[Iterable[ThresholdParam]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint creates a new alert to monitor a customer's credit balance. @@ -821,13 +821,13 @@ async def create_for_subscription( *, thresholds: Iterable[ThresholdParam], type: Literal["usage_exceeded", "cost_exceeded"], - metric_id: Optional[str] | NotGiven = NOT_GIVEN, + metric_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """ @@ -886,13 +886,13 @@ async def disable( self, alert_configuration_id: str, *, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint allows you to disable an alert. @@ -937,13 +937,13 @@ async def enable( self, alert_configuration_id: str, *, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Alert: """This endpoint allows you to enable an alert. diff --git a/src/orb/resources/beta/beta.py b/src/orb/resources/beta/beta.py index 79bd6505..cdb2393e 100644 --- a/src/orb/resources/beta/beta.py +++ b/src/orb/resources/beta/beta.py @@ -8,7 +8,7 @@ from ... import _legacy_response from ...types import beta_create_plan_version_params, beta_set_default_plan_version_params -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -57,27 +57,22 @@ def create_plan_version( plan_id: str, *, version: int, - add_adjustments: Optional[Iterable[beta_create_plan_version_params.AddAdjustment]] | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[beta_create_plan_version_params.AddPrice]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[beta_create_plan_version_params.RemoveAdjustment]] | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[beta_create_plan_version_params.RemovePrice]] | NotGiven = NOT_GIVEN, - replace_adjustments: Optional[Iterable[beta_create_plan_version_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[beta_create_plan_version_params.ReplacePrice]] | NotGiven = NOT_GIVEN, - set_as_default: Optional[bool] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[beta_create_plan_version_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[beta_create_plan_version_params.AddPrice]] | Omit = omit, + remove_adjustments: Optional[Iterable[beta_create_plan_version_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[beta_create_plan_version_params.RemovePrice]] | Omit = omit, + replace_adjustments: Optional[Iterable[beta_create_plan_version_params.ReplaceAdjustment]] | Omit = omit, + replace_prices: Optional[Iterable[beta_create_plan_version_params.ReplacePrice]] | Omit = omit, + set_as_default: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PlanVersion: - """This API endpoint is in beta and its interface may change. - - It is recommended for - use only in test mode. - + """ This endpoint allows the creation of a new plan version for an existing plan. Args: @@ -144,7 +139,7 @@ def fetch_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PlanVersion: """This API endpoint is in beta and its interface may change. @@ -185,7 +180,7 @@ def set_default_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """This API endpoint is in beta and its interface may change. @@ -255,27 +250,22 @@ async def create_plan_version( plan_id: str, *, version: int, - add_adjustments: Optional[Iterable[beta_create_plan_version_params.AddAdjustment]] | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[beta_create_plan_version_params.AddPrice]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[beta_create_plan_version_params.RemoveAdjustment]] | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[beta_create_plan_version_params.RemovePrice]] | NotGiven = NOT_GIVEN, - replace_adjustments: Optional[Iterable[beta_create_plan_version_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[beta_create_plan_version_params.ReplacePrice]] | NotGiven = NOT_GIVEN, - set_as_default: Optional[bool] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[beta_create_plan_version_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[beta_create_plan_version_params.AddPrice]] | Omit = omit, + remove_adjustments: Optional[Iterable[beta_create_plan_version_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[beta_create_plan_version_params.RemovePrice]] | Omit = omit, + replace_adjustments: Optional[Iterable[beta_create_plan_version_params.ReplaceAdjustment]] | Omit = omit, + replace_prices: Optional[Iterable[beta_create_plan_version_params.ReplacePrice]] | Omit = omit, + set_as_default: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PlanVersion: - """This API endpoint is in beta and its interface may change. - - It is recommended for - use only in test mode. - + """ This endpoint allows the creation of a new plan version for an existing plan. Args: @@ -342,7 +332,7 @@ async def fetch_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PlanVersion: """This API endpoint is in beta and its interface may change. @@ -383,7 +373,7 @@ async def set_default_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """This API endpoint is in beta and its interface may change. diff --git a/src/orb/resources/beta/external_plan_id.py b/src/orb/resources/beta/external_plan_id.py index 3ffeabb9..47f78c21 100644 --- a/src/orb/resources/beta/external_plan_id.py +++ b/src/orb/resources/beta/external_plan_id.py @@ -7,7 +7,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -45,31 +45,24 @@ def create_plan_version( external_plan_id: str, *, version: int, - add_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.AddAdjustment]] - | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[external_plan_id_create_plan_version_params.AddPrice]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[external_plan_id_create_plan_version_params.AddPrice]] | Omit = omit, remove_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.RemoveAdjustment]] - | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[external_plan_id_create_plan_version_params.RemovePrice]] - | NotGiven = NOT_GIVEN, + | Omit = omit, + remove_prices: Optional[Iterable[external_plan_id_create_plan_version_params.RemovePrice]] | Omit = omit, replace_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[external_plan_id_create_plan_version_params.ReplacePrice]] - | NotGiven = NOT_GIVEN, - set_as_default: Optional[bool] | NotGiven = NOT_GIVEN, + | Omit = omit, + replace_prices: Optional[Iterable[external_plan_id_create_plan_version_params.ReplacePrice]] | Omit = omit, + set_as_default: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PlanVersion: - """This API endpoint is in beta and its interface may change. - - It is recommended for - use only in test mode. - + """ This endpoint allows the creation of a new plan version for an existing plan. Args: @@ -136,7 +129,7 @@ def fetch_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PlanVersion: """This API endpoint is in beta and its interface may change. @@ -177,7 +170,7 @@ def set_default_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """This API endpoint is in beta and its interface may change. @@ -244,31 +237,24 @@ async def create_plan_version( external_plan_id: str, *, version: int, - add_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.AddAdjustment]] - | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[external_plan_id_create_plan_version_params.AddPrice]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[external_plan_id_create_plan_version_params.AddPrice]] | Omit = omit, remove_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.RemoveAdjustment]] - | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[external_plan_id_create_plan_version_params.RemovePrice]] - | NotGiven = NOT_GIVEN, + | Omit = omit, + remove_prices: Optional[Iterable[external_plan_id_create_plan_version_params.RemovePrice]] | Omit = omit, replace_adjustments: Optional[Iterable[external_plan_id_create_plan_version_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[external_plan_id_create_plan_version_params.ReplacePrice]] - | NotGiven = NOT_GIVEN, - set_as_default: Optional[bool] | NotGiven = NOT_GIVEN, + | Omit = omit, + replace_prices: Optional[Iterable[external_plan_id_create_plan_version_params.ReplacePrice]] | Omit = omit, + set_as_default: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PlanVersion: - """This API endpoint is in beta and its interface may change. - - It is recommended for - use only in test mode. - + """ This endpoint allows the creation of a new plan version for an existing plan. Args: @@ -335,7 +321,7 @@ async def fetch_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PlanVersion: """This API endpoint is in beta and its interface may change. @@ -376,7 +362,7 @@ async def set_default_plan_version( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """This API endpoint is in beta and its interface may change. diff --git a/src/orb/resources/coupons/coupons.py b/src/orb/resources/coupons/coupons.py index 876a6d23..b89662c6 100644 --- a/src/orb/resources/coupons/coupons.py +++ b/src/orb/resources/coupons/coupons.py @@ -8,7 +8,7 @@ from ... import _legacy_response from ...types import coupon_list_params, coupon_create_params -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -57,14 +57,14 @@ def create( *, discount: coupon_create_params.Discount, redemption_code: str, - duration_in_months: Optional[int] | NotGiven = NOT_GIVEN, - max_redemptions: Optional[int] | NotGiven = NOT_GIVEN, + duration_in_months: Optional[int] | Omit = omit, + max_redemptions: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Coupon: """ @@ -114,16 +114,16 @@ def create( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - show_archived: Optional[bool] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + redemption_code: Optional[str] | Omit = omit, + show_archived: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Coupon]: """ This endpoint returns a list of all coupons for an account in a list format. @@ -182,7 +182,7 @@ def archive( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Coupon: """This endpoint allows a coupon to be archived. @@ -225,7 +225,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Coupon: """This endpoint retrieves a coupon by its ID. @@ -282,14 +282,14 @@ async def create( *, discount: coupon_create_params.Discount, redemption_code: str, - duration_in_months: Optional[int] | NotGiven = NOT_GIVEN, - max_redemptions: Optional[int] | NotGiven = NOT_GIVEN, + duration_in_months: Optional[int] | Omit = omit, + max_redemptions: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Coupon: """ @@ -339,16 +339,16 @@ async def create( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - show_archived: Optional[bool] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + redemption_code: Optional[str] | Omit = omit, + show_archived: Optional[bool] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Coupon, AsyncPage[Coupon]]: """ This endpoint returns a list of all coupons for an account in a list format. @@ -407,7 +407,7 @@ async def archive( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Coupon: """This endpoint allows a coupon to be archived. @@ -450,7 +450,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Coupon: """This endpoint retrieves a coupon by its ID. diff --git a/src/orb/resources/coupons/subscriptions.py b/src/orb/resources/coupons/subscriptions.py index 442fe33d..f3770de4 100644 --- a/src/orb/resources/coupons/subscriptions.py +++ b/src/orb/resources/coupons/subscriptions.py @@ -7,7 +7,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -44,14 +44,14 @@ def list( self, coupon_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Subscription]: """ This endpoint returns a list of all subscriptions that have redeemed a given @@ -119,14 +119,14 @@ def list( self, coupon_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Subscription, AsyncPage[Subscription]]: """ This endpoint returns a list of all subscriptions that have redeemed a given diff --git a/src/orb/resources/credit_notes.py b/src/orb/resources/credit_notes.py index 3dceea3b..0a862b32 100644 --- a/src/orb/resources/credit_notes.py +++ b/src/orb/resources/credit_notes.py @@ -10,7 +10,7 @@ from .. import _legacy_response from ..types import credit_note_list_params, credit_note_create_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -47,15 +47,15 @@ def create( *, line_items: Iterable[credit_note_create_params.LineItem], reason: Literal["duplicate", "fraudulent", "order_change", "product_unsatisfactory"], - end_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - memo: Optional[str] | NotGiven = NOT_GIVEN, - start_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + end_date: Union[str, date, None] | Omit = omit, + memo: Optional[str] | Omit = omit, + start_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> CreditNote: """ @@ -137,18 +137,18 @@ def create( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[CreditNote]: """Get a paginated list of CreditNotes. @@ -202,7 +202,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CreditNote: """ This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes) @@ -253,15 +253,15 @@ async def create( *, line_items: Iterable[credit_note_create_params.LineItem], reason: Literal["duplicate", "fraudulent", "order_change", "product_unsatisfactory"], - end_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - memo: Optional[str] | NotGiven = NOT_GIVEN, - start_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + end_date: Union[str, date, None] | Omit = omit, + memo: Optional[str] | Omit = omit, + start_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> CreditNote: """ @@ -343,18 +343,18 @@ async def create( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[CreditNote, AsyncPage[CreditNote]]: """Get a paginated list of CreditNotes. @@ -408,7 +408,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CreditNote: """ This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes) diff --git a/src/orb/resources/customers/balance_transactions.py b/src/orb/resources/customers/balance_transactions.py index 0ce73630..cf122136 100644 --- a/src/orb/resources/customers/balance_transactions.py +++ b/src/orb/resources/customers/balance_transactions.py @@ -9,7 +9,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -49,13 +49,13 @@ def create( *, amount: str, type: Literal["increment", "decrement"], - description: Optional[str] | NotGiven = NOT_GIVEN, + description: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BalanceTransactionCreateResponse: """ @@ -101,18 +101,18 @@ def list( self, customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - operation_time_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + operation_time_gt: Union[str, datetime, None] | Omit = omit, + operation_time_gte: Union[str, datetime, None] | Omit = omit, + operation_time_lt: Union[str, datetime, None] | Omit = omit, + operation_time_lte: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[BalanceTransactionListResponse]: """ ## The customer balance @@ -203,13 +203,13 @@ async def create( *, amount: str, type: Literal["increment", "decrement"], - description: Optional[str] | NotGiven = NOT_GIVEN, + description: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BalanceTransactionCreateResponse: """ @@ -255,18 +255,18 @@ def list( self, customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - operation_time_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - operation_time_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + operation_time_gt: Union[str, datetime, None] | Omit = omit, + operation_time_gte: Union[str, datetime, None] | Omit = omit, + operation_time_lt: Union[str, datetime, None] | Omit = omit, + operation_time_lte: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[BalanceTransactionListResponse, AsyncPage[BalanceTransactionListResponse]]: """ ## The customer balance diff --git a/src/orb/resources/customers/costs.py b/src/orb/resources/customers/costs.py index 6798a487..6b5f040e 100644 --- a/src/orb/resources/customers/costs.py +++ b/src/orb/resources/customers/costs.py @@ -9,7 +9,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -46,16 +46,16 @@ def list( self, customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CostListResponse: """ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in @@ -222,16 +222,16 @@ def list_by_external_id( self, external_customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CostListByExternalIDResponse: """ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in @@ -421,16 +421,16 @@ async def list( self, customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CostListResponse: """ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in @@ -597,16 +597,16 @@ async def list_by_external_id( self, external_customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CostListByExternalIDResponse: """ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in diff --git a/src/orb/resources/customers/credits/credits.py b/src/orb/resources/customers/credits/credits.py index 73e13681..b0df1ee1 100644 --- a/src/orb/resources/customers/credits/credits.py +++ b/src/orb/resources/customers/credits/credits.py @@ -23,7 +23,7 @@ TopUpsWithStreamingResponse, AsyncTopUpsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import maybe_transform from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -69,16 +69,16 @@ def list( self, customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - include_all_blocks: bool | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + include_all_blocks: bool | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[CreditListResponse]: """ Returns a paginated list of unexpired, non-zero credit blocks for a customer. @@ -135,16 +135,16 @@ def list_by_external_id( self, external_customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - include_all_blocks: bool | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + include_all_blocks: bool | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[CreditListByExternalIDResponse]: """ Returns a paginated list of unexpired, non-zero credit blocks for a customer. @@ -232,16 +232,16 @@ def list( self, customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - include_all_blocks: bool | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + include_all_blocks: bool | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[CreditListResponse, AsyncPage[CreditListResponse]]: """ Returns a paginated list of unexpired, non-zero credit blocks for a customer. @@ -298,16 +298,16 @@ def list_by_external_id( self, external_customer_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - include_all_blocks: bool | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + include_all_blocks: bool | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[CreditListByExternalIDResponse, AsyncPage[CreditListByExternalIDResponse]]: """ Returns a paginated list of unexpired, non-zero credit blocks for a customer. diff --git a/src/orb/resources/customers/credits/ledger.py b/src/orb/resources/customers/credits/ledger.py index 8126a58d..1f7991b5 100644 --- a/src/orb/resources/customers/credits/ledger.py +++ b/src/orb/resources/customers/credits/ledger.py @@ -9,7 +9,7 @@ import httpx from .... import _legacy_response -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ...._utils import required_args, maybe_transform, async_maybe_transform from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -56,13 +56,13 @@ def list( self, customer_id: str, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - entry_status: Optional[Literal["committed", "pending"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + entry_status: Optional[Literal["committed", "pending"]] | Omit = omit, entry_type: Optional[ Literal[ "increment", @@ -74,15 +74,15 @@ def list( "amendment", ] ] - | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - minimum_amount: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + limit: int | Omit = omit, + minimum_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[LedgerListResponse]: """ The credits ledger provides _auditing_ functionality over Orb's credits system @@ -219,20 +219,20 @@ def create_entry( *, amount: float, entry_type: Literal["increment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ledger_create_entry_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -394,15 +394,15 @@ def create_entry( *, amount: float, entry_type: Literal["decrement"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -551,18 +551,18 @@ def create_entry( *, entry_type: Literal["expiration_change"], target_expiry_date: Union[str, date], - amount: Optional[float] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + amount: Optional[float] | Omit = omit, + block_id: Optional[str] | Omit = omit, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -721,16 +721,16 @@ def create_entry( amount: float, block_id: str, entry_type: Literal["void"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -884,15 +884,15 @@ def create_entry( amount: float, block_id: str, entry_type: Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -1041,29 +1041,29 @@ def create_entry( self, customer_id: str, *, - amount: float | Optional[float] | NotGiven = NOT_GIVEN, + amount: float | Optional[float] | Omit = omit, entry_type: Literal["increment"] | Literal["decrement"] | Literal["expiration_change"] | Literal["void"] | Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ledger_create_entry_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, - target_expiry_date: Union[str, date] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | str | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, + target_expiry_date: Union[str, date] | Omit = omit, + block_id: Optional[str] | str | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: if not customer_id: @@ -1109,22 +1109,22 @@ def create_entry_by_external_id( *, amount: float, entry_type: Literal["increment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ ledger_create_entry_by_external_id_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings ] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -1286,15 +1286,15 @@ def create_entry_by_external_id( *, amount: float, entry_type: Literal["decrement"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -1443,18 +1443,18 @@ def create_entry_by_external_id( *, entry_type: Literal["expiration_change"], target_expiry_date: Union[str, date], - amount: Optional[float] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + amount: Optional[float] | Omit = omit, + block_id: Optional[str] | Omit = omit, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -1613,16 +1613,16 @@ def create_entry_by_external_id( amount: float, block_id: str, entry_type: Literal["void"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -1776,15 +1776,15 @@ def create_entry_by_external_id( amount: float, block_id: str, entry_type: Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -1933,31 +1933,31 @@ def create_entry_by_external_id( self, external_customer_id: str, *, - amount: float | Optional[float] | NotGiven = NOT_GIVEN, + amount: float | Optional[float] | Omit = omit, entry_type: Literal["increment"] | Literal["decrement"] | Literal["expiration_change"] | Literal["void"] | Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ ledger_create_entry_by_external_id_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings ] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, - target_expiry_date: Union[str, date] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | str | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, + target_expiry_date: Union[str, date] | Omit = omit, + block_id: Optional[str] | str | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: if not external_customer_id: @@ -2002,13 +2002,13 @@ def list_by_external_id( self, external_customer_id: str, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - entry_status: Optional[Literal["committed", "pending"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + entry_status: Optional[Literal["committed", "pending"]] | Omit = omit, entry_type: Optional[ Literal[ "increment", @@ -2020,15 +2020,15 @@ def list_by_external_id( "amendment", ] ] - | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - minimum_amount: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + limit: int | Omit = omit, + minimum_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[LedgerListByExternalIDResponse]: """ The credits ledger provides _auditing_ functionality over Orb's credits system @@ -2187,13 +2187,13 @@ def list( self, customer_id: str, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - entry_status: Optional[Literal["committed", "pending"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + entry_status: Optional[Literal["committed", "pending"]] | Omit = omit, entry_type: Optional[ Literal[ "increment", @@ -2205,15 +2205,15 @@ def list( "amendment", ] ] - | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - minimum_amount: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + limit: int | Omit = omit, + minimum_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[LedgerListResponse, AsyncPage[LedgerListResponse]]: """ The credits ledger provides _auditing_ functionality over Orb's credits system @@ -2350,20 +2350,20 @@ async def create_entry( *, amount: float, entry_type: Literal["increment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ledger_create_entry_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -2525,15 +2525,15 @@ async def create_entry( *, amount: float, entry_type: Literal["decrement"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -2682,18 +2682,18 @@ async def create_entry( *, entry_type: Literal["expiration_change"], target_expiry_date: Union[str, date], - amount: Optional[float] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + amount: Optional[float] | Omit = omit, + block_id: Optional[str] | Omit = omit, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -2852,16 +2852,16 @@ async def create_entry( amount: float, block_id: str, entry_type: Literal["void"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -3015,15 +3015,15 @@ async def create_entry( amount: float, block_id: str, entry_type: Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: """ @@ -3172,29 +3172,29 @@ async def create_entry( self, customer_id: str, *, - amount: float | Optional[float] | NotGiven = NOT_GIVEN, + amount: float | Optional[float] | Omit = omit, entry_type: Literal["increment"] | Literal["decrement"] | Literal["expiration_change"] | Literal["void"] | Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ledger_create_entry_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, - target_expiry_date: Union[str, date] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | str | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, + target_expiry_date: Union[str, date] | Omit = omit, + block_id: Optional[str] | str | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryResponse: if not customer_id: @@ -3240,22 +3240,22 @@ async def create_entry_by_external_id( *, amount: float, entry_type: Literal["increment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ ledger_create_entry_by_external_id_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings ] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -3417,15 +3417,15 @@ async def create_entry_by_external_id( *, amount: float, entry_type: Literal["decrement"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -3574,18 +3574,18 @@ async def create_entry_by_external_id( *, entry_type: Literal["expiration_change"], target_expiry_date: Union[str, date], - amount: Optional[float] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + amount: Optional[float] | Omit = omit, + block_id: Optional[str] | Omit = omit, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -3744,16 +3744,16 @@ async def create_entry_by_external_id( amount: float, block_id: str, entry_type: Literal["void"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -3907,15 +3907,15 @@ async def create_entry_by_external_id( amount: float, block_id: str, entry_type: Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: """ @@ -4064,31 +4064,31 @@ async def create_entry_by_external_id( self, external_customer_id: str, *, - amount: float | Optional[float] | NotGiven = NOT_GIVEN, + amount: float | Optional[float] | Omit = omit, entry_type: Literal["increment"] | Literal["decrement"] | Literal["expiration_change"] | Literal["void"] | Literal["amendment"], - currency: Optional[str] | NotGiven = NOT_GIVEN, - description: Optional[str] | NotGiven = NOT_GIVEN, - effective_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expiry_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + description: Optional[str] | Omit = omit, + effective_date: Union[str, datetime, None] | Omit = omit, + expiry_date: Union[str, datetime, None] | Omit = omit, invoice_settings: Optional[ ledger_create_entry_by_external_id_params.AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings ] - | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - per_unit_cost_basis: Optional[str] | NotGiven = NOT_GIVEN, - target_expiry_date: Union[str, date] | NotGiven = NOT_GIVEN, - block_id: Optional[str] | str | NotGiven = NOT_GIVEN, - void_reason: Optional[Literal["refund"]] | NotGiven = NOT_GIVEN, + | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + per_unit_cost_basis: Optional[str] | Omit = omit, + target_expiry_date: Union[str, date] | Omit = omit, + block_id: Optional[str] | str | Omit = omit, + void_reason: Optional[Literal["refund"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> LedgerCreateEntryByExternalIDResponse: if not external_customer_id: @@ -4133,13 +4133,13 @@ def list_by_external_id( self, external_customer_id: str, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - entry_status: Optional[Literal["committed", "pending"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + currency: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + entry_status: Optional[Literal["committed", "pending"]] | Omit = omit, entry_type: Optional[ Literal[ "increment", @@ -4151,15 +4151,15 @@ def list_by_external_id( "amendment", ] ] - | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - minimum_amount: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + limit: int | Omit = omit, + minimum_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[LedgerListByExternalIDResponse, AsyncPage[LedgerListByExternalIDResponse]]: """ The credits ledger provides _auditing_ functionality over Orb's credits system diff --git a/src/orb/resources/customers/credits/top_ups.py b/src/orb/resources/customers/credits/top_ups.py index 5dcb5708..6dc08792 100644 --- a/src/orb/resources/customers/credits/top_ups.py +++ b/src/orb/resources/customers/credits/top_ups.py @@ -9,7 +9,7 @@ import httpx from .... import _legacy_response -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given from ...._utils import maybe_transform, async_maybe_transform from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -59,15 +59,15 @@ def create( invoice_settings: top_up_create_params.InvoiceSettings, per_unit_cost_basis: str, threshold: str, - active_from: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expires_after: Optional[int] | NotGiven = NOT_GIVEN, - expires_after_unit: Optional[Literal["day", "month"]] | NotGiven = NOT_GIVEN, + active_from: Union[str, datetime, None] | Omit = omit, + expires_after: Optional[int] | Omit = omit, + expires_after_unit: Optional[Literal["day", "month"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> TopUpCreateResponse: """ @@ -141,14 +141,14 @@ def list( self, customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[TopUpListResponse]: """List top-ups @@ -199,7 +199,7 @@ def delete( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -243,15 +243,15 @@ def create_by_external_id( invoice_settings: top_up_create_by_external_id_params.InvoiceSettings, per_unit_cost_basis: str, threshold: str, - active_from: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expires_after: Optional[int] | NotGiven = NOT_GIVEN, - expires_after_unit: Optional[Literal["day", "month"]] | NotGiven = NOT_GIVEN, + active_from: Union[str, datetime, None] | Omit = omit, + expires_after: Optional[int] | Omit = omit, + expires_after_unit: Optional[Literal["day", "month"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> TopUpCreateByExternalIDResponse: """ @@ -333,7 +333,7 @@ def delete_by_external_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -374,14 +374,14 @@ def list_by_external_id( self, external_customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[TopUpListByExternalIDResponse]: """List top-ups by external ID @@ -454,15 +454,15 @@ async def create( invoice_settings: top_up_create_params.InvoiceSettings, per_unit_cost_basis: str, threshold: str, - active_from: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expires_after: Optional[int] | NotGiven = NOT_GIVEN, - expires_after_unit: Optional[Literal["day", "month"]] | NotGiven = NOT_GIVEN, + active_from: Union[str, datetime, None] | Omit = omit, + expires_after: Optional[int] | Omit = omit, + expires_after_unit: Optional[Literal["day", "month"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> TopUpCreateResponse: """ @@ -536,14 +536,14 @@ def list( self, customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[TopUpListResponse, AsyncPage[TopUpListResponse]]: """List top-ups @@ -594,7 +594,7 @@ async def delete( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -638,15 +638,15 @@ async def create_by_external_id( invoice_settings: top_up_create_by_external_id_params.InvoiceSettings, per_unit_cost_basis: str, threshold: str, - active_from: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - expires_after: Optional[int] | NotGiven = NOT_GIVEN, - expires_after_unit: Optional[Literal["day", "month"]] | NotGiven = NOT_GIVEN, + active_from: Union[str, datetime, None] | Omit = omit, + expires_after: Optional[int] | Omit = omit, + expires_after_unit: Optional[Literal["day", "month"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> TopUpCreateByExternalIDResponse: """ @@ -728,7 +728,7 @@ async def delete_by_external_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -769,14 +769,14 @@ def list_by_external_id( self, external_customer_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[TopUpListByExternalIDResponse, AsyncPage[TopUpListByExternalIDResponse]]: """List top-ups by external ID diff --git a/src/orb/resources/customers/customers.py b/src/orb/resources/customers/customers.py index db73331b..4c82a67f 100644 --- a/src/orb/resources/customers/customers.py +++ b/src/orb/resources/customers/customers.py @@ -23,7 +23,7 @@ customer_update_params, customer_update_by_external_id_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr +from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -93,30 +93,30 @@ def create( *, email: str, name: str, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_create_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, - timezone: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_create_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, + timezone: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ @@ -372,31 +372,31 @@ def update( self, customer_id: str, *, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_update_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_update_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ @@ -645,18 +645,18 @@ def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Customer]: """This endpoint returns a list of all customers for an account. @@ -713,7 +713,7 @@ def delete( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -765,7 +765,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Customer: """This endpoint is used to fetch customer details given an identifier. @@ -804,7 +804,7 @@ def fetch_by_external_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Customer: """ This endpoint is used to fetch customer details given an `external_customer_id` @@ -843,7 +843,7 @@ def sync_payment_methods_from_gateway( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -889,7 +889,7 @@ def sync_payment_methods_from_gateway_by_external_customer_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -932,31 +932,31 @@ def update_by_external_id( self, id: str, *, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_update_by_external_id_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_update_by_external_id_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ @@ -1239,30 +1239,30 @@ async def create( *, email: str, name: str, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_create_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, - timezone: Optional[str] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_create_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, + timezone: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ @@ -1518,31 +1518,31 @@ async def update( self, customer_id: str, *, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_update_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_update_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ @@ -1791,18 +1791,18 @@ async def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Customer, AsyncPage[Customer]]: """This endpoint returns a list of all customers for an account. @@ -1859,7 +1859,7 @@ async def delete( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -1911,7 +1911,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Customer: """This endpoint is used to fetch customer details given an identifier. @@ -1950,7 +1950,7 @@ async def fetch_by_external_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Customer: """ This endpoint is used to fetch customer details given an `external_customer_id` @@ -1989,7 +1989,7 @@ async def sync_payment_methods_from_gateway( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -2035,7 +2035,7 @@ async def sync_payment_methods_from_gateway_by_external_customer_id( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> None: """ @@ -2078,31 +2078,31 @@ async def update_by_external_id( self, id: str, *, - accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | NotGiven = NOT_GIVEN, - additional_emails: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - auto_issuance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - email: Optional[str] | NotGiven = NOT_GIVEN, - email_delivery: Optional[bool] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - hierarchy: Optional[CustomerHierarchyConfigParam] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + accounting_sync_configuration: Optional[NewAccountingSyncConfigurationParam] | Omit = omit, + additional_emails: Optional[SequenceNotStr[str]] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + auto_issuance: Optional[bool] | Omit = omit, + billing_address: Optional[AddressInputParam] | Omit = omit, + currency: Optional[str] | Omit = omit, + email: Optional[str] | Omit = omit, + email_delivery: Optional[bool] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + hierarchy: Optional[CustomerHierarchyConfigParam] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]] - | NotGiven = NOT_GIVEN, - payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN, - reporting_configuration: Optional[NewReportingConfigurationParam] | NotGiven = NOT_GIVEN, - shipping_address: Optional[AddressInputParam] | NotGiven = NOT_GIVEN, - tax_configuration: Optional[customer_update_by_external_id_params.TaxConfiguration] | NotGiven = NOT_GIVEN, - tax_id: Optional[CustomerTaxID] | NotGiven = NOT_GIVEN, + | Omit = omit, + payment_provider_id: Optional[str] | Omit = omit, + reporting_configuration: Optional[NewReportingConfigurationParam] | Omit = omit, + shipping_address: Optional[AddressInputParam] | Omit = omit, + tax_configuration: Optional[customer_update_by_external_id_params.TaxConfiguration] | Omit = omit, + tax_id: Optional[CustomerTaxID] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Customer: """ diff --git a/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py b/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py index 8c2cb8c6..8c1367ab 100644 --- a/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py +++ b/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py @@ -12,7 +12,7 @@ dimensional_price_group_create_params, dimensional_price_group_update_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr +from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -62,14 +62,14 @@ def create( billable_metric_id: str, dimensions: SequenceNotStr[str], name: str, - external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ @@ -130,7 +130,7 @@ def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> DimensionalPriceGroup: """ Fetch dimensional price group @@ -160,14 +160,14 @@ def update( self, dimensional_price_group_id: str, *, - external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ @@ -221,14 +221,14 @@ def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[DimensionalPriceGroup]: """List dimensional price groups @@ -298,14 +298,14 @@ async def create( billable_metric_id: str, dimensions: SequenceNotStr[str], name: str, - external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ @@ -366,7 +366,7 @@ async def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> DimensionalPriceGroup: """ Fetch dimensional price group @@ -396,14 +396,14 @@ async def update( self, dimensional_price_group_id: str, *, - external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ @@ -457,14 +457,14 @@ async def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[DimensionalPriceGroup, AsyncPage[DimensionalPriceGroup]]: """List dimensional price groups diff --git a/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py b/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py index 43459971..dcd0e4bb 100644 --- a/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py +++ b/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py @@ -7,7 +7,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -48,7 +48,7 @@ def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> DimensionalPriceGroup: """ Fetch dimensional price group by external ID @@ -78,14 +78,14 @@ def update( self, path_external_dimensional_price_group_id: str, *, - body_external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + body_external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ @@ -166,7 +166,7 @@ async def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> DimensionalPriceGroup: """ Fetch dimensional price group by external ID @@ -196,14 +196,14 @@ async def update( self, path_external_dimensional_price_group_id: str, *, - body_external_dimensional_price_group_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + body_external_dimensional_price_group_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> DimensionalPriceGroup: """ diff --git a/src/orb/resources/events/backfills.py b/src/orb/resources/events/backfills.py index 75dfb4ca..31ba93bd 100644 --- a/src/orb/resources/events/backfills.py +++ b/src/orb/resources/events/backfills.py @@ -8,7 +8,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -50,17 +50,17 @@ def create( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - close_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - deprecation_filter: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - replace_existing_events: bool | NotGiven = NOT_GIVEN, + close_time: Union[str, datetime, None] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + deprecation_filter: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + replace_existing_events: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillCreateResponse: """ @@ -165,14 +165,14 @@ def create( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[BackfillListResponse]: """ This endpoint returns a list of all backfills in a list format. @@ -225,7 +225,7 @@ def close( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillCloseResponse: """Closing a backfill makes the updated usage visible in Orb. @@ -269,7 +269,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BackfillFetchResponse: """ This endpoint is used to fetch a backfill given an identifier. @@ -302,7 +302,7 @@ def revert( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillRevertResponse: """Reverting a backfill undoes all the effects of closing the backfill. @@ -366,17 +366,17 @@ async def create( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - close_time: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - deprecation_filter: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - replace_existing_events: bool | NotGiven = NOT_GIVEN, + close_time: Union[str, datetime, None] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + deprecation_filter: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + replace_existing_events: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillCreateResponse: """ @@ -481,14 +481,14 @@ async def create( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[BackfillListResponse, AsyncPage[BackfillListResponse]]: """ This endpoint returns a list of all backfills in a list format. @@ -541,7 +541,7 @@ async def close( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillCloseResponse: """Closing a backfill makes the updated usage visible in Orb. @@ -585,7 +585,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BackfillFetchResponse: """ This endpoint is used to fetch a backfill given an identifier. @@ -618,7 +618,7 @@ async def revert( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BackfillRevertResponse: """Reverting a backfill undoes all the effects of closing the backfill. diff --git a/src/orb/resources/events/events.py b/src/orb/resources/events/events.py index bf424356..0d372f1a 100644 --- a/src/orb/resources/events/events.py +++ b/src/orb/resources/events/events.py @@ -17,7 +17,7 @@ AsyncVolumeWithStreamingResponse, ) from ...types import event_ingest_params, event_search_params, event_update_params -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr +from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from .backfills import ( @@ -74,14 +74,14 @@ def update( event_name: str, properties: Dict[str, object], timestamp: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventUpdateResponse: """ @@ -189,7 +189,7 @@ def deprecate( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventDeprecateResponse: """ @@ -263,14 +263,14 @@ def ingest( self, *, events: Iterable[event_ingest_params.Event], - backfill_id: Optional[str] | NotGiven = NOT_GIVEN, - debug: bool | NotGiven = NOT_GIVEN, + backfill_id: Optional[str] | Omit = omit, + debug: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventIngestResponse: """Orb's event ingestion model and API is designed around two core principles: @@ -520,14 +520,14 @@ def search( self, *, event_ids: SequenceNotStr[str], - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventSearchResponse: """ @@ -625,14 +625,14 @@ async def update( event_name: str, properties: Dict[str, object], timestamp: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventUpdateResponse: """ @@ -740,7 +740,7 @@ async def deprecate( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventDeprecateResponse: """ @@ -814,14 +814,14 @@ async def ingest( self, *, events: Iterable[event_ingest_params.Event], - backfill_id: Optional[str] | NotGiven = NOT_GIVEN, - debug: bool | NotGiven = NOT_GIVEN, + backfill_id: Optional[str] | Omit = omit, + debug: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventIngestResponse: """Orb's event ingestion model and API is designed around two core principles: @@ -1071,14 +1071,14 @@ async def search( self, *, event_ids: SequenceNotStr[str], - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> EventSearchResponse: """ diff --git a/src/orb/resources/events/volume.py b/src/orb/resources/events/volume.py index 0ce305ee..b2be9b8e 100644 --- a/src/orb/resources/events/volume.py +++ b/src/orb/resources/events/volume.py @@ -8,7 +8,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -44,15 +44,15 @@ def list( self, *, timeframe_start: Union[str, datetime], - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + timeframe_end: Union[str, datetime] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> EventVolumes: """ This endpoint returns the event volume for an account in a @@ -138,15 +138,15 @@ async def list( self, *, timeframe_start: Union[str, datetime], - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + timeframe_end: Union[str, datetime] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> EventVolumes: """ This endpoint returns the event volume for an account in a diff --git a/src/orb/resources/invoice_line_items.py b/src/orb/resources/invoice_line_items.py index 7dade2e1..cc97c45b 100644 --- a/src/orb/resources/invoice_line_items.py +++ b/src/orb/resources/invoice_line_items.py @@ -9,7 +9,7 @@ from .. import _legacy_response from ..types import invoice_line_item_create_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Query, Headers, NotGiven, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -54,7 +54,7 @@ def create( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> InvoiceLineItemCreateResponse: """This creates a one-off fixed fee invoice line item on an Invoice. @@ -144,7 +144,7 @@ async def create( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> InvoiceLineItemCreateResponse: """This creates a one-off fixed fee invoice line item on an Invoice. diff --git a/src/orb/resources/invoices.py b/src/orb/resources/invoices.py index fbeb4cc6..7f2c50e9 100644 --- a/src/orb/resources/invoices.py +++ b/src/orb/resources/invoices.py @@ -17,7 +17,7 @@ invoice_mark_paid_params, invoice_fetch_upcoming_params, ) -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -57,20 +57,20 @@ def create( currency: str, invoice_date: Union[str, datetime], line_items: Iterable[invoice_create_params.LineItem], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - discount: Optional[Discount] | NotGiven = NOT_GIVEN, - due_date: Union[Union[str, date], Union[str, datetime], None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - memo: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - will_auto_issue: bool | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + discount: Optional[Discount] | Omit = omit, + due_date: Union[Union[str, date], Union[str, datetime], None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + memo: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + will_auto_issue: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -153,15 +153,15 @@ def update( self, invoice_id: str, *, - due_date: Union[Union[str, date], Union[str, datetime], None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, + due_date: Union[Union[str, date], Union[str, datetime], None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -221,31 +221,31 @@ def update( def list( self, *, - amount: Optional[str] | NotGiven = NOT_GIVEN, - amount_gt: Optional[str] | NotGiven = NOT_GIVEN, - amount_lt: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - date_type: Optional[Literal["due_date", "invoice_date"]] | NotGiven = NOT_GIVEN, - due_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - due_date_window: Optional[str] | NotGiven = NOT_GIVEN, - due_date_gt: Union[str, date, None] | NotGiven = NOT_GIVEN, - due_date_lt: Union[str, date, None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - invoice_date_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - is_recurring: Optional[bool] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Optional[List[Literal["draft", "issued", "paid", "synced", "void"]]] | NotGiven = NOT_GIVEN, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + amount: Optional[str] | Omit = omit, + amount_gt: Optional[str] | Omit = omit, + amount_lt: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + date_type: Optional[Literal["due_date", "invoice_date"]] | Omit = omit, + due_date: Union[str, date, None] | Omit = omit, + due_date_window: Optional[str] | Omit = omit, + due_date_gt: Union[str, date, None] | Omit = omit, + due_date_lt: Union[str, date, None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + invoice_date_gt: Union[str, datetime, None] | Omit = omit, + invoice_date_gte: Union[str, datetime, None] | Omit = omit, + invoice_date_lt: Union[str, datetime, None] | Omit = omit, + invoice_date_lte: Union[str, datetime, None] | Omit = omit, + is_recurring: Optional[bool] | Omit = omit, + limit: int | Omit = omit, + status: Optional[List[Literal["draft", "issued", "paid", "synced", "void"]]] | Omit = omit, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Invoice]: """ This endpoint returns a list of all [`Invoice`](/core-concepts#invoice)s for an @@ -326,7 +326,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Invoice: """ This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an @@ -360,7 +360,7 @@ def fetch_upcoming( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> InvoiceFetchUpcomingResponse: """ This endpoint can be used to fetch the upcoming @@ -394,13 +394,13 @@ def issue( self, invoice_id: str, *, - synchronous: bool | NotGiven = NOT_GIVEN, + synchronous: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an eligible invoice to be issued manually. @@ -449,14 +449,14 @@ def mark_paid( invoice_id: str, *, payment_received_date: Union[str, date], - external_id: Optional[str] | NotGiven = NOT_GIVEN, - notes: Optional[str] | NotGiven = NOT_GIVEN, + external_id: Optional[str] | Omit = omit, + notes: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an invoice's status to be set to the `paid` status. @@ -512,7 +512,7 @@ def pay( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -553,7 +553,7 @@ def void( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an invoice's status to be set to the `void` status. @@ -622,20 +622,20 @@ async def create( currency: str, invoice_date: Union[str, datetime], line_items: Iterable[invoice_create_params.LineItem], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - discount: Optional[Discount] | NotGiven = NOT_GIVEN, - due_date: Union[Union[str, date], Union[str, datetime], None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - memo: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - will_auto_issue: bool | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + discount: Optional[Discount] | Omit = omit, + due_date: Union[Union[str, date], Union[str, datetime], None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + memo: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + will_auto_issue: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -718,15 +718,15 @@ async def update( self, invoice_id: str, *, - due_date: Union[Union[str, date], Union[str, datetime], None] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, + due_date: Union[Union[str, date], Union[str, datetime], None] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -786,31 +786,31 @@ async def update( def list( self, *, - amount: Optional[str] | NotGiven = NOT_GIVEN, - amount_gt: Optional[str] | NotGiven = NOT_GIVEN, - amount_lt: Optional[str] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - date_type: Optional[Literal["due_date", "invoice_date"]] | NotGiven = NOT_GIVEN, - due_date: Union[str, date, None] | NotGiven = NOT_GIVEN, - due_date_window: Optional[str] | NotGiven = NOT_GIVEN, - due_date_gt: Union[str, date, None] | NotGiven = NOT_GIVEN, - due_date_lt: Union[str, date, None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - invoice_date_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - invoice_date_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - is_recurring: Optional[bool] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Optional[List[Literal["draft", "issued", "paid", "synced", "void"]]] | NotGiven = NOT_GIVEN, - subscription_id: Optional[str] | NotGiven = NOT_GIVEN, + amount: Optional[str] | Omit = omit, + amount_gt: Optional[str] | Omit = omit, + amount_lt: Optional[str] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + date_type: Optional[Literal["due_date", "invoice_date"]] | Omit = omit, + due_date: Union[str, date, None] | Omit = omit, + due_date_window: Optional[str] | Omit = omit, + due_date_gt: Union[str, date, None] | Omit = omit, + due_date_lt: Union[str, date, None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + invoice_date_gt: Union[str, datetime, None] | Omit = omit, + invoice_date_gte: Union[str, datetime, None] | Omit = omit, + invoice_date_lt: Union[str, datetime, None] | Omit = omit, + invoice_date_lte: Union[str, datetime, None] | Omit = omit, + is_recurring: Optional[bool] | Omit = omit, + limit: int | Omit = omit, + status: Optional[List[Literal["draft", "issued", "paid", "synced", "void"]]] | Omit = omit, + subscription_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Invoice, AsyncPage[Invoice]]: """ This endpoint returns a list of all [`Invoice`](/core-concepts#invoice)s for an @@ -891,7 +891,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Invoice: """ This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an @@ -925,7 +925,7 @@ async def fetch_upcoming( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> InvoiceFetchUpcomingResponse: """ This endpoint can be used to fetch the upcoming @@ -959,13 +959,13 @@ async def issue( self, invoice_id: str, *, - synchronous: bool | NotGiven = NOT_GIVEN, + synchronous: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an eligible invoice to be issued manually. @@ -1014,14 +1014,14 @@ async def mark_paid( invoice_id: str, *, payment_received_date: Union[str, date], - external_id: Optional[str] | NotGiven = NOT_GIVEN, - notes: Optional[str] | NotGiven = NOT_GIVEN, + external_id: Optional[str] | Omit = omit, + notes: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an invoice's status to be set to the `paid` status. @@ -1077,7 +1077,7 @@ async def pay( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """ @@ -1118,7 +1118,7 @@ async def void( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Invoice: """This endpoint allows an invoice's status to be set to the `void` status. diff --git a/src/orb/resources/items.py b/src/orb/resources/items.py index 6ccf4995..d1cd7d7d 100644 --- a/src/orb/resources/items.py +++ b/src/orb/resources/items.py @@ -8,7 +8,7 @@ from .. import _legacy_response from ..types import item_list_params, item_create_params, item_update_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -44,13 +44,13 @@ def create( self, *, name: str, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -96,15 +96,15 @@ def update( self, item_id: str, *, - external_connections: Optional[Iterable[item_update_params.ExternalConnection]] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + external_connections: Optional[Iterable[item_update_params.ExternalConnection]] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -150,14 +150,14 @@ def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Item]: """ This endpoint returns a list of all Items, ordered in descending order by @@ -205,7 +205,7 @@ def archive( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -245,7 +245,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Item: """ This endpoint returns an item identified by its item_id. @@ -294,13 +294,13 @@ async def create( self, *, name: str, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -346,15 +346,15 @@ async def update( self, item_id: str, *, - external_connections: Optional[Iterable[item_update_params.ExternalConnection]] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, + external_connections: Optional[Iterable[item_update_params.ExternalConnection]] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -400,14 +400,14 @@ async def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Item, AsyncPage[Item]]: """ This endpoint returns a list of all Items, ordered in descending order by @@ -455,7 +455,7 @@ async def archive( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Item: """ @@ -495,7 +495,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Item: """ This endpoint returns an item identified by its item_id. diff --git a/src/orb/resources/metrics.py b/src/orb/resources/metrics.py index 9e5c4088..6f62951d 100644 --- a/src/orb/resources/metrics.py +++ b/src/orb/resources/metrics.py @@ -9,7 +9,7 @@ from .. import _legacy_response from ..types import metric_list_params, metric_create_params, metric_update_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -48,13 +48,13 @@ def create( item_id: str, name: str, sql: str, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BillableMetric: """ @@ -111,13 +111,13 @@ def update( self, metric_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BillableMetric: """This endpoint allows you to update the `metadata` property on a metric. @@ -159,18 +159,18 @@ def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[BillableMetric]: """ This endpoint is used to fetch [metric](/core-concepts##metric) details given a @@ -223,7 +223,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BillableMetric: """This endpoint is used to list [metrics](/core-concepts#metric). @@ -277,13 +277,13 @@ async def create( item_id: str, name: str, sql: str, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BillableMetric: """ @@ -340,13 +340,13 @@ async def update( self, metric_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> BillableMetric: """This endpoint allows you to update the `metadata` property on a metric. @@ -388,18 +388,18 @@ async def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[BillableMetric, AsyncPage[BillableMetric]]: """ This endpoint is used to fetch [metric](/core-concepts##metric) details given a @@ -452,7 +452,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> BillableMetric: """This endpoint is used to list [metrics](/core-concepts#metric). diff --git a/src/orb/resources/plans/external_plan_id.py b/src/orb/resources/plans/external_plan_id.py index 9c3dc83d..1017afcc 100644 --- a/src/orb/resources/plans/external_plan_id.py +++ b/src/orb/resources/plans/external_plan_id.py @@ -7,7 +7,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -43,14 +43,14 @@ def update( self, other_external_plan_id: str, *, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -110,7 +110,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Plan: """ This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details @@ -174,14 +174,14 @@ async def update( self, other_external_plan_id: str, *, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -241,7 +241,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Plan: """ This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details diff --git a/src/orb/resources/plans/plans.py b/src/orb/resources/plans/plans.py index b55fbafe..257f1774 100644 --- a/src/orb/resources/plans/plans.py +++ b/src/orb/resources/plans/plans.py @@ -10,7 +10,7 @@ from ... import _legacy_response from ...types import plan_list_params, plan_create_params, plan_update_params -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -60,19 +60,19 @@ def create( currency: str, name: str, prices: Iterable[plan_create_params.Price], - adjustments: Optional[Iterable[plan_create_params.Adjustment]] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - plan_phases: Optional[Iterable[plan_create_params.PlanPhase]] | NotGiven = NOT_GIVEN, - status: Literal["active", "draft"] | NotGiven = NOT_GIVEN, + adjustments: Optional[Iterable[plan_create_params.Adjustment]] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + plan_phases: Optional[Iterable[plan_create_params.PlanPhase]] | Omit = omit, + status: Literal["active", "draft"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -145,14 +145,14 @@ def update( self, plan_id: str, *, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -204,19 +204,19 @@ def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Literal["active", "archived", "draft"] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + status: Literal["active", "archived", "draft"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Plan]: """ This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for @@ -274,7 +274,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Plan: """ This endpoint is used to fetch [plan](/core-concepts#plan-and-price) details @@ -345,19 +345,19 @@ async def create( currency: str, name: str, prices: Iterable[plan_create_params.Price], - adjustments: Optional[Iterable[plan_create_params.Adjustment]] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - plan_phases: Optional[Iterable[plan_create_params.PlanPhase]] | NotGiven = NOT_GIVEN, - status: Literal["active", "draft"] | NotGiven = NOT_GIVEN, + adjustments: Optional[Iterable[plan_create_params.Adjustment]] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + plan_phases: Optional[Iterable[plan_create_params.PlanPhase]] | Omit = omit, + status: Literal["active", "draft"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -430,14 +430,14 @@ async def update( self, plan_id: str, *, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + external_plan_id: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Plan: """ @@ -489,19 +489,19 @@ async def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Literal["active", "archived", "draft"] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + status: Literal["active", "archived", "draft"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Plan, AsyncPage[Plan]]: """ This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for @@ -559,7 +559,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Plan: """ This endpoint is used to fetch [plan](/core-concepts#plan-and-price) details diff --git a/src/orb/resources/prices/external_price_id.py b/src/orb/resources/prices/external_price_id.py index 52e8d20a..8d023ee9 100644 --- a/src/orb/resources/prices/external_price_id.py +++ b/src/orb/resources/prices/external_price_id.py @@ -7,7 +7,7 @@ import httpx from ... import _legacy_response -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from ..._utils import maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -43,13 +43,13 @@ def update( self, external_price_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """This endpoint allows you to update the `metadata` property on a price. @@ -102,7 +102,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Price: """This endpoint returns a price given an external price id. @@ -157,13 +157,13 @@ async def update( self, external_price_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """This endpoint allows you to update the `metadata` property on a price. @@ -216,7 +216,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Price: """This endpoint returns a price given an external price id. diff --git a/src/orb/resources/prices/prices.py b/src/orb/resources/prices/prices.py index 8bea7f59..8620a82b 100644 --- a/src/orb/resources/prices/prices.py +++ b/src/orb/resources/prices/prices.py @@ -17,7 +17,7 @@ price_evaluate_multiple_params, price_evaluate_preview_events_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr +from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given from ..._utils import required_args, maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -82,24 +82,23 @@ def create( model_type: Literal["unit"], name: str, unit_config: UnitConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -178,24 +177,23 @@ def create( model_type: Literal["tiered"], name: str, tiered_config: TieredConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -274,24 +272,23 @@ def create( item_id: str, model_type: Literal["bulk"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -370,24 +367,23 @@ def create( model_type: Literal["package"], name: str, package_config: PackageConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingPackagePriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -466,24 +462,23 @@ def create( matrix_config: MatrixConfig, model_type: Literal["matrix"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingMatrixPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingMatrixPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -562,24 +557,24 @@ def create( model_type: Literal["threshold_total_amount"], name: str, threshold_total_amount_config: price_create_params.NewFloatingThresholdTotalAmountPriceThresholdTotalAmountConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingThresholdTotalAmountPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -658,24 +653,24 @@ def create( model_type: Literal["tiered_package"], name: str, tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -754,24 +749,24 @@ def create( model_type: Literal["tiered_with_minimum"], name: str, tiered_with_minimum_config: price_create_params.NewFloatingTieredWithMinimumPriceTieredWithMinimumConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredWithMinimumPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -850,24 +845,24 @@ def create( item_id: str, model_type: Literal["grouped_tiered"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedTieredPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -946,26 +941,26 @@ def create( model_type: Literal["tiered_package_with_minimum"], name: str, tiered_package_with_minimum_config: price_create_params.NewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingTieredPackageWithMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1044,24 +1039,24 @@ def create( model_type: Literal["package_with_allocation"], name: str, package_with_allocation_config: price_create_params.NewFloatingPackageWithAllocationPricePackageWithAllocationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingPackageWithAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1140,24 +1135,24 @@ def create( model_type: Literal["unit_with_percent"], name: str, unit_with_percent_config: price_create_params.NewFloatingUnitWithPercentPriceUnitWithPercentConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitWithPercentPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1236,24 +1231,24 @@ def create( matrix_with_allocation_config: MatrixWithAllocationConfig, model_type: Literal["matrix_with_allocation"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMatrixWithAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1332,24 +1327,24 @@ def create( model_type: Literal["tiered_with_proration"], name: str, tiered_with_proration_config: price_create_params.NewFloatingTieredWithProrationPriceTieredWithProrationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1428,24 +1423,24 @@ def create( model_type: Literal["unit_with_proration"], name: str, unit_with_proration_config: price_create_params.NewFloatingUnitWithProrationPriceUnitWithProrationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1524,24 +1519,24 @@ def create( item_id: str, model_type: Literal["grouped_allocation"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1620,24 +1615,24 @@ def create( item_id: str, model_type: Literal["bulk_with_proration"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingBulkWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1716,26 +1711,26 @@ def create( item_id: str, model_type: Literal["grouped_with_prorated_minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithProratedMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1814,26 +1809,26 @@ def create( item_id: str, model_type: Literal["grouped_with_metered_minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithMeteredMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -1912,26 +1907,26 @@ def create( item_id: str, model_type: Literal["grouped_with_min_max_thresholds"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithMinMaxThresholdsPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2010,24 +2005,24 @@ def create( matrix_with_display_name_config: price_create_params.NewFloatingMatrixWithDisplayNamePriceMatrixWithDisplayNameConfig, model_type: Literal["matrix_with_display_name"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMatrixWithDisplayNamePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2106,24 +2101,24 @@ def create( item_id: str, model_type: Literal["grouped_tiered_package"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2202,24 +2197,24 @@ def create( max_group_tiered_package_config: price_create_params.NewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfig, model_type: Literal["max_group_tiered_package"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMaxGroupTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2298,26 +2293,26 @@ def create( model_type: Literal["scalable_matrix_with_unit_pricing"], name: str, scalable_matrix_with_unit_pricing_config: price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceScalableMatrixWithUnitPricingConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2396,26 +2391,26 @@ def create( model_type: Literal["scalable_matrix_with_tiered_pricing"], name: str, scalable_matrix_with_tiered_pricing_config: price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2494,24 +2489,24 @@ def create( item_id: str, model_type: Literal["cumulative_grouped_bulk"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingCumulativeGroupedBulkPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2590,24 +2585,24 @@ def create( minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig, model_type: Literal["minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMinimumCompositePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -2739,11 +2734,11 @@ def create( | Literal["cumulative_grouped_bulk"] | Literal["minimum"], name: str, - unit_config: UnitConfig | NotGiven = NOT_GIVEN, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + unit_config: UnitConfig | Omit = omit, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] | Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] | Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] @@ -2771,65 +2766,63 @@ def create( | Optional[price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceConversionRateConfig] | Optional[price_create_params.NewFloatingCumulativeGroupedBulkPriceConversionRateConfig] | Optional[price_create_params.NewFloatingMinimumCompositePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - tiered_config: TieredConfig | NotGiven = NOT_GIVEN, - bulk_config: BulkConfig | NotGiven = NOT_GIVEN, - package_config: PackageConfig | NotGiven = NOT_GIVEN, - matrix_config: MatrixConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + tiered_config: TieredConfig | Omit = omit, + bulk_config: BulkConfig | Omit = omit, + package_config: PackageConfig | Omit = omit, + matrix_config: MatrixConfig | Omit = omit, threshold_total_amount_config: price_create_params.NewFloatingThresholdTotalAmountPriceThresholdTotalAmountConfig - | NotGiven = NOT_GIVEN, - tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, + tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig | Omit = omit, tiered_with_minimum_config: price_create_params.NewFloatingTieredWithMinimumPriceTieredWithMinimumConfig - | NotGiven = NOT_GIVEN, - grouped_tiered_config: price_create_params.NewFloatingGroupedTieredPriceGroupedTieredConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, + grouped_tiered_config: price_create_params.NewFloatingGroupedTieredPriceGroupedTieredConfig | Omit = omit, tiered_package_with_minimum_config: price_create_params.NewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, package_with_allocation_config: price_create_params.NewFloatingPackageWithAllocationPricePackageWithAllocationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, unit_with_percent_config: price_create_params.NewFloatingUnitWithPercentPriceUnitWithPercentConfig - | NotGiven = NOT_GIVEN, - matrix_with_allocation_config: MatrixWithAllocationConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + matrix_with_allocation_config: MatrixWithAllocationConfig | Omit = omit, tiered_with_proration_config: price_create_params.NewFloatingTieredWithProrationPriceTieredWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, unit_with_proration_config: price_create_params.NewFloatingUnitWithProrationPriceUnitWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_allocation_config: price_create_params.NewFloatingGroupedAllocationPriceGroupedAllocationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, bulk_with_proration_config: price_create_params.NewFloatingBulkWithProrationPriceBulkWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_prorated_minimum_config: price_create_params.NewFloatingGroupedWithProratedMinimumPriceGroupedWithProratedMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_metered_minimum_config: price_create_params.NewFloatingGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_min_max_thresholds_config: price_create_params.NewFloatingGroupedWithMinMaxThresholdsPriceGroupedWithMinMaxThresholdsConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, matrix_with_display_name_config: price_create_params.NewFloatingMatrixWithDisplayNamePriceMatrixWithDisplayNameConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_tiered_package_config: price_create_params.NewFloatingGroupedTieredPackagePriceGroupedTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, max_group_tiered_package_config: price_create_params.NewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, scalable_matrix_with_unit_pricing_config: price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceScalableMatrixWithUnitPricingConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, scalable_matrix_with_tiered_pricing_config: price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, cumulative_grouped_bulk_config: price_create_params.NewFloatingCumulativeGroupedBulkPriceCumulativeGroupedBulkConfig - | NotGiven = NOT_GIVEN, - minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: return cast( @@ -2899,13 +2892,13 @@ def update( self, price_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """This endpoint allows you to update the `metadata` property on a price. @@ -2950,14 +2943,14 @@ def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Price]: """ This endpoint is used to list all add-on prices created using the @@ -3002,16 +2995,16 @@ def evaluate( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - grouping_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + grouping_keys: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluateResponse: """ @@ -3098,15 +3091,15 @@ def evaluate_multiple( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - price_evaluations: Iterable[price_evaluate_multiple_params.PriceEvaluation] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + price_evaluations: Iterable[price_evaluate_multiple_params.PriceEvaluation] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluateMultipleResponse: """ @@ -3188,16 +3181,16 @@ def evaluate_preview_events( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - events: Iterable[price_evaluate_preview_events_params.Event] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - price_evaluations: Iterable[price_evaluate_preview_events_params.PriceEvaluation] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + events: Iterable[price_evaluate_preview_events_params.Event] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + price_evaluations: Iterable[price_evaluate_preview_events_params.PriceEvaluation] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluatePreviewEventsResponse: """ @@ -3275,7 +3268,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Price: """ This endpoint returns a price given an identifier. @@ -3337,24 +3330,23 @@ async def create( model_type: Literal["unit"], name: str, unit_config: UnitConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3433,24 +3425,23 @@ async def create( model_type: Literal["tiered"], name: str, tiered_config: TieredConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3529,24 +3520,23 @@ async def create( item_id: str, model_type: Literal["bulk"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3625,24 +3615,23 @@ async def create( model_type: Literal["package"], name: str, package_config: PackageConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingPackagePriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3721,24 +3710,23 @@ async def create( matrix_config: MatrixConfig, model_type: Literal["matrix"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, - conversion_rate_config: Optional[price_create_params.NewFloatingMatrixPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, + conversion_rate_config: Optional[price_create_params.NewFloatingMatrixPriceConversionRateConfig] | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3817,24 +3805,24 @@ async def create( model_type: Literal["threshold_total_amount"], name: str, threshold_total_amount_config: price_create_params.NewFloatingThresholdTotalAmountPriceThresholdTotalAmountConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingThresholdTotalAmountPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -3913,24 +3901,24 @@ async def create( model_type: Literal["tiered_package"], name: str, tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4009,24 +3997,24 @@ async def create( model_type: Literal["tiered_with_minimum"], name: str, tiered_with_minimum_config: price_create_params.NewFloatingTieredWithMinimumPriceTieredWithMinimumConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredWithMinimumPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4105,24 +4093,24 @@ async def create( item_id: str, model_type: Literal["grouped_tiered"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedTieredPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4201,26 +4189,26 @@ async def create( model_type: Literal["tiered_package_with_minimum"], name: str, tiered_package_with_minimum_config: price_create_params.NewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingTieredPackageWithMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4299,24 +4287,24 @@ async def create( model_type: Literal["package_with_allocation"], name: str, package_with_allocation_config: price_create_params.NewFloatingPackageWithAllocationPricePackageWithAllocationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingPackageWithAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4395,24 +4383,24 @@ async def create( model_type: Literal["unit_with_percent"], name: str, unit_with_percent_config: price_create_params.NewFloatingUnitWithPercentPriceUnitWithPercentConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitWithPercentPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4491,24 +4479,24 @@ async def create( matrix_with_allocation_config: MatrixWithAllocationConfig, model_type: Literal["matrix_with_allocation"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMatrixWithAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4587,24 +4575,24 @@ async def create( model_type: Literal["tiered_with_proration"], name: str, tiered_with_proration_config: price_create_params.NewFloatingTieredWithProrationPriceTieredWithProrationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingTieredWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4683,24 +4671,24 @@ async def create( model_type: Literal["unit_with_proration"], name: str, unit_with_proration_config: price_create_params.NewFloatingUnitWithProrationPriceUnitWithProrationConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4779,24 +4767,24 @@ async def create( item_id: str, model_type: Literal["grouped_allocation"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedAllocationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4875,24 +4863,24 @@ async def create( item_id: str, model_type: Literal["bulk_with_proration"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingBulkWithProrationPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -4971,26 +4959,26 @@ async def create( item_id: str, model_type: Literal["grouped_with_prorated_minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithProratedMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5069,26 +5057,26 @@ async def create( item_id: str, model_type: Literal["grouped_with_metered_minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithMeteredMinimumPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5167,26 +5155,26 @@ async def create( item_id: str, model_type: Literal["grouped_with_min_max_thresholds"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingGroupedWithMinMaxThresholdsPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5265,24 +5253,24 @@ async def create( matrix_with_display_name_config: price_create_params.NewFloatingMatrixWithDisplayNamePriceMatrixWithDisplayNameConfig, model_type: Literal["matrix_with_display_name"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMatrixWithDisplayNamePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5361,24 +5349,24 @@ async def create( item_id: str, model_type: Literal["grouped_tiered_package"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingGroupedTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5457,24 +5445,24 @@ async def create( max_group_tiered_package_config: price_create_params.NewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfig, model_type: Literal["max_group_tiered_package"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMaxGroupTieredPackagePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5553,26 +5541,26 @@ async def create( model_type: Literal["scalable_matrix_with_unit_pricing"], name: str, scalable_matrix_with_unit_pricing_config: price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceScalableMatrixWithUnitPricingConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5651,26 +5639,26 @@ async def create( model_type: Literal["scalable_matrix_with_tiered_pricing"], name: str, scalable_matrix_with_tiered_pricing_config: price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfig, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[ price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceConversionRateConfig ] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5749,24 +5737,24 @@ async def create( item_id: str, model_type: Literal["cumulative_grouped_bulk"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingCumulativeGroupedBulkPriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5845,24 +5833,24 @@ async def create( minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig, model_type: Literal["minimum"], name: str, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingMinimumCompositePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """ @@ -5994,11 +5982,11 @@ async def create( | Literal["cumulative_grouped_bulk"] | Literal["minimum"], name: str, - unit_config: UnitConfig | NotGiven = NOT_GIVEN, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - billed_in_advance: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - conversion_rate: Optional[float] | NotGiven = NOT_GIVEN, + unit_config: UnitConfig | Omit = omit, + billable_metric_id: Optional[str] | Omit = omit, + billed_in_advance: Optional[bool] | Omit = omit, + billing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + conversion_rate: Optional[float] | Omit = omit, conversion_rate_config: Optional[price_create_params.NewFloatingUnitPriceConversionRateConfig] | Optional[price_create_params.NewFloatingTieredPriceConversionRateConfig] | Optional[price_create_params.NewFloatingBulkPriceConversionRateConfig] @@ -6026,65 +6014,63 @@ async def create( | Optional[price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceConversionRateConfig] | Optional[price_create_params.NewFloatingCumulativeGroupedBulkPriceConversionRateConfig] | Optional[price_create_params.NewFloatingMinimumCompositePriceConversionRateConfig] - | NotGiven = NOT_GIVEN, - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | NotGiven = NOT_GIVEN, - external_price_id: Optional[str] | NotGiven = NOT_GIVEN, - fixed_price_quantity: Optional[float] | NotGiven = NOT_GIVEN, - invoice_grouping_key: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - tiered_config: TieredConfig | NotGiven = NOT_GIVEN, - bulk_config: BulkConfig | NotGiven = NOT_GIVEN, - package_config: PackageConfig | NotGiven = NOT_GIVEN, - matrix_config: MatrixConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] | Omit = omit, + external_price_id: Optional[str] | Omit = omit, + fixed_price_quantity: Optional[float] | Omit = omit, + invoice_grouping_key: Optional[str] | Omit = omit, + invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + tiered_config: TieredConfig | Omit = omit, + bulk_config: BulkConfig | Omit = omit, + package_config: PackageConfig | Omit = omit, + matrix_config: MatrixConfig | Omit = omit, threshold_total_amount_config: price_create_params.NewFloatingThresholdTotalAmountPriceThresholdTotalAmountConfig - | NotGiven = NOT_GIVEN, - tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, + tiered_package_config: price_create_params.NewFloatingTieredPackagePriceTieredPackageConfig | Omit = omit, tiered_with_minimum_config: price_create_params.NewFloatingTieredWithMinimumPriceTieredWithMinimumConfig - | NotGiven = NOT_GIVEN, - grouped_tiered_config: price_create_params.NewFloatingGroupedTieredPriceGroupedTieredConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, + grouped_tiered_config: price_create_params.NewFloatingGroupedTieredPriceGroupedTieredConfig | Omit = omit, tiered_package_with_minimum_config: price_create_params.NewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, package_with_allocation_config: price_create_params.NewFloatingPackageWithAllocationPricePackageWithAllocationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, unit_with_percent_config: price_create_params.NewFloatingUnitWithPercentPriceUnitWithPercentConfig - | NotGiven = NOT_GIVEN, - matrix_with_allocation_config: MatrixWithAllocationConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + matrix_with_allocation_config: MatrixWithAllocationConfig | Omit = omit, tiered_with_proration_config: price_create_params.NewFloatingTieredWithProrationPriceTieredWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, unit_with_proration_config: price_create_params.NewFloatingUnitWithProrationPriceUnitWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_allocation_config: price_create_params.NewFloatingGroupedAllocationPriceGroupedAllocationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, bulk_with_proration_config: price_create_params.NewFloatingBulkWithProrationPriceBulkWithProrationConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_prorated_minimum_config: price_create_params.NewFloatingGroupedWithProratedMinimumPriceGroupedWithProratedMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_metered_minimum_config: price_create_params.NewFloatingGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_with_min_max_thresholds_config: price_create_params.NewFloatingGroupedWithMinMaxThresholdsPriceGroupedWithMinMaxThresholdsConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, matrix_with_display_name_config: price_create_params.NewFloatingMatrixWithDisplayNamePriceMatrixWithDisplayNameConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, grouped_tiered_package_config: price_create_params.NewFloatingGroupedTieredPackagePriceGroupedTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, max_group_tiered_package_config: price_create_params.NewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, scalable_matrix_with_unit_pricing_config: price_create_params.NewFloatingScalableMatrixWithUnitPricingPriceScalableMatrixWithUnitPricingConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, scalable_matrix_with_tiered_pricing_config: price_create_params.NewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfig - | NotGiven = NOT_GIVEN, + | Omit = omit, cumulative_grouped_bulk_config: price_create_params.NewFloatingCumulativeGroupedBulkPriceCumulativeGroupedBulkConfig - | NotGiven = NOT_GIVEN, - minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig | NotGiven = NOT_GIVEN, + | Omit = omit, + minimum_config: price_create_params.NewFloatingMinimumCompositePriceMinimumConfig | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: return cast( @@ -6154,13 +6140,13 @@ async def update( self, price_id: str, *, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Price: """This endpoint allows you to update the `metadata` property on a price. @@ -6205,14 +6191,14 @@ async def update( def list( self, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Price, AsyncPage[Price]]: """ This endpoint is used to list all add-on prices created using the @@ -6257,16 +6243,16 @@ async def evaluate( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - grouping_keys: SequenceNotStr[str] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + grouping_keys: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluateResponse: """ @@ -6353,15 +6339,15 @@ async def evaluate_multiple( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - price_evaluations: Iterable[price_evaluate_multiple_params.PriceEvaluation] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + price_evaluations: Iterable[price_evaluate_multiple_params.PriceEvaluation] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluateMultipleResponse: """ @@ -6443,16 +6429,16 @@ async def evaluate_preview_events( *, timeframe_end: Union[str, datetime], timeframe_start: Union[str, datetime], - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - events: Iterable[price_evaluate_preview_events_params.Event] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - price_evaluations: Iterable[price_evaluate_preview_events_params.PriceEvaluation] | NotGiven = NOT_GIVEN, + customer_id: Optional[str] | Omit = omit, + events: Iterable[price_evaluate_preview_events_params.Event] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + price_evaluations: Iterable[price_evaluate_preview_events_params.PriceEvaluation] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> PriceEvaluatePreviewEventsResponse: """ @@ -6530,7 +6516,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Price: """ This endpoint returns a price given an identifier. diff --git a/src/orb/resources/subscription_changes.py b/src/orb/resources/subscription_changes.py index ef2a88ff..c68e425b 100644 --- a/src/orb/resources/subscription_changes.py +++ b/src/orb/resources/subscription_changes.py @@ -8,7 +8,7 @@ from .. import _legacy_response from ..types import subscription_change_apply_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -50,7 +50,7 @@ def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionChangeRetrieveResponse: """ This endpoint returns a subscription change given an identifier. @@ -88,14 +88,14 @@ def apply( self, subscription_change_id: str, *, - description: Optional[str] | NotGiven = NOT_GIVEN, - previously_collected_amount: Optional[str] | NotGiven = NOT_GIVEN, + description: Optional[str] | Omit = omit, + previously_collected_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> SubscriptionChangeApplyResponse: """Apply a subscription change to perform the intended action. @@ -151,7 +151,7 @@ def cancel( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> SubscriptionChangeCancelResponse: """Cancel a subscription change. @@ -217,7 +217,7 @@ async def retrieve( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionChangeRetrieveResponse: """ This endpoint returns a subscription change given an identifier. @@ -255,14 +255,14 @@ async def apply( self, subscription_change_id: str, *, - description: Optional[str] | NotGiven = NOT_GIVEN, - previously_collected_amount: Optional[str] | NotGiven = NOT_GIVEN, + description: Optional[str] | Omit = omit, + previously_collected_amount: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> SubscriptionChangeApplyResponse: """Apply a subscription change to perform the intended action. @@ -318,7 +318,7 @@ async def cancel( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> SubscriptionChangeCancelResponse: """Cancel a subscription change. diff --git a/src/orb/resources/subscriptions.py b/src/orb/resources/subscriptions.py index 4f4aeefc..7826e893 100644 --- a/src/orb/resources/subscriptions.py +++ b/src/orb/resources/subscriptions.py @@ -25,7 +25,7 @@ subscription_update_fixed_fee_quantity_params, subscription_unschedule_fixed_fee_quantity_updates_params, ) -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr +from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given from .._utils import maybe_transform, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -65,45 +65,45 @@ def with_streaming_response(self) -> SubscriptionsWithStreamingResponse: def create( self, *, - add_adjustments: Optional[Iterable[subscription_create_params.AddAdjustment]] | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[subscription_create_params.AddPrice]] | NotGiven = NOT_GIVEN, - align_billing_with_subscription_start_date: bool | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - aws_region: Optional[str] | NotGiven = NOT_GIVEN, - billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - credits_overage_rate: Optional[float] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - end_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_marketplace: Optional[Literal["google", "aws", "azure"]] | NotGiven = NOT_GIVEN, - external_marketplace_reporting_id: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - initial_phase_order: Optional[int] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - per_credit_overage_amount: Optional[float] | NotGiven = NOT_GIVEN, - plan_id: Optional[str] | NotGiven = NOT_GIVEN, - plan_version_number: Optional[int] | NotGiven = NOT_GIVEN, - price_overrides: Optional[Iterable[object]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[subscription_create_params.RemoveAdjustment]] | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[subscription_create_params.RemovePrice]] | NotGiven = NOT_GIVEN, - replace_adjustments: Optional[Iterable[subscription_create_params.ReplaceAdjustment]] | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | NotGiven = NOT_GIVEN, - start_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, - usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[subscription_create_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[subscription_create_params.AddPrice]] | Omit = omit, + align_billing_with_subscription_start_date: bool | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + aws_region: Optional[str] | Omit = omit, + billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, + credits_overage_rate: Optional[float] | Omit = omit, + currency: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + end_date: Union[str, datetime, None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + external_marketplace: Optional[Literal["google", "aws", "azure"]] | Omit = omit, + external_marketplace_reporting_id: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + initial_phase_order: Optional[int] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + per_credit_overage_amount: Optional[float] | Omit = omit, + plan_id: Optional[str] | Omit = omit, + plan_version_number: Optional[int] | Omit = omit, + price_overrides: Optional[Iterable[object]] | Omit = omit, + remove_adjustments: Optional[Iterable[subscription_create_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[subscription_create_params.RemovePrice]] | Omit = omit, + replace_adjustments: Optional[Iterable[subscription_create_params.ReplaceAdjustment]] | Omit = omit, + replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | Omit = omit, + start_date: Union[str, datetime, None] | Omit = omit, + trial_duration_days: Optional[int] | Omit = omit, + usage_customer_ids: Optional[SequenceNotStr[str]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """A subscription represents the purchase of a plan by a customer. @@ -507,17 +507,17 @@ def update( self, subscription_id: str, *, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, + auto_collection: Optional[bool] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Subscription: """ @@ -583,21 +583,21 @@ def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[SequenceNotStr[str]] | Omit = omit, + external_customer_id: Optional[SequenceNotStr[str]] | Omit = omit, + limit: int | Omit = omit, + status: Optional[Literal["active", "ended", "upcoming"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[Subscription]: """ This endpoint returns a list of all subscriptions for an account as a @@ -655,14 +655,14 @@ def cancel( subscription_id: str, *, cancel_option: Literal["end_of_subscription_term", "immediate", "requested_date"], - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - cancellation_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + cancellation_date: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint can be used to cancel an existing subscription. @@ -780,7 +780,7 @@ def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Subscription: """ This endpoint is used to fetch a [Subscription](/core-concepts##subscription) @@ -809,16 +809,16 @@ def fetch_costs( self, subscription_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionFetchCostsResponse: """ This endpoint is used to fetch a day-by-day snapshot of a subscription's costs @@ -878,18 +878,18 @@ def fetch_schedule( self, subscription_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - start_date_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + start_date_gt: Union[str, datetime, None] | Omit = omit, + start_date_gte: Union[str, datetime, None] | Omit = omit, + start_date_lt: Union[str, datetime, None] | Omit = omit, + start_date_lte: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SyncPage[SubscriptionFetchScheduleResponse]: """ This endpoint returns a [paginated](/api-reference/pagination) list of all plans @@ -940,22 +940,22 @@ def fetch_usage( self, subscription_id: str, *, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - first_dimension_key: Optional[str] | NotGiven = NOT_GIVEN, - first_dimension_value: Optional[str] | NotGiven = NOT_GIVEN, - granularity: Optional[Literal["day"]] | NotGiven = NOT_GIVEN, - group_by: Optional[str] | NotGiven = NOT_GIVEN, - second_dimension_key: Optional[str] | NotGiven = NOT_GIVEN, - second_dimension_value: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + first_dimension_key: Optional[str] | Omit = omit, + first_dimension_value: Optional[str] | Omit = omit, + granularity: Optional[Literal["day"]] | Omit = omit, + group_by: Optional[str] | Omit = omit, + second_dimension_key: Optional[str] | Omit = omit, + second_dimension_value: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionUsage: """This endpoint is used to fetch a subscription's usage in Orb. @@ -1215,17 +1215,17 @@ def price_intervals( self, subscription_id: str, *, - add: Iterable[subscription_price_intervals_params.Add] | NotGiven = NOT_GIVEN, - add_adjustments: Iterable[subscription_price_intervals_params.AddAdjustment] | NotGiven = NOT_GIVEN, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - edit: Iterable[subscription_price_intervals_params.Edit] | NotGiven = NOT_GIVEN, - edit_adjustments: Iterable[subscription_price_intervals_params.EditAdjustment] | NotGiven = NOT_GIVEN, + add: Iterable[subscription_price_intervals_params.Add] | Omit = omit, + add_adjustments: Iterable[subscription_price_intervals_params.AddAdjustment] | Omit = omit, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + edit: Iterable[subscription_price_intervals_params.Edit] | Omit = omit, + edit_adjustments: Iterable[subscription_price_intervals_params.EditAdjustment] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1354,16 +1354,16 @@ def redeem_coupon( subscription_id: str, *, change_option: Literal["requested_date", "end_of_subscription_term", "immediate"], - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - coupon_id: Optional[str] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + change_date: Union[str, datetime, None] | Omit = omit, + coupon_id: Optional[str] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1420,42 +1420,38 @@ def schedule_plan_change( subscription_id: str, *, change_option: Literal["requested_date", "end_of_subscription_term", "immediate"], - add_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.AddAdjustment]] - | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[subscription_schedule_plan_change_params.AddPrice]] | NotGiven = NOT_GIVEN, - align_billing_with_plan_change_date: Optional[bool] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_alignment: Optional[Literal["unchanged", "plan_change_date", "start_of_month"]] - | NotGiven = NOT_GIVEN, - billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | NotGiven = NOT_GIVEN, - change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - credits_overage_rate: Optional[float] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - initial_phase_order: Optional[int] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - per_credit_overage_amount: Optional[float] | NotGiven = NOT_GIVEN, - plan_id: Optional[str] | NotGiven = NOT_GIVEN, - plan_version_number: Optional[int] | NotGiven = NOT_GIVEN, - price_overrides: Optional[Iterable[object]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.RemoveAdjustment]] - | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[subscription_schedule_plan_change_params.RemovePrice]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[subscription_schedule_plan_change_params.AddPrice]] | Omit = omit, + align_billing_with_plan_change_date: Optional[bool] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + billing_cycle_alignment: Optional[Literal["unchanged", "plan_change_date", "start_of_month"]] | Omit = omit, + billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | Omit = omit, + change_date: Union[str, datetime, None] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, + credits_overage_rate: Optional[float] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + initial_phase_order: Optional[int] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + per_credit_overage_amount: Optional[float] | Omit = omit, + plan_id: Optional[str] | Omit = omit, + plan_version_number: Optional[int] | Omit = omit, + price_overrides: Optional[Iterable[object]] | Omit = omit, + remove_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[subscription_schedule_plan_change_params.RemovePrice]] | Omit = omit, replace_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] - | NotGiven = NOT_GIVEN, - trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, - usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, + | Omit = omit, + replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] | Omit = omit, + trial_duration_days: Optional[int] | Omit = omit, + usage_customer_ids: Optional[SequenceNotStr[str]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint can be used to change an existing subscription's plan. @@ -1782,14 +1778,14 @@ def trigger_phase( self, subscription_id: str, *, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + effective_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1844,7 +1840,7 @@ def unschedule_cancellation( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1890,7 +1886,7 @@ def unschedule_fixed_fee_quantity_updates( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1940,7 +1936,7 @@ def unschedule_pending_plan_changes( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -1978,15 +1974,15 @@ def update_fixed_fee_quantity( *, price_id: str, quantity: float, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - change_option: Literal["immediate", "upcoming_invoice", "effective_date"] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + change_option: Literal["immediate", "upcoming_invoice", "effective_date"] | Omit = omit, + effective_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -2059,13 +2055,13 @@ def update_trial( subscription_id: str, *, trial_end_date: Union[Union[str, datetime], Literal["immediate"]], - shift: bool | NotGiven = NOT_GIVEN, + shift: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint is used to update the trial end date for a subscription. @@ -2151,45 +2147,45 @@ def with_streaming_response(self) -> AsyncSubscriptionsWithStreamingResponse: async def create( self, *, - add_adjustments: Optional[Iterable[subscription_create_params.AddAdjustment]] | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[subscription_create_params.AddPrice]] | NotGiven = NOT_GIVEN, - align_billing_with_subscription_start_date: bool | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - aws_region: Optional[str] | NotGiven = NOT_GIVEN, - billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - credits_overage_rate: Optional[float] | NotGiven = NOT_GIVEN, - currency: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[str] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - end_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[str] | NotGiven = NOT_GIVEN, - external_marketplace: Optional[Literal["google", "aws", "azure"]] | NotGiven = NOT_GIVEN, - external_marketplace_reporting_id: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - initial_phase_order: Optional[int] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - name: Optional[str] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - per_credit_overage_amount: Optional[float] | NotGiven = NOT_GIVEN, - plan_id: Optional[str] | NotGiven = NOT_GIVEN, - plan_version_number: Optional[int] | NotGiven = NOT_GIVEN, - price_overrides: Optional[Iterable[object]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[subscription_create_params.RemoveAdjustment]] | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[subscription_create_params.RemovePrice]] | NotGiven = NOT_GIVEN, - replace_adjustments: Optional[Iterable[subscription_create_params.ReplaceAdjustment]] | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | NotGiven = NOT_GIVEN, - start_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, - usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[subscription_create_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[subscription_create_params.AddPrice]] | Omit = omit, + align_billing_with_subscription_start_date: bool | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + aws_region: Optional[str] | Omit = omit, + billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, + credits_overage_rate: Optional[float] | Omit = omit, + currency: Optional[str] | Omit = omit, + customer_id: Optional[str] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + end_date: Union[str, datetime, None] | Omit = omit, + external_customer_id: Optional[str] | Omit = omit, + external_marketplace: Optional[Literal["google", "aws", "azure"]] | Omit = omit, + external_marketplace_reporting_id: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + initial_phase_order: Optional[int] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + name: Optional[str] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + per_credit_overage_amount: Optional[float] | Omit = omit, + plan_id: Optional[str] | Omit = omit, + plan_version_number: Optional[int] | Omit = omit, + price_overrides: Optional[Iterable[object]] | Omit = omit, + remove_adjustments: Optional[Iterable[subscription_create_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[subscription_create_params.RemovePrice]] | Omit = omit, + replace_adjustments: Optional[Iterable[subscription_create_params.ReplaceAdjustment]] | Omit = omit, + replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | Omit = omit, + start_date: Union[str, datetime, None] | Omit = omit, + trial_duration_days: Optional[int] | Omit = omit, + usage_customer_ids: Optional[SequenceNotStr[str]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """A subscription represents the purchase of a plan by a customer. @@ -2593,17 +2589,17 @@ async def update( self, subscription_id: str, *, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, + auto_collection: Optional[bool] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + metadata: Optional[Dict[str, Optional[str]]] | Omit = omit, + net_terms: Optional[int] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> Subscription: """ @@ -2669,21 +2665,21 @@ async def update( def list( self, *, - created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - external_customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN, + created_at_gt: Union[str, datetime, None] | Omit = omit, + created_at_gte: Union[str, datetime, None] | Omit = omit, + created_at_lt: Union[str, datetime, None] | Omit = omit, + created_at_lte: Union[str, datetime, None] | Omit = omit, + cursor: Optional[str] | Omit = omit, + customer_id: Optional[SequenceNotStr[str]] | Omit = omit, + external_customer_id: Optional[SequenceNotStr[str]] | Omit = omit, + limit: int | Omit = omit, + status: Optional[Literal["active", "ended", "upcoming"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[Subscription, AsyncPage[Subscription]]: """ This endpoint returns a list of all subscriptions for an account as a @@ -2741,14 +2737,14 @@ async def cancel( subscription_id: str, *, cancel_option: Literal["end_of_subscription_term", "immediate", "requested_date"], - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - cancellation_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + cancellation_date: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint can be used to cancel an existing subscription. @@ -2866,7 +2862,7 @@ async def fetch( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> Subscription: """ This endpoint is used to fetch a [Subscription](/core-concepts##subscription) @@ -2895,16 +2891,16 @@ async def fetch_costs( self, subscription_id: str, *, - currency: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + currency: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionFetchCostsResponse: """ This endpoint is used to fetch a day-by-day snapshot of a subscription's costs @@ -2964,18 +2960,18 @@ def fetch_schedule( self, subscription_id: str, *, - cursor: Optional[str] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - start_date_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - start_date_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + cursor: Optional[str] | Omit = omit, + limit: int | Omit = omit, + start_date_gt: Union[str, datetime, None] | Omit = omit, + start_date_gte: Union[str, datetime, None] | Omit = omit, + start_date_lt: Union[str, datetime, None] | Omit = omit, + start_date_lte: Union[str, datetime, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> AsyncPaginator[SubscriptionFetchScheduleResponse, AsyncPage[SubscriptionFetchScheduleResponse]]: """ This endpoint returns a [paginated](/api-reference/pagination) list of all plans @@ -3026,22 +3022,22 @@ async def fetch_usage( self, subscription_id: str, *, - billable_metric_id: Optional[str] | NotGiven = NOT_GIVEN, - first_dimension_key: Optional[str] | NotGiven = NOT_GIVEN, - first_dimension_value: Optional[str] | NotGiven = NOT_GIVEN, - granularity: Optional[Literal["day"]] | NotGiven = NOT_GIVEN, - group_by: Optional[str] | NotGiven = NOT_GIVEN, - second_dimension_key: Optional[str] | NotGiven = NOT_GIVEN, - second_dimension_value: Optional[str] | NotGiven = NOT_GIVEN, - timeframe_end: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - timeframe_start: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - view_mode: Optional[Literal["periodic", "cumulative"]] | NotGiven = NOT_GIVEN, + billable_metric_id: Optional[str] | Omit = omit, + first_dimension_key: Optional[str] | Omit = omit, + first_dimension_value: Optional[str] | Omit = omit, + granularity: Optional[Literal["day"]] | Omit = omit, + group_by: Optional[str] | Omit = omit, + second_dimension_key: Optional[str] | Omit = omit, + second_dimension_value: Optional[str] | Omit = omit, + timeframe_end: Union[str, datetime, None] | Omit = omit, + timeframe_start: Union[str, datetime, None] | Omit = omit, + view_mode: Optional[Literal["periodic", "cumulative"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SubscriptionUsage: """This endpoint is used to fetch a subscription's usage in Orb. @@ -3301,17 +3297,17 @@ async def price_intervals( self, subscription_id: str, *, - add: Iterable[subscription_price_intervals_params.Add] | NotGiven = NOT_GIVEN, - add_adjustments: Iterable[subscription_price_intervals_params.AddAdjustment] | NotGiven = NOT_GIVEN, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - edit: Iterable[subscription_price_intervals_params.Edit] | NotGiven = NOT_GIVEN, - edit_adjustments: Iterable[subscription_price_intervals_params.EditAdjustment] | NotGiven = NOT_GIVEN, + add: Iterable[subscription_price_intervals_params.Add] | Omit = omit, + add_adjustments: Iterable[subscription_price_intervals_params.AddAdjustment] | Omit = omit, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + edit: Iterable[subscription_price_intervals_params.Edit] | Omit = omit, + edit_adjustments: Iterable[subscription_price_intervals_params.EditAdjustment] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -3440,16 +3436,16 @@ async def redeem_coupon( subscription_id: str, *, change_option: Literal["requested_date", "end_of_subscription_term", "immediate"], - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - coupon_id: Optional[str] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + change_date: Union[str, datetime, None] | Omit = omit, + coupon_id: Optional[str] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -3506,42 +3502,38 @@ async def schedule_plan_change( subscription_id: str, *, change_option: Literal["requested_date", "end_of_subscription_term", "immediate"], - add_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.AddAdjustment]] - | NotGiven = NOT_GIVEN, - add_prices: Optional[Iterable[subscription_schedule_plan_change_params.AddPrice]] | NotGiven = NOT_GIVEN, - align_billing_with_plan_change_date: Optional[bool] | NotGiven = NOT_GIVEN, - auto_collection: Optional[bool] | NotGiven = NOT_GIVEN, - billing_cycle_alignment: Optional[Literal["unchanged", "plan_change_date", "start_of_month"]] - | NotGiven = NOT_GIVEN, - billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | NotGiven = NOT_GIVEN, - change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, - coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN, - credits_overage_rate: Optional[float] | NotGiven = NOT_GIVEN, - default_invoice_memo: Optional[str] | NotGiven = NOT_GIVEN, - external_plan_id: Optional[str] | NotGiven = NOT_GIVEN, - filter: Optional[str] | NotGiven = NOT_GIVEN, - initial_phase_order: Optional[int] | NotGiven = NOT_GIVEN, - invoicing_threshold: Optional[str] | NotGiven = NOT_GIVEN, - net_terms: Optional[int] | NotGiven = NOT_GIVEN, - per_credit_overage_amount: Optional[float] | NotGiven = NOT_GIVEN, - plan_id: Optional[str] | NotGiven = NOT_GIVEN, - plan_version_number: Optional[int] | NotGiven = NOT_GIVEN, - price_overrides: Optional[Iterable[object]] | NotGiven = NOT_GIVEN, - remove_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.RemoveAdjustment]] - | NotGiven = NOT_GIVEN, - remove_prices: Optional[Iterable[subscription_schedule_plan_change_params.RemovePrice]] | NotGiven = NOT_GIVEN, + add_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.AddAdjustment]] | Omit = omit, + add_prices: Optional[Iterable[subscription_schedule_plan_change_params.AddPrice]] | Omit = omit, + align_billing_with_plan_change_date: Optional[bool] | Omit = omit, + auto_collection: Optional[bool] | Omit = omit, + billing_cycle_alignment: Optional[Literal["unchanged", "plan_change_date", "start_of_month"]] | Omit = omit, + billing_cycle_anchor_configuration: Optional[BillingCycleAnchorConfiguration] | Omit = omit, + change_date: Union[str, datetime, None] | Omit = omit, + coupon_redemption_code: Optional[str] | Omit = omit, + credits_overage_rate: Optional[float] | Omit = omit, + default_invoice_memo: Optional[str] | Omit = omit, + external_plan_id: Optional[str] | Omit = omit, + filter: Optional[str] | Omit = omit, + initial_phase_order: Optional[int] | Omit = omit, + invoicing_threshold: Optional[str] | Omit = omit, + net_terms: Optional[int] | Omit = omit, + per_credit_overage_amount: Optional[float] | Omit = omit, + plan_id: Optional[str] | Omit = omit, + plan_version_number: Optional[int] | Omit = omit, + price_overrides: Optional[Iterable[object]] | Omit = omit, + remove_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.RemoveAdjustment]] | Omit = omit, + remove_prices: Optional[Iterable[subscription_schedule_plan_change_params.RemovePrice]] | Omit = omit, replace_adjustments: Optional[Iterable[subscription_schedule_plan_change_params.ReplaceAdjustment]] - | NotGiven = NOT_GIVEN, - replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] - | NotGiven = NOT_GIVEN, - trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, - usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, + | Omit = omit, + replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] | Omit = omit, + trial_duration_days: Optional[int] | Omit = omit, + usage_customer_ids: Optional[SequenceNotStr[str]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint can be used to change an existing subscription's plan. @@ -3868,14 +3860,14 @@ async def trigger_phase( self, subscription_id: str, *, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + effective_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -3930,7 +3922,7 @@ async def unschedule_cancellation( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -3976,7 +3968,7 @@ async def unschedule_fixed_fee_quantity_updates( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -4026,7 +4018,7 @@ async def unschedule_pending_plan_changes( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -4064,15 +4056,15 @@ async def update_fixed_fee_quantity( *, price_id: str, quantity: float, - allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN, - change_option: Literal["immediate", "upcoming_invoice", "effective_date"] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date, None] | NotGiven = NOT_GIVEN, + allow_invoice_credit_or_void: Optional[bool] | Omit = omit, + change_option: Literal["immediate", "upcoming_invoice", "effective_date"] | Omit = omit, + effective_date: Union[str, date, None] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """ @@ -4145,13 +4137,13 @@ async def update_trial( subscription_id: str, *, trial_end_date: Union[Union[str, datetime], Literal["immediate"]], - shift: bool | NotGiven = NOT_GIVEN, + shift: bool | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> MutatedSubscription: """This endpoint is used to update the trial end date for a subscription. diff --git a/src/orb/resources/top_level.py b/src/orb/resources/top_level.py index f0f97129..e1330fdd 100644 --- a/src/orb/resources/top_level.py +++ b/src/orb/resources/top_level.py @@ -5,7 +5,7 @@ import httpx from .. import _legacy_response -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._types import Body, Query, Headers, NotGiven, not_given from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper @@ -43,7 +43,7 @@ def ping( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> TopLevelPingResponse: """ This endpoint allows you to test your connection to the Orb API and check the @@ -90,7 +90,7 @@ async def ping( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> TopLevelPingResponse: """ This endpoint allows you to test your connection to the Orb API and check the diff --git a/tests/test_transform.py b/tests/test_transform.py index ac4c3452..f01d8ce0 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -8,7 +8,7 @@ import pytest -from orb._types import NOT_GIVEN, Base64FileInput +from orb._types import Base64FileInput, omit, not_given from orb._utils import ( PropertyInfo, transform as _transform, @@ -450,4 +450,11 @@ async def test_transform_skipping(use_async: bool) -> None: @pytest.mark.asyncio async def test_strips_notgiven(use_async: bool) -> None: assert await transform({"foo_bar": "bar"}, Foo1, use_async) == {"fooBar": "bar"} - assert await transform({"foo_bar": NOT_GIVEN}, Foo1, use_async) == {} + assert await transform({"foo_bar": not_given}, Foo1, use_async) == {} + + +@parametrize +@pytest.mark.asyncio +async def test_strips_omit(use_async: bool) -> None: + assert await transform({"foo_bar": "bar"}, Foo1, use_async) == {"fooBar": "bar"} + assert await transform({"foo_bar": omit}, Foo1, use_async) == {}