| 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 ReceivedCreditCreateParams(RequestOptions): |
| 9 |
amount: int |
| 10 |
""" |
| 11 |
Amount (in cents) to be transferred. |
| 12 |
""" |
| 13 |
currency: str |
| 14 |
""" |
| 15 |
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). |
| 16 |
""" |
| 17 |
description: NotRequired[str] |
| 18 |
""" |
| 19 |
An arbitrary string attached to the object. Often useful for displaying to users. |
| 20 |
""" |
| 21 |
expand: NotRequired[List[str]] |
| 22 |
""" |
| 23 |
Specifies which fields in the response should be expanded. |
| 24 |
""" |
| 25 |
financial_account: str |
| 26 |
""" |
| 27 |
The FinancialAccount to send funds to. |
| 28 |
""" |
| 29 |
initiating_payment_method_details: NotRequired[ |
| 30 |
"ReceivedCreditCreateParamsInitiatingPaymentMethodDetails" |
| 31 |
] |
| 32 |
""" |
| 33 |
Initiating payment method details for the object. |
| 34 |
""" |
| 35 |
network: Literal["ach", "us_domestic_wire"] |
| 36 |
""" |
| 37 |
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. |
| 38 |
""" |
| 39 |
|
| 40 |
|
| 41 |
class ReceivedCreditCreateParamsInitiatingPaymentMethodDetails(TypedDict): |
| 42 |
type: Literal["us_bank_account"] |
| 43 |
""" |
| 44 |
The source type. |
| 45 |
""" |
| 46 |
us_bank_account: NotRequired[ |
| 47 |
"ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount" |
| 48 |
] |
| 49 |
""" |
| 50 |
Optional fields for `us_bank_account`. |
| 51 |
""" |
| 52 |
|
| 53 |
|
| 54 |
class ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount( |
| 55 |
TypedDict, |
| 56 |
): |
| 57 |
account_holder_name: NotRequired[str] |
| 58 |
""" |
| 59 |
The bank account holder's name. |
| 60 |
""" |
| 61 |
account_number: NotRequired[str] |
| 62 |
""" |
| 63 |
The bank account number. |
| 64 |
""" |
| 65 |
routing_number: NotRequired[str] |
| 66 |
""" |
| 67 |
The bank account's routing number. |
| 68 |
""" |