Debian Codegraph @

stripe/params/_balance_settings_modify_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 Dict, List, Union
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class BalanceSettingsModifyParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 payments: NotRequired["BalanceSettingsModifyParamsPayments"]
14 """
15 Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
16 """
17
18
19 class BalanceSettingsModifyParamsPayments(TypedDict):
20 debit_negative_balances: NotRequired[bool]
21 """
22 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).
23 """
24 payouts: NotRequired["BalanceSettingsModifyParamsPaymentsPayouts"]
25 """
26 Settings specific to the account's payouts.
27 """
28 settlement_timing: NotRequired[
29 "BalanceSettingsModifyParamsPaymentsSettlementTiming"
30 ]
31 """
32 Settings related to the account's balance settlement timing.
33 """
34
35
36 class BalanceSettingsModifyParamsPaymentsPayouts(TypedDict):
37 minimum_balance_by_currency: NotRequired[
38 "Literal['']|Dict[str, Union[Literal[''], int]]"
39 ]
40 """
41 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).
42 """
43 schedule: NotRequired["BalanceSettingsModifyParamsPaymentsPayoutsSchedule"]
44 """
45 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.
46 """
47 statement_descriptor: NotRequired[str]
48 """
49 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.
50 """
51
52
53 class BalanceSettingsModifyParamsPaymentsPayoutsSchedule(TypedDict):
54 interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]]
55 """
56 How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
57 """
58 monthly_payout_days: NotRequired[List[int]]
59 """
60 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`.
61 """
62 weekly_payout_days: NotRequired[
63 List[Literal["friday", "monday", "thursday", "tuesday", "wednesday"]]
64 ]
65 """
66 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`.
67 """
68
69
70 class BalanceSettingsModifyParamsPaymentsSettlementTiming(TypedDict):
71 delay_days_override: NotRequired["Literal['']|int"]
72 """
73 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).
74 """