| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from typing import Dict, List, Union |
| 4 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 5 |
|
| 6 |
|
| 7 |
class BalanceSettingsUpdateParams(TypedDict): |
| 8 |
expand: NotRequired[List[str]] |
| 9 |
""" |
| 10 |
Specifies which fields in the response should be expanded. |
| 11 |
""" |
| 12 |
payments: NotRequired["BalanceSettingsUpdateParamsPayments"] |
| 13 |
""" |
| 14 |
Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance). |
| 15 |
""" |
| 16 |
|
| 17 |
|
| 18 |
class BalanceSettingsUpdateParamsPayments(TypedDict): |
| 19 |
debit_negative_balances: NotRequired[bool] |
| 20 |
""" |
| 21 |
A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances). |
| 22 |
""" |
| 23 |
payouts: NotRequired["BalanceSettingsUpdateParamsPaymentsPayouts"] |
| 24 |
""" |
| 25 |
Settings specific to the account's payouts. |
| 26 |
""" |
| 27 |
settlement_timing: NotRequired[ |
| 28 |
"BalanceSettingsUpdateParamsPaymentsSettlementTiming" |
| 29 |
] |
| 30 |
""" |
| 31 |
Settings related to the account's balance settlement timing. |
| 32 |
""" |
| 33 |
|
| 34 |
|
| 35 |
class BalanceSettingsUpdateParamsPaymentsPayouts(TypedDict): |
| 36 |
minimum_balance_by_currency: NotRequired[ |
| 37 |
"Literal['']|Dict[str, Union[Literal[''], int]]" |
| 38 |
] |
| 39 |
""" |
| 40 |
The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts). |
| 41 |
""" |
| 42 |
schedule: NotRequired["BalanceSettingsUpdateParamsPaymentsPayoutsSchedule"] |
| 43 |
""" |
| 44 |
Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation. |
| 45 |
""" |
| 46 |
statement_descriptor: NotRequired[str] |
| 47 |
""" |
| 48 |
The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard. |
| 49 |
""" |
| 50 |
|
| 51 |
|
| 52 |
class BalanceSettingsUpdateParamsPaymentsPayoutsSchedule(TypedDict): |
| 53 |
interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]] |
| 54 |
""" |
| 55 |
How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. |
| 56 |
""" |
| 57 |
monthly_payout_days: NotRequired[List[int]] |
| 58 |
""" |
| 59 |
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`. |
| 60 |
""" |
| 61 |
weekly_payout_days: NotRequired[ |
| 62 |
List[Literal["friday", "monday", "thursday", "tuesday", "wednesday"]] |
| 63 |
] |
| 64 |
""" |
| 65 |
The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`. |
| 66 |
""" |
| 67 |
|
| 68 |
|
| 69 |
class BalanceSettingsUpdateParamsPaymentsSettlementTiming(TypedDict): |
| 70 |
delay_days_override: NotRequired["Literal['']|int"] |
| 71 |
""" |
| 72 |
Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule). |
| 73 |
""" |