Debian Codegraph @

stripe/params/financial_connections/_session_create_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 SessionCreateParams(RequestOptions):
9 account_holder: "SessionCreateParamsAccountHolder"
10 """
11 The account holder to link accounts for.
12 """
13 expand: NotRequired[List[str]]
14 """
15 Specifies which fields in the response should be expanded.
16 """
17 filters: NotRequired["SessionCreateParamsFilters"]
18 """
19 Filters to restrict the kinds of accounts to collect.
20 """
21 permissions: List[
22 Literal["balances", "ownership", "payment_method", "transactions"]
23 ]
24 """
25 List of data features that you would like to request access to.
26
27 Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
28 """
29 prefetch: NotRequired[
30 List[Literal["balances", "ownership", "transactions"]]
31 ]
32 """
33 List of data features that you would like to retrieve upon account creation.
34 """
35 return_url: NotRequired[str]
36 """
37 For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
38 """
39
40
41 class SessionCreateParamsAccountHolder(TypedDict):
42 account: NotRequired[str]
43 """
44 The ID of the Stripe account whose accounts you will retrieve. Only available when `type` is `account`.
45 """
46 customer: NotRequired[str]
47 """
48 The ID of the Stripe customer whose accounts you will retrieve. Only available when `type` is `customer`.
49 """
50 customer_account: NotRequired[str]
51 """
52 The ID of Account representing a customer whose accounts you will retrieve. Only available when `type` is `customer`.
53 """
54 type: Literal["account", "customer"]
55 """
56 Type of account holder to collect accounts for.
57 """
58
59
60 class SessionCreateParamsFilters(TypedDict):
61 account_subcategories: NotRequired[
62 List[
63 Literal[
64 "checking",
65 "credit_card",
66 "line_of_credit",
67 "mortgage",
68 "savings",
69 ]
70 ]
71 ]
72 """
73 Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`.
74 """
75 countries: NotRequired[List[str]]
76 """
77 List of countries from which to collect accounts.
78 """