Debian Codegraph @

stripe/params/_product_list_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class ProductListParams(RequestOptions):
9 active: NotRequired[bool]
10 """
11 Only return products that are active or inactive (e.g., pass `false` to list all inactive products).
12 """
13 created: NotRequired["ProductListParamsCreated|int"]
14 """
15 Only return products that were created during the given date interval.
16 """
17 ending_before: NotRequired[str]
18 """
19 A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
20 """
21 expand: NotRequired[List[str]]
22 """
23 Specifies which fields in the response should be expanded.
24 """
25 ids: NotRequired[List[str]]
26 """
27 Only return products with the given IDs. Cannot be used with [starting_after](https://api.stripe.com#list_products-starting_after) or [ending_before](https://api.stripe.com#list_products-ending_before).
28 """
29 limit: NotRequired[int]
30 """
31 A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
32 """
33 shippable: NotRequired[bool]
34 """
35 Only return products that can be shipped (i.e., physical, not digital products).
36 """
37 starting_after: NotRequired[str]
38 """
39 A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
40 """
41 type: NotRequired[Literal["good", "service"]]
42 """
43 Only return products of this type.
44 """
45 url: NotRequired[str]
46 """
47 Only return products with the given url.
48 """
49
50
51 class ProductListParamsCreated(TypedDict):
52 gt: NotRequired[int]
53 """
54 Minimum value to filter by (exclusive)
55 """
56 gte: NotRequired[int]
57 """
58 Minimum value to filter by (inclusive)
59 """
60 lt: NotRequired[int]
61 """
62 Maximum value to filter by (exclusive)
63 """
64 lte: NotRequired[int]
65 """
66 Maximum value to filter by (inclusive)
67 """