Debian Codegraph @

stripe/params/checkout/_session_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 SessionListParams(RequestOptions):
9 created: NotRequired["SessionListParamsCreated|int"]
10 """
11 Only return Checkout Sessions that were created during the given date interval.
12 """
13 customer: NotRequired[str]
14 """
15 Only return the Checkout Sessions for the Customer specified.
16 """
17 customer_account: NotRequired[str]
18 """
19 Only return the Checkout Sessions for the Account specified.
20 """
21 customer_details: NotRequired["SessionListParamsCustomerDetails"]
22 """
23 Only return the Checkout Sessions for the Customer details specified.
24 """
25 ending_before: NotRequired[str]
26 """
27 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.
28 """
29 expand: NotRequired[List[str]]
30 """
31 Specifies which fields in the response should be expanded.
32 """
33 limit: NotRequired[int]
34 """
35 A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
36 """
37 payment_intent: NotRequired[str]
38 """
39 Only return the Checkout Session for the PaymentIntent specified.
40 """
41 payment_link: NotRequired[str]
42 """
43 Only return the Checkout Sessions for the Payment Link specified.
44 """
45 starting_after: NotRequired[str]
46 """
47 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.
48 """
49 status: NotRequired[Literal["complete", "expired", "open"]]
50 """
51 Only return the Checkout Sessions matching the given status.
52 """
53 subscription: NotRequired[str]
54 """
55 Only return the Checkout Session for the subscription specified.
56 """
57
58
59 class SessionListParamsCreated(TypedDict):
60 gt: NotRequired[int]
61 """
62 Minimum value to filter by (exclusive)
63 """
64 gte: NotRequired[int]
65 """
66 Minimum value to filter by (inclusive)
67 """
68 lt: NotRequired[int]
69 """
70 Maximum value to filter by (exclusive)
71 """
72 lte: NotRequired[int]
73 """
74 Maximum value to filter by (inclusive)
75 """
76
77
78 class SessionListParamsCustomerDetails(TypedDict):
79 email: str
80 """
81 Customer's email address.
82 """