From 619652113ce900fb38479ab84721de29169172e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 14:57:35 +0000 Subject: [PATCH 1/3] chore(types): change optional parameter type from NotGiven to Omit --- src/increase/__init__.py | 4 +- src/increase/_base_client.py | 18 +-- src/increase/_client.py | 24 ++-- src/increase/_qs.py | 14 +- src/increase/_types.py | 29 ++-- src/increase/_utils/_transform.py | 4 +- src/increase/_utils/_utils.py | 8 +- src/increase/resources/account_numbers.py | 70 ++++----- src/increase/resources/account_statements.py | 26 ++-- src/increase/resources/account_transfers.py | 46 +++--- src/increase/resources/accounts.py | 82 +++++------ .../resources/ach_prenotifications.py | 70 ++++----- src/increase/resources/ach_transfers.py | 114 +++++++-------- .../resources/bookkeeping_accounts.py | 46 +++--- src/increase/resources/bookkeeping_entries.py | 22 +-- .../resources/bookkeeping_entry_sets.py | 38 ++--- src/increase/resources/card_payments.py | 30 ++-- .../resources/card_purchase_supplements.py | 26 ++-- src/increase/resources/card_push_transfers.py | 50 +++---- src/increase/resources/card_tokens.py | 26 ++-- src/increase/resources/card_validations.py | 58 ++++---- src/increase/resources/cards.py | 90 ++++++------ src/increase/resources/check_deposits.py | 38 ++--- src/increase/resources/check_transfers.py | 70 ++++----- .../resources/declined_transactions.py | 34 ++--- .../resources/digital_card_profiles.py | 90 ++++++------ .../resources/digital_wallet_tokens.py | 26 ++-- src/increase/resources/documents.py | 46 +++--- src/increase/resources/entities.py | 134 +++++++++--------- src/increase/resources/event_subscriptions.py | 46 +++--- src/increase/resources/events.py | 30 ++-- src/increase/resources/exports.py | 66 ++++----- src/increase/resources/external_accounts.py | 62 ++++---- src/increase/resources/file_links.py | 10 +- src/increase/resources/files.py | 38 ++--- src/increase/resources/groups.py | 6 +- .../resources/inbound_ach_transfers.py | 58 ++++---- .../resources/inbound_check_deposits.py | 38 ++--- src/increase/resources/inbound_mail_items.py | 26 ++-- .../inbound_real_time_payments_transfers.py | 30 ++-- .../inbound_wire_drawdown_requests.py | 18 +-- .../resources/inbound_wire_transfers.py | 42 +++--- .../resources/intrafi_account_enrollments.py | 38 ++--- src/increase/resources/intrafi_balances.py | 6 +- src/increase/resources/intrafi_exclusions.py | 34 ++--- src/increase/resources/lockboxes.py | 58 ++++---- src/increase/resources/oauth_applications.py | 26 ++-- src/increase/resources/oauth_connections.py | 26 ++-- src/increase/resources/oauth_tokens.py | 22 +-- .../resources/pending_transactions.py | 50 +++---- .../resources/physical_card_profiles.py | 82 +++++------ src/increase/resources/physical_cards.py | 42 +++--- src/increase/resources/programs.py | 18 +-- src/increase/resources/real_time_decisions.py | 34 ++--- .../resources/real_time_payments_transfers.py | 78 +++++----- src/increase/resources/routing_numbers.py | 14 +- .../simulations/account_statements.py | 6 +- .../simulations/account_transfers.py | 6 +- .../resources/simulations/ach_transfers.py | 32 ++--- .../card_authorization_expirations.py | 6 +- .../simulations/card_authorizations.py | 70 ++++----- .../simulations/card_fuel_confirmations.py | 6 +- .../resources/simulations/card_increments.py | 10 +- .../resources/simulations/card_refunds.py | 6 +- .../resources/simulations/card_reversals.py | 10 +- .../resources/simulations/card_settlements.py | 10 +- .../resources/simulations/card_tokens.py | 26 ++-- .../resources/simulations/check_deposits.py | 14 +- .../resources/simulations/check_transfers.py | 6 +- .../digital_wallet_token_requests.py | 6 +- .../resources/simulations/documents.py | 6 +- .../simulations/inbound_ach_transfers.py | 46 +++--- .../simulations/inbound_check_deposits.py | 10 +- .../simulations/inbound_mail_items.py | 10 +- .../inbound_real_time_payments_transfers.py | 26 ++-- .../inbound_wire_drawdown_requests.py | 62 ++++---- .../simulations/inbound_wire_transfers.py | 62 ++++---- .../simulations/interest_payments.py | 18 +-- .../simulations/pending_transactions.py | 6 +- .../resources/simulations/physical_cards.py | 26 ++-- .../resources/simulations/programs.py | 14 +- .../real_time_payments_transfers.py | 10 +- .../simulations/wire_drawdown_requests.py | 10 +- .../resources/simulations/wire_transfers.py | 10 +- .../resources/supplemental_documents.py | 22 +-- src/increase/resources/transactions.py | 34 ++--- .../resources/wire_drawdown_requests.py | 42 +++--- src/increase/resources/wire_transfers.py | 102 ++++++------- tests/test_transform.py | 11 +- 89 files changed, 1541 insertions(+), 1531 deletions(-) diff --git a/src/increase/__init__.py b/src/increase/__init__.py index 309d15b77..740cd3665 100644 --- a/src/increase/__init__.py +++ b/src/increase/__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 ( ENVIRONMENTS, @@ -60,7 +60,9 @@ "ProxiesTypes", "NotGiven", "NOT_GIVEN", + "not_given", "Omit", + "omit", "IncreaseError", "APIError", "APIStatusError", diff --git a/src/increase/_base_client.py b/src/increase/_base_client.py index 9cee59356..8450c8488 100644 --- a/src/increase/_base_client.py +++ b/src/increase/_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 @@ -145,9 +145,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 @@ -595,7 +595,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) @@ -825,7 +825,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, @@ -1356,7 +1356,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, @@ -1818,8 +1818,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/increase/_client.py b/src/increase/_client.py index 9f1640ed8..acbde35b9 100644 --- a/src/increase/_client.py +++ b/src/increase/_client.py @@ -3,7 +3,7 @@ from __future__ import annotations import os -from typing import Any, Dict, Union, Mapping, cast +from typing import Any, Dict, Mapping, cast from typing_extensions import Self, Literal, 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, @@ -178,9 +178,9 @@ def __init__( *, api_key: str | None = None, webhook_secret: str | None = None, - environment: Literal["production", "sandbox"] | NotGiven = NOT_GIVEN, - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, + environment: Literal["production", "sandbox"] | NotGiven = not_given, + base_url: str | httpx.URL | 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, @@ -342,9 +342,9 @@ def copy( webhook_secret: str | None = None, environment: Literal["production", "sandbox"] | 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, @@ -541,9 +541,9 @@ def __init__( *, api_key: str | None = None, webhook_secret: str | None = None, - environment: Literal["production", "sandbox"] | NotGiven = NOT_GIVEN, - base_url: str | httpx.URL | None | NotGiven = NOT_GIVEN, - timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN, + environment: Literal["production", "sandbox"] | NotGiven = not_given, + base_url: str | httpx.URL | 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, @@ -707,9 +707,9 @@ def copy( webhook_secret: str | None = None, environment: Literal["production", "sandbox"] | 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/increase/_qs.py b/src/increase/_qs.py index 274320ca5..ada6fd3f7 100644 --- a/src/increase/_qs.py +++ b/src/increase/_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/increase/_types.py b/src/increase/_types.py index 5c54a7e80..b81ab29db 100644 --- a/src/increase/_types.py +++ b/src/increase/_types.py @@ -117,18 +117,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 ``` """ @@ -140,13 +143,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 @@ -156,8 +160,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}) ``` """ @@ -165,6 +169,9 @@ def __bool__(self) -> Literal[False]: return False +omit = Omit() + + @runtime_checkable class ModelBuilderProtocol(Protocol): @classmethod diff --git a/src/increase/_utils/_transform.py b/src/increase/_utils/_transform.py index c19124f0d..520754920 100644 --- a/src/increase/_utils/_transform.py +++ b/src/increase/_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/increase/_utils/_utils.py b/src/increase/_utils/_utils.py index f0818595d..50d59269a 100644 --- a/src/increase/_utils/_utils.py +++ b/src/increase/_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/increase/resources/account_numbers.py b/src/increase/resources/account_numbers.py index 14196bdc6..fa2474e34 100644 --- a/src/increase/resources/account_numbers.py +++ b/src/increase/resources/account_numbers.py @@ -7,7 +7,7 @@ import httpx from ..types import account_number_list_params, account_number_create_params, account_number_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 @@ -49,14 +49,14 @@ def create( *, account_id: str, name: str, - inbound_ach: account_number_create_params.InboundACH | NotGiven = NOT_GIVEN, - inbound_checks: account_number_create_params.InboundChecks | NotGiven = NOT_GIVEN, + inbound_ach: account_number_create_params.InboundACH | Omit = omit, + inbound_checks: account_number_create_params.InboundChecks | 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, ) -> AccountNumber: """ @@ -112,7 +112,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, ) -> AccountNumber: """ Retrieve an Account Number @@ -142,16 +142,16 @@ def update( self, account_number_id: str, *, - inbound_ach: account_number_update_params.InboundACH | NotGiven = NOT_GIVEN, - inbound_checks: account_number_update_params.InboundChecks | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + inbound_ach: account_number_update_params.InboundACH | Omit = omit, + inbound_checks: account_number_update_params.InboundChecks | Omit = omit, + name: str | Omit = omit, + status: Literal["active", "disabled", "canceled"] | 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, ) -> AccountNumber: """ @@ -209,19 +209,19 @@ def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN, - created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: account_number_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + ach_debit_status: account_number_list_params.ACHDebitStatus | Omit = omit, + created_at: account_number_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: account_number_list_params.Status | 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[AccountNumber]: """ List Account Numbers @@ -297,14 +297,14 @@ async def create( *, account_id: str, name: str, - inbound_ach: account_number_create_params.InboundACH | NotGiven = NOT_GIVEN, - inbound_checks: account_number_create_params.InboundChecks | NotGiven = NOT_GIVEN, + inbound_ach: account_number_create_params.InboundACH | Omit = omit, + inbound_checks: account_number_create_params.InboundChecks | 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, ) -> AccountNumber: """ @@ -360,7 +360,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, ) -> AccountNumber: """ Retrieve an Account Number @@ -390,16 +390,16 @@ async def update( self, account_number_id: str, *, - inbound_ach: account_number_update_params.InboundACH | NotGiven = NOT_GIVEN, - inbound_checks: account_number_update_params.InboundChecks | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + inbound_ach: account_number_update_params.InboundACH | Omit = omit, + inbound_checks: account_number_update_params.InboundChecks | Omit = omit, + name: str | Omit = omit, + status: Literal["active", "disabled", "canceled"] | 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, ) -> AccountNumber: """ @@ -457,19 +457,19 @@ async def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN, - created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: account_number_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + ach_debit_status: account_number_list_params.ACHDebitStatus | Omit = omit, + created_at: account_number_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: account_number_list_params.Status | 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[AccountNumber, AsyncPage[AccountNumber]]: """ List Account Numbers diff --git a/src/increase/resources/account_statements.py b/src/increase/resources/account_statements.py index 72a0bed63..879016421 100644 --- a/src/increase/resources/account_statements.py +++ b/src/increase/resources/account_statements.py @@ -5,7 +5,7 @@ import httpx from ..types import account_statement_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> AccountStatement: """ Retrieve an Account Statement @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - statement_period_start: account_statement_list_params.StatementPeriodStart | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + statement_period_start: account_statement_list_params.StatementPeriodStart | 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[AccountStatement]: """ List Account Statements @@ -163,7 +163,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, ) -> AccountStatement: """ Retrieve an Account Statement @@ -194,16 +194,16 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - statement_period_start: account_statement_list_params.StatementPeriodStart | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + statement_period_start: account_statement_list_params.StatementPeriodStart | 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[AccountStatement, AsyncPage[AccountStatement]]: """ List Account Statements diff --git a/src/increase/resources/account_transfers.py b/src/increase/resources/account_transfers.py index 15dc40b47..51ce62716 100644 --- a/src/increase/resources/account_transfers.py +++ b/src/increase/resources/account_transfers.py @@ -5,7 +5,7 @@ import httpx from ..types import account_transfer_list_params, account_transfer_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 @@ -49,13 +49,13 @@ def create( amount: int, description: str, destination_account_id: str, - require_approval: bool | NotGiven = NOT_GIVEN, + require_approval: 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, ) -> AccountTransfer: """ @@ -114,7 +114,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, ) -> AccountTransfer: """ Retrieve an Account Transfer @@ -145,17 +145,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: account_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: account_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[AccountTransfer]: """ List Account Transfers @@ -212,7 +212,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> AccountTransfer: """ @@ -256,7 +256,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, ) -> AccountTransfer: """ @@ -319,13 +319,13 @@ async def create( amount: int, description: str, destination_account_id: str, - require_approval: bool | NotGiven = NOT_GIVEN, + require_approval: 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, ) -> AccountTransfer: """ @@ -384,7 +384,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, ) -> AccountTransfer: """ Retrieve an Account Transfer @@ -415,17 +415,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: account_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: account_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[AccountTransfer, AsyncPage[AccountTransfer]]: """ List Account Transfers @@ -482,7 +482,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> AccountTransfer: """ @@ -526,7 +526,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, ) -> AccountTransfer: """ diff --git a/src/increase/resources/accounts.py b/src/increase/resources/accounts.py index b3a417e50..18ae97c65 100644 --- a/src/increase/resources/accounts.py +++ b/src/increase/resources/accounts.py @@ -8,7 +8,7 @@ import httpx from ..types import account_list_params, account_create_params, account_update_params, account_balance_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,15 +50,15 @@ def create( self, *, name: str, - entity_id: str | NotGiven = NOT_GIVEN, - informational_entity_id: str | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, + entity_id: str | Omit = omit, + informational_entity_id: str | Omit = omit, + program_id: 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, ) -> Account: """ @@ -115,7 +115,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, ) -> Account: """ Retrieve an Account @@ -145,14 +145,14 @@ def update( self, account_id: str, *, - credit_limit: int | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + credit_limit: int | Omit = omit, + name: 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, ) -> Account: """ @@ -200,20 +200,20 @@ def update( def list( self, *, - created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - informational_entity_id: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, - status: account_list_params.Status | NotGiven = NOT_GIVEN, + created_at: account_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + informational_entity_id: str | Omit = omit, + limit: int | Omit = omit, + program_id: str | Omit = omit, + status: account_list_params.Status | 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[Account]: """ List Accounts @@ -272,13 +272,13 @@ def balance( self, account_id: str, *, - at_time: Union[str, datetime] | NotGiven = NOT_GIVEN, + at_time: 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, ) -> BalanceLookup: """ Retrieve the current and available balances for an account in minor units of the @@ -320,7 +320,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, ) -> Account: """Close an Account @@ -379,15 +379,15 @@ async def create( self, *, name: str, - entity_id: str | NotGiven = NOT_GIVEN, - informational_entity_id: str | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, + entity_id: str | Omit = omit, + informational_entity_id: str | Omit = omit, + program_id: 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, ) -> Account: """ @@ -444,7 +444,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, ) -> Account: """ Retrieve an Account @@ -474,14 +474,14 @@ async def update( self, account_id: str, *, - credit_limit: int | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + credit_limit: int | Omit = omit, + name: 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, ) -> Account: """ @@ -529,20 +529,20 @@ async def update( def list( self, *, - created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - informational_entity_id: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, - status: account_list_params.Status | NotGiven = NOT_GIVEN, + created_at: account_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + informational_entity_id: str | Omit = omit, + limit: int | Omit = omit, + program_id: str | Omit = omit, + status: account_list_params.Status | 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[Account, AsyncPage[Account]]: """ List Accounts @@ -601,13 +601,13 @@ async def balance( self, account_id: str, *, - at_time: Union[str, datetime] | NotGiven = NOT_GIVEN, + at_time: 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, ) -> BalanceLookup: """ Retrieve the current and available balances for an account in minor units of the @@ -649,7 +649,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, ) -> Account: """Close an Account diff --git a/src/increase/resources/ach_prenotifications.py b/src/increase/resources/ach_prenotifications.py index 393e831fe..7d2af5fe1 100644 --- a/src/increase/resources/ach_prenotifications.py +++ b/src/increase/resources/ach_prenotifications.py @@ -9,7 +9,7 @@ import httpx from ..types import ach_prenotification_list_params, ach_prenotification_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 @@ -52,28 +52,28 @@ def create( account_id: str, account_number: str, routing_number: str, - addendum: str | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - credit_debit_indicator: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date] | NotGiven = NOT_GIVEN, - individual_id: str | NotGiven = NOT_GIVEN, - individual_name: str | NotGiven = NOT_GIVEN, + addendum: str | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_name: str | Omit = omit, + credit_debit_indicator: Literal["credit", "debit"] | Omit = omit, + effective_date: Union[str, date] | Omit = omit, + individual_id: str | Omit = omit, + individual_name: str | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", "prearranged_payments_and_deposit", "internet_initiated", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> ACHPrenotification: """ @@ -166,7 +166,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, ) -> ACHPrenotification: """ Retrieve an ACH Prenotification @@ -197,16 +197,16 @@ def retrieve( def list( self, *, - created_at: ach_prenotification_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at: ach_prenotification_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[ACHPrenotification]: """ List ACH Prenotifications @@ -278,28 +278,28 @@ async def create( account_id: str, account_number: str, routing_number: str, - addendum: str | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - credit_debit_indicator: Literal["credit", "debit"] | NotGiven = NOT_GIVEN, - effective_date: Union[str, date] | NotGiven = NOT_GIVEN, - individual_id: str | NotGiven = NOT_GIVEN, - individual_name: str | NotGiven = NOT_GIVEN, + addendum: str | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_name: str | Omit = omit, + credit_debit_indicator: Literal["credit", "debit"] | Omit = omit, + effective_date: Union[str, date] | Omit = omit, + individual_id: str | Omit = omit, + individual_name: str | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", "prearranged_payments_and_deposit", "internet_initiated", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> ACHPrenotification: """ @@ -392,7 +392,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, ) -> ACHPrenotification: """ Retrieve an ACH Prenotification @@ -423,16 +423,16 @@ async def retrieve( def list( self, *, - created_at: ach_prenotification_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at: ach_prenotification_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[ACHPrenotification, AsyncPage[ACHPrenotification]]: """ List ACH Prenotifications diff --git a/src/increase/resources/ach_transfers.py b/src/increase/resources/ach_transfers.py index b8ff47baa..d07b5534a 100644 --- a/src/increase/resources/ach_transfers.py +++ b/src/increase/resources/ach_transfers.py @@ -7,7 +7,7 @@ import httpx from ..types import ach_transfer_list_params, ach_transfer_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 @@ -50,34 +50,34 @@ def create( account_id: str, amount: int, statement_descriptor: str, - account_number: str | NotGiven = NOT_GIVEN, - addenda: ach_transfer_create_params.Addenda | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - destination_account_holder: Literal["business", "individual", "unknown"] | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger"] | NotGiven = NOT_GIVEN, - individual_id: str | NotGiven = NOT_GIVEN, - individual_name: str | NotGiven = NOT_GIVEN, - preferred_effective_date: ach_transfer_create_params.PreferredEffectiveDate | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, + account_number: str | Omit = omit, + addenda: ach_transfer_create_params.Addenda | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_name: str | Omit = omit, + destination_account_holder: Literal["business", "individual", "unknown"] | Omit = omit, + external_account_id: str | Omit = omit, + funding: Literal["checking", "savings", "general_ledger"] | Omit = omit, + individual_id: str | Omit = omit, + individual_name: str | Omit = omit, + preferred_effective_date: ach_transfer_create_params.PreferredEffectiveDate | Omit = omit, + require_approval: bool | Omit = omit, + routing_number: str | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", "prearranged_payments_and_deposit", "internet_initiated", ] - | NotGiven = NOT_GIVEN, - transaction_timing: Literal["synchronous", "asynchronous"] | NotGiven = NOT_GIVEN, + | Omit = omit, + transaction_timing: Literal["synchronous", "asynchronous"] | 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, ) -> ACHTransfer: """ @@ -213,7 +213,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, ) -> ACHTransfer: """ Retrieve an ACH Transfer @@ -242,19 +242,19 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: ach_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: ach_transfer_list_params.Status | 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[ACHTransfer]: """ List ACH Transfers @@ -315,7 +315,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -357,7 +357,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, ) -> ACHTransfer: """ @@ -417,34 +417,34 @@ async def create( account_id: str, amount: int, statement_descriptor: str, - account_number: str | NotGiven = NOT_GIVEN, - addenda: ach_transfer_create_params.Addenda | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - destination_account_holder: Literal["business", "individual", "unknown"] | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger"] | NotGiven = NOT_GIVEN, - individual_id: str | NotGiven = NOT_GIVEN, - individual_name: str | NotGiven = NOT_GIVEN, - preferred_effective_date: ach_transfer_create_params.PreferredEffectiveDate | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, + account_number: str | Omit = omit, + addenda: ach_transfer_create_params.Addenda | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_name: str | Omit = omit, + destination_account_holder: Literal["business", "individual", "unknown"] | Omit = omit, + external_account_id: str | Omit = omit, + funding: Literal["checking", "savings", "general_ledger"] | Omit = omit, + individual_id: str | Omit = omit, + individual_name: str | Omit = omit, + preferred_effective_date: ach_transfer_create_params.PreferredEffectiveDate | Omit = omit, + require_approval: bool | Omit = omit, + routing_number: str | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", "prearranged_payments_and_deposit", "internet_initiated", ] - | NotGiven = NOT_GIVEN, - transaction_timing: Literal["synchronous", "asynchronous"] | NotGiven = NOT_GIVEN, + | Omit = omit, + transaction_timing: Literal["synchronous", "asynchronous"] | 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, ) -> ACHTransfer: """ @@ -580,7 +580,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, ) -> ACHTransfer: """ Retrieve an ACH Transfer @@ -609,19 +609,19 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: ach_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: ach_transfer_list_params.Status | 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[ACHTransfer, AsyncPage[ACHTransfer]]: """ List ACH Transfers @@ -682,7 +682,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -724,7 +724,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, ) -> ACHTransfer: """ diff --git a/src/increase/resources/bookkeeping_accounts.py b/src/increase/resources/bookkeeping_accounts.py index 82c240637..cb7a38ea8 100644 --- a/src/increase/resources/bookkeeping_accounts.py +++ b/src/increase/resources/bookkeeping_accounts.py @@ -14,7 +14,7 @@ bookkeeping_account_update_params, bookkeeping_account_balance_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 @@ -56,15 +56,15 @@ def create( self, *, name: str, - account_id: str | NotGiven = NOT_GIVEN, - compliance_category: Literal["commingled_cash", "customer_balance"] | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + compliance_category: Literal["commingled_cash", "customer_balance"] | Omit = omit, + entity_id: 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, ) -> BookkeepingAccount: """ @@ -123,7 +123,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, ) -> BookkeepingAccount: """ @@ -164,15 +164,15 @@ def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[BookkeepingAccount]: """ List Bookkeeping Accounts @@ -220,13 +220,13 @@ def balance( self, bookkeeping_account_id: str, *, - at_time: Union[str, datetime] | NotGiven = NOT_GIVEN, + at_time: 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, ) -> BookkeepingBalanceLookup: """ Retrieve a Bookkeeping Account Balance @@ -287,15 +287,15 @@ async def create( self, *, name: str, - account_id: str | NotGiven = NOT_GIVEN, - compliance_category: Literal["commingled_cash", "customer_balance"] | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + compliance_category: Literal["commingled_cash", "customer_balance"] | Omit = omit, + entity_id: 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, ) -> BookkeepingAccount: """ @@ -354,7 +354,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, ) -> BookkeepingAccount: """ @@ -397,15 +397,15 @@ async def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[BookkeepingAccount, AsyncPage[BookkeepingAccount]]: """ List Bookkeeping Accounts @@ -453,13 +453,13 @@ async def balance( self, bookkeeping_account_id: str, *, - at_time: Union[str, datetime] | NotGiven = NOT_GIVEN, + at_time: 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, ) -> BookkeepingBalanceLookup: """ Retrieve a Bookkeeping Account Balance diff --git a/src/increase/resources/bookkeeping_entries.py b/src/increase/resources/bookkeeping_entries.py index 5a8fe0ba9..56be104f3 100644 --- a/src/increase/resources/bookkeeping_entries.py +++ b/src/increase/resources/bookkeeping_entries.py @@ -5,7 +5,7 @@ import httpx from ..types import bookkeeping_entry_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> BookkeepingEntry: """ Retrieve a Bookkeeping Entry @@ -82,15 +82,15 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: 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[BookkeepingEntry]: """ List Bookkeeping Entries @@ -161,7 +161,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, ) -> BookkeepingEntry: """ Retrieve a Bookkeeping Entry @@ -192,15 +192,15 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: 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[BookkeepingEntry, AsyncPage[BookkeepingEntry]]: """ List Bookkeeping Entries diff --git a/src/increase/resources/bookkeeping_entry_sets.py b/src/increase/resources/bookkeeping_entry_sets.py index ccace983c..c437c6185 100644 --- a/src/increase/resources/bookkeeping_entry_sets.py +++ b/src/increase/resources/bookkeeping_entry_sets.py @@ -8,7 +8,7 @@ import httpx from ..types import bookkeeping_entry_set_list_params, bookkeeping_entry_set_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 @@ -49,14 +49,14 @@ def create( self, *, entries: Iterable[bookkeeping_entry_set_create_params.Entry], - date: Union[str, datetime] | NotGiven = NOT_GIVEN, - transaction_id: str | NotGiven = NOT_GIVEN, + date: Union[str, datetime] | Omit = omit, + transaction_id: 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, ) -> BookkeepingEntrySet: """ @@ -109,7 +109,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, ) -> BookkeepingEntrySet: """ Retrieve a Bookkeeping Entry Set @@ -140,16 +140,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - transaction_id: str | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + transaction_id: 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[BookkeepingEntrySet]: """ List Bookkeeping Entry Sets @@ -221,14 +221,14 @@ async def create( self, *, entries: Iterable[bookkeeping_entry_set_create_params.Entry], - date: Union[str, datetime] | NotGiven = NOT_GIVEN, - transaction_id: str | NotGiven = NOT_GIVEN, + date: Union[str, datetime] | Omit = omit, + transaction_id: 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, ) -> BookkeepingEntrySet: """ @@ -281,7 +281,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, ) -> BookkeepingEntrySet: """ Retrieve a Bookkeeping Entry Set @@ -312,16 +312,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - transaction_id: str | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + transaction_id: 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[BookkeepingEntrySet, AsyncPage[BookkeepingEntrySet]]: """ List Bookkeeping Entry Sets diff --git a/src/increase/resources/card_payments.py b/src/increase/resources/card_payments.py index 6ba08b132..c314d0e6c 100644 --- a/src/increase/resources/card_payments.py +++ b/src/increase/resources/card_payments.py @@ -5,7 +5,7 @@ import httpx from ..types import card_payment_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> CardPayment: """ Retrieve a Card Payment @@ -80,17 +80,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - card_id: str | NotGiven = NOT_GIVEN, - created_at: card_payment_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + card_id: str | Omit = omit, + created_at: card_payment_list_params.CreatedAt | Omit = omit, + cursor: 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[CardPayment]: """ List Card Payments @@ -165,7 +165,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, ) -> CardPayment: """ Retrieve a Card Payment @@ -194,17 +194,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - card_id: str | NotGiven = NOT_GIVEN, - created_at: card_payment_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + card_id: str | Omit = omit, + created_at: card_payment_list_params.CreatedAt | Omit = omit, + cursor: 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[CardPayment, AsyncPage[CardPayment]]: """ List Card Payments diff --git a/src/increase/resources/card_purchase_supplements.py b/src/increase/resources/card_purchase_supplements.py index 7b926776e..c768f0946 100644 --- a/src/increase/resources/card_purchase_supplements.py +++ b/src/increase/resources/card_purchase_supplements.py @@ -5,7 +5,7 @@ import httpx from ..types import card_purchase_supplement_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> CardPurchaseSupplement: """ Retrieve a Card Purchase Supplement @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - card_payment_id: str | NotGiven = NOT_GIVEN, - created_at: card_purchase_supplement_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_payment_id: str | Omit = omit, + created_at: card_purchase_supplement_list_params.CreatedAt | Omit = omit, + cursor: 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[CardPurchaseSupplement]: """ List Card Purchase Supplements @@ -164,7 +164,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, ) -> CardPurchaseSupplement: """ Retrieve a Card Purchase Supplement @@ -195,16 +195,16 @@ async def retrieve( def list( self, *, - card_payment_id: str | NotGiven = NOT_GIVEN, - created_at: card_purchase_supplement_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_payment_id: str | Omit = omit, + created_at: card_purchase_supplement_list_params.CreatedAt | Omit = omit, + cursor: 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[CardPurchaseSupplement, AsyncPage[CardPurchaseSupplement]]: """ List Card Purchase Supplements diff --git a/src/increase/resources/card_push_transfers.py b/src/increase/resources/card_push_transfers.py index c28035cef..41ebcec9f 100644 --- a/src/increase/resources/card_push_transfers.py +++ b/src/increase/resources/card_push_transfers.py @@ -7,7 +7,7 @@ import httpx from ..types import card_push_transfer_list_params, card_push_transfer_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 @@ -78,13 +78,13 @@ def create( sender_address_state: str, sender_name: str, source_account_number_id: str, - require_approval: bool | NotGiven = NOT_GIVEN, + require_approval: 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, ) -> CardPushTransfer: """Create a Card Push Transfer @@ -203,7 +203,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, ) -> CardPushTransfer: """ Retrieve a Card Push Transfer @@ -234,18 +234,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_push_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_push_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_push_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_push_transfer_list_params.Status | 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[CardPushTransfer]: """ List Card Push Transfers @@ -303,7 +303,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> CardPushTransfer: """ @@ -347,7 +347,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, ) -> CardPushTransfer: """ @@ -437,13 +437,13 @@ async def create( sender_address_state: str, sender_name: str, source_account_number_id: str, - require_approval: bool | NotGiven = NOT_GIVEN, + require_approval: 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, ) -> CardPushTransfer: """Create a Card Push Transfer @@ -562,7 +562,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, ) -> CardPushTransfer: """ Retrieve a Card Push Transfer @@ -593,18 +593,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_push_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_push_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_push_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_push_transfer_list_params.Status | 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[CardPushTransfer, AsyncPage[CardPushTransfer]]: """ List Card Push Transfers @@ -662,7 +662,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> CardPushTransfer: """ @@ -706,7 +706,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, ) -> CardPushTransfer: """ diff --git a/src/increase/resources/card_tokens.py b/src/increase/resources/card_tokens.py index 37fbd236e..c00023910 100644 --- a/src/increase/resources/card_tokens.py +++ b/src/increase/resources/card_tokens.py @@ -5,7 +5,7 @@ import httpx from ..types import card_token_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -52,7 +52,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, ) -> CardToken: """ Retrieve a Card Token @@ -81,15 +81,15 @@ def retrieve( def list( self, *, - created_at: card_token_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at: card_token_list_params.CreatedAt | Omit = omit, + cursor: 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[CardToken]: """ List Card Tokens @@ -137,7 +137,7 @@ def capabilities( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CardTokenCapabilities: """ The capabilities of a Card Token describe whether the card can be used for @@ -195,7 +195,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, ) -> CardToken: """ Retrieve a Card Token @@ -224,15 +224,15 @@ async def retrieve( def list( self, *, - created_at: card_token_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + created_at: card_token_list_params.CreatedAt | Omit = omit, + cursor: 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[CardToken, AsyncPage[CardToken]]: """ List Card Tokens @@ -280,7 +280,7 @@ async def capabilities( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CardTokenCapabilities: """ The capabilities of a Card Token describe whether the card can be used for diff --git a/src/increase/resources/card_validations.py b/src/increase/resources/card_validations.py index d1a94f6a6..e24a34ac7 100644 --- a/src/increase/resources/card_validations.py +++ b/src/increase/resources/card_validations.py @@ -5,7 +5,7 @@ import httpx from ..types import card_validation_list_params, card_validation_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 @@ -52,17 +52,17 @@ def create( merchant_name: str, merchant_postal_code: str, merchant_state: str, - cardholder_first_name: str | NotGiven = NOT_GIVEN, - cardholder_last_name: str | NotGiven = NOT_GIVEN, - cardholder_middle_name: str | NotGiven = NOT_GIVEN, - cardholder_postal_code: str | NotGiven = NOT_GIVEN, - cardholder_street_address: str | NotGiven = NOT_GIVEN, + cardholder_first_name: str | Omit = omit, + cardholder_last_name: str | Omit = omit, + cardholder_middle_name: str | Omit = omit, + cardholder_postal_code: str | Omit = omit, + cardholder_street_address: 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, ) -> CardValidation: """ @@ -144,7 +144,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, ) -> CardValidation: """ Retrieve a Card Validation @@ -173,18 +173,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_validation_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_validation_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_validation_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_validation_list_params.Status | 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[CardValidation]: """ List Card Validations @@ -264,17 +264,17 @@ async def create( merchant_name: str, merchant_postal_code: str, merchant_state: str, - cardholder_first_name: str | NotGiven = NOT_GIVEN, - cardholder_last_name: str | NotGiven = NOT_GIVEN, - cardholder_middle_name: str | NotGiven = NOT_GIVEN, - cardholder_postal_code: str | NotGiven = NOT_GIVEN, - cardholder_street_address: str | NotGiven = NOT_GIVEN, + cardholder_first_name: str | Omit = omit, + cardholder_last_name: str | Omit = omit, + cardholder_middle_name: str | Omit = omit, + cardholder_postal_code: str | Omit = omit, + cardholder_street_address: 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, ) -> CardValidation: """ @@ -356,7 +356,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, ) -> CardValidation: """ Retrieve a Card Validation @@ -385,18 +385,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_validation_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_validation_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_validation_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_validation_list_params.Status | 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[CardValidation, AsyncPage[CardValidation]]: """ List Card Validations diff --git a/src/increase/resources/cards.py b/src/increase/resources/cards.py index 5f44c9a85..5256867bb 100644 --- a/src/increase/resources/cards.py +++ b/src/increase/resources/cards.py @@ -7,7 +7,7 @@ import httpx from ..types import card_list_params, card_create_params, card_update_params, card_create_details_iframe_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,16 +50,16 @@ def create( self, *, account_id: str, - billing_address: card_create_params.BillingAddress | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - digital_wallet: card_create_params.DigitalWallet | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, + billing_address: card_create_params.BillingAddress | Omit = omit, + description: str | Omit = omit, + digital_wallet: card_create_params.DigitalWallet | Omit = omit, + entity_id: 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, ) -> Card: """ @@ -122,7 +122,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, ) -> Card: """ Retrieve a Card @@ -152,17 +152,17 @@ def update( self, card_id: str, *, - billing_address: card_update_params.BillingAddress | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - digital_wallet: card_update_params.DigitalWallet | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + billing_address: card_update_params.BillingAddress | Omit = omit, + description: str | Omit = omit, + digital_wallet: card_update_params.DigitalWallet | Omit = omit, + entity_id: str | Omit = omit, + status: Literal["active", "disabled", "canceled"] | 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, ) -> Card: """ @@ -225,18 +225,18 @@ def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_list_params.Status | 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[Card]: """ List Cards @@ -289,13 +289,13 @@ def create_details_iframe( self, card_id: str, *, - physical_card_id: str | NotGiven = NOT_GIVEN, + physical_card_id: 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, ) -> CardIframeURL: """Create an iframe URL for a Card to display the card details. @@ -345,7 +345,7 @@ def details( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CardDetails: """ Sensitive details for a Card include the primary account number, expiry, card @@ -397,16 +397,16 @@ async def create( self, *, account_id: str, - billing_address: card_create_params.BillingAddress | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - digital_wallet: card_create_params.DigitalWallet | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, + billing_address: card_create_params.BillingAddress | Omit = omit, + description: str | Omit = omit, + digital_wallet: card_create_params.DigitalWallet | Omit = omit, + entity_id: 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, ) -> Card: """ @@ -469,7 +469,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, ) -> Card: """ Retrieve a Card @@ -499,17 +499,17 @@ async def update( self, card_id: str, *, - billing_address: card_update_params.BillingAddress | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - digital_wallet: card_update_params.DigitalWallet | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - status: Literal["active", "disabled", "canceled"] | NotGiven = NOT_GIVEN, + billing_address: card_update_params.BillingAddress | Omit = omit, + description: str | Omit = omit, + digital_wallet: card_update_params.DigitalWallet | Omit = omit, + entity_id: str | Omit = omit, + status: Literal["active", "disabled", "canceled"] | 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, ) -> Card: """ @@ -572,18 +572,18 @@ async def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: card_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: card_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: card_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: card_list_params.Status | 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[Card, AsyncPage[Card]]: """ List Cards @@ -636,13 +636,13 @@ async def create_details_iframe( self, card_id: str, *, - physical_card_id: str | NotGiven = NOT_GIVEN, + physical_card_id: 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, ) -> CardIframeURL: """Create an iframe URL for a Card to display the card details. @@ -692,7 +692,7 @@ async def details( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> CardDetails: """ Sensitive details for a Card include the primary account number, expiry, card diff --git a/src/increase/resources/check_deposits.py b/src/increase/resources/check_deposits.py index d5ab3cbc9..2683f91aa 100644 --- a/src/increase/resources/check_deposits.py +++ b/src/increase/resources/check_deposits.py @@ -5,7 +5,7 @@ import httpx from ..types import check_deposit_list_params, check_deposit_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 @@ -49,13 +49,13 @@ def create( amount: int, back_image_file_id: str, front_image_file_id: str, - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> CheckDeposit: """ @@ -113,7 +113,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, ) -> CheckDeposit: """ Retrieve a Check Deposit @@ -142,17 +142,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: check_deposit_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: check_deposit_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[CheckDeposit]: """ List Check Deposits @@ -228,13 +228,13 @@ async def create( amount: int, back_image_file_id: str, front_image_file_id: str, - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> CheckDeposit: """ @@ -292,7 +292,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, ) -> CheckDeposit: """ Retrieve a Check Deposit @@ -321,17 +321,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: check_deposit_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: check_deposit_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[CheckDeposit, AsyncPage[CheckDeposit]]: """ List Check Deposits diff --git a/src/increase/resources/check_transfers.py b/src/increase/resources/check_transfers.py index 5b16ab167..3026b2df1 100644 --- a/src/increase/resources/check_transfers.py +++ b/src/increase/resources/check_transfers.py @@ -7,7 +7,7 @@ import httpx from ..types import check_transfer_list_params, check_transfer_create_params, check_transfer_stop_payment_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 @@ -51,16 +51,16 @@ def create( amount: int, fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, - check_number: str | NotGiven = NOT_GIVEN, - physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN, + check_number: str | Omit = omit, + physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit, + require_approval: bool | Omit = omit, + third_party: check_transfer_create_params.ThirdParty | 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, ) -> CheckTransfer: """ @@ -139,7 +139,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, ) -> CheckTransfer: """ Retrieve a Check Transfer @@ -168,18 +168,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: check_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: check_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: check_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: check_transfer_list_params.Status | 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[CheckTransfer]: """ List Check Transfers @@ -237,7 +237,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckTransfer: """ @@ -279,7 +279,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, ) -> CheckTransfer: """ @@ -316,13 +316,13 @@ def stop_payment( self, check_transfer_id: str, *, - reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | NotGiven = NOT_GIVEN, + reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | 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, ) -> CheckTransfer: """ @@ -390,16 +390,16 @@ async def create( amount: int, fulfillment_method: Literal["physical_check", "third_party"], source_account_number_id: str, - check_number: str | NotGiven = NOT_GIVEN, - physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN, + check_number: str | Omit = omit, + physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit, + require_approval: bool | Omit = omit, + third_party: check_transfer_create_params.ThirdParty | 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, ) -> CheckTransfer: """ @@ -478,7 +478,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, ) -> CheckTransfer: """ Retrieve a Check Transfer @@ -507,18 +507,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: check_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: check_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: check_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: check_transfer_list_params.Status | 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[CheckTransfer, AsyncPage[CheckTransfer]]: """ List Check Transfers @@ -576,7 +576,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckTransfer: """ @@ -618,7 +618,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, ) -> CheckTransfer: """ @@ -655,13 +655,13 @@ async def stop_payment( self, check_transfer_id: str, *, - reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | NotGiven = NOT_GIVEN, + reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | 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, ) -> CheckTransfer: """ diff --git a/src/increase/resources/declined_transactions.py b/src/increase/resources/declined_transactions.py index 7ef7c640e..17f7eab97 100644 --- a/src/increase/resources/declined_transactions.py +++ b/src/increase/resources/declined_transactions.py @@ -5,7 +5,7 @@ import httpx from ..types import declined_transaction_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> DeclinedTransaction: """ Retrieve a Declined Transaction @@ -82,18 +82,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: declined_transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: declined_transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: declined_transaction_list_params.Category | Omit = omit, + created_at: declined_transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: 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[DeclinedTransaction]: """ List Declined Transactions @@ -169,7 +169,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, ) -> DeclinedTransaction: """ Retrieve a Declined Transaction @@ -200,18 +200,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: declined_transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: declined_transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: declined_transaction_list_params.Category | Omit = omit, + created_at: declined_transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: 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[DeclinedTransaction, AsyncPage[DeclinedTransaction]]: """ List Declined Transactions diff --git a/src/increase/resources/digital_card_profiles.py b/src/increase/resources/digital_card_profiles.py index 0c1426b54..84cbd1292 100644 --- a/src/increase/resources/digital_card_profiles.py +++ b/src/increase/resources/digital_card_profiles.py @@ -9,7 +9,7 @@ digital_card_profile_clone_params, digital_card_profile_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 @@ -54,16 +54,16 @@ def create( card_description: str, description: str, issuer_name: str, - contact_email: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - contact_website: str | NotGiven = NOT_GIVEN, - text_color: digital_card_profile_create_params.TextColor | NotGiven = NOT_GIVEN, + contact_email: str | Omit = omit, + contact_phone: str | Omit = omit, + contact_website: str | Omit = omit, + text_color: digital_card_profile_create_params.TextColor | 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, ) -> DigitalCardProfile: """ @@ -133,7 +133,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, ) -> DigitalCardProfile: """ Retrieve a Digital Card Profile @@ -164,16 +164,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: digital_card_profile_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: digital_card_profile_list_params.Status | 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[DigitalCardProfile]: """ List Card Profiles @@ -227,7 +227,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, ) -> DigitalCardProfile: """ @@ -266,21 +266,21 @@ def clone( self, digital_card_profile_id: str, *, - app_icon_file_id: str | NotGiven = NOT_GIVEN, - background_image_file_id: str | NotGiven = NOT_GIVEN, - card_description: str | NotGiven = NOT_GIVEN, - contact_email: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - contact_website: str | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - issuer_name: str | NotGiven = NOT_GIVEN, - text_color: digital_card_profile_clone_params.TextColor | NotGiven = NOT_GIVEN, + app_icon_file_id: str | Omit = omit, + background_image_file_id: str | Omit = omit, + card_description: str | Omit = omit, + contact_email: str | Omit = omit, + contact_phone: str | Omit = omit, + contact_website: str | Omit = omit, + description: str | Omit = omit, + issuer_name: str | Omit = omit, + text_color: digital_card_profile_clone_params.TextColor | 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, ) -> DigitalCardProfile: """ @@ -376,16 +376,16 @@ async def create( card_description: str, description: str, issuer_name: str, - contact_email: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - contact_website: str | NotGiven = NOT_GIVEN, - text_color: digital_card_profile_create_params.TextColor | NotGiven = NOT_GIVEN, + contact_email: str | Omit = omit, + contact_phone: str | Omit = omit, + contact_website: str | Omit = omit, + text_color: digital_card_profile_create_params.TextColor | 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, ) -> DigitalCardProfile: """ @@ -455,7 +455,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, ) -> DigitalCardProfile: """ Retrieve a Digital Card Profile @@ -486,16 +486,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: digital_card_profile_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: digital_card_profile_list_params.Status | 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[DigitalCardProfile, AsyncPage[DigitalCardProfile]]: """ List Card Profiles @@ -549,7 +549,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, ) -> DigitalCardProfile: """ @@ -588,21 +588,21 @@ async def clone( self, digital_card_profile_id: str, *, - app_icon_file_id: str | NotGiven = NOT_GIVEN, - background_image_file_id: str | NotGiven = NOT_GIVEN, - card_description: str | NotGiven = NOT_GIVEN, - contact_email: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - contact_website: str | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - issuer_name: str | NotGiven = NOT_GIVEN, - text_color: digital_card_profile_clone_params.TextColor | NotGiven = NOT_GIVEN, + app_icon_file_id: str | Omit = omit, + background_image_file_id: str | Omit = omit, + card_description: str | Omit = omit, + contact_email: str | Omit = omit, + contact_phone: str | Omit = omit, + contact_website: str | Omit = omit, + description: str | Omit = omit, + issuer_name: str | Omit = omit, + text_color: digital_card_profile_clone_params.TextColor | 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, ) -> DigitalCardProfile: """ diff --git a/src/increase/resources/digital_wallet_tokens.py b/src/increase/resources/digital_wallet_tokens.py index 37eec5d76..f41d35b7f 100644 --- a/src/increase/resources/digital_wallet_tokens.py +++ b/src/increase/resources/digital_wallet_tokens.py @@ -5,7 +5,7 @@ import httpx from ..types import digital_wallet_token_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> DigitalWalletToken: """ Retrieve a Digital Wallet Token @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - card_id: str | NotGiven = NOT_GIVEN, - created_at: digital_wallet_token_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_id: str | Omit = omit, + created_at: digital_wallet_token_list_params.CreatedAt | Omit = omit, + cursor: 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[DigitalWalletToken]: """ List Digital Wallet Tokens @@ -163,7 +163,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, ) -> DigitalWalletToken: """ Retrieve a Digital Wallet Token @@ -194,16 +194,16 @@ async def retrieve( def list( self, *, - card_id: str | NotGiven = NOT_GIVEN, - created_at: digital_wallet_token_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_id: str | Omit = omit, + created_at: digital_wallet_token_list_params.CreatedAt | Omit = omit, + cursor: 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[DigitalWalletToken, AsyncPage[DigitalWalletToken]]: """ List Digital Wallet Tokens diff --git a/src/increase/resources/documents.py b/src/increase/resources/documents.py index 772adfe32..90b72744d 100644 --- a/src/increase/resources/documents.py +++ b/src/increase/resources/documents.py @@ -7,7 +7,7 @@ import httpx from ..types import document_list_params, document_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 @@ -48,14 +48,14 @@ def create( self, *, category: Literal["account_verification_letter", "funding_instructions"], - account_verification_letter: document_create_params.AccountVerificationLetter | NotGiven = NOT_GIVEN, - funding_instructions: document_create_params.FundingInstructions | NotGiven = NOT_GIVEN, + account_verification_letter: document_create_params.AccountVerificationLetter | Omit = omit, + funding_instructions: document_create_params.FundingInstructions | 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, ) -> Document: """ @@ -112,7 +112,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, ) -> Document: """ Retrieve a Document @@ -141,18 +141,18 @@ def retrieve( def list( self, *, - category: document_list_params.Category | NotGiven = NOT_GIVEN, - created_at: document_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + category: document_list_params.Category | Omit = omit, + created_at: document_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: 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[Document]: """ List Documents @@ -226,14 +226,14 @@ async def create( self, *, category: Literal["account_verification_letter", "funding_instructions"], - account_verification_letter: document_create_params.AccountVerificationLetter | NotGiven = NOT_GIVEN, - funding_instructions: document_create_params.FundingInstructions | NotGiven = NOT_GIVEN, + account_verification_letter: document_create_params.AccountVerificationLetter | Omit = omit, + funding_instructions: document_create_params.FundingInstructions | 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, ) -> Document: """ @@ -290,7 +290,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, ) -> Document: """ Retrieve a Document @@ -319,18 +319,18 @@ async def retrieve( def list( self, *, - category: document_list_params.Category | NotGiven = NOT_GIVEN, - created_at: document_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + category: document_list_params.Category | Omit = omit, + created_at: document_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: 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[Document, AsyncPage[Document]]: """ List Documents diff --git a/src/increase/resources/entities.py b/src/increase/resources/entities.py index a46aad2b0..ddbdf06a9 100644 --- a/src/increase/resources/entities.py +++ b/src/increase/resources/entities.py @@ -19,7 +19,7 @@ entity_archive_beneficial_owner_params, entity_update_beneficial_owner_address_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,21 +60,21 @@ def create( self, *, structure: Literal["corporation", "natural_person", "joint", "trust", "government_authority"], - corporation: entity_create_params.Corporation | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - government_authority: entity_create_params.GovernmentAuthority | NotGiven = NOT_GIVEN, - joint: entity_create_params.Joint | NotGiven = NOT_GIVEN, - natural_person: entity_create_params.NaturalPerson | NotGiven = NOT_GIVEN, - risk_rating: entity_create_params.RiskRating | NotGiven = NOT_GIVEN, - supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | NotGiven = NOT_GIVEN, - third_party_verification: entity_create_params.ThirdPartyVerification | NotGiven = NOT_GIVEN, - trust: entity_create_params.Trust | NotGiven = NOT_GIVEN, + corporation: entity_create_params.Corporation | Omit = omit, + description: str | Omit = omit, + government_authority: entity_create_params.GovernmentAuthority | Omit = omit, + joint: entity_create_params.Joint | Omit = omit, + natural_person: entity_create_params.NaturalPerson | Omit = omit, + risk_rating: entity_create_params.RiskRating | Omit = omit, + supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | Omit = omit, + third_party_verification: entity_create_params.ThirdPartyVerification | Omit = omit, + trust: entity_create_params.Trust | 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, ) -> Entity: """ @@ -163,7 +163,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, ) -> Entity: """ Retrieve an Entity @@ -193,19 +193,19 @@ def update( self, entity_id: str, *, - corporation: entity_update_params.Corporation | NotGiven = NOT_GIVEN, - details_confirmed_at: Union[str, datetime] | NotGiven = NOT_GIVEN, - government_authority: entity_update_params.GovernmentAuthority | NotGiven = NOT_GIVEN, - natural_person: entity_update_params.NaturalPerson | NotGiven = NOT_GIVEN, - risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN, - third_party_verification: entity_update_params.ThirdPartyVerification | NotGiven = NOT_GIVEN, - trust: entity_update_params.Trust | NotGiven = NOT_GIVEN, + corporation: entity_update_params.Corporation | Omit = omit, + details_confirmed_at: Union[str, datetime] | Omit = omit, + government_authority: entity_update_params.GovernmentAuthority | Omit = omit, + natural_person: entity_update_params.NaturalPerson | Omit = omit, + risk_rating: entity_update_params.RiskRating | Omit = omit, + third_party_verification: entity_update_params.ThirdPartyVerification | Omit = omit, + trust: entity_update_params.Trust | 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, ) -> Entity: """ @@ -276,17 +276,17 @@ def update( def list( self, *, - created_at: entity_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: entity_list_params.Status | NotGiven = NOT_GIVEN, + created_at: entity_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: entity_list_params.Status | 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[Entity]: """ List Entities @@ -341,7 +341,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, ) -> Entity: """Archive an Entity @@ -386,7 +386,7 @@ def archive_beneficial_owner( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -431,13 +431,13 @@ def confirm( self, entity_id: str, *, - confirmed_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + confirmed_at: 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, idempotency_key: str | None = None, ) -> Entity: """ @@ -486,7 +486,7 @@ def create_beneficial_owner( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -536,7 +536,7 @@ def update_address( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -584,7 +584,7 @@ def update_beneficial_owner_address( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -641,7 +641,7 @@ def update_industry_code( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -708,21 +708,21 @@ async def create( self, *, structure: Literal["corporation", "natural_person", "joint", "trust", "government_authority"], - corporation: entity_create_params.Corporation | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - government_authority: entity_create_params.GovernmentAuthority | NotGiven = NOT_GIVEN, - joint: entity_create_params.Joint | NotGiven = NOT_GIVEN, - natural_person: entity_create_params.NaturalPerson | NotGiven = NOT_GIVEN, - risk_rating: entity_create_params.RiskRating | NotGiven = NOT_GIVEN, - supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | NotGiven = NOT_GIVEN, - third_party_verification: entity_create_params.ThirdPartyVerification | NotGiven = NOT_GIVEN, - trust: entity_create_params.Trust | NotGiven = NOT_GIVEN, + corporation: entity_create_params.Corporation | Omit = omit, + description: str | Omit = omit, + government_authority: entity_create_params.GovernmentAuthority | Omit = omit, + joint: entity_create_params.Joint | Omit = omit, + natural_person: entity_create_params.NaturalPerson | Omit = omit, + risk_rating: entity_create_params.RiskRating | Omit = omit, + supplemental_documents: Iterable[entity_create_params.SupplementalDocument] | Omit = omit, + third_party_verification: entity_create_params.ThirdPartyVerification | Omit = omit, + trust: entity_create_params.Trust | 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, ) -> Entity: """ @@ -811,7 +811,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, ) -> Entity: """ Retrieve an Entity @@ -841,19 +841,19 @@ async def update( self, entity_id: str, *, - corporation: entity_update_params.Corporation | NotGiven = NOT_GIVEN, - details_confirmed_at: Union[str, datetime] | NotGiven = NOT_GIVEN, - government_authority: entity_update_params.GovernmentAuthority | NotGiven = NOT_GIVEN, - natural_person: entity_update_params.NaturalPerson | NotGiven = NOT_GIVEN, - risk_rating: entity_update_params.RiskRating | NotGiven = NOT_GIVEN, - third_party_verification: entity_update_params.ThirdPartyVerification | NotGiven = NOT_GIVEN, - trust: entity_update_params.Trust | NotGiven = NOT_GIVEN, + corporation: entity_update_params.Corporation | Omit = omit, + details_confirmed_at: Union[str, datetime] | Omit = omit, + government_authority: entity_update_params.GovernmentAuthority | Omit = omit, + natural_person: entity_update_params.NaturalPerson | Omit = omit, + risk_rating: entity_update_params.RiskRating | Omit = omit, + third_party_verification: entity_update_params.ThirdPartyVerification | Omit = omit, + trust: entity_update_params.Trust | 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, ) -> Entity: """ @@ -924,17 +924,17 @@ async def update( def list( self, *, - created_at: entity_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: entity_list_params.Status | NotGiven = NOT_GIVEN, + created_at: entity_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: entity_list_params.Status | 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[Entity, AsyncPage[Entity]]: """ List Entities @@ -989,7 +989,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, ) -> Entity: """Archive an Entity @@ -1034,7 +1034,7 @@ async def archive_beneficial_owner( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -1079,13 +1079,13 @@ async def confirm( self, entity_id: str, *, - confirmed_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + confirmed_at: 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, idempotency_key: str | None = None, ) -> Entity: """ @@ -1134,7 +1134,7 @@ async def create_beneficial_owner( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -1184,7 +1184,7 @@ async def update_address( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -1234,7 +1234,7 @@ async def update_beneficial_owner_address( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ @@ -1291,7 +1291,7 @@ async def update_industry_code( extra_headers: Headers | None = None, extra_query: 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, ) -> Entity: """ diff --git a/src/increase/resources/event_subscriptions.py b/src/increase/resources/event_subscriptions.py index 662dde6b4..9d59c63cb 100644 --- a/src/increase/resources/event_subscriptions.py +++ b/src/increase/resources/event_subscriptions.py @@ -7,7 +7,7 @@ import httpx from ..types import event_subscription_list_params, event_subscription_create_params, event_subscription_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,7 +48,7 @@ def create( self, *, url: str, - oauth_connection_id: str | NotGiven = NOT_GIVEN, + oauth_connection_id: str | Omit = omit, selected_event_category: Literal[ "account.created", "account.updated", @@ -155,14 +155,14 @@ def create( "wire_transfer.created", "wire_transfer.updated", ] - | NotGiven = NOT_GIVEN, - shared_secret: str | NotGiven = NOT_GIVEN, + | Omit = omit, + shared_secret: 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, ) -> EventSubscription: """ @@ -381,7 +381,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, ) -> EventSubscription: """ Retrieve an Event Subscription @@ -413,13 +413,13 @@ def update( self, event_subscription_id: str, *, - status: Literal["active", "disabled", "deleted"] | NotGiven = NOT_GIVEN, + status: Literal["active", "disabled", "deleted"] | 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, ) -> EventSubscription: """ @@ -466,15 +466,15 @@ def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[EventSubscription]: """ List Event Subscriptions @@ -543,7 +543,7 @@ async def create( self, *, url: str, - oauth_connection_id: str | NotGiven = NOT_GIVEN, + oauth_connection_id: str | Omit = omit, selected_event_category: Literal[ "account.created", "account.updated", @@ -650,14 +650,14 @@ async def create( "wire_transfer.created", "wire_transfer.updated", ] - | NotGiven = NOT_GIVEN, - shared_secret: str | NotGiven = NOT_GIVEN, + | Omit = omit, + shared_secret: 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, ) -> EventSubscription: """ @@ -876,7 +876,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, ) -> EventSubscription: """ Retrieve an Event Subscription @@ -908,13 +908,13 @@ async def update( self, event_subscription_id: str, *, - status: Literal["active", "disabled", "deleted"] | NotGiven = NOT_GIVEN, + status: Literal["active", "disabled", "deleted"] | 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, ) -> EventSubscription: """ @@ -963,15 +963,15 @@ async def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[EventSubscription, AsyncPage[EventSubscription]]: """ List Event Subscriptions diff --git a/src/increase/resources/events.py b/src/increase/resources/events.py index 3640ca319..0e6be4fbe 100644 --- a/src/increase/resources/events.py +++ b/src/increase/resources/events.py @@ -5,7 +5,7 @@ import httpx from ..types import event_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> Event: """ Retrieve an Event @@ -80,17 +80,17 @@ def retrieve( def list( self, *, - associated_object_id: str | NotGiven = NOT_GIVEN, - category: event_list_params.Category | NotGiven = NOT_GIVEN, - created_at: event_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + associated_object_id: str | Omit = omit, + category: event_list_params.Category | Omit = omit, + created_at: event_list_params.CreatedAt | Omit = omit, + cursor: 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[Event]: """ List Events @@ -163,7 +163,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, ) -> Event: """ Retrieve an Event @@ -192,17 +192,17 @@ async def retrieve( def list( self, *, - associated_object_id: str | NotGiven = NOT_GIVEN, - category: event_list_params.Category | NotGiven = NOT_GIVEN, - created_at: event_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + associated_object_id: str | Omit = omit, + category: event_list_params.Category | Omit = omit, + created_at: event_list_params.CreatedAt | Omit = omit, + cursor: 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[Event, AsyncPage[Event]]: """ List Events diff --git a/src/increase/resources/exports.py b/src/increase/resources/exports.py index e81c74caf..6e9911b12 100644 --- a/src/increase/resources/exports.py +++ b/src/increase/resources/exports.py @@ -7,7 +7,7 @@ import httpx from ..types import export_list_params, export_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 @@ -56,19 +56,19 @@ def create( "entity_csv", "vendor_csv", ], - account_statement_bai2: export_create_params.AccountStatementBai2 | NotGiven = NOT_GIVEN, - account_statement_ofx: export_create_params.AccountStatementOfx | NotGiven = NOT_GIVEN, - balance_csv: export_create_params.BalanceCsv | NotGiven = NOT_GIVEN, - bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | NotGiven = NOT_GIVEN, - entity_csv: export_create_params.EntityCsv | NotGiven = NOT_GIVEN, - transaction_csv: export_create_params.TransactionCsv | NotGiven = NOT_GIVEN, - vendor_csv: object | NotGiven = NOT_GIVEN, + account_statement_bai2: export_create_params.AccountStatementBai2 | Omit = omit, + account_statement_ofx: export_create_params.AccountStatementOfx | Omit = omit, + balance_csv: export_create_params.BalanceCsv | Omit = omit, + bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit, + entity_csv: export_create_params.EntityCsv | Omit = omit, + transaction_csv: export_create_params.TransactionCsv | Omit = omit, + vendor_csv: object | 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, ) -> Export: """ @@ -153,7 +153,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, ) -> Export: """ Retrieve an Export @@ -182,18 +182,18 @@ def retrieve( def list( self, *, - category: export_list_params.Category | NotGiven = NOT_GIVEN, - created_at: export_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: export_list_params.Status | NotGiven = NOT_GIVEN, + category: export_list_params.Category | Omit = omit, + created_at: export_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: export_list_params.Status | 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[Export]: """ List Exports @@ -273,19 +273,19 @@ async def create( "entity_csv", "vendor_csv", ], - account_statement_bai2: export_create_params.AccountStatementBai2 | NotGiven = NOT_GIVEN, - account_statement_ofx: export_create_params.AccountStatementOfx | NotGiven = NOT_GIVEN, - balance_csv: export_create_params.BalanceCsv | NotGiven = NOT_GIVEN, - bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | NotGiven = NOT_GIVEN, - entity_csv: export_create_params.EntityCsv | NotGiven = NOT_GIVEN, - transaction_csv: export_create_params.TransactionCsv | NotGiven = NOT_GIVEN, - vendor_csv: object | NotGiven = NOT_GIVEN, + account_statement_bai2: export_create_params.AccountStatementBai2 | Omit = omit, + account_statement_ofx: export_create_params.AccountStatementOfx | Omit = omit, + balance_csv: export_create_params.BalanceCsv | Omit = omit, + bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit, + entity_csv: export_create_params.EntityCsv | Omit = omit, + transaction_csv: export_create_params.TransactionCsv | Omit = omit, + vendor_csv: object | 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, ) -> Export: """ @@ -370,7 +370,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, ) -> Export: """ Retrieve an Export @@ -399,18 +399,18 @@ async def retrieve( def list( self, *, - category: export_list_params.Category | NotGiven = NOT_GIVEN, - created_at: export_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: export_list_params.Status | NotGiven = NOT_GIVEN, + category: export_list_params.Category | Omit = omit, + created_at: export_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: export_list_params.Status | 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[Export, AsyncPage[Export]]: """ List Exports diff --git a/src/increase/resources/external_accounts.py b/src/increase/resources/external_accounts.py index 504541b01..f1ec6f568 100644 --- a/src/increase/resources/external_accounts.py +++ b/src/increase/resources/external_accounts.py @@ -7,7 +7,7 @@ import httpx from ..types import external_account_list_params, external_account_create_params, external_account_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 @@ -50,14 +50,14 @@ def create( account_number: str, description: str, routing_number: str, - account_holder: Literal["business", "individual", "unknown"] | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger", "other"] | NotGiven = NOT_GIVEN, + account_holder: Literal["business", "individual", "unknown"] | Omit = omit, + funding: Literal["checking", "savings", "general_ledger", "other"] | 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, ) -> ExternalAccount: """ @@ -125,7 +125,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, ) -> ExternalAccount: """ Retrieve an External Account @@ -157,16 +157,16 @@ def update( self, external_account_id: str, *, - account_holder: Literal["business", "individual"] | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger", "other"] | NotGiven = NOT_GIVEN, - status: Literal["active", "archived"] | NotGiven = NOT_GIVEN, + account_holder: Literal["business", "individual"] | Omit = omit, + description: str | Omit = omit, + funding: Literal["checking", "savings", "general_ledger", "other"] | Omit = omit, + status: Literal["active", "archived"] | 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, ) -> ExternalAccount: """ @@ -233,17 +233,17 @@ def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, - status: external_account_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + routing_number: str | Omit = omit, + status: external_account_list_params.Status | 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[ExternalAccount]: """ List External Accounts @@ -318,14 +318,14 @@ async def create( account_number: str, description: str, routing_number: str, - account_holder: Literal["business", "individual", "unknown"] | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger", "other"] | NotGiven = NOT_GIVEN, + account_holder: Literal["business", "individual", "unknown"] | Omit = omit, + funding: Literal["checking", "savings", "general_ledger", "other"] | 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, ) -> ExternalAccount: """ @@ -393,7 +393,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, ) -> ExternalAccount: """ Retrieve an External Account @@ -425,16 +425,16 @@ async def update( self, external_account_id: str, *, - account_holder: Literal["business", "individual"] | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - funding: Literal["checking", "savings", "general_ledger", "other"] | NotGiven = NOT_GIVEN, - status: Literal["active", "archived"] | NotGiven = NOT_GIVEN, + account_holder: Literal["business", "individual"] | Omit = omit, + description: str | Omit = omit, + funding: Literal["checking", "savings", "general_ledger", "other"] | Omit = omit, + status: Literal["active", "archived"] | 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, ) -> ExternalAccount: """ @@ -501,17 +501,17 @@ async def update( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, - status: external_account_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + routing_number: str | Omit = omit, + status: external_account_list_params.Status | 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[ExternalAccount, AsyncPage[ExternalAccount]]: """ List External Accounts diff --git a/src/increase/resources/file_links.py b/src/increase/resources/file_links.py index c0979d3ca..cb8a8f9e0 100644 --- a/src/increase/resources/file_links.py +++ b/src/increase/resources/file_links.py @@ -8,7 +8,7 @@ import httpx from ..types import file_link_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 @@ -48,13 +48,13 @@ def create( self, *, file_id: str, - expires_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + expires_at: 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, idempotency_key: str | None = None, ) -> FileLink: """ @@ -120,13 +120,13 @@ async def create( self, *, file_id: str, - expires_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + expires_at: 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, idempotency_key: str | None = None, ) -> FileLink: """ diff --git a/src/increase/resources/files.py b/src/increase/resources/files.py index 28ed80ac5..9cbdf7227 100644 --- a/src/increase/resources/files.py +++ b/src/increase/resources/files.py @@ -8,7 +8,7 @@ import httpx from ..types import file_list_params, file_create_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from .._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -68,13 +68,13 @@ def create( "unusual_activity_report_attachment", "proof_of_authorization_request_submission", ], - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> File: """ @@ -164,7 +164,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, ) -> File: """ Retrieve a File @@ -193,17 +193,17 @@ def retrieve( def list( self, *, - created_at: file_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - purpose: file_list_params.Purpose | NotGiven = NOT_GIVEN, + created_at: file_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + purpose: file_list_params.Purpose | 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[File]: """ List Files @@ -293,13 +293,13 @@ async def create( "unusual_activity_report_attachment", "proof_of_authorization_request_submission", ], - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> File: """ @@ -389,7 +389,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, ) -> File: """ Retrieve a File @@ -418,17 +418,17 @@ async def retrieve( def list( self, *, - created_at: file_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - purpose: file_list_params.Purpose | NotGiven = NOT_GIVEN, + created_at: file_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + purpose: file_list_params.Purpose | 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[File, AsyncPage[File]]: """ List Files diff --git a/src/increase/resources/groups.py b/src/increase/resources/groups.py index 188e92568..9090fde98 100644 --- a/src/increase/resources/groups.py +++ b/src/increase/resources/groups.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -47,7 +47,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, ) -> Group: """Returns details for the currently authenticated Group.""" return self._get( @@ -87,7 +87,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, ) -> Group: """Returns details for the currently authenticated Group.""" return await self._get( diff --git a/src/increase/resources/inbound_ach_transfers.py b/src/increase/resources/inbound_ach_transfers.py index 3e475ab67..465202ce1 100644 --- a/src/increase/resources/inbound_ach_transfers.py +++ b/src/increase/resources/inbound_ach_transfers.py @@ -12,7 +12,7 @@ inbound_ach_transfer_transfer_return_params, inbound_ach_transfer_create_notification_of_change_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 @@ -58,7 +58,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, ) -> InboundACHTransfer: """ Retrieve an Inbound ACH Transfer @@ -89,18 +89,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_ach_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: inbound_ach_transfer_list_params.Status | 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[InboundACHTransfer]: """ List Inbound ACH Transfers @@ -150,14 +150,14 @@ def create_notification_of_change( self, inbound_ach_transfer_id: str, *, - updated_account_number: str | NotGiven = NOT_GIVEN, - updated_routing_number: str | NotGiven = NOT_GIVEN, + updated_account_number: str | Omit = omit, + updated_routing_number: 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, ) -> InboundACHTransfer: """ @@ -220,13 +220,13 @@ def decline( "duplicate_entry", "corporate_customer_advised_not_authorized", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> InboundACHTransfer: """ @@ -311,7 +311,7 @@ def transfer_return( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundACHTransfer: """ @@ -403,7 +403,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, ) -> InboundACHTransfer: """ Retrieve an Inbound ACH Transfer @@ -434,18 +434,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_ach_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: inbound_ach_transfer_list_params.Status | 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[InboundACHTransfer, AsyncPage[InboundACHTransfer]]: """ List Inbound ACH Transfers @@ -495,14 +495,14 @@ async def create_notification_of_change( self, inbound_ach_transfer_id: str, *, - updated_account_number: str | NotGiven = NOT_GIVEN, - updated_routing_number: str | NotGiven = NOT_GIVEN, + updated_account_number: str | Omit = omit, + updated_routing_number: 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, ) -> InboundACHTransfer: """ @@ -565,13 +565,13 @@ async def decline( "duplicate_entry", "corporate_customer_advised_not_authorized", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> InboundACHTransfer: """ @@ -656,7 +656,7 @@ async def transfer_return( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundACHTransfer: """ diff --git a/src/increase/resources/inbound_check_deposits.py b/src/increase/resources/inbound_check_deposits.py index 3cfe75998..4337bcd62 100644 --- a/src/increase/resources/inbound_check_deposits.py +++ b/src/increase/resources/inbound_check_deposits.py @@ -7,7 +7,7 @@ import httpx from ..types import inbound_check_deposit_list_params, inbound_check_deposit_return_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 @@ -53,7 +53,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, ) -> InboundCheckDeposit: """ Retrieve an Inbound Check Deposit @@ -84,17 +84,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - check_transfer_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_check_deposit_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + check_transfer_id: str | Omit = omit, + created_at: inbound_check_deposit_list_params.CreatedAt | Omit = omit, + cursor: 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[InboundCheckDeposit]: """ List Inbound Check Deposits @@ -149,7 +149,7 @@ def decline( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundCheckDeposit: """ @@ -200,7 +200,7 @@ def return_( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundCheckDeposit: """ @@ -276,7 +276,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, ) -> InboundCheckDeposit: """ Retrieve an Inbound Check Deposit @@ -307,17 +307,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - check_transfer_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_check_deposit_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + check_transfer_id: str | Omit = omit, + created_at: inbound_check_deposit_list_params.CreatedAt | Omit = omit, + cursor: 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[InboundCheckDeposit, AsyncPage[InboundCheckDeposit]]: """ List Inbound Check Deposits @@ -372,7 +372,7 @@ async def decline( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundCheckDeposit: """ @@ -423,7 +423,7 @@ async def return_( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundCheckDeposit: """ diff --git a/src/increase/resources/inbound_mail_items.py b/src/increase/resources/inbound_mail_items.py index 041ef09f3..b36f5c791 100644 --- a/src/increase/resources/inbound_mail_items.py +++ b/src/increase/resources/inbound_mail_items.py @@ -5,7 +5,7 @@ import httpx from ..types import inbound_mail_item_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> InboundMailItem: """ Retrieve an Inbound Mail Item @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - created_at: inbound_mail_item_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - lockbox_id: str | NotGiven = NOT_GIVEN, + created_at: inbound_mail_item_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + lockbox_id: 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[InboundMailItem]: """ List Inbound Mail Items @@ -163,7 +163,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, ) -> InboundMailItem: """ Retrieve an Inbound Mail Item @@ -194,16 +194,16 @@ async def retrieve( def list( self, *, - created_at: inbound_mail_item_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - lockbox_id: str | NotGiven = NOT_GIVEN, + created_at: inbound_mail_item_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + lockbox_id: 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[InboundMailItem, AsyncPage[InboundMailItem]]: """ List Inbound Mail Items diff --git a/src/increase/resources/inbound_real_time_payments_transfers.py b/src/increase/resources/inbound_real_time_payments_transfers.py index 599bbd639..8bbf1d4f8 100755 --- a/src/increase/resources/inbound_real_time_payments_transfers.py +++ b/src/increase/resources/inbound_real_time_payments_transfers.py @@ -5,7 +5,7 @@ import httpx from ..types import inbound_real_time_payments_transfer_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> InboundRealTimePaymentsTransfer: """ Retrieve an Inbound Real-Time Payments Transfer @@ -82,17 +82,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_real_time_payments_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_real_time_payments_transfer_list_params.CreatedAt | Omit = omit, + cursor: 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[InboundRealTimePaymentsTransfer]: """ List Inbound Real-Time Payments Transfers @@ -169,7 +169,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, ) -> InboundRealTimePaymentsTransfer: """ Retrieve an Inbound Real-Time Payments Transfer @@ -200,17 +200,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_real_time_payments_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_real_time_payments_transfer_list_params.CreatedAt | Omit = omit, + cursor: 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[InboundRealTimePaymentsTransfer, AsyncPage[InboundRealTimePaymentsTransfer]]: """ List Inbound Real-Time Payments Transfers diff --git a/src/increase/resources/inbound_wire_drawdown_requests.py b/src/increase/resources/inbound_wire_drawdown_requests.py index d510d8da9..b1e02507a 100644 --- a/src/increase/resources/inbound_wire_drawdown_requests.py +++ b/src/increase/resources/inbound_wire_drawdown_requests.py @@ -5,7 +5,7 @@ import httpx from ..types import inbound_wire_drawdown_request_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> InboundWireDrawdownRequest: """ Retrieve an Inbound Wire Drawdown Request @@ -82,14 +82,14 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[InboundWireDrawdownRequest]: """ List Inbound Wire Drawdown Requests @@ -157,7 +157,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, ) -> InboundWireDrawdownRequest: """ Retrieve an Inbound Wire Drawdown Request @@ -188,14 +188,14 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[InboundWireDrawdownRequest, AsyncPage[InboundWireDrawdownRequest]]: """ List Inbound Wire Drawdown Requests diff --git a/src/increase/resources/inbound_wire_transfers.py b/src/increase/resources/inbound_wire_transfers.py index 1bca46b3e..964804140 100644 --- a/src/increase/resources/inbound_wire_transfers.py +++ b/src/increase/resources/inbound_wire_transfers.py @@ -7,7 +7,7 @@ import httpx from ..types import inbound_wire_transfer_list_params, inbound_wire_transfer_reverse_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 @@ -53,7 +53,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, ) -> InboundWireTransfer: """ Retrieve an Inbound Wire Transfer @@ -84,19 +84,19 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN, - wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_wire_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: inbound_wire_transfer_list_params.Status | Omit = omit, + wire_drawdown_request_id: 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[InboundWireTransfer]: """ List Inbound Wire Transfers @@ -156,7 +156,7 @@ def reverse( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundWireTransfer: """ @@ -230,7 +230,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, ) -> InboundWireTransfer: """ Retrieve an Inbound Wire Transfer @@ -261,19 +261,19 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - account_number_id: str | NotGiven = NOT_GIVEN, - created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN, - wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + account_number_id: str | Omit = omit, + created_at: inbound_wire_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: inbound_wire_transfer_list_params.Status | Omit = omit, + wire_drawdown_request_id: 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[InboundWireTransfer, AsyncPage[InboundWireTransfer]]: """ List Inbound Wire Transfers @@ -333,7 +333,7 @@ async def reverse( extra_headers: Headers | None = None, extra_query: 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, ) -> InboundWireTransfer: """ diff --git a/src/increase/resources/intrafi_account_enrollments.py b/src/increase/resources/intrafi_account_enrollments.py index 9e2a36bc3..0fadbae5e 100644 --- a/src/increase/resources/intrafi_account_enrollments.py +++ b/src/increase/resources/intrafi_account_enrollments.py @@ -5,7 +5,7 @@ import httpx from ..types import intrafi_account_enrollment_list_params, intrafi_account_enrollment_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 @@ -52,7 +52,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, ) -> IntrafiAccountEnrollment: """ @@ -101,7 +101,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, ) -> IntrafiAccountEnrollment: """ Get an IntraFi Account Enrollment @@ -132,17 +132,17 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: intrafi_account_enrollment_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: intrafi_account_enrollment_list_params.Status | 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[IntrafiAccountEnrollment]: """ List IntraFi Account Enrollments @@ -199,7 +199,7 @@ def unenroll( extra_headers: Headers | None = None, extra_query: 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, ) -> IntrafiAccountEnrollment: """ @@ -265,7 +265,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, ) -> IntrafiAccountEnrollment: """ @@ -314,7 +314,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, ) -> IntrafiAccountEnrollment: """ Get an IntraFi Account Enrollment @@ -345,17 +345,17 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: intrafi_account_enrollment_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: intrafi_account_enrollment_list_params.Status | 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[IntrafiAccountEnrollment, AsyncPage[IntrafiAccountEnrollment]]: """ List IntraFi Account Enrollments @@ -412,7 +412,7 @@ async def unenroll( extra_headers: Headers | None = None, extra_query: 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, ) -> IntrafiAccountEnrollment: """ diff --git a/src/increase/resources/intrafi_balances.py b/src/increase/resources/intrafi_balances.py index 8b6ac706e..c911a5756 100644 --- a/src/increase/resources/intrafi_balances.py +++ b/src/increase/resources/intrafi_balances.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def intrafi_balance( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> IntrafiBalance: """Returns the IntraFi balance for the given account. @@ -107,7 +107,7 @@ async def intrafi_balance( extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, + timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> IntrafiBalance: """Returns the IntraFi balance for the given account. diff --git a/src/increase/resources/intrafi_exclusions.py b/src/increase/resources/intrafi_exclusions.py index b0cbe9eee..53e2563c4 100644 --- a/src/increase/resources/intrafi_exclusions.py +++ b/src/increase/resources/intrafi_exclusions.py @@ -5,7 +5,7 @@ import httpx from ..types import intrafi_exclusion_list_params, intrafi_exclusion_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 @@ -52,7 +52,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, ) -> IntrafiExclusion: """ @@ -101,7 +101,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, ) -> IntrafiExclusion: """ Get an IntraFi Exclusion @@ -132,16 +132,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: 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[IntrafiExclusion]: """ List IntraFi Exclusions @@ -197,7 +197,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, ) -> IntrafiExclusion: """ @@ -265,7 +265,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, ) -> IntrafiExclusion: """ @@ -314,7 +314,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, ) -> IntrafiExclusion: """ Get an IntraFi Exclusion @@ -345,16 +345,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - entity_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + entity_id: str | Omit = omit, + idempotency_key: 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[IntrafiExclusion, AsyncPage[IntrafiExclusion]]: """ List IntraFi Exclusions @@ -410,7 +410,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, ) -> IntrafiExclusion: """ diff --git a/src/increase/resources/lockboxes.py b/src/increase/resources/lockboxes.py index 41929469c..4d6b565af 100644 --- a/src/increase/resources/lockboxes.py +++ b/src/increase/resources/lockboxes.py @@ -7,7 +7,7 @@ import httpx from ..types import lockbox_list_params, lockbox_create_params, lockbox_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,14 +48,14 @@ def create( self, *, account_id: str, - description: str | NotGiven = NOT_GIVEN, - recipient_name: str | NotGiven = NOT_GIVEN, + description: str | Omit = omit, + recipient_name: 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, ) -> Lockbox: """ @@ -107,7 +107,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, ) -> Lockbox: """ Retrieve a Lockbox @@ -137,15 +137,15 @@ def update( self, lockbox_id: str, *, - description: str | NotGiven = NOT_GIVEN, - recipient_name: str | NotGiven = NOT_GIVEN, - status: Literal["active", "inactive"] | NotGiven = NOT_GIVEN, + description: str | Omit = omit, + recipient_name: str | Omit = omit, + status: Literal["active", "inactive"] | 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, ) -> Lockbox: """ @@ -200,17 +200,17 @@ def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: lockbox_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: lockbox_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[Lockbox]: """ List Lockboxes @@ -283,14 +283,14 @@ async def create( self, *, account_id: str, - description: str | NotGiven = NOT_GIVEN, - recipient_name: str | NotGiven = NOT_GIVEN, + description: str | Omit = omit, + recipient_name: 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, ) -> Lockbox: """ @@ -342,7 +342,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, ) -> Lockbox: """ Retrieve a Lockbox @@ -372,15 +372,15 @@ async def update( self, lockbox_id: str, *, - description: str | NotGiven = NOT_GIVEN, - recipient_name: str | NotGiven = NOT_GIVEN, - status: Literal["active", "inactive"] | NotGiven = NOT_GIVEN, + description: str | Omit = omit, + recipient_name: str | Omit = omit, + status: Literal["active", "inactive"] | 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, ) -> Lockbox: """ @@ -435,17 +435,17 @@ async def update( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: lockbox_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: lockbox_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[Lockbox, AsyncPage[Lockbox]]: """ List Lockboxes diff --git a/src/increase/resources/oauth_applications.py b/src/increase/resources/oauth_applications.py index 264bffaad..d69d83ab3 100644 --- a/src/increase/resources/oauth_applications.py +++ b/src/increase/resources/oauth_applications.py @@ -5,7 +5,7 @@ import httpx from ..types import oauth_application_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> OAuthApplication: """ Retrieve an OAuth Application @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - created_at: oauth_application_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: oauth_application_list_params.Status | NotGiven = NOT_GIVEN, + created_at: oauth_application_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: oauth_application_list_params.Status | 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[OAuthApplication]: """ List OAuth Applications @@ -161,7 +161,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, ) -> OAuthApplication: """ Retrieve an OAuth Application @@ -192,16 +192,16 @@ async def retrieve( def list( self, *, - created_at: oauth_application_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: oauth_application_list_params.Status | NotGiven = NOT_GIVEN, + created_at: oauth_application_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + status: oauth_application_list_params.Status | 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[OAuthApplication, AsyncPage[OAuthApplication]]: """ List OAuth Applications diff --git a/src/increase/resources/oauth_connections.py b/src/increase/resources/oauth_connections.py index cd789dd90..aa27390ad 100644 --- a/src/increase/resources/oauth_connections.py +++ b/src/increase/resources/oauth_connections.py @@ -5,7 +5,7 @@ import httpx from ..types import oauth_connection_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> OAuthConnection: """ Retrieve an OAuth Connection @@ -82,16 +82,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - oauth_application_id: str | NotGiven = NOT_GIVEN, - status: oauth_connection_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + limit: int | Omit = omit, + oauth_application_id: str | Omit = omit, + status: oauth_connection_list_params.Status | 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[OAuthConnection]: """ List OAuth Connections @@ -164,7 +164,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, ) -> OAuthConnection: """ Retrieve an OAuth Connection @@ -195,16 +195,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - oauth_application_id: str | NotGiven = NOT_GIVEN, - status: oauth_connection_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + limit: int | Omit = omit, + oauth_application_id: str | Omit = omit, + status: oauth_connection_list_params.Status | 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[OAuthConnection, AsyncPage[OAuthConnection]]: """ List OAuth Connections diff --git a/src/increase/resources/oauth_tokens.py b/src/increase/resources/oauth_tokens.py index b50ee71d9..143368459 100644 --- a/src/increase/resources/oauth_tokens.py +++ b/src/increase/resources/oauth_tokens.py @@ -7,7 +7,7 @@ import httpx from ..types import oauth_token_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,16 +47,16 @@ def create( self, *, grant_type: Literal["authorization_code", "production_token"], - client_id: str | NotGiven = NOT_GIVEN, - client_secret: str | NotGiven = NOT_GIVEN, - code: str | NotGiven = NOT_GIVEN, - production_token: str | NotGiven = NOT_GIVEN, + client_id: str | Omit = omit, + client_secret: str | Omit = omit, + code: str | Omit = omit, + production_token: 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, ) -> OAuthToken: """ @@ -139,16 +139,16 @@ async def create( self, *, grant_type: Literal["authorization_code", "production_token"], - client_id: str | NotGiven = NOT_GIVEN, - client_secret: str | NotGiven = NOT_GIVEN, - code: str | NotGiven = NOT_GIVEN, - production_token: str | NotGiven = NOT_GIVEN, + client_id: str | Omit = omit, + client_secret: str | Omit = omit, + code: str | Omit = omit, + production_token: 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, ) -> OAuthToken: """ diff --git a/src/increase/resources/pending_transactions.py b/src/increase/resources/pending_transactions.py index e431de9ce..19747929c 100644 --- a/src/increase/resources/pending_transactions.py +++ b/src/increase/resources/pending_transactions.py @@ -5,7 +5,7 @@ import httpx from ..types import pending_transaction_list_params, pending_transaction_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,13 +47,13 @@ def create( *, account_id: str, amount: int, - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> PendingTransaction: """Creates a pending transaction on an account. @@ -111,7 +111,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, ) -> PendingTransaction: """ Retrieve a Pending Transaction @@ -142,19 +142,19 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: pending_transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: pending_transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, - status: pending_transaction_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: pending_transaction_list_params.Category | Omit = omit, + created_at: pending_transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: str | Omit = omit, + status: pending_transaction_list_params.Status | 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[PendingTransaction]: """ List Pending Transactions @@ -210,7 +210,7 @@ def release( extra_headers: Headers | None = None, extra_query: 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, ) -> PendingTransaction: """Release a Pending Transaction you had previously created. @@ -275,13 +275,13 @@ async def create( *, account_id: str, amount: int, - description: str | NotGiven = NOT_GIVEN, + description: 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, ) -> PendingTransaction: """Creates a pending transaction on an account. @@ -339,7 +339,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, ) -> PendingTransaction: """ Retrieve a Pending Transaction @@ -370,19 +370,19 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: pending_transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: pending_transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, - status: pending_transaction_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: pending_transaction_list_params.Category | Omit = omit, + created_at: pending_transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: str | Omit = omit, + status: pending_transaction_list_params.Status | 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[PendingTransaction, AsyncPage[PendingTransaction]]: """ List Pending Transactions @@ -438,7 +438,7 @@ async def release( extra_headers: Headers | None = None, extra_query: 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, ) -> PendingTransaction: """Release a Pending Transaction you had previously created. diff --git a/src/increase/resources/physical_card_profiles.py b/src/increase/resources/physical_card_profiles.py index bdb2092ef..d33b520e9 100644 --- a/src/increase/resources/physical_card_profiles.py +++ b/src/increase/resources/physical_card_profiles.py @@ -11,7 +11,7 @@ physical_card_profile_clone_params, physical_card_profile_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 @@ -56,17 +56,17 @@ def create( description: str, front_image_file_id: str, program_id: str, - back_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, - card_stock_reference: str | NotGiven = NOT_GIVEN, - carrier_stock_reference: str | NotGiven = NOT_GIVEN, - front_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, - front_text: physical_card_profile_create_params.FrontText | NotGiven = NOT_GIVEN, + back_color: Literal["black", "white"] | Omit = omit, + card_stock_reference: str | Omit = omit, + carrier_stock_reference: str | Omit = omit, + front_color: Literal["black", "white"] | Omit = omit, + front_text: physical_card_profile_create_params.FrontText | 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, ) -> PhysicalCardProfile: """ @@ -148,7 +148,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, ) -> PhysicalCardProfile: """ Retrieve a Card Profile @@ -179,16 +179,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: physical_card_profile_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: physical_card_profile_list_params.Status | 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[PhysicalCardProfile]: """ List Physical Card Profiles @@ -242,7 +242,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, ) -> PhysicalCardProfile: """ @@ -281,18 +281,18 @@ def clone( self, physical_card_profile_id: str, *, - carrier_image_file_id: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - front_image_file_id: str | NotGiven = NOT_GIVEN, - front_text: physical_card_profile_clone_params.FrontText | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, + carrier_image_file_id: str | Omit = omit, + contact_phone: str | Omit = omit, + description: str | Omit = omit, + front_image_file_id: str | Omit = omit, + front_text: physical_card_profile_clone_params.FrontText | Omit = omit, + program_id: 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, ) -> PhysicalCardProfile: """ @@ -380,17 +380,17 @@ async def create( description: str, front_image_file_id: str, program_id: str, - back_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, - card_stock_reference: str | NotGiven = NOT_GIVEN, - carrier_stock_reference: str | NotGiven = NOT_GIVEN, - front_color: Literal["black", "white"] | NotGiven = NOT_GIVEN, - front_text: physical_card_profile_create_params.FrontText | NotGiven = NOT_GIVEN, + back_color: Literal["black", "white"] | Omit = omit, + card_stock_reference: str | Omit = omit, + carrier_stock_reference: str | Omit = omit, + front_color: Literal["black", "white"] | Omit = omit, + front_text: physical_card_profile_create_params.FrontText | 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, ) -> PhysicalCardProfile: """ @@ -472,7 +472,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, ) -> PhysicalCardProfile: """ Retrieve a Card Profile @@ -503,16 +503,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: physical_card_profile_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: physical_card_profile_list_params.Status | 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[PhysicalCardProfile, AsyncPage[PhysicalCardProfile]]: """ List Physical Card Profiles @@ -566,7 +566,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, ) -> PhysicalCardProfile: """ @@ -605,18 +605,18 @@ async def clone( self, physical_card_profile_id: str, *, - carrier_image_file_id: str | NotGiven = NOT_GIVEN, - contact_phone: str | NotGiven = NOT_GIVEN, - description: str | NotGiven = NOT_GIVEN, - front_image_file_id: str | NotGiven = NOT_GIVEN, - front_text: physical_card_profile_clone_params.FrontText | NotGiven = NOT_GIVEN, - program_id: str | NotGiven = NOT_GIVEN, + carrier_image_file_id: str | Omit = omit, + contact_phone: str | Omit = omit, + description: str | Omit = omit, + front_image_file_id: str | Omit = omit, + front_text: physical_card_profile_clone_params.FrontText | Omit = omit, + program_id: 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, ) -> PhysicalCardProfile: """ diff --git a/src/increase/resources/physical_cards.py b/src/increase/resources/physical_cards.py index c329b4bf4..818ed4baf 100644 --- a/src/increase/resources/physical_cards.py +++ b/src/increase/resources/physical_cards.py @@ -7,7 +7,7 @@ import httpx from ..types import physical_card_list_params, physical_card_create_params, physical_card_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 @@ -50,13 +50,13 @@ def create( card_id: str, cardholder: physical_card_create_params.Cardholder, shipment: physical_card_create_params.Shipment, - physical_card_profile_id: str | NotGiven = NOT_GIVEN, + physical_card_profile_id: 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, ) -> PhysicalCard: """ @@ -112,7 +112,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, ) -> PhysicalCard: """ Retrieve a Physical Card @@ -148,7 +148,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, ) -> PhysicalCard: """ @@ -191,17 +191,17 @@ def update( def list( self, *, - card_id: str | NotGiven = NOT_GIVEN, - created_at: physical_card_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_id: str | Omit = omit, + created_at: physical_card_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[PhysicalCard]: """ List Physical Cards @@ -276,13 +276,13 @@ async def create( card_id: str, cardholder: physical_card_create_params.Cardholder, shipment: physical_card_create_params.Shipment, - physical_card_profile_id: str | NotGiven = NOT_GIVEN, + physical_card_profile_id: 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, ) -> PhysicalCard: """ @@ -338,7 +338,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, ) -> PhysicalCard: """ Retrieve a Physical Card @@ -374,7 +374,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, ) -> PhysicalCard: """ @@ -417,17 +417,17 @@ async def update( def list( self, *, - card_id: str | NotGiven = NOT_GIVEN, - created_at: physical_card_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + card_id: str | Omit = omit, + created_at: physical_card_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + idempotency_key: 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[PhysicalCard, AsyncPage[PhysicalCard]]: """ List Physical Cards diff --git a/src/increase/resources/programs.py b/src/increase/resources/programs.py index 96ce2e3b1..9130af3fc 100644 --- a/src/increase/resources/programs.py +++ b/src/increase/resources/programs.py @@ -5,7 +5,7 @@ import httpx from ..types import program_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> Program: """ Retrieve a Program @@ -80,14 +80,14 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[Program]: """ List Programs @@ -155,7 +155,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, ) -> Program: """ Retrieve a Program @@ -184,14 +184,14 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[Program, AsyncPage[Program]]: """ List Programs diff --git a/src/increase/resources/real_time_decisions.py b/src/increase/resources/real_time_decisions.py index d60d2a577..70ca02c13 100644 --- a/src/increase/resources/real_time_decisions.py +++ b/src/increase/resources/real_time_decisions.py @@ -5,7 +5,7 @@ import httpx from ..types import real_time_decision_action_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, ) -> RealTimeDecision: """ Retrieve a Real-Time Decision @@ -82,19 +82,17 @@ def action( self, real_time_decision_id: str, *, - card_authentication: real_time_decision_action_params.CardAuthentication | NotGiven = NOT_GIVEN, - card_authentication_challenge: real_time_decision_action_params.CardAuthenticationChallenge - | NotGiven = NOT_GIVEN, - card_authorization: real_time_decision_action_params.CardAuthorization | NotGiven = NOT_GIVEN, - digital_wallet_authentication: real_time_decision_action_params.DigitalWalletAuthentication - | NotGiven = NOT_GIVEN, - digital_wallet_token: real_time_decision_action_params.DigitalWalletToken | NotGiven = NOT_GIVEN, + card_authentication: real_time_decision_action_params.CardAuthentication | Omit = omit, + card_authentication_challenge: real_time_decision_action_params.CardAuthenticationChallenge | Omit = omit, + card_authorization: real_time_decision_action_params.CardAuthorization | Omit = omit, + digital_wallet_authentication: real_time_decision_action_params.DigitalWalletAuthentication | Omit = omit, + digital_wallet_token: real_time_decision_action_params.DigitalWalletToken | 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, ) -> RealTimeDecision: """ @@ -184,7 +182,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, ) -> RealTimeDecision: """ Retrieve a Real-Time Decision @@ -216,19 +214,17 @@ async def action( self, real_time_decision_id: str, *, - card_authentication: real_time_decision_action_params.CardAuthentication | NotGiven = NOT_GIVEN, - card_authentication_challenge: real_time_decision_action_params.CardAuthenticationChallenge - | NotGiven = NOT_GIVEN, - card_authorization: real_time_decision_action_params.CardAuthorization | NotGiven = NOT_GIVEN, - digital_wallet_authentication: real_time_decision_action_params.DigitalWalletAuthentication - | NotGiven = NOT_GIVEN, - digital_wallet_token: real_time_decision_action_params.DigitalWalletToken | NotGiven = NOT_GIVEN, + card_authentication: real_time_decision_action_params.CardAuthentication | Omit = omit, + card_authentication_challenge: real_time_decision_action_params.CardAuthenticationChallenge | Omit = omit, + card_authorization: real_time_decision_action_params.CardAuthorization | Omit = omit, + digital_wallet_authentication: real_time_decision_action_params.DigitalWalletAuthentication | Omit = omit, + digital_wallet_token: real_time_decision_action_params.DigitalWalletToken | 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, ) -> RealTimeDecision: """ diff --git a/src/increase/resources/real_time_payments_transfers.py b/src/increase/resources/real_time_payments_transfers.py index 0a52effd7..40605dc8e 100644 --- a/src/increase/resources/real_time_payments_transfers.py +++ b/src/increase/resources/real_time_payments_transfers.py @@ -5,7 +5,7 @@ import httpx from ..types import real_time_payments_transfer_list_params, real_time_payments_transfer_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 @@ -49,19 +49,19 @@ def create( creditor_name: str, remittance_information: str, source_account_number_id: str, - debtor_name: str | NotGiven = NOT_GIVEN, - destination_account_number: str | NotGiven = NOT_GIVEN, - destination_routing_number: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - ultimate_creditor_name: str | NotGiven = NOT_GIVEN, - ultimate_debtor_name: str | NotGiven = NOT_GIVEN, + debtor_name: str | Omit = omit, + destination_account_number: str | Omit = omit, + destination_routing_number: str | Omit = omit, + external_account_id: str | Omit = omit, + require_approval: bool | Omit = omit, + ultimate_creditor_name: str | Omit = omit, + ultimate_debtor_name: 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, ) -> RealTimePaymentsTransfer: """ @@ -144,7 +144,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, ) -> RealTimePaymentsTransfer: """ Retrieve a Real-Time Payments Transfer @@ -175,19 +175,19 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: real_time_payments_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: real_time_payments_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: real_time_payments_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: real_time_payments_transfer_list_params.Status | 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[RealTimePaymentsTransfer]: """ List Real-Time Payments Transfers @@ -249,7 +249,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> RealTimePaymentsTransfer: """ @@ -293,7 +293,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, ) -> RealTimePaymentsTransfer: """ @@ -356,19 +356,19 @@ async def create( creditor_name: str, remittance_information: str, source_account_number_id: str, - debtor_name: str | NotGiven = NOT_GIVEN, - destination_account_number: str | NotGiven = NOT_GIVEN, - destination_routing_number: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - ultimate_creditor_name: str | NotGiven = NOT_GIVEN, - ultimate_debtor_name: str | NotGiven = NOT_GIVEN, + debtor_name: str | Omit = omit, + destination_account_number: str | Omit = omit, + destination_routing_number: str | Omit = omit, + external_account_id: str | Omit = omit, + require_approval: bool | Omit = omit, + ultimate_creditor_name: str | Omit = omit, + ultimate_debtor_name: 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, ) -> RealTimePaymentsTransfer: """ @@ -451,7 +451,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, ) -> RealTimePaymentsTransfer: """ Retrieve a Real-Time Payments Transfer @@ -482,19 +482,19 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: real_time_payments_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: real_time_payments_transfer_list_params.Status | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: real_time_payments_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: real_time_payments_transfer_list_params.Status | 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[RealTimePaymentsTransfer, AsyncPage[RealTimePaymentsTransfer]]: """ List Real-Time Payments Transfers @@ -556,7 +556,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> RealTimePaymentsTransfer: """ @@ -600,7 +600,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, ) -> RealTimePaymentsTransfer: """ diff --git a/src/increase/resources/routing_numbers.py b/src/increase/resources/routing_numbers.py index a9689c3e0..569b565d2 100644 --- a/src/increase/resources/routing_numbers.py +++ b/src/increase/resources/routing_numbers.py @@ -5,7 +5,7 @@ import httpx from ..types import routing_number_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -46,14 +46,14 @@ def list( self, *, routing_number: str, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[RoutingNumberListResponse]: """ You can use this API to confirm if a routing number is valid, such as when a @@ -122,14 +122,14 @@ def list( self, *, routing_number: str, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: 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[RoutingNumberListResponse, AsyncPage[RoutingNumberListResponse]]: """ You can use this API to confirm if a routing number is valid, such as when a diff --git a/src/increase/resources/simulations/account_statements.py b/src/increase/resources/simulations/account_statements.py index b26241422..723749793 100644 --- a/src/increase/resources/simulations/account_statements.py +++ b/src/increase/resources/simulations/account_statements.py @@ -4,7 +4,7 @@ import httpx -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 @@ -50,7 +50,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, ) -> AccountStatement: """ @@ -115,7 +115,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, ) -> AccountStatement: """ diff --git a/src/increase/resources/simulations/account_transfers.py b/src/increase/resources/simulations/account_transfers.py index 82bbcf024..14ff9974d 100644 --- a/src/increase/resources/simulations/account_transfers.py +++ b/src/increase/resources/simulations/account_transfers.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def complete( extra_headers: Headers | None = None, extra_query: 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, ) -> AccountTransfer: """ @@ -116,7 +116,7 @@ async def complete( extra_headers: Headers | None = None, extra_query: 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, ) -> AccountTransfer: """ diff --git a/src/increase/resources/simulations/ach_transfers.py b/src/increase/resources/simulations/ach_transfers.py index 69ba3e5ac..b224645f3 100644 --- a/src/increase/resources/simulations/ach_transfers.py +++ b/src/increase/resources/simulations/ach_transfers.py @@ -6,7 +6,7 @@ import httpx -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 @@ -56,7 +56,7 @@ def acknowledge( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -125,7 +125,7 @@ def create_notification_of_change( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -282,13 +282,13 @@ def return_( "untimely_dishonored_return", "untimely_return", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> ACHTransfer: """ @@ -479,14 +479,13 @@ def settle( self, ach_transfer_id: str, *, - inbound_funds_hold_behavior: Literal["release_immediately", "release_on_default_schedule"] - | NotGiven = NOT_GIVEN, + inbound_funds_hold_behavior: Literal["release_immediately", "release_on_default_schedule"] | 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, ) -> ACHTransfer: """ @@ -548,7 +547,7 @@ def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -616,7 +615,7 @@ async def acknowledge( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -685,7 +684,7 @@ async def create_notification_of_change( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ @@ -842,13 +841,13 @@ async def return_( "untimely_dishonored_return", "untimely_return", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> ACHTransfer: """ @@ -1039,14 +1038,13 @@ async def settle( self, ach_transfer_id: str, *, - inbound_funds_hold_behavior: Literal["release_immediately", "release_on_default_schedule"] - | NotGiven = NOT_GIVEN, + inbound_funds_hold_behavior: Literal["release_immediately", "release_on_default_schedule"] | 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, ) -> ACHTransfer: """ @@ -1108,7 +1106,7 @@ async def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> ACHTransfer: """ diff --git a/src/increase/resources/simulations/card_authorization_expirations.py b/src/increase/resources/simulations/card_authorization_expirations.py index 0b517063f..9442f22bd 100644 --- a/src/increase/resources/simulations/card_authorization_expirations.py +++ b/src/increase/resources/simulations/card_authorization_expirations.py @@ -4,7 +4,7 @@ import httpx -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 @@ -50,7 +50,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, ) -> CardPayment: """ @@ -115,7 +115,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, ) -> CardPayment: """ diff --git a/src/increase/resources/simulations/card_authorizations.py b/src/increase/resources/simulations/card_authorizations.py index a15dcf9c1..c570372c4 100644 --- a/src/increase/resources/simulations/card_authorizations.py +++ b/src/increase/resources/simulations/card_authorizations.py @@ -6,7 +6,7 @@ import httpx -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,8 +47,8 @@ def create( self, *, amount: int, - authenticated_card_payment_id: str | NotGiven = NOT_GIVEN, - card_id: str | NotGiven = NOT_GIVEN, + authenticated_card_payment_id: str | Omit = omit, + card_id: str | Omit = omit, decline_reason: Literal[ "account_closed", "card_not_active", @@ -71,26 +71,26 @@ def create( "suspected_card_testing", "suspected_fraud", ] - | NotGiven = NOT_GIVEN, - digital_wallet_token_id: str | NotGiven = NOT_GIVEN, - event_subscription_id: str | NotGiven = NOT_GIVEN, - merchant_acceptor_id: str | NotGiven = NOT_GIVEN, - merchant_category_code: str | NotGiven = NOT_GIVEN, - merchant_city: str | NotGiven = NOT_GIVEN, - merchant_country: str | NotGiven = NOT_GIVEN, - merchant_descriptor: str | NotGiven = NOT_GIVEN, - merchant_state: str | NotGiven = NOT_GIVEN, - network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN, - network_risk_score: int | NotGiven = NOT_GIVEN, - physical_card_id: str | NotGiven = NOT_GIVEN, - processing_category: card_authorization_create_params.ProcessingCategory | NotGiven = NOT_GIVEN, - terminal_id: str | NotGiven = NOT_GIVEN, + | Omit = omit, + digital_wallet_token_id: str | Omit = omit, + event_subscription_id: str | Omit = omit, + merchant_acceptor_id: str | Omit = omit, + merchant_category_code: str | Omit = omit, + merchant_city: str | Omit = omit, + merchant_country: str | Omit = omit, + merchant_descriptor: str | Omit = omit, + merchant_state: str | Omit = omit, + network_details: card_authorization_create_params.NetworkDetails | Omit = omit, + network_risk_score: int | Omit = omit, + physical_card_id: str | Omit = omit, + processing_category: card_authorization_create_params.ProcessingCategory | Omit = omit, + terminal_id: 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, ) -> CardAuthorizationCreateResponse: """Simulates a purchase authorization on a [Card](#cards). @@ -247,8 +247,8 @@ async def create( self, *, amount: int, - authenticated_card_payment_id: str | NotGiven = NOT_GIVEN, - card_id: str | NotGiven = NOT_GIVEN, + authenticated_card_payment_id: str | Omit = omit, + card_id: str | Omit = omit, decline_reason: Literal[ "account_closed", "card_not_active", @@ -271,26 +271,26 @@ async def create( "suspected_card_testing", "suspected_fraud", ] - | NotGiven = NOT_GIVEN, - digital_wallet_token_id: str | NotGiven = NOT_GIVEN, - event_subscription_id: str | NotGiven = NOT_GIVEN, - merchant_acceptor_id: str | NotGiven = NOT_GIVEN, - merchant_category_code: str | NotGiven = NOT_GIVEN, - merchant_city: str | NotGiven = NOT_GIVEN, - merchant_country: str | NotGiven = NOT_GIVEN, - merchant_descriptor: str | NotGiven = NOT_GIVEN, - merchant_state: str | NotGiven = NOT_GIVEN, - network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN, - network_risk_score: int | NotGiven = NOT_GIVEN, - physical_card_id: str | NotGiven = NOT_GIVEN, - processing_category: card_authorization_create_params.ProcessingCategory | NotGiven = NOT_GIVEN, - terminal_id: str | NotGiven = NOT_GIVEN, + | Omit = omit, + digital_wallet_token_id: str | Omit = omit, + event_subscription_id: str | Omit = omit, + merchant_acceptor_id: str | Omit = omit, + merchant_category_code: str | Omit = omit, + merchant_city: str | Omit = omit, + merchant_country: str | Omit = omit, + merchant_descriptor: str | Omit = omit, + merchant_state: str | Omit = omit, + network_details: card_authorization_create_params.NetworkDetails | Omit = omit, + network_risk_score: int | Omit = omit, + physical_card_id: str | Omit = omit, + processing_category: card_authorization_create_params.ProcessingCategory | Omit = omit, + terminal_id: 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, ) -> CardAuthorizationCreateResponse: """Simulates a purchase authorization on a [Card](#cards). diff --git a/src/increase/resources/simulations/card_fuel_confirmations.py b/src/increase/resources/simulations/card_fuel_confirmations.py index 487db65ea..6477b2746 100644 --- a/src/increase/resources/simulations/card_fuel_confirmations.py +++ b/src/increase/resources/simulations/card_fuel_confirmations.py @@ -4,7 +4,7 @@ import httpx -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 @@ -51,7 +51,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, ) -> CardPayment: """Simulates the fuel confirmation of an authorization by a card acquirer. @@ -126,7 +126,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, ) -> CardPayment: """Simulates the fuel confirmation of an authorization by a card acquirer. diff --git a/src/increase/resources/simulations/card_increments.py b/src/increase/resources/simulations/card_increments.py index e45309b26..43b0f87b7 100644 --- a/src/increase/resources/simulations/card_increments.py +++ b/src/increase/resources/simulations/card_increments.py @@ -4,7 +4,7 @@ import httpx -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,13 +46,13 @@ def create( *, amount: int, card_payment_id: str, - event_subscription_id: str | NotGiven = NOT_GIVEN, + event_subscription_id: 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, ) -> CardPayment: """Simulates the increment of an authorization by a card acquirer. @@ -126,13 +126,13 @@ async def create( *, amount: int, card_payment_id: str, - event_subscription_id: str | NotGiven = NOT_GIVEN, + event_subscription_id: 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, ) -> CardPayment: """Simulates the increment of an authorization by a card acquirer. diff --git a/src/increase/resources/simulations/card_refunds.py b/src/increase/resources/simulations/card_refunds.py index e3c26c46b..597d864b5 100644 --- a/src/increase/resources/simulations/card_refunds.py +++ b/src/increase/resources/simulations/card_refunds.py @@ -4,7 +4,7 @@ import httpx -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 @@ -50,7 +50,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, ) -> Transaction: """Simulates refunding a card transaction. @@ -115,7 +115,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, ) -> Transaction: """Simulates refunding a card transaction. diff --git a/src/increase/resources/simulations/card_reversals.py b/src/increase/resources/simulations/card_reversals.py index 46470cc48..7224c6c2c 100644 --- a/src/increase/resources/simulations/card_reversals.py +++ b/src/increase/resources/simulations/card_reversals.py @@ -4,7 +4,7 @@ import httpx -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,13 +45,13 @@ def create( self, *, card_payment_id: str, - amount: int | NotGiven = NOT_GIVEN, + amount: 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, ) -> CardPayment: """Simulates the reversal of an authorization by a card acquirer. @@ -121,13 +121,13 @@ async def create( self, *, card_payment_id: str, - amount: int | NotGiven = NOT_GIVEN, + amount: 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, ) -> CardPayment: """Simulates the reversal of an authorization by a card acquirer. diff --git a/src/increase/resources/simulations/card_settlements.py b/src/increase/resources/simulations/card_settlements.py index 20450e8a5..de0c38637 100644 --- a/src/increase/resources/simulations/card_settlements.py +++ b/src/increase/resources/simulations/card_settlements.py @@ -4,7 +4,7 @@ import httpx -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,13 +46,13 @@ def create( *, card_id: str, pending_transaction_id: str, - amount: int | NotGiven = NOT_GIVEN, + amount: 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, ) -> Transaction: """Simulates the settlement of an authorization by a card acquirer. @@ -128,13 +128,13 @@ async def create( *, card_id: str, pending_transaction_id: str, - amount: int | NotGiven = NOT_GIVEN, + amount: 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, ) -> Transaction: """Simulates the settlement of an authorization by a card acquirer. diff --git a/src/increase/resources/simulations/card_tokens.py b/src/increase/resources/simulations/card_tokens.py index 950073777..3b1febad3 100644 --- a/src/increase/resources/simulations/card_tokens.py +++ b/src/increase/resources/simulations/card_tokens.py @@ -7,7 +7,7 @@ import httpx -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,17 +47,17 @@ def with_streaming_response(self) -> CardTokensResourceWithStreamingResponse: def create( self, *, - capabilities: Iterable[card_token_create_params.Capability] | NotGiven = NOT_GIVEN, - expiration: Union[str, date] | NotGiven = NOT_GIVEN, - last4: str | NotGiven = NOT_GIVEN, - prefix: str | NotGiven = NOT_GIVEN, - primary_account_number_length: int | NotGiven = NOT_GIVEN, + capabilities: Iterable[card_token_create_params.Capability] | Omit = omit, + expiration: Union[str, date] | Omit = omit, + last4: str | Omit = omit, + prefix: str | Omit = omit, + primary_account_number_length: 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, ) -> CardToken: """ @@ -130,17 +130,17 @@ def with_streaming_response(self) -> AsyncCardTokensResourceWithStreamingRespons async def create( self, *, - capabilities: Iterable[card_token_create_params.Capability] | NotGiven = NOT_GIVEN, - expiration: Union[str, date] | NotGiven = NOT_GIVEN, - last4: str | NotGiven = NOT_GIVEN, - prefix: str | NotGiven = NOT_GIVEN, - primary_account_number_length: int | NotGiven = NOT_GIVEN, + capabilities: Iterable[card_token_create_params.Capability] | Omit = omit, + expiration: Union[str, date] | Omit = omit, + last4: str | Omit = omit, + prefix: str | Omit = omit, + primary_account_number_length: 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, ) -> CardToken: """ diff --git a/src/increase/resources/simulations/check_deposits.py b/src/increase/resources/simulations/check_deposits.py index 8b03a9fd7..ba4448fb8 100644 --- a/src/increase/resources/simulations/check_deposits.py +++ b/src/increase/resources/simulations/check_deposits.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def reject( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """ @@ -92,7 +92,7 @@ def return_( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """Simulates the return of a [Check Deposit](#check-deposits). @@ -136,7 +136,7 @@ def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """ @@ -200,7 +200,7 @@ async def reject( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """ @@ -244,7 +244,7 @@ async def return_( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """Simulates the return of a [Check Deposit](#check-deposits). @@ -288,7 +288,7 @@ async def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckDeposit: """ diff --git a/src/increase/resources/simulations/check_transfers.py b/src/increase/resources/simulations/check_transfers.py index 8d947b849..a326ff168 100644 --- a/src/increase/resources/simulations/check_transfers.py +++ b/src/increase/resources/simulations/check_transfers.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def mail( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckTransfer: """ @@ -114,7 +114,7 @@ async def mail( extra_headers: Headers | None = None, extra_query: 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, ) -> CheckTransfer: """ diff --git a/src/increase/resources/simulations/digital_wallet_token_requests.py b/src/increase/resources/simulations/digital_wallet_token_requests.py index af31793aa..9b562ebe6 100644 --- a/src/increase/resources/simulations/digital_wallet_token_requests.py +++ b/src/increase/resources/simulations/digital_wallet_token_requests.py @@ -4,7 +4,7 @@ import httpx -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 @@ -50,7 +50,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, ) -> DigitalWalletTokenRequestCreateResponse: """ @@ -115,7 +115,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, ) -> DigitalWalletTokenRequestCreateResponse: """ diff --git a/src/increase/resources/simulations/documents.py b/src/increase/resources/simulations/documents.py index 1486bbc53..0f85ae779 100644 --- a/src/increase/resources/simulations/documents.py +++ b/src/increase/resources/simulations/documents.py @@ -4,7 +4,7 @@ import httpx -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 @@ -50,7 +50,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, ) -> Document: """ @@ -112,7 +112,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, ) -> Document: """ diff --git a/src/increase/resources/simulations/inbound_ach_transfers.py b/src/increase/resources/simulations/inbound_ach_transfers.py index 85a462ba1..2b1997530 100644 --- a/src/increase/resources/simulations/inbound_ach_transfers.py +++ b/src/increase/resources/simulations/inbound_ach_transfers.py @@ -8,7 +8,7 @@ import httpx -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,15 +50,15 @@ def create( *, account_number_id: str, amount: int, - addenda: inbound_ach_transfer_create_params.Addenda | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_id: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - receiver_id_number: str | NotGiven = NOT_GIVEN, - receiver_name: str | NotGiven = NOT_GIVEN, - resolve_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + addenda: inbound_ach_transfer_create_params.Addenda | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_id: str | Omit = omit, + company_name: str | Omit = omit, + receiver_id_number: str | Omit = omit, + receiver_name: str | Omit = omit, + resolve_at: Union[str, datetime] | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", @@ -77,13 +77,13 @@ def create( "destroyed_check", "international_ach_transaction", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> InboundACHTransfer: """Simulates an inbound ACH transfer to your account. @@ -209,15 +209,15 @@ async def create( *, account_number_id: str, amount: int, - addenda: inbound_ach_transfer_create_params.Addenda | NotGiven = NOT_GIVEN, - company_descriptive_date: str | NotGiven = NOT_GIVEN, - company_discretionary_data: str | NotGiven = NOT_GIVEN, - company_entry_description: str | NotGiven = NOT_GIVEN, - company_id: str | NotGiven = NOT_GIVEN, - company_name: str | NotGiven = NOT_GIVEN, - receiver_id_number: str | NotGiven = NOT_GIVEN, - receiver_name: str | NotGiven = NOT_GIVEN, - resolve_at: Union[str, datetime] | NotGiven = NOT_GIVEN, + addenda: inbound_ach_transfer_create_params.Addenda | Omit = omit, + company_descriptive_date: str | Omit = omit, + company_discretionary_data: str | Omit = omit, + company_entry_description: str | Omit = omit, + company_id: str | Omit = omit, + company_name: str | Omit = omit, + receiver_id_number: str | Omit = omit, + receiver_name: str | Omit = omit, + resolve_at: Union[str, datetime] | Omit = omit, standard_entry_class_code: Literal[ "corporate_credit_or_debit", "corporate_trade_exchange", @@ -236,13 +236,13 @@ async def create( "destroyed_check", "international_ach_transaction", ] - | NotGiven = NOT_GIVEN, + | 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, ) -> InboundACHTransfer: """Simulates an inbound ACH transfer to your account. diff --git a/src/increase/resources/simulations/inbound_check_deposits.py b/src/increase/resources/simulations/inbound_check_deposits.py index f68b011e3..3eb460566 100644 --- a/src/increase/resources/simulations/inbound_check_deposits.py +++ b/src/increase/resources/simulations/inbound_check_deposits.py @@ -6,7 +6,7 @@ import httpx -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( account_number_id: str, amount: int, check_number: str, - payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | NotGiven = NOT_GIVEN, + payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | 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, ) -> InboundCheckDeposit: """Simulates an Inbound Check Deposit against your account. @@ -142,13 +142,13 @@ async def create( account_number_id: str, amount: int, check_number: str, - payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | NotGiven = NOT_GIVEN, + payee_name_analysis: Literal["name_matches", "does_not_match", "not_evaluated"] | 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, ) -> InboundCheckDeposit: """Simulates an Inbound Check Deposit against your account. diff --git a/src/increase/resources/simulations/inbound_mail_items.py b/src/increase/resources/simulations/inbound_mail_items.py index c6a0a683c..3439589af 100755 --- a/src/increase/resources/simulations/inbound_mail_items.py +++ b/src/increase/resources/simulations/inbound_mail_items.py @@ -4,7 +4,7 @@ import httpx -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,13 +46,13 @@ def create( *, amount: int, lockbox_id: str, - contents_file_id: str | NotGiven = NOT_GIVEN, + contents_file_id: 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, ) -> InboundMailItem: """ @@ -123,13 +123,13 @@ async def create( *, amount: int, lockbox_id: str, - contents_file_id: str | NotGiven = NOT_GIVEN, + contents_file_id: 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, ) -> InboundMailItem: """ diff --git a/src/increase/resources/simulations/inbound_real_time_payments_transfers.py b/src/increase/resources/simulations/inbound_real_time_payments_transfers.py index 147ec04f9..e518e0c78 100644 --- a/src/increase/resources/simulations/inbound_real_time_payments_transfers.py +++ b/src/increase/resources/simulations/inbound_real_time_payments_transfers.py @@ -4,7 +4,7 @@ import httpx -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,17 +46,17 @@ def create( *, account_number_id: str, amount: int, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, - remittance_information: str | NotGiven = NOT_GIVEN, - request_for_payment_id: str | NotGiven = NOT_GIVEN, + debtor_account_number: str | Omit = omit, + debtor_name: str | Omit = omit, + debtor_routing_number: str | Omit = omit, + remittance_information: str | Omit = omit, + request_for_payment_id: 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, ) -> InboundRealTimePaymentsTransfer: """ @@ -140,17 +140,17 @@ async def create( *, account_number_id: str, amount: int, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, - remittance_information: str | NotGiven = NOT_GIVEN, - request_for_payment_id: str | NotGiven = NOT_GIVEN, + debtor_account_number: str | Omit = omit, + debtor_name: str | Omit = omit, + debtor_routing_number: str | Omit = omit, + remittance_information: str | Omit = omit, + request_for_payment_id: 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, ) -> InboundRealTimePaymentsTransfer: """ diff --git a/src/increase/resources/simulations/inbound_wire_drawdown_requests.py b/src/increase/resources/simulations/inbound_wire_drawdown_requests.py index 494eaa8e0..12f0842c7 100644 --- a/src/increase/resources/simulations/inbound_wire_drawdown_requests.py +++ b/src/increase/resources/simulations/inbound_wire_drawdown_requests.py @@ -4,7 +4,7 @@ import httpx -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,26 +49,26 @@ def create( creditor_routing_number: str, currency: str, recipient_account_number_id: str, - creditor_address_line1: str | NotGiven = NOT_GIVEN, - creditor_address_line2: str | NotGiven = NOT_GIVEN, - creditor_address_line3: str | NotGiven = NOT_GIVEN, - creditor_name: str | NotGiven = NOT_GIVEN, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_address_line1: str | NotGiven = NOT_GIVEN, - debtor_address_line2: str | NotGiven = NOT_GIVEN, - debtor_address_line3: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, - end_to_end_identification: str | NotGiven = NOT_GIVEN, - instruction_identification: str | NotGiven = NOT_GIVEN, - unique_end_to_end_transaction_reference: str | NotGiven = NOT_GIVEN, - unstructured_remittance_information: str | NotGiven = NOT_GIVEN, + creditor_address_line1: str | Omit = omit, + creditor_address_line2: str | Omit = omit, + creditor_address_line3: str | Omit = omit, + creditor_name: str | Omit = omit, + debtor_account_number: str | Omit = omit, + debtor_address_line1: str | Omit = omit, + debtor_address_line2: str | Omit = omit, + debtor_address_line3: str | Omit = omit, + debtor_name: str | Omit = omit, + debtor_routing_number: str | Omit = omit, + end_to_end_identification: str | Omit = omit, + instruction_identification: str | Omit = omit, + unique_end_to_end_transaction_reference: str | Omit = omit, + unstructured_remittance_information: 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, ) -> InboundWireDrawdownRequest: """ @@ -198,26 +198,26 @@ async def create( creditor_routing_number: str, currency: str, recipient_account_number_id: str, - creditor_address_line1: str | NotGiven = NOT_GIVEN, - creditor_address_line2: str | NotGiven = NOT_GIVEN, - creditor_address_line3: str | NotGiven = NOT_GIVEN, - creditor_name: str | NotGiven = NOT_GIVEN, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_address_line1: str | NotGiven = NOT_GIVEN, - debtor_address_line2: str | NotGiven = NOT_GIVEN, - debtor_address_line3: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, - end_to_end_identification: str | NotGiven = NOT_GIVEN, - instruction_identification: str | NotGiven = NOT_GIVEN, - unique_end_to_end_transaction_reference: str | NotGiven = NOT_GIVEN, - unstructured_remittance_information: str | NotGiven = NOT_GIVEN, + creditor_address_line1: str | Omit = omit, + creditor_address_line2: str | Omit = omit, + creditor_address_line3: str | Omit = omit, + creditor_name: str | Omit = omit, + debtor_account_number: str | Omit = omit, + debtor_address_line1: str | Omit = omit, + debtor_address_line2: str | Omit = omit, + debtor_address_line3: str | Omit = omit, + debtor_name: str | Omit = omit, + debtor_routing_number: str | Omit = omit, + end_to_end_identification: str | Omit = omit, + instruction_identification: str | Omit = omit, + unique_end_to_end_transaction_reference: str | Omit = omit, + unstructured_remittance_information: 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, ) -> InboundWireDrawdownRequest: """ diff --git a/src/increase/resources/simulations/inbound_wire_transfers.py b/src/increase/resources/simulations/inbound_wire_transfers.py index 6815a6006..06c7372b3 100644 --- a/src/increase/resources/simulations/inbound_wire_transfers.py +++ b/src/increase/resources/simulations/inbound_wire_transfers.py @@ -4,7 +4,7 @@ import httpx -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,26 +46,26 @@ def create( *, account_number_id: str, amount: int, - creditor_address_line1: str | NotGiven = NOT_GIVEN, - creditor_address_line2: str | NotGiven = NOT_GIVEN, - creditor_address_line3: str | NotGiven = NOT_GIVEN, - creditor_name: str | NotGiven = NOT_GIVEN, - debtor_address_line1: str | NotGiven = NOT_GIVEN, - debtor_address_line2: str | NotGiven = NOT_GIVEN, - debtor_address_line3: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - end_to_end_identification: str | NotGiven = NOT_GIVEN, - instructing_agent_routing_number: str | NotGiven = NOT_GIVEN, - instruction_identification: str | NotGiven = NOT_GIVEN, - unique_end_to_end_transaction_reference: str | NotGiven = NOT_GIVEN, - unstructured_remittance_information: str | NotGiven = NOT_GIVEN, - wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, + creditor_address_line1: str | Omit = omit, + creditor_address_line2: str | Omit = omit, + creditor_address_line3: str | Omit = omit, + creditor_name: str | Omit = omit, + debtor_address_line1: str | Omit = omit, + debtor_address_line2: str | Omit = omit, + debtor_address_line3: str | Omit = omit, + debtor_name: str | Omit = omit, + end_to_end_identification: str | Omit = omit, + instructing_agent_routing_number: str | Omit = omit, + instruction_identification: str | Omit = omit, + unique_end_to_end_transaction_reference: str | Omit = omit, + unstructured_remittance_information: str | Omit = omit, + wire_drawdown_request_id: 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, ) -> InboundWireTransfer: """ @@ -187,26 +187,26 @@ async def create( *, account_number_id: str, amount: int, - creditor_address_line1: str | NotGiven = NOT_GIVEN, - creditor_address_line2: str | NotGiven = NOT_GIVEN, - creditor_address_line3: str | NotGiven = NOT_GIVEN, - creditor_name: str | NotGiven = NOT_GIVEN, - debtor_address_line1: str | NotGiven = NOT_GIVEN, - debtor_address_line2: str | NotGiven = NOT_GIVEN, - debtor_address_line3: str | NotGiven = NOT_GIVEN, - debtor_name: str | NotGiven = NOT_GIVEN, - end_to_end_identification: str | NotGiven = NOT_GIVEN, - instructing_agent_routing_number: str | NotGiven = NOT_GIVEN, - instruction_identification: str | NotGiven = NOT_GIVEN, - unique_end_to_end_transaction_reference: str | NotGiven = NOT_GIVEN, - unstructured_remittance_information: str | NotGiven = NOT_GIVEN, - wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, + creditor_address_line1: str | Omit = omit, + creditor_address_line2: str | Omit = omit, + creditor_address_line3: str | Omit = omit, + creditor_name: str | Omit = omit, + debtor_address_line1: str | Omit = omit, + debtor_address_line2: str | Omit = omit, + debtor_address_line3: str | Omit = omit, + debtor_name: str | Omit = omit, + end_to_end_identification: str | Omit = omit, + instructing_agent_routing_number: str | Omit = omit, + instruction_identification: str | Omit = omit, + unique_end_to_end_transaction_reference: str | Omit = omit, + unstructured_remittance_information: str | Omit = omit, + wire_drawdown_request_id: 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, ) -> InboundWireTransfer: """ diff --git a/src/increase/resources/simulations/interest_payments.py b/src/increase/resources/simulations/interest_payments.py index a853190c5..afa6f2f3b 100644 --- a/src/increase/resources/simulations/interest_payments.py +++ b/src/increase/resources/simulations/interest_payments.py @@ -7,7 +7,7 @@ import httpx -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,15 +49,15 @@ def create( *, account_id: str, amount: int, - accrued_on_account_id: str | NotGiven = NOT_GIVEN, - period_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - period_start: Union[str, datetime] | NotGiven = NOT_GIVEN, + accrued_on_account_id: str | Omit = omit, + period_end: Union[str, datetime] | Omit = omit, + period_start: 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, idempotency_key: str | None = None, ) -> Transaction: """Simulates an interest payment to your account. @@ -134,15 +134,15 @@ async def create( *, account_id: str, amount: int, - accrued_on_account_id: str | NotGiven = NOT_GIVEN, - period_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - period_start: Union[str, datetime] | NotGiven = NOT_GIVEN, + accrued_on_account_id: str | Omit = omit, + period_end: Union[str, datetime] | Omit = omit, + period_start: 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, idempotency_key: str | None = None, ) -> Transaction: """Simulates an interest payment to your account. diff --git a/src/increase/resources/simulations/pending_transactions.py b/src/increase/resources/simulations/pending_transactions.py index 8124c03d8..8d1911943 100644 --- a/src/increase/resources/simulations/pending_transactions.py +++ b/src/increase/resources/simulations/pending_transactions.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def release_inbound_funds_hold( extra_headers: Headers | None = None, extra_query: 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, ) -> PendingTransaction: """ @@ -115,7 +115,7 @@ async def release_inbound_funds_hold( extra_headers: Headers | None = None, extra_query: 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, ) -> PendingTransaction: """ diff --git a/src/increase/resources/simulations/physical_cards.py b/src/increase/resources/simulations/physical_cards.py index 6a8cd98cd..740bf9106 100644 --- a/src/increase/resources/simulations/physical_cards.py +++ b/src/increase/resources/simulations/physical_cards.py @@ -8,7 +8,7 @@ import httpx -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,7 +57,7 @@ def advance_shipment( extra_headers: Headers | None = None, extra_query: 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, ) -> PhysicalCard: """ @@ -117,16 +117,16 @@ def tracking_updates( physical_card_id: str, *, category: Literal["in_transit", "processed_for_delivery", "delivered", "returned_to_sender"], - carrier_estimated_delivery_at: Union[str, datetime] | NotGiven = NOT_GIVEN, - city: str | NotGiven = NOT_GIVEN, - postal_code: str | NotGiven = NOT_GIVEN, - state: str | NotGiven = NOT_GIVEN, + carrier_estimated_delivery_at: Union[str, datetime] | Omit = omit, + city: str | Omit = omit, + postal_code: str | Omit = omit, + state: 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, ) -> PhysicalCard: """ @@ -220,7 +220,7 @@ async def advance_shipment( extra_headers: Headers | None = None, extra_query: 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, ) -> PhysicalCard: """ @@ -280,16 +280,16 @@ async def tracking_updates( physical_card_id: str, *, category: Literal["in_transit", "processed_for_delivery", "delivered", "returned_to_sender"], - carrier_estimated_delivery_at: Union[str, datetime] | NotGiven = NOT_GIVEN, - city: str | NotGiven = NOT_GIVEN, - postal_code: str | NotGiven = NOT_GIVEN, - state: str | NotGiven = NOT_GIVEN, + carrier_estimated_delivery_at: Union[str, datetime] | Omit = omit, + city: str | Omit = omit, + postal_code: str | Omit = omit, + state: 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, ) -> PhysicalCard: """ diff --git a/src/increase/resources/simulations/programs.py b/src/increase/resources/simulations/programs.py index c965a47d4..33982aa56 100644 --- a/src/increase/resources/simulations/programs.py +++ b/src/increase/resources/simulations/programs.py @@ -6,7 +6,7 @@ import httpx -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,14 +50,14 @@ def create( bank: Literal[ "blue_ridge_bank", "core_bank", "first_internet_bank", "global_innovations_bank", "grasshopper_bank" ] - | NotGiven = NOT_GIVEN, - reserve_account_id: str | NotGiven = NOT_GIVEN, + | Omit = omit, + reserve_account_id: 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, ) -> Program: """Simulates a [Program](#programs) being created in your group. @@ -138,14 +138,14 @@ async def create( bank: Literal[ "blue_ridge_bank", "core_bank", "first_internet_bank", "global_innovations_bank", "grasshopper_bank" ] - | NotGiven = NOT_GIVEN, - reserve_account_id: str | NotGiven = NOT_GIVEN, + | Omit = omit, + reserve_account_id: 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, ) -> Program: """Simulates a [Program](#programs) being created in your group. diff --git a/src/increase/resources/simulations/real_time_payments_transfers.py b/src/increase/resources/simulations/real_time_payments_transfers.py index 03e36e904..28faff7a0 100644 --- a/src/increase/resources/simulations/real_time_payments_transfers.py +++ b/src/increase/resources/simulations/real_time_payments_transfers.py @@ -4,7 +4,7 @@ import httpx -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,13 +45,13 @@ def complete( self, real_time_payments_transfer_id: str, *, - rejection: real_time_payments_transfer_complete_params.Rejection | NotGiven = NOT_GIVEN, + rejection: real_time_payments_transfer_complete_params.Rejection | 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, ) -> RealTimePaymentsTransfer: """ @@ -120,13 +120,13 @@ async def complete( self, real_time_payments_transfer_id: str, *, - rejection: real_time_payments_transfer_complete_params.Rejection | NotGiven = NOT_GIVEN, + rejection: real_time_payments_transfer_complete_params.Rejection | 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, ) -> RealTimePaymentsTransfer: """ diff --git a/src/increase/resources/simulations/wire_drawdown_requests.py b/src/increase/resources/simulations/wire_drawdown_requests.py index 1d4f89344..2b56cd0de 100644 --- a/src/increase/resources/simulations/wire_drawdown_requests.py +++ b/src/increase/resources/simulations/wire_drawdown_requests.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def refuse( extra_headers: Headers | None = None, extra_query: 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, ) -> WireDrawdownRequest: """ @@ -92,7 +92,7 @@ def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> WireDrawdownRequest: """ @@ -157,7 +157,7 @@ async def refuse( extra_headers: Headers | None = None, extra_query: 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, ) -> WireDrawdownRequest: """ @@ -201,7 +201,7 @@ async def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> WireDrawdownRequest: """ diff --git a/src/increase/resources/simulations/wire_transfers.py b/src/increase/resources/simulations/wire_transfers.py index 3bada2696..0be0eeaa4 100644 --- a/src/increase/resources/simulations/wire_transfers.py +++ b/src/increase/resources/simulations/wire_transfers.py @@ -4,7 +4,7 @@ import httpx -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 ( @@ -48,7 +48,7 @@ def reverse( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ @@ -93,7 +93,7 @@ def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ @@ -158,7 +158,7 @@ async def reverse( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ @@ -203,7 +203,7 @@ async def submit( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ diff --git a/src/increase/resources/supplemental_documents.py b/src/increase/resources/supplemental_documents.py index 169d3c679..adb9d9645 100644 --- a/src/increase/resources/supplemental_documents.py +++ b/src/increase/resources/supplemental_documents.py @@ -5,7 +5,7 @@ import httpx from ..types import supplemental_document_list_params, supplemental_document_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 @@ -52,7 +52,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, ) -> EntitySupplementalDocument: """ @@ -96,15 +96,15 @@ def list( self, *, entity_id: str, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[EntitySupplementalDocument]: """ List Entity Supplemental Document Submissions @@ -182,7 +182,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, ) -> EntitySupplementalDocument: """ @@ -226,15 +226,15 @@ def list( self, *, entity_id: str, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: 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[EntitySupplementalDocument, AsyncPage[EntitySupplementalDocument]]: """ List Entity Supplemental Document Submissions diff --git a/src/increase/resources/transactions.py b/src/increase/resources/transactions.py index d9d6a50da..d61dda617 100644 --- a/src/increase/resources/transactions.py +++ b/src/increase/resources/transactions.py @@ -5,7 +5,7 @@ import httpx from ..types import transaction_list_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 from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -51,7 +51,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, ) -> Transaction: """ Retrieve a Transaction @@ -80,18 +80,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: transaction_list_params.Category | Omit = omit, + created_at: transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: 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[Transaction]: """ List Transactions @@ -168,7 +168,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, ) -> Transaction: """ Retrieve a Transaction @@ -197,18 +197,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - category: transaction_list_params.Category | NotGiven = NOT_GIVEN, - created_at: transaction_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - route_id: str | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + category: transaction_list_params.Category | Omit = omit, + created_at: transaction_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + limit: int | Omit = omit, + route_id: 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[Transaction, AsyncPage[Transaction]]: """ List Transactions diff --git a/src/increase/resources/wire_drawdown_requests.py b/src/increase/resources/wire_drawdown_requests.py index 8b5e86906..ee73f74d0 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -5,7 +5,7 @@ import httpx from ..types import wire_drawdown_request_list_params, wire_drawdown_request_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 @@ -52,15 +52,15 @@ def create( debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, unstructured_remittance_information: str, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_external_account_id: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, + debtor_account_number: str | Omit = omit, + debtor_external_account_id: str | Omit = omit, + debtor_routing_number: 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, ) -> WireDrawdownRequest: """ @@ -134,7 +134,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, ) -> WireDrawdownRequest: """ Retrieve a Wire Drawdown Request @@ -165,16 +165,16 @@ def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: wire_drawdown_request_list_params.Status | 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[WireDrawdownRequest]: """ List Wire Drawdown Requests @@ -250,15 +250,15 @@ async def create( debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, unstructured_remittance_information: str, - debtor_account_number: str | NotGiven = NOT_GIVEN, - debtor_external_account_id: str | NotGiven = NOT_GIVEN, - debtor_routing_number: str | NotGiven = NOT_GIVEN, + debtor_account_number: str | Omit = omit, + debtor_external_account_id: str | Omit = omit, + debtor_routing_number: 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, ) -> WireDrawdownRequest: """ @@ -332,7 +332,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, ) -> WireDrawdownRequest: """ Retrieve a Wire Drawdown Request @@ -363,16 +363,16 @@ async def retrieve( def list( self, *, - cursor: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN, + cursor: str | Omit = omit, + idempotency_key: str | Omit = omit, + limit: int | Omit = omit, + status: wire_drawdown_request_list_params.Status | 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[WireDrawdownRequest, AsyncPage[WireDrawdownRequest]]: """ List Wire Drawdown Requests diff --git a/src/increase/resources/wire_transfers.py b/src/increase/resources/wire_transfers.py index da633ad18..0ee8c5cbd 100644 --- a/src/increase/resources/wire_transfers.py +++ b/src/increase/resources/wire_transfers.py @@ -5,7 +5,7 @@ import httpx from ..types import wire_transfer_list_params, wire_transfer_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 @@ -48,26 +48,26 @@ def create( account_id: str, amount: int, beneficiary_name: str, - account_number: str | NotGiven = NOT_GIVEN, - beneficiary_address_line1: str | NotGiven = NOT_GIVEN, - beneficiary_address_line2: str | NotGiven = NOT_GIVEN, - beneficiary_address_line3: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - inbound_wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, - originator_address_line1: str | NotGiven = NOT_GIVEN, - originator_address_line2: str | NotGiven = NOT_GIVEN, - originator_address_line3: str | NotGiven = NOT_GIVEN, - originator_name: str | NotGiven = NOT_GIVEN, - remittance: wire_transfer_create_params.Remittance | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, - source_account_number_id: str | NotGiven = NOT_GIVEN, + account_number: str | Omit = omit, + beneficiary_address_line1: str | Omit = omit, + beneficiary_address_line2: str | Omit = omit, + beneficiary_address_line3: str | Omit = omit, + external_account_id: str | Omit = omit, + inbound_wire_drawdown_request_id: str | Omit = omit, + originator_address_line1: str | Omit = omit, + originator_address_line2: str | Omit = omit, + originator_address_line3: str | Omit = omit, + originator_name: str | Omit = omit, + remittance: wire_transfer_create_params.Remittance | Omit = omit, + require_approval: bool | Omit = omit, + routing_number: str | Omit = omit, + source_account_number_id: 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, ) -> WireTransfer: """ @@ -168,7 +168,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, ) -> WireTransfer: """ Retrieve a Wire Transfer @@ -197,18 +197,18 @@ def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: wire_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: 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[WireTransfer]: """ List Wire Transfers @@ -268,7 +268,7 @@ def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ @@ -310,7 +310,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, ) -> WireTransfer: """ @@ -370,26 +370,26 @@ async def create( account_id: str, amount: int, beneficiary_name: str, - account_number: str | NotGiven = NOT_GIVEN, - beneficiary_address_line1: str | NotGiven = NOT_GIVEN, - beneficiary_address_line2: str | NotGiven = NOT_GIVEN, - beneficiary_address_line3: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - inbound_wire_drawdown_request_id: str | NotGiven = NOT_GIVEN, - originator_address_line1: str | NotGiven = NOT_GIVEN, - originator_address_line2: str | NotGiven = NOT_GIVEN, - originator_address_line3: str | NotGiven = NOT_GIVEN, - originator_name: str | NotGiven = NOT_GIVEN, - remittance: wire_transfer_create_params.Remittance | NotGiven = NOT_GIVEN, - require_approval: bool | NotGiven = NOT_GIVEN, - routing_number: str | NotGiven = NOT_GIVEN, - source_account_number_id: str | NotGiven = NOT_GIVEN, + account_number: str | Omit = omit, + beneficiary_address_line1: str | Omit = omit, + beneficiary_address_line2: str | Omit = omit, + beneficiary_address_line3: str | Omit = omit, + external_account_id: str | Omit = omit, + inbound_wire_drawdown_request_id: str | Omit = omit, + originator_address_line1: str | Omit = omit, + originator_address_line2: str | Omit = omit, + originator_address_line3: str | Omit = omit, + originator_name: str | Omit = omit, + remittance: wire_transfer_create_params.Remittance | Omit = omit, + require_approval: bool | Omit = omit, + routing_number: str | Omit = omit, + source_account_number_id: 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, ) -> WireTransfer: """ @@ -490,7 +490,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, ) -> WireTransfer: """ Retrieve a Wire Transfer @@ -519,18 +519,18 @@ async def retrieve( def list( self, *, - account_id: str | NotGiven = NOT_GIVEN, - created_at: wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN, - cursor: str | NotGiven = NOT_GIVEN, - external_account_id: str | NotGiven = NOT_GIVEN, - idempotency_key: str | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, + account_id: str | Omit = omit, + created_at: wire_transfer_list_params.CreatedAt | Omit = omit, + cursor: str | Omit = omit, + external_account_id: str | Omit = omit, + idempotency_key: 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[WireTransfer, AsyncPage[WireTransfer]]: """ List Wire Transfers @@ -590,7 +590,7 @@ async def approve( extra_headers: Headers | None = None, extra_query: 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, ) -> WireTransfer: """ @@ -632,7 +632,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, ) -> WireTransfer: """ diff --git a/tests/test_transform.py b/tests/test_transform.py index 7b9ba4c28..0631bbd09 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -8,7 +8,7 @@ import pytest -from increase._types import NOT_GIVEN, Base64FileInput +from increase._types import Base64FileInput, omit, not_given from increase._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) == {} From d42ab79de47b81539079356c37f68fe4fa43b0cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 00:42:50 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- .../types/real_time_decision_action_params.py | 13 ++++--------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5d419a59b..d5dac36dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 213 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-61d42e1f44023df8161e3b35d6154011e638f78b3b232379396ea8980d6257b5.yml -openapi_spec_hash: 8831b733d617f5c7ee39db3cb62da20c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8d71e78a4afd7e1ce2436bf2428777d623f468bb3b6c37c36ed8ed3155fe6c77.yml +openapi_spec_hash: 3064d7c7468a53e4797ef16b648fd06d config_hash: e1e8bc2138a13f290956ae6687f099cd diff --git a/src/increase/types/real_time_decision_action_params.py b/src/increase/types/real_time_decision_action_params.py index a1e1d2887..831c017a8 100644 --- a/src/increase/types/real_time_decision_action_params.py +++ b/src/increase/types/real_time_decision_action_params.py @@ -101,15 +101,10 @@ class CardAuthorizationApproval(TypedDict, total=False): """Your decisions on whether or not each provided address component is a match. Your response here is evaluated against the customer's provided `postal_code` - and `line1`, and an appropriate network response is generated. For example, if - you would like to approve all transactions for a given card, you can submit - `match` for both `postal_code` and `line1` and Increase will generate an - approval with an Address Verification System (AVS) code that will match all of - the available address information, or will report that no check was performed if - no address information is available. If you do not provide a response, the - address verification result will be calculated by Increase using the available - address information available on the card. If none is available, Increase will - report that no check was performed. + and `line1`, and an appropriate network response is generated. For more + information, see our + [Address Verification System Codes and Overrides](https://increase.com/documentation/address-verification-system-codes-and-overrides) + guide. """ From a4b46b6598dd55e6ae5d48dcd2bbf7182b11275e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 00:43:12 +0000 Subject: [PATCH 3/3] release: 0.332.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fd28aa524..e4f54275b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.331.0" + ".": "0.332.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 57cd96e1f..a55d56056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.332.0 (2025-09-19) + +Full Changelog: [v0.331.0...v0.332.0](https://github.com/Increase/increase-python/compare/v0.331.0...v0.332.0) + +### Features + +* **api:** api update ([d42ab79](https://github.com/Increase/increase-python/commit/d42ab79de47b81539079356c37f68fe4fa43b0cb)) + + +### Chores + +* **types:** change optional parameter type from NotGiven to Omit ([6196521](https://github.com/Increase/increase-python/commit/619652113ce900fb38479ab84721de29169172e8)) + ## 0.331.0 (2025-09-18) Full Changelog: [v0.330.0...v0.331.0](https://github.com/Increase/increase-python/compare/v0.330.0...v0.331.0) diff --git a/pyproject.toml b/pyproject.toml index 0e7acca04..e2dc43124 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.331.0" +version = "0.332.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index 3536e1ec2..2f0ca575f 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.331.0" # x-release-please-version +__version__ = "0.332.0" # x-release-please-version