Debian Codegraph @

stripe/params/treasury/_transaction_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 TransactionListParams(RequestOptions):
9 created: NotRequired["TransactionListParamsCreated|int"]
10 """
11 Only return Transactions that were created during the given date interval.
12 """
13 ending_before: NotRequired[str]
14 """
15 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.
16 """
17 expand: NotRequired[List[str]]
18 """
19 Specifies which fields in the response should be expanded.
20 """
21 financial_account: str
22 """
23 Returns objects associated with this FinancialAccount.
24 """
25 limit: NotRequired[int]
26 """
27 A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
28 """
29 order_by: NotRequired[Literal["created", "posted_at"]]
30 """
31 The results are in reverse chronological order by `created` or `posted_at`. The default is `created`.
32 """
33 starting_after: NotRequired[str]
34 """
35 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.
36 """
37 status: NotRequired[Literal["open", "posted", "void"]]
38 """
39 Only return Transactions that have the given status: `open`, `posted`, or `void`.
40 """
41 status_transitions: NotRequired["TransactionListParamsStatusTransitions"]
42 """
43 A filter for the `status_transitions.posted_at` timestamp. When using this filter, `status=posted` and `order_by=posted_at` must also be specified.
44 """
45
46
47 class TransactionListParamsCreated(TypedDict):
48 gt: NotRequired[int]
49 """
50 Minimum value to filter by (exclusive)
51 """
52 gte: NotRequired[int]
53 """
54 Minimum value to filter by (inclusive)
55 """
56 lt: NotRequired[int]
57 """
58 Maximum value to filter by (exclusive)
59 """
60 lte: NotRequired[int]
61 """
62 Maximum value to filter by (inclusive)
63 """
64
65
66 class TransactionListParamsStatusTransitions(TypedDict):
67 posted_at: NotRequired[
68 "TransactionListParamsStatusTransitionsPostedAt|int"
69 ]
70 """
71 Returns Transactions with `posted_at` within the specified range.
72 """
73
74
75 class TransactionListParamsStatusTransitionsPostedAt(TypedDict):
76 gt: NotRequired[int]
77 """
78 Minimum value to filter by (exclusive)
79 """
80 gte: NotRequired[int]
81 """
82 Minimum value to filter by (inclusive)
83 """
84 lt: NotRequired[int]
85 """
86 Maximum value to filter by (exclusive)
87 """
88 lte: NotRequired[int]
89 """
90 Maximum value to filter by (inclusive)
91 """