Stripe Search Result Object (stripe/_search_result_object.py)

stripe-python · stripe/_search_result_object.py · python · MIT
payments, integration, search, ui, tag:generic

Provides a generic container for paginated search results from the Stripe API, handling data, pagination, and next page retrieval.

# Source: https://github.com/stripe/stripe-python | License: MIT | Copyright 2010-2018 Stripe (http://stripe.com)
# Provided via justclaw.it.com; keep this notice with the code.
# pyright: strict
from typing_extensions import Self, Unpack, deprecated
from typing import (
    Generic,
    List,
    TypeVar,
    cast,
    Any,
    Mapping,
    Iterator,
    AsyncIterator,
    Optional,
)

from stripe._api_requestor import (
    _APIRequestor,  # pyright: ignore[reportPrivateUsage]
)
from stripe._stripe_object import StripeObject
import warnings
from stripe._request_options import RequestOptions, extract_options_from_dict
from stripe._any_iterator import AnyIterator

T = TypeVar("T", bound=StripeObject)


class SearchResultObject(StripeObject, Generic[T]):
    OBJECT_NAME = "search_result"
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key