| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import Dict, List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class OutboundTransferCreateParams(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 |
destination_payment_method: NotRequired[str] |
| 22 |
""" |
| 23 |
The PaymentMethod to use as the payment instrument for the OutboundTransfer. |
| 24 |
""" |
| 25 |
destination_payment_method_data: NotRequired[ |
| 26 |
"OutboundTransferCreateParamsDestinationPaymentMethodData" |
| 27 |
] |
| 28 |
""" |
| 29 |
Hash used to generate the PaymentMethod to be used for this OutboundTransfer. Exclusive with `destination_payment_method`. |
| 30 |
""" |
| 31 |
destination_payment_method_options: NotRequired[ |
| 32 |
"OutboundTransferCreateParamsDestinationPaymentMethodOptions" |
| 33 |
] |
| 34 |
""" |
| 35 |
Hash describing payment method configuration details. |
| 36 |
""" |
| 37 |
expand: NotRequired[List[str]] |
| 38 |
""" |
| 39 |
Specifies which fields in the response should be expanded. |
| 40 |
""" |
| 41 |
financial_account: str |
| 42 |
""" |
| 43 |
The FinancialAccount to pull funds from. |
| 44 |
""" |
| 45 |
metadata: NotRequired[Dict[str, str]] |
| 46 |
""" |
| 47 |
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. |
| 48 |
""" |
| 49 |
statement_descriptor: NotRequired[str] |
| 50 |
""" |
| 51 |
Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer". Can only include -#.$&*, spaces, and alphanumeric characters. |
| 52 |
""" |
| 53 |
|
| 54 |
|
| 55 |
class OutboundTransferCreateParamsDestinationPaymentMethodData(TypedDict): |
| 56 |
financial_account: NotRequired[str] |
| 57 |
""" |
| 58 |
Required if type is set to `financial_account`. The FinancialAccount ID to send funds to. |
| 59 |
""" |
| 60 |
type: Literal["financial_account"] |
| 61 |
""" |
| 62 |
The type of the destination. |
| 63 |
""" |
| 64 |
|
| 65 |
|
| 66 |
class OutboundTransferCreateParamsDestinationPaymentMethodOptions(TypedDict): |
| 67 |
us_bank_account: NotRequired[ |
| 68 |
"Literal['']|OutboundTransferCreateParamsDestinationPaymentMethodOptionsUsBankAccount" |
| 69 |
] |
| 70 |
""" |
| 71 |
Optional fields for `us_bank_account`. |
| 72 |
""" |
| 73 |
|
| 74 |
|
| 75 |
class OutboundTransferCreateParamsDestinationPaymentMethodOptionsUsBankAccount( |
| 76 |
TypedDict, |
| 77 |
): |
| 78 |
network: NotRequired[Literal["ach", "us_domestic_wire"]] |
| 79 |
""" |
| 80 |
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. |
| 81 |
""" |