Debian Codegraph @

stripe/params/test_helpers/treasury/_received_debit_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class ReceivedDebitCreateParams(TypedDict):
8 amount: int
9 """
10 Amount (in cents) to be transferred.
11 """
12 currency: str
13 """
14 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
15 """
16 description: NotRequired[str]
17 """
18 An arbitrary string attached to the object. Often useful for displaying to users.
19 """
20 expand: NotRequired[List[str]]
21 """
22 Specifies which fields in the response should be expanded.
23 """
24 financial_account: str
25 """
26 The FinancialAccount to pull funds from.
27 """
28 initiating_payment_method_details: NotRequired[
29 "ReceivedDebitCreateParamsInitiatingPaymentMethodDetails"
30 ]
31 """
32 Initiating payment method details for the object.
33 """
34 network: Literal["ach"]
35 """
36 Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
37 """
38
39
40 class ReceivedDebitCreateParamsInitiatingPaymentMethodDetails(TypedDict):
41 type: Literal["us_bank_account"]
42 """
43 The source type.
44 """
45 us_bank_account: NotRequired[
46 "ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount"
47 ]
48 """
49 Optional fields for `us_bank_account`.
50 """
51
52
53 class ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount(
54 TypedDict,
55 ):
56 account_holder_name: NotRequired[str]
57 """
58 The bank account holder's name.
59 """
60 account_number: NotRequired[str]
61 """
62 The bank account number.
63 """
64 routing_number: NotRequired[str]
65 """
66 The bank account's routing number.
67 """